hersbtluftwm: move exitmenu outside of qtile

This commit is contained in:
mequidis
2023-04-04 07:11:53 +03:00
parent 1cfe9a0950
commit 67cab5ee48
3 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/bin/zsh
#!/bin/bash
selection=$(fzf)
selection=$(echo $selection | sed 's,/[^/]*$,,')

23
.config/scripts/util/exitmenu Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash
menu="rofi -dmenu"
choice=$(echo -e "shutdown\nrestart\nlogoff\nscreenlock" | $menu)
case $choice in
shutdown)
sudo shutdown now
;;
restart)
sudo shutdown -r now
;;
logoff)
herbstclient quit
;;
screenlock)
i3lock -c 000000
;;
esac