Rofi Script Collection is a collection of scripts and their execution using a tool called Rofi
. Rofi
provides the user with a prompt to select the script to execute.
rofi
- Debian (Ubuntu, Mint etc)
sudo apt install rofi
- Arch
sudo pacman -S rofi
- Fedora
sudo dnf install rofi
- Nix
- Debian (Ubuntu, Mint etc)
git
- Debian (Ubuntu, Mint etc)
sudo apt install git
- Arch
sudo pacman -S git
- Fedora
sudo dnf install git
- Nix
- Debian (Ubuntu, Mint etc)
- Step 1: Install
rofi
andgit
(See Requirements) - Step 2: Clone the repository
git clone https://github.com/AfzGit/rofi-scripts-collection
- Step 3: Place the
rofi-scripts
folder wherever you want and give it execution permissions recursively.
# granting execution permission to the scripts in the folder
chmod 755 -R rofi-scripts-collection/rofi-scripts/
# Placing in home folder
mv rofi-scripts-collection/rofi-scripts/ ~
# Removing uneeded files
rm -rf rofi-scripts-collection/
- Step 4: Now add the shortcut to trigger rofi in your system settings (Check your desktop Environment’s custom shortcuts settings)
sh ~/rofi-scripts/$(ls -1 ~/rofi-scripts/ | rofi -scroll-method 1 -dmenu -i -p "Run:")
- Step 5: The installation has been done, now just press the shortcut key you assigned for the command above. To add more scripts, just put them in the
rofi-scripts
folder.
If your system runs FISH shell by default, use this shortcut instead for Step 4:
set -x selected (ls -1 ~/rofi-scripts/ | rofi -scroll-method 1 -dmenu -i -p "Run:") && sh ~/rofi-scripts/$selected