You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
laughing-hipster/src/.config/i3/polybar.sh

12 lines
367 B

#!/bin/bash
killall -q polybar
while pgrep -x polybar > /dev/null; do sleep 0.1; done
PRIMARY=$(xrandr | grep primary | awk '{ print $1 }')
MONITOR=${PRIMARY} polybar 1080p-bottom &
MONITOR=${PRIMARY} polybar 1080p-top &
SECONDARY=$(xrandr | grep "DVI.*connected" | awk '{ print $1 }')
MONITOR=${SECONDARY} polybar 4k-bottom &
MONITOR=${SECONDARY} polybar 4k-top &