mirror of
https://github.com/davegallant/nix-config
synced 2025-08-07 09:12:28 +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
|
# I currently have a laptop and a desktop with 2 monitors
|
||||||
# This checks the number of monitors and then sets desktops
|
# This checks the number of monitors and then sets desktops
|
||||||
if [ "$monitors" -gt 1 ]; then
|
if [ "$monitors" -gt 1 ]; then
|
||||||
bspc monitor HDMI-A-0 -d 1 2 3 4 5
|
bspc monitor HDMI-A-0 -d 1 2 3 4 5
|
||||||
bspc monitor DisplayPort-0 -d 6 7 8 9 0
|
bspc monitor DisplayPort-0 -d 6 7 8 9 0
|
||||||
else
|
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
|
fi
|
||||||
|
|
||||||
bspc config border_width 2
|
bspc config border_width 2
|
||||||
@@ -43,5 +43,5 @@ picom --config ~/.config/compton.conf -b
|
|||||||
|
|
||||||
# Switch to a lefty mouse if mouse detected
|
# Switch to a lefty mouse if mouse detected
|
||||||
if xinput list | grep -qi 'mouse'; then
|
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
|
fi
|
||||||
|
@@ -8,5 +8,5 @@ while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
|||||||
|
|
||||||
# Launch polybar on all monitors
|
# Launch polybar on all monitors
|
||||||
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||||
MONITOR=$m polybar --reload poly &
|
MONITOR=$m polybar --reload poly &
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user