- Rofi configuration files and scripts for
- Music Control
- Wifi Connections
- Mounting/Unmounting USB/Partitions
- Mounting/Unmounting Android devices
- Screenshots
- Launcher
![]() |
![]() |
---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
Clone this repository
$ git clone https://github.com/niraj998/Rofi-Scripts.git && cd Rofi-Scripts
Backup your rofi configs.
$ mkdir -pv ~/.config/rofibkp
$ mv ~/.config/rofi ~/.config/rofibkp
Install fonts (Choose any one you like) Note: There are 2-3 versions of Material design fonts. Just make sure to only have the one I've put in fonts folder.
- System-wide
$ sudo cp -r ./fonts /usr/share/fonts/
$ fc-cache -fv
- User only
$ [ -d "$HOME/.local/share/fonts" ] || mkdir -pv $HOME/.local/share/fonts
$ cp -r ./fonts $HOME/.local/share/fonts
$ fc-cache -fv
Install Dependencies
- for Arch
$ yay -Sy rofi playerctl mpc jq maim simple-mtpfs ffmpeg fuse2 wmctrl xclip --needed
- Rofi Configs made in Rofi version 1.7.2 (Rofi configs might not work in older version of rofi)
- All of these packages available in official repository except simple-mtpfs.
Copy scripts and rofi configs
$ [ -d "$HOME/.config/rofi" ] || mkdir -pv $HOME/.config/rofi
$ cp -r ./rofi $HOME/.config
Enjoy
- Launch scripts
- For Launcher run
rofi -show drun
- For rest of things just run script inside respective folders.
- For Launcher run
- Colorscheme/Theme
- All the Colors are coming from style.rasi file inside themes folder for all the rofi configs. Edit style file to change colors.
-
Requires wmctrl, mpc, playerctl, ffmpeg and jq packages.
-
mpd
- Default mpd music directory is ~/Music in the script. Directory is defined at the top of the script for you to change. (this needed to get artwork)
- Selecting music icon will open ncmpcpp in terminal
- Controls default mpc host (will add option to select different host soon)
-
Other players
- Shortcut to Music player, focuses on player window using wmctrl. If fails it'll start new instance of player.
- Controls music with the help of playerctl.
- Works with Spotify without any change. Can also support other players compatible with playerctl instructions to add other players are at the top of the music script.
-
Fetches lyrics of current song in terminal from the api. With the help of curl and jq, read more about this in the script.
- Takes Screenshot using maim.
- Saves Screenshots in ~/Pictures/Screenshots.
- Configure screenshot save location in script.
- Reads /sys/class/net/wl* files to get current status.
- Uses nmcli for everything else.
- Default mount location is /mnt, you can change this foler in script.
- If you don't want to mount to /mnt type name of the folder and it'll create folder inside /mnt and mount in that folder.
- if you already have askpass setup uncomment askpass line in the script. There's rofi script inside that folder using that for sudo password while mounting.
- Requires simple-mtpfs and fuse2.
- it's Setup to mount devices in ~/Cell, you can give your own location in the script.
- add your own script to refresh wallpaper / bar or window manager in script.
- Adding more useful things, themes and colors.
- Pull Requests, Issues, Fork, Contributions are welcome.