aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/powermenu
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2024-12-17 18:37:56 +0000
committerJustine Smithies <justine@smithies.me.uk>2024-12-17 18:37:56 +0000
commit1e267c52240e177f635f8f718099571e24493088 (patch)
treea8c3dce192a099c855d2332b75ec86a670b47b59 /.local/bin/powermenu
parent8f064c692ff1407ef9b1daaa4d1aa723066d19c7 (diff)
Converted from bash to sh.
Diffstat (limited to '.local/bin/powermenu')
-rwxr-xr-x.local/bin/powermenu37
1 files changed, 0 insertions, 37 deletions
diff --git a/.local/bin/powermenu b/.local/bin/powermenu
deleted file mode 100755
index e1896b1..0000000
--- a/.local/bin/powermenu
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/usr/bin/env bash
-
-read -r wallpaper<~/.cache/wallpaper
-
-#### Options ###
-power_off=" Shutdown"
-reboot="󰜉 Reboot"
-lock_screen=" Lock Screen"
-suspend=" Suspend"
-hibernate="󰒲 Hibernate"
-log_out="󰍃﫼 Log Out"
-
-# Options passed to fuzzel
-options="$power_off\n$reboot\n$suspend\n$hibernate\n$log_out\n$lock_screen"
-lines="$(echo "$options" | grep -oF '\n' | wc -l)"
-rofi_command="fuzzel -d -w 14 -l $((lines+1))"
-chosen="$(echo -e "$options" | $rofi_command )"
-case $chosen in
- "$lock_screen")
- swaylock -f -i "$wallpaper"
- ;;
- "$power_off")
- doas poweroff
- ;;
- "$reboot")
- doas reboot
- ;;
- "$suspend")
- # $lock && loginctl suspend
- ;;
- "$hibernate")
- # $lock && loginctl hibernate
- ;;
- "$log_out")
- riverctl exit
- ;;
-esac