aboutsummaryrefslogtreecommitdiff
path: root/bspwm
diff options
context:
space:
mode:
authorKumar Damani <damani.kumar@gmail.com>2020-11-05 18:29:18 +0000
committerKumar Damani <damani.kumar@gmail.com>2020-11-05 18:29:18 +0000
commitdacca74639e150698333d4bd7b7bc3837326a5f0 (patch)
tree4a03d3d75567681674761d5fbc4b3bb20fe9401b /bspwm
parent0ed551fd2e57dbb8f3e1ff3ca3741270e782e986 (diff)
fixed bspwm workspace bug
Diffstat (limited to 'bspwm')
-rwxr-xr-xbspwm/.config/bspwm/bspwmrc5
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