Setup power rofi menu

This commit is contained in:
Ethan Lane 2024-11-28 21:32:32 +00:00
parent 64d53fc193
commit f23f7983d9
3 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,18 @@
#!/bin/bash
option=$(printf "Sleep\nLogout\nShutdown\nRestart" | rofi -dmenu -theme Arc-Dark -font 'hack 18')
if [ "$option" = "Sleep" ];
then
i3lock-fancy -g -t "System Locked" -f Hack-Regular
systemctl sleep
elif [ "$option" = "Logout" ];
i3-msg exit
then
elif [ "$option" = "Shutdown" ];
poweroff
then
elif [ "$option" = "Restart" ];
reboot
then
fi