nixos/config/home/scripts/system/power.sh

19 lines
374 B
Bash
Raw Normal View History

2024-11-28 21:32:32 +00:00
#!/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