mirror of
https://github.com/davegallant/nix-config
synced 2025-08-06 11:23:40 +00:00
Apply shfmt to polybar/launch.sh
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user