aboutsummaryrefslogtreecommitdiff
path: root/.scripts/get_wifi_name.sh
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-09-09 21:11:43 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-09-09 21:11:43 +0530
commitde58295210063ed7088b411d0da8ef37b33cb863 (patch)
tree089e946d9b302db19f9f3bb9ea32554761525365 /.scripts/get_wifi_name.sh
parent3d99cb44596006f8b6cfbf0f1f0daad5e54bd164 (diff)
switched to lemonbar
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'