stuff
This commit is contained in:
parent
78faa96e1f
commit
3f5a5a4819
1 changed files with 15 additions and 21 deletions
|
|
@ -1,17 +1,10 @@
|
|||
#!/usr/bin/env fish
|
||||
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
|
||||
|
||||
switch $input
|
||||
if test (menu "Cancel" "Proceed") = Proceed
|
||||
switch $input
|
||||
case $input_options[1]
|
||||
swaylock -f
|
||||
|
||||
|
|
@ -25,4 +18,5 @@ switch $input
|
|||
case $input_options[4]
|
||||
systemctl reboot
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue