Skip to content

Instantly share code, notes, and snippets.

@FrozenDroid
Created June 29, 2018 09:30
launch.sh
#!/bin/sh
MONITOR_LIST=$(xrandr --listmonitors | sed '1 d' | awk 'NF>1{print $NF}')
killall polybar 2> /dev/null
for mon in $MONITOR_LIST; do
echo "Launching on monitor $mon"
env MONITOR=$mon polybar main &
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment