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