stuff
This commit is contained in:
parent
78faa96e1f
commit
3f5a5a4819
1 changed files with 15 additions and 21 deletions
|
|
@ -1,16 +1,9 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
set input_options " Lock" " Suspend" " Poweroff" " Reboot"
|
set input_options " Lock" " Suspend" " Poweroff" " Reboot"
|
||||||
|
|
||||||
set input (menu $input_options)
|
set input (menu $input_options || exit)
|
||||||
|
|
||||||
set check_options "Cancel" "Proceed"
|
|
||||||
|
|
||||||
set check (menu $check_options)
|
|
||||||
|
|
||||||
if test $check = $check_options[1]
|
|
||||||
exit 0
|
|
||||||
end
|
|
||||||
|
|
||||||
|
if test (menu "Cancel" "Proceed") = Proceed
|
||||||
switch $input
|
switch $input
|
||||||
case $input_options[1]
|
case $input_options[1]
|
||||||
swaylock -f
|
swaylock -f
|
||||||
|
|
@ -26,3 +19,4 @@ switch $input
|
||||||
systemctl reboot
|
systemctl reboot
|
||||||
|
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue