bin: remove sway_exit, this is now done via desktop files

This commit is contained in:
Konstantin Koslowski 2025-11-07 22:52:49 +01:00
parent de752e591c
commit 63bc63c91e
2 changed files with 0 additions and 31 deletions

View file

@ -1,29 +0,0 @@
#!/bin/bash
export PATH=$PATH:$HOME/.config/sway/bin
IMG_BASE=$HOME/.local/share/icons/Tela-circle-dark
IMG_LOCK=$IMG_BASE/scalable/apps/preferences-desktop-screensaver.svg
CMD_LOCK="sway_lock lock"
IMG_SCREENSAVER=$IMG_BASE/scalable/apps/preferences-desktop-screensaver.svg
CMD_SCREENSAVER="sway_lock screensaver"
IMG_SUSPEND=$IMG_BASE/scalable/apps/system-suspend.svg
CMD_SUSPEND="sway_power suspend"
IMG_SUSPEND_HIB=$IMG_BASE/scalable/apps/system-suspend.svg
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_SCREENSAVER:text:$CMD_SCREENSAVER
img:$IMG_SUSPEND:text:$CMD_SUSPEND
img:$IMG_SUSPEND_HIB:text:$CMD_SUSPEND_HIB
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