blob: 878a17b8482e5cf45cf6a130ab18da2d11e5d630 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#!/bin/bash
# Power menu using wofi
# Dupre theme with Nerd Font icons
options="\n\n\n\n\n"
selected=$(echo -e "$options" | wofi --dmenu \
--cache-file /dev/null \
--prompt "" \
--hide-scroll \
--hide-search \
--gtk-dark \
--layer overlay \
--width 700 \
--height 700 \
--columns 3 \
--lines 2 \
--style ~/.config/wofi/power-menu.css \
--conf /dev/null)
case "$selected" in
"")
hyprlock
;;
"")
notify-send "Power Menu" "Logout disabled for testing"
# hyprctl dispatch exit
;;
"")
notify-send "Power Menu" "Suspend disabled for testing"
# systemctl suspend
;;
"")
notify-send "Power Menu" "Hibernate disabled for testing"
# systemctl hibernate
;;
"")
notify-send "Power Menu" "Reboot disabled for testing"
# systemctl reboot
;;
"")
notify-send "Power Menu" "Shutdown disabled for testing"
# systemctl poweroff
;;
esac
|