From fe5dde7fe57ef72a71a7cbaca309e9e896b6eb06 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 10 Apr 2023 03:07:03 -0500 Subject: [PATCH] refactor(hypr): simplify wifi change script --- dots/.config/hypr/scripts/launchers/events-monitor.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dots/.config/hypr/scripts/launchers/events-monitor.bash b/dots/.config/hypr/scripts/launchers/events-monitor.bash index 664bf05c..92540cc5 100755 --- a/dots/.config/hypr/scripts/launchers/events-monitor.bash +++ b/dots/.config/hypr/scripts/launchers/events-monitor.bash @@ -16,7 +16,7 @@ monitor-ssid() { local previous_ssid="" local ssid while :; do - ssid="$(iwctl station wlan0 show | grep 'Connected network' | awk '{$1=$2=""; print $0}')" + ssid="$(iwctl station wlan0 show | grep 'Connected network' | awk '{print $3}')" ssid="$(printf "%s" "${ssid}" | xargs)" if [[ "${ssid}" != "${previous_ssid}" ]]; then if [[ -z "${ssid// /}" ]]; then