From a9cb34f975dd07fd05267b925c9f9a66a3fd0db6 Mon Sep 17 00:00:00 2001 From: Salt Date: Wed, 31 Jan 2018 19:50:31 -0600 Subject: [PATCH] Polybar: Be less obscene in the startup script Still gonna swear, though. --- .config/polybar/start.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/polybar/start.sh b/.config/polybar/start.sh index 341123e2..568e6438 100755 --- a/.config/polybar/start.sh +++ b/.config/polybar/start.sh @@ -23,9 +23,9 @@ fi printf '[INFO] Starting Polybar primary on monitor $PB_MONITOR' polybar -r primary-top& # ...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 -# me to attempt to solve this with regex. Fuck regex. It starts more problems -# than it solves +# Alright, now this looks *really* bad, spawning so many subprocesses, but +# there's no way in hell you can get me to attempt to solve this with regex. +# To hell with regex. It starts more problems than it solves export secondary_monitors=$(xrandr -q | grep ' connected' | grep -v 'primary' | awk '{print $1}') if [[ $secondary_monitors == "" ]]; then exit 0