some dynamism in iface
This commit is contained in:
parent
755f770282
commit
e5b8a1e1f0
@ -143,7 +143,7 @@ ws-icon-9 = 100:spotify;
|
|||||||
|
|
||||||
[module/internalip]
|
[module/internalip]
|
||||||
type = internal/network
|
type = internal/network
|
||||||
interface = wlp3s0
|
interface = ${env:IFACE:}
|
||||||
interval = 5
|
interval = 5
|
||||||
;udspeed-minwidth = 0
|
;udspeed-minwidth = 0
|
||||||
|
|
||||||
|
@ -9,8 +9,16 @@ while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
|||||||
# Launch bar1 and bar2
|
# Launch bar1 and bar2
|
||||||
#polybar top &
|
#polybar top &
|
||||||
|
|
||||||
for m in $(polybar --list-monitors | cut -d":" -f1); do
|
if [[ "$(hostname)" == "andy-pc" ]]; then
|
||||||
MONITOR=$m polybar --reload top &
|
for m in $(polybar --list-monitors | cut -d":" -f1); do
|
||||||
done
|
MONITOR=$m IFACE="eno1" polybar --reload top &
|
||||||
|
done
|
||||||
|
else
|
||||||
|
for m in $(polybar --list-monitors | cut -d":" -f1); do
|
||||||
|
MONITOR=$m IFACE="wlp3s0" polybar --reload top &
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo "Bars launched..."
|
echo "Bars launched..."
|
||||||
|
Loading…
Reference in New Issue
Block a user