summaryrefslogtreecommitdiff
path: root/wifi
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2022-09-02 09:59:08 -0400
committerBen Sima <ben@bsima.me>2022-09-02 09:59:08 -0400
commit35416ace2f49f05f44b21e163ed0bb544f0ca971 (patch)
tree63b60785d49ac58ee9cbc4fa5dda8310e0ec9aab /wifi
parentdd26430e414ec120d1aa6dd528724db16a347a89 (diff)
add wifi script
Diffstat (limited to 'wifi')
-rwxr-xr-xwifi13
1 files changed, 13 insertions, 0 deletions
diff --git a/wifi b/wifi
new file mode 100755
index 0000000..3df1508
--- /dev/null
+++ b/wifi
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+#
+#
+##
+ nmcli --ask --colors yes d wifi \
+ | fzf \
+ --ansi \
+ --header "^R: reload | ^M: activate" \
+ --header-lines 1 \
+ --reverse \
+ --delimiter '[[:space:]][[:space:]]+' \
+ --bind "enter:execute(nmcli --ask d wifi c {2})" \
+ --bind "ctrl-r:reload(nmcli --colors yes d wifi)"