feat: configure Waybar, Wofi and Mako
This commit is contained in:
parent
e8b7684f35
commit
3f0609bcfc
7 changed files with 266 additions and 0 deletions
11
waybar/power-menu.sh
Normal file
11
waybar/power-menu.sh
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
choice=$(printf '%s\n' 'Lock' 'Suspend' 'Reboot' 'Power off' |
|
||||
wofi --dmenu --prompt 'Power' --width 300 --height 220 --hide-scroll)
|
||||
|
||||
case "$choice" in
|
||||
Lock) pgrep -x hyprlock >/dev/null || hyprlock ;;
|
||||
Suspend) systemctl suspend ;;
|
||||
Reboot) systemctl reboot ;;
|
||||
'Power off') systemctl poweroff ;;
|
||||
esac
|
||||
Loading…
Add table
Add a link
Reference in a new issue