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