Update #polybar to work with different wlan
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user