Files
dotfiles/polybar/.config/polybar/launch.sh
2019-11-26 09:05:11 -05:00

11 lines
282 B
Bash
Executable File

#!/usr/bin/env bash
#
pkill polybar
wlan=`/sbin/ifconfig | grep wlp | tail -1 | cut -d ':' -f 1`
eth=`/sbin/ifconfig | grep enx | tail -1 | cut -d ':' -f 1`
for m in $(polybar --list-monitors | cut -d":" -f1); do
WLAN=$wlan ETH=$eth MONITOR=$m polybar --reload primary &
done