Init commit
This commit is contained in:
10
bin/powermenu
Executable file
10
bin/powermenu
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
choice=$(echo -e "Lock\nLogout\nReboot\nShutdown\nSleep\nHibernate" | rofi -theme archer -font "Iosevka Nerd Font Medium 18" -dmenu -p "Power menu")
|
||||
case "$choice" in
|
||||
"Lock") betterlockscreen -l ;;
|
||||
"Logout") pkill -u $USER ;;
|
||||
"Reboot") doas systemctl reboot ;;
|
||||
"Shutdown") doas systemctl poweroff ;;
|
||||
"Sleep") doas systemctl suspend ;;
|
||||
"Hibernate") doas systemctl hibernate ;;
|
||||
esac
|
||||
Reference in New Issue
Block a user