config_sway/bin/sway_exit

27 lines
925 B
Text
Raw Normal View History

#!/bin/bash
export PATH=$PATH:$HOME/.config/sway/bin
IMG_BASE=$HOME/.local/share/icons/Tela-circle-dark
IMG_LOCK=$IMG_BASE/scalable/apps/system-log-out.svg
CMD_LOCK="sway_lock lock"
IMG_SUSPEND=$IMG_BASE/scalable/apps/system-suspend.svg
2024-10-09 16:57:05 +02:00
CMD_SUSPEND="sway_power suspend"
2022-05-11 14:08:30 +02:00
IMG_SUSPEND_HIB=$IMG_BASE/scalable/apps/system-suspend.svg
2024-10-09 16:57:05 +02:00
CMD_SUSPEND_HIB="sway_power suspend-hib"
IMG_POWEROFF=$IMG_BASE/scalable/apps/kshutdown.svg
CMD_POWEROFF="sway_power poweroff"
IMG_RELOAD=$IMG_BASE/scalable/apps/system-software-update.svg
CMD_RELOAD="swaymsg reload"
IMG_EXIT=$IMG_BASE/scalable/apps/system-restart.svg
CMD_EXIT="swaymsg exit"
echo -e "img:$IMG_LOCK:text:$CMD_LOCK
img:$IMG_SUSPEND:text:$CMD_SUSPEND
2022-05-11 14:08:30 +02:00
img:$IMG_SUSPEND_HIB:text:$CMD_SUSPEND_HIB
2024-10-09 16:57:05 +02:00
img:$IMG_POWEROFF:text:$CMD_POWEROFF
img:$IMG_RELOAD:text:$CMD_RELOAD
img:$IMG_EXIT:text:$CMD_EXIT" | \
wofi --dmenu --prompt "exit menu" | while read line; do
bash -c "$line"
done