blob: ef68e2966cabe312597386eb128259454d300fea (
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
|
#!/usr/bin/fish
set poweroff ""
set reboot ""
set lock ""
set exit ""
set sleep ""
set hibernate ""
set chosen (echo -e "$poweroff\n$reboot\n$lock\n$exit\n$sleep\n$hibernate" | rofi -dmenu -theme ~/.config/rofi/powermenu.rasi)
switch $chosen
case $poweroff
shutdown now
case $reboot
reboot
case $lock
loginctl lock-session
case $exit
niri msg action quit
case $sleep
systemctl suspend
case $hibernate
systemctl hibernate
case '*'
exit 1
end
|