sway/bin: add suspend/suspend-hib

This commit is contained in:
Konstantin Koslowski 2022-05-11 14:08:30 +02:00
parent 51e820c19e
commit f4d51d6e65
2 changed files with 13 additions and 6 deletions

View file

@ -5,6 +5,8 @@ IMG_LOCK=$IMG_BASE/scalable/apps/system-log-out.svg
CMD_LOCK="sway_lock lock"
IMG_SUSPEND=$IMG_BASE/scalable/apps/system-suspend.svg
CMD_SUSPEND="sway_suspend suspend"
IMG_SUSPEND_HIB=$IMG_BASE/scalable/apps/system-suspend.svg
CMD_SUSPEND_HIB="sway_suspend suspend-hib"
IMG_RELOAD=$IMG_BASE/scalable/apps/system-software-update.svg
CMD_RELOAD="swaymsg reload"
IMG_EXIT=$IMG_BASE/scalable/apps/system-restart.svg
@ -12,6 +14,7 @@ CMD_EXIT="swaymsg exit"
echo -e "img:$IMG_LOCK:text:$CMD_LOCK
img:$IMG_SUSPEND:text:$CMD_SUSPEND
img:$IMG_SUSPEND_HIB:text:$CMD_SUSPEND_HIB
img:$IMG_RELOAD:text:$CMD_RELOAD
img:$IMG_EXIT:text:$CMD_EXIT" | \
wofi --dmenu --prompt "exit menu" | while read line; do