revamp run sh

This commit is contained in:
2025-07-05 23:11:30 +00:00
parent 56b3f093db
commit 14263c00b2
9 changed files with 116 additions and 211 deletions

View File

@@ -0,0 +1,10 @@
#!/bin/sh
sure() {
echo yes | bemenu --prompt "sure?" || exec ~/.local/bin/bemenu/run.sh
}
case "$1" in
poweroff|reboot|suspend) sure && systemctl "$@";;
logout) sure && swaymsg exit;;
esac