aboutsummaryrefslogtreecommitdiff
path: root/.config/polybar/scripts/rofi-power.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/polybar/scripts/rofi-power.sh')
-rwxr-xr-x.config/polybar/scripts/rofi-power.sh45
1 files changed, 0 insertions, 45 deletions
diff --git a/.config/polybar/scripts/rofi-power.sh b/.config/polybar/scripts/rofi-power.sh
deleted file mode 100755
index 87ac92c..0000000
--- a/.config/polybar/scripts/rofi-power.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/usr/bin/env sh
-#
-# A rofi powered menu to execute power related action.
-# Uses: amixer mpc poweroff reboot rofi rofi-prompt
-
-power_off=''
-reboot=''
-lock=''
-suspend='鈴'
-log_out=''
-
-chosen=$(printf '%s;%s;%s;%s;%s\n' "$power_off" "$reboot" "$lock" "$suspend" \
- "$log_out" \
- | rofi -theme '~/.config/rofi/themes/power.rasi' \
- -dmenu \
- -sep ';' \
- -selected-row 2)
-
-case "$chosen" in
- "$power_off")
- rofi-prompt --query 'Shutdown?' && poweroff
- ;;
-
- "$reboot")
- rofi-prompt --query 'Reboot?' && reboot
- ;;
-
- "$lock")
- # TODO Add your lockscreen command.
- ;;
-
- "$suspend")
- # Pause music and mute volume before suspending.
- mpc --quiet pause
- amixer set Master mute
- # TODO Add your suspend command.
- ;;
-
- "$log_out")
- # TODO Add your log out command.
- ;;
-
- *) exit 1 ;;
-esac
-