diff options
Diffstat (limited to 'bspwm')
| -rwxr-xr-x | bspwm/.config/bspwm/bspwmrc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc index c2c9194..2612e23 100755 --- a/bspwm/.config/bspwm/bspwmrc +++ b/bspwm/.config/bspwm/bspwmrc @@ -3,9 +3,8 @@ pkill sxhkd sxhkd -c $HOME/.config/sxhkd/sxhkdrc & sxhkd -c $HOME/.config/sxhkd/sxhkdrc_bspwm & -MONS="$(xrandr --query | grep -w 'connected' | cut -d ' ' -f1)" -MON_COUNT=$(echo "$MONS" | wc -l) -PRIMARY=$(echo "$MONS" | head -n 1) +PRIMARY=$(xrandr --query | grep -w 'connected' | cut -d ' ' -f1 | head -n 1) +MON_COUNT=$(xrandr --listactivemonitors | sed '1d' | wc -l) if [ "$MON_COUNT" = 2 ] then |
