MOAR config
This commit is contained in:
parent
1b65bc2270
commit
d8c2da70a9
7 changed files with 61 additions and 41 deletions
23
home/dot_config/sway/executable_power-menu
Normal file
23
home/dot_config/sway/executable_power-menu
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
entries="⇠ Logout\n⏾ Suspend\n⭮ Reboot\n⏻ Shutdown\n Lock"
|
||||
|
||||
selected=$(echo -e $entries | wofi --dmenu --cache-file /dev/null | awk '{print tolower($2)}')
|
||||
|
||||
case $selected in
|
||||
lock)
|
||||
swaylock
|
||||
;;
|
||||
logout)
|
||||
swaymsg exit
|
||||
;;
|
||||
suspend)
|
||||
exec systemctl suspend
|
||||
;;
|
||||
reboot)
|
||||
exec systemctl reboot
|
||||
;;
|
||||
shutdown)
|
||||
exec systemctl poweroff -i
|
||||
;;
|
||||
esac
|
||||
Loading…
Add table
Add a link
Reference in a new issue