From 35bc85ffc39ee8b30a2de7ce1feaf20a237d1e90 Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Wed, 29 May 2019 14:08:33 +0200 Subject: [PATCH] Fix wlan indicator Signed-off-by: Severin Kaderli --- system/.config/polybar/config | 2 +- system/.config/polybar/launch | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/system/.config/polybar/config b/system/.config/polybar/config index d4330b7..f0aa1c3 100644 --- a/system/.config/polybar/config +++ b/system/.config/polybar/config @@ -262,7 +262,7 @@ scroll-down = light -U 5 ############################################################################## [module/wlan] type = internal/network -interface = wlp3s0 +interface = ${env:POLYBAR_WLAN} format-connected = label-connected = %essid% diff --git a/system/.config/polybar/launch b/system/.config/polybar/launch index c86d331..779bb3d 100755 --- a/system/.config/polybar/launch +++ b/system/.config/polybar/launch @@ -20,8 +20,10 @@ while pgrep -x polybar >/dev/null; do sleep 1; done if [ "${IS_WORK}" = "1" ]; then export POLYBAR_BATTERY="BAT1" + export POLYBAR_WLAN="wlp4s0" else export POLYBAR_BATTERY="BAT0" + export POLYBAR_WLAN="wlp3s0" fi # Launch bar1 and bar2