fix things

This commit is contained in:
zackartz 2024-05-23 21:24:09 +00:00
parent 042ee74dbd
commit 846c63df67
No known key found for this signature in database
GPG key ID: 5B53E53A9A514DBA
7 changed files with 19 additions and 11 deletions

View file

@ -1,12 +0,0 @@
{writeShellScriptBin, ...}:
writeShellScriptBin "powermenu" ''
chosen=$(printf " Power Off\n Restart\n Suspend\n Lock\n󰍃 Log Out" | anyrun --plugins libstdin.so --show-results-immediately true)
case "$chosen" in
" Power Off") systemctl poweroff;;
" Restart") systemctl reboot;;
" Lock") swaylock;;
"󰍃 Log Out") hyprctl dispatch exit;;
*) exit 1 ;;
esac
''