This commit is contained in:
Never Gude 2026-03-08 23:14:09 +01:00
parent 78faa96e1f
commit 3f5a5a4819

View file

@ -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