mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-25 14:28:44 +01:00
22 lines
422 B
Bash
22 lines
422 B
Bash
items="lock screen;log out;toggle picom;shut down;reboot;update all"
|
|
|
|
selection=$(echo $items | rofi -sep ";" -dmenu)
|
|
|
|
case $selection in
|
|
"lock screen")
|
|
i3lock-fancy
|
|
;;
|
|
"log out")
|
|
pkill i3
|
|
;;
|
|
"toggle picom")
|
|
pkill picom || picom --experimental-backend -b
|
|
;;
|
|
"shut down")
|
|
shutdown now
|
|
;;
|
|
"reboot")
|
|
systemctl reboot
|
|
;;
|
|
esac
|