blob: 5dd5d1925a60a9b68d5762bd30c0591704ceeb19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/fish
set poweroff " Poweroff"
set reboot " Reboot"
set lock " Lock"
set exit " Exit"
set chosen (echo -e "$poweroff\n$reboot\n$lock\n$exit" | fuzzel --dmenu --lines 4 --width 15 --prompt "" --placeholder "")
switch $chosen
case $poweroff
shutdown now
case $reboot
reboot
case $lock
loginctl lock-session
case $exit
niri msg action quit
case '*'
exit 1
end
|