aboutsummaryrefslogtreecommitdiff
path: root/.scripts/get_wifi_name.sh
diff options
context:
space:
mode:
Diffstat (limited to '.scripts/get_wifi_name.sh')
-rwxr-xr-x.scripts/get_wifi_name.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/.scripts/get_wifi_name.sh b/.scripts/get_wifi_name.sh
new file mode 100755
index 0000000..57d44a3
--- /dev/null
+++ b/.scripts/get_wifi_name.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+nmcli -t -f active,ssid dev wifi | grep -e '^yes' | cut -d\' -f2 | sed 's/^yes://' | tr -d '\n'