2021-07-12 23:39:19 +02:00
|
|
|
#!/bin/bash
|
|
|
|
export PATH=$PATH:$HOME/.config/sway/bin
|
2022-04-21 01:42:42 +02:00
|
|
|
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"
|
2022-04-21 01:42:42 +02:00
|
|
|
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
|
2022-04-21 01:42:42 +02:00
|
|
|
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
|
|
|
|
|