Apply shfmt to polybar/launch.sh

This commit is contained in:
Dave Gallant
2020-08-01 19:44:27 -04:00
parent 4f31d4c751
commit 1f18914a33
2 changed files with 5 additions and 5 deletions

View File

@@ -11,10 +11,10 @@ monitors=$(xrandr | grep -swc 'connected')
# I currently have a laptop and a desktop with 2 monitors
# This checks the number of monitors and then sets desktops
if [ "$monitors" -gt 1 ]; then
bspc monitor HDMI-A-0 -d 1 2 3 4 5
bspc monitor DisplayPort-0 -d 6 7 8 9 0
bspc monitor HDMI-A-0 -d 1 2 3 4 5
bspc monitor DisplayPort-0 -d 6 7 8 9 0
else
bspc monitor -d 1 2 3 4 5 6 7 8 9 0
bspc monitor -d 1 2 3 4 5 6 7 8 9 0
fi
bspc config border_width 2
@@ -43,5 +43,5 @@ picom --config ~/.config/compton.conf -b
# Switch to a lefty mouse if mouse detected
if xinput list | grep -qi 'mouse'; then
xmodmap -e "pointer = 3 2 1 " # swap mouse buttons
xmodmap -e "pointer = 3 2 1 " # swap mouse buttons
fi

View File

@@ -8,5 +8,5 @@ while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
# Launch polybar on all monitors
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
MONITOR=$m polybar --reload poly &
MONITOR=$m polybar --reload poly &
done