Update #polybar to work with different wlan

This commit is contained in:
Colin Powell
2019-11-25 19:54:41 -05:00
parent 1d1afe90ed
commit 7894dddbf3
3 changed files with 13 additions and 10 deletions

View File

@ -2,6 +2,9 @@
#
pkill polybar
wlan=`/sbin/ifconfig | grep wlp | tail -1 | cut -d ':' -f 1`
eth=`/sbin/ifconfig | grep veth | tail -1 | cut -d ':' -f 1`
for m in $(polybar --list-monitors | cut -d":" -f1); do
MONITOR=$m polybar --reload primary &
WLAN=$wlan ETH=$eth MONITOR=$m polybar --reload primary &
done