From 4e8207493794088f9b30083241160d2185a145ba Mon Sep 17 00:00:00 2001 From: Guilherme Rugai Freire <41879254+GRFreire@users.noreply.github.com> Date: Fri, 13 Aug 2021 19:21:18 -0300 Subject: [PATCH] MERGE ALL INTO MONOREPO --- firefox-quick-keywords/LICENSE => LICENSE | 0 README.md | 16 ++++++ bin/colorscript | 1 + bin/firefox-quick-keywords | 1 + bin/simple-power-menu | 1 + firefox-quick-keywords/README.md | 22 +------- ...ick-keywords => firefox-quick-keywords.sh} | 0 shell-color-scripts/LICENSE | 22 -------- shell-color-scripts/README.md | 55 ++----------------- simple-power-menu/LICENSE | 22 -------- simple-power-menu/README.md | 23 ++------ ...mple-power-menu => simple-power-menu.bash} | 0 12 files changed, 29 insertions(+), 134 deletions(-) rename firefox-quick-keywords/LICENSE => LICENSE (100%) create mode 100644 README.md create mode 120000 bin/colorscript create mode 120000 bin/firefox-quick-keywords create mode 120000 bin/simple-power-menu rename firefox-quick-keywords/{firefox-quick-keywords => firefox-quick-keywords.sh} (100%) delete mode 100644 shell-color-scripts/LICENSE delete mode 100644 simple-power-menu/LICENSE rename simple-power-menu/{simple-power-menu => simple-power-menu.bash} (100%) diff --git a/firefox-quick-keywords/LICENSE b/LICENSE similarity index 100% rename from firefox-quick-keywords/LICENSE rename to LICENSE diff --git a/README.md b/README.md new file mode 100644 index 0000000..68d668e --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# GRFreire's scripts + +## About +In this repo you will find some scripts that I wrote (or found) while using and tinkering with linux. This is a WIP. + +Most of them should work just fine in your pc with you meet the requirements (specified in each script page). Some may work in macOS as well - although I never tested. + +## How to install + +1. Clone this repo: +``git clone https://github.com/GRFreire/scripts $HOME/.scripts`` + +2. Add to your path: +``export PATH="$PATH:$HOME/.scripts/bin"`` + +3. Ready to go \ No newline at end of file diff --git a/bin/colorscript b/bin/colorscript new file mode 120000 index 0000000..8300263 --- /dev/null +++ b/bin/colorscript @@ -0,0 +1 @@ +../shell-color-scripts/colorscript.sh \ No newline at end of file diff --git a/bin/firefox-quick-keywords b/bin/firefox-quick-keywords new file mode 120000 index 0000000..234d4dc --- /dev/null +++ b/bin/firefox-quick-keywords @@ -0,0 +1 @@ +../firefox-quick-keywords/firefox-quick-keywords.sh \ No newline at end of file diff --git a/bin/simple-power-menu b/bin/simple-power-menu new file mode 120000 index 0000000..7bd30e1 --- /dev/null +++ b/bin/simple-power-menu @@ -0,0 +1 @@ +../simple-power-menu/simple-power-menu.bash \ No newline at end of file diff --git a/firefox-quick-keywords/README.md b/firefox-quick-keywords/README.md index f180ed9..e248e73 100644 --- a/firefox-quick-keywords/README.md +++ b/firefox-quick-keywords/README.md @@ -1,23 +1,5 @@ # Firefox Quick Keywords -dmenu or rofi launcher to open firefox bookmarks with keywords quickly - -## Installing firefox-quick-keywords - > Requires [rofi](https://github.com/davatorium/rofi) or [dmenu](https://tools.suckless.org/dmenu/) -```sh -git clone https://github.com/GRFreire/firefox-quick-keywords $HOME/.local/share/firefox-quick-keywords - -ln -s $HOME/.local/share/firefox-quick-keywords/firefox-quick-keywords $HOME/.local/bin/firefox-quick-keywords -``` - -After that, just run ```firefox-quick-keywords``` in your terminal - -## Update - -Go to ```$HOME/.local/share/firefox-quick-keywords``` and update the repo. - -```sh -cd $HOME/.local/share/firefox-quick-keywords -git pull -``` +## About +a launcher to open firefox bookmarks with keywords quickly diff --git a/firefox-quick-keywords/firefox-quick-keywords b/firefox-quick-keywords/firefox-quick-keywords.sh similarity index 100% rename from firefox-quick-keywords/firefox-quick-keywords rename to firefox-quick-keywords/firefox-quick-keywords.sh diff --git a/shell-color-scripts/LICENSE b/shell-color-scripts/LICENSE deleted file mode 100644 index 72cfa90..0000000 --- a/shell-color-scripts/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2021 Guilherme Rugai Freire - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/shell-color-scripts/README.md b/shell-color-scripts/README.md index 5fc84a0..4229913 100644 --- a/shell-color-scripts/README.md +++ b/shell-color-scripts/README.md @@ -1,56 +1,9 @@ # Shell Color Scripts - -![Screenshot of shell-color-scripts](README/screenshot.png) - > Fork from [Derek Taylor](https://gitlab.com/dwt1) - https://gitlab.com/dwt1/shell-color-scripts +## About +A collection of terminal color scripts -## Installing shell-color-scripts +## Screenshot -```sh -git clone https://github.com/GRFreire/shell-color-scripts $HOME/.local/share/shell-color-scripts - -ln -s $HOME/.local/share/shell-color-scripts/colorscript.sh $HOME/.local/bin/colorscript -``` - -Make sure that ```$HOME/.local/bin``` is set in your PATH. - -## Update - -Go to ```$HOME/.local/share/shell-color-scripts``` and update the repo. - -```sh -cd $HOME/.local/share/shell-color-scripts -git pull -``` - -## Usage - -``` -colorscript --help -Description: A collection of terminal color scripts. - -Usage: colorscript [OPTION] [SCRIPT NAME/INDEX] - -h, --help, help Print this help. - -l, --list, list List all color scripts. - -r, --random, random Run a random color script. - -e, --exec, exec Run a spesific color script by SCRIPT NAME or INDEX. -``` - -## Auto run -For even more fun, add the following line to your .bashrc or .zshrc and you will run a random color script each time you open a terminal: - -```sh -### RANDOM COLOR SCRIPT ### -colorscript random -``` - -## Integrated terminal emulator -Probably you don't want colorscript to run in your Integrated terminal (i.g. your vscode terminal). So, if you pass an env variable INTEG_EMU (with any value) the script won't run. - -Try adding this to your ```settings.json``` (VSCode): -```json -"terminal.integrated.env.linux": { - "INTEG_EMU": "vscode" -} -``` \ No newline at end of file +![Screenshot of shell-color-scripts](README/screenshot.png) diff --git a/simple-power-menu/LICENSE b/simple-power-menu/LICENSE deleted file mode 100644 index d586cfa..0000000 --- a/simple-power-menu/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2021 Guilherme Rugai Freire - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/simple-power-menu/README.md b/simple-power-menu/README.md index 75bbe3c..8ea691d 100644 --- a/simple-power-menu/README.md +++ b/simple-power-menu/README.md @@ -1,24 +1,9 @@ # Simple Power Menu - -![Screenshot of shell-color-scripts](README/screenshot.png) - -## Installing shell-color-scripts - > Requires [rofi](https://github.com/davatorium/rofi) or [dmenu](https://tools.suckless.org/dmenu/) -```sh -git clone https://github.com/GRFreire/simple-power-menu $HOME/.local/share/simple-power-menu +## About +Simple power menu written in bash script using rofi -ln -s $HOME/.local/share/simple-power-menu/simple-power-menu $HOME/.local/bin/simple-power-menu -``` +## Screenshot -After that, just run ```simple-power-menu``` in your terminal - -## Update - -Go to ```$HOME/.local/share/simple-power-menu``` and update the repo. - -```sh -cd $HOME/.local/share/simple-power-menu -git pull -``` +![Screenshot of shell-color-scripts](README/screenshot.png) diff --git a/simple-power-menu/simple-power-menu b/simple-power-menu/simple-power-menu.bash similarity index 100% rename from simple-power-menu/simple-power-menu rename to simple-power-menu/simple-power-menu.bash