summaryrefslogtreecommitdiff
path: root/usr/local/bin/sway-power
diff options
context:
space:
mode:
authorryukamish <[email protected]>2026-06-06 01:44:49 +0530
committerryukamish <[email protected]>2026-06-06 01:44:49 +0530
commit51183654e84b12d38cf72d8581f950269d6b47c1 (patch)
treebb327aff9bc87c692d401f392ce375c52133e965 /usr/local/bin/sway-power
parentb91a830fe91c2819cb0ca9b91dcfdcb02b2a2ead (diff)
fix: directory and symlink path change
Diffstat (limited to 'usr/local/bin/sway-power')
-rwxr-xr-xusr/local/bin/sway-power25
1 files changed, 0 insertions, 25 deletions
diff --git a/usr/local/bin/sway-power b/usr/local/bin/sway-power
deleted file mode 100755
index 82088ad..0000000
--- a/usr/local/bin/sway-power
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-
-_have() {
- command -v "$1"
-}
-
-PWR_OPTS=$(printf '%b' 'Lock\nReboot\nShutdown\nSuspend\nHibernate' | bemenu -l 5 -i -p 'Power menu:')
-
-case "$PWR_OPTS" in
- Hibernate)
- systemctl hibernate
- ;;
- Lock)
- _have swaylock && swaylock --daemonize && swaymsg 'output * power off'
- ;;
- Reboot)
- systemctl reboot
- ;;
- Shutdown)
- systemctl poweroff
- ;;
- Suspend)
- systemctl suspend
- ;;
-esac