added scripts to replace waybar
This commit is contained in:
19
hypr/scripts/power-menu.sh
Executable file
19
hypr/scripts/power-menu.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
config="$HOME/.config/rofi/power-menu.rasi"
|
||||
|
||||
actions=$(echo -e " Suspend\n Shutdown\n Reboot")
|
||||
|
||||
selected_option=$(echo -e "$actions" | rofi -dmenu -i -config "${config}" -p "Power:")
|
||||
|
||||
case "$selected_option" in
|
||||
*Shutdown)
|
||||
systemctl poweroff
|
||||
;;
|
||||
*Reboot)
|
||||
systemctl reboot
|
||||
;;
|
||||
*Suspend)
|
||||
systemctl suspend
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user