Skip to content

A full-screen power menu for Linux with a blur effect, made with Rofi.

License

Notifications You must be signed in to change notification settings

lu0/rofi-blurry-powermenu

Repository files navigation

Rofi Blurry Powermenu

Preview while on desktop Preview while busy

A simple yet beautiful powermenu made with Rofi, simulates a blur effect in the current screen.

Installation

Clone this repo in your rofi config folder

git clone https://github.com/lu0/rofi-blurry-powermenu.git ~/.config/rofi/blurry-powermenu

Link the script to your PATH

cd ~/.config/rofi/blurry-powermenu
sudo ln -srf powermenu.sh /usr/bin/blurry-powermenu

Install dependencies

sudo apt update && sudo apt install -y rofi scrot imagemagick
python3 -m pip install -r requirements.txt

Install included fonts

sudo cp fonts/* /usr/share/fonts/ && fc-cache -f

Usage

From the terminal on Cinnamon, XFCE and Mate

Trigger the powermenu, the lock option is highlighted by default.

blurry-powermenu

See the entire list of options

blurry-powermenu --help

Other Desktop Environments

Depending on your system, there might be specific DE commands to lock your screen and log out from the session. You may have to change the commands inside the case statement of the script powermenu.sh for it to work on your system.

case $selected in
    "${poweroff}")
        systemctl poweroff
        ;;
    "${reboot}")
        systemctl reboot
        ;;
    "${sleep}")
        systemctl suspend
        ;;
    "${logout}")
        # DE specific
        ;;
    "${lock}")
        # DE specific
        ;;
esac

Acknowledgments

This powermenu uses open source fonts Webly SleekUI and Feather.

I compiled Feather using my modified fork of rfbezerra's svg-to-ttf utility (which uses Fontcustom) to set the start of the character map.