Setup power rofi menu
This commit is contained in:
parent
64d53fc193
commit
f23f7983d9
3 changed files with 20 additions and 0 deletions
18
config/home/scripts/system/power.sh
Normal file
18
config/home/scripts/system/power.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue