summaryrefslogtreecommitdiff
path: root/sketchybar
diff options
context:
space:
mode:
authorJosé Juan Loeza Sierra <jj@xz6ze.com>2025-06-11 07:22:36 -0700
committerJosé Juan Loeza Sierra <jj@xz6ze.com>2025-06-11 07:22:36 -0700
commit7185a2ebd2ab16abf4e6898706c9ed3666a9569b (patch)
treebaa45f769d80b851393f2d78222d72117fcdbdac /sketchybar
parent8055153e9f0ee079037bbc3a3263abe59bd2b281 (diff)
remove debugging code
Removes debugging code for printing out the list of network devices
Diffstat (limited to 'sketchybar')
-rwxr-xr-xsketchybar/.config/sketchybar/plugins/network.sh16
1 files changed, 0 insertions, 16 deletions
diff --git a/sketchybar/.config/sketchybar/plugins/network.sh b/sketchybar/.config/sketchybar/plugins/network.sh
index d2b02ce..e1790ae 100755
--- a/sketchybar/.config/sketchybar/plugins/network.sh
+++ b/sketchybar/.config/sketchybar/plugins/network.sh
@@ -17,20 +17,4 @@ case "${SERVICES}" in
*) ICON=""
esac
-# Initialize empty list of device names
-DEVICES=()
-
-# get MacOS network service name: takes network device name as 1st arg
-# source: https://apple.stackexchange.com/a/432170
-function get_service_name() {
- /usr/sbin/networksetup -listnetworkserviceorder | awk -v DEV="$1" -F': |,' '$0~ DEV {print $2;exit;}'
-}
-
-# add each device name to list of devices
-for device in "${SERVICES[@]}"; do
- DEVICES+=("$(get_service_name "$device")")
-done
-
-echo "${DEVICES[@]}"
-
sketchybar --set "$NAME" icon="$ICON"