Skip to content

Instantly share code, notes, and snippets.

@FrozenDroid
Created June 29, 2018 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FrozenDroid/ebb9c9e7ff661b14c32b9f473b017a59 to your computer and use it in GitHub Desktop.
Save FrozenDroid/ebb9c9e7ff661b14c32b9f473b017a59 to your computer and use it in GitHub Desktop.
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