Files
bspwm-install-mde/config/rofi/powermenu.sh

10 lines
287 B
Bash

#! /bin/sh
chosen=$(printf " Power Off\n Restart\n Lock" | rofi -dmenu -i -theme-str '@import "powermenu.rasi"')
case "$chosen" in
" Power Off") systemctl poweroff ;;
" Restart") systemctl reboot ;;
" Lock") i3lock-fancy -gp -- scrot -z ;;
*) exit 1 ;;
esac