From 41aaa021567bc4b5d48d47f61ea6a5dcab88df2f Mon Sep 17 00:00:00 2001 From: Never Gude Date: Wed, 11 Mar 2026 14:43:15 +0100 Subject: [PATCH] fix bug --- .local/scripts/actionmenu.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/scripts/actionmenu.fish b/.local/scripts/actionmenu.fish index 7a2fe4e..caeef0b 100755 --- a/.local/scripts/actionmenu.fish +++ b/.local/scripts/actionmenu.fish @@ -84,7 +84,7 @@ end function network_connection set options (nmcli --terse --fields name connection show) - set input (menu $options) + set input (menu $options || exit) notify-send "Connect to network $input" (nmcli connection up $input) end @@ -103,7 +103,7 @@ function bluetooth_connection end end - set input (math (menu --index $names) + 1) + set input (math (menu --index $names || exit) + 1) notify-send "Connect to bluetooth device $names[$input]" (bluetoothctl connect $ids[$input] | string collect) end