fix issues with new bspwm monitor detection stuff
This commit is contained in:
parent
f6c4b2c4d4
commit
6a243c8d06
12
env/wm/bspwm_config
vendored
12
env/wm/bspwm_config
vendored
|
@ -20,7 +20,10 @@ bspc config gapless_monocle true
|
||||||
|
|
||||||
bspc config window_gap "$WINDOW_GAP"
|
bspc config window_gap "$WINDOW_GAP"
|
||||||
|
|
||||||
MONITOR_COUNT=$(bspc query -M | wc -l | awk '{ printf $1 }')
|
echo "${BSPWM_MONITORS}"
|
||||||
|
BSPWM_MONITORS=$(bspc query -M | tac)
|
||||||
|
|
||||||
|
MONITOR_COUNT=$(echo "${BSPWM_MONITORS}" | wc -w | awk '{ printf $1 }')
|
||||||
PER_MONITOR=$((10 / MONITOR_COUNT))
|
PER_MONITOR=$((10 / MONITOR_COUNT))
|
||||||
i=1
|
i=1
|
||||||
for mon in ${BSPWM_MONITORS}; do
|
for mon in ${BSPWM_MONITORS}; do
|
||||||
|
@ -28,7 +31,12 @@ for mon in ${BSPWM_MONITORS}; do
|
||||||
echo $i
|
echo $i
|
||||||
max=$((i + PER_MONITOR - 1))
|
max=$((i + PER_MONITOR - 1))
|
||||||
echo $max
|
echo $max
|
||||||
bspc monitor "$mon" -d $(seq $i $max)
|
screens=
|
||||||
|
ind="•"
|
||||||
|
for j in $(seq $i $max); do
|
||||||
|
screens="$screens$ind "
|
||||||
|
done
|
||||||
|
bspc monitor "$mon" -d $screens
|
||||||
i=$((max + 1))
|
i=$((max + 1))
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
4
env/x/xinitrc
vendored
4
env/x/xinitrc
vendored
|
@ -24,16 +24,12 @@ if [ -d "/usr/lib/nvidia" ]; then
|
||||||
export LD_LIBRARY_PATH=/usr/lib/nvidia
|
export LD_LIBRARY_PATH=/usr/lib/nvidia
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export BSPWM_MONITORS=$(bspc query -M)
|
|
||||||
|
|
||||||
if [ -f "$HOME/.xinitrc.env" ]; then
|
if [ -f "$HOME/.xinitrc.env" ]; then
|
||||||
source "$HOME/.xinitrc.env"
|
source "$HOME/.xinitrc.env"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# fire up wm
|
# fire up wm
|
||||||
unclutter &
|
unclutter &
|
||||||
sxhkd &
|
|
||||||
urxvtd &
|
|
||||||
|
|
||||||
exec bspwm
|
exec bspwm
|
||||||
|
|
||||||
|
|
Reference in a new issue