initial commit
This commit is contained in:
17
hypr/scripts/powermenu.sh
Executable file
17
hypr/scripts/powermenu.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
op=$( echo -e " Shutdown\n Reboot\n Suspend\n Lock" | wofi --dmenu | awk '{print tolower($2)}' )
|
||||
|
||||
case $op in
|
||||
shutdown)
|
||||
shutdown now
|
||||
;;
|
||||
reboot)
|
||||
;&
|
||||
suspend)
|
||||
systemctl $op
|
||||
;;
|
||||
lock)
|
||||
hyprlock
|
||||
;;
|
||||
esac
|
Reference in New Issue
Block a user