Polybar: Be less obscene in the startup script
Still gonna swear, though.
This commit is contained in:
parent
5935f07467
commit
a9cb34f975
@ -23,9 +23,9 @@ fi
|
|||||||
printf '[INFO] Starting Polybar primary on monitor $PB_MONITOR'
|
printf '[INFO] Starting Polybar primary on monitor $PB_MONITOR'
|
||||||
polybar -r primary-top&
|
polybar -r primary-top&
|
||||||
# ...and then moving on to secondaries, if we have them
|
# ...and then moving on to secondaries, if we have them
|
||||||
# Alright, now this looks *really* bad, but there's no way in hell you can get
|
# Alright, now this looks *really* bad, spawning so many subprocesses, but
|
||||||
# me to attempt to solve this with regex. Fuck regex. It starts more problems
|
# there's no way in hell you can get me to attempt to solve this with regex.
|
||||||
# than it solves
|
# To hell with regex. It starts more problems than it solves
|
||||||
export secondary_monitors=$(xrandr -q | grep ' connected' | grep -v 'primary' | awk '{print $1}')
|
export secondary_monitors=$(xrandr -q | grep ' connected' | grep -v 'primary' | awk '{print $1}')
|
||||||
if [[ $secondary_monitors == "" ]]; then
|
if [[ $secondary_monitors == "" ]]; then
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user