named desktops

This commit is contained in:
Daniel Flanagan 2016-11-28 14:11:12 -06:00
parent 01d1eb8d24
commit ca82f3f0a1

5
env/wm/bspwm_config vendored
View file

@ -39,14 +39,17 @@ BSPWM_MONITORS=$(bspc query -M | tac)
MONITOR_COUNT=$(echo "${BSPWM_MONITORS}" | wc -w | awk '{ printf $1 }') MONITOR_COUNT=$(echo "${BSPWM_MONITORS}" | wc -w | awk '{ printf $1 }')
PER_MONITOR=$((10 / MONITOR_COUNT)) PER_MONITOR=$((10 / MONITOR_COUNT))
i=1 i=1
DESKTOPS=(dev web misc env play out main srv daem util)
for mon in ${BSPWM_MONITORS}; do for mon in ${BSPWM_MONITORS}; do
echo $mon echo $mon
echo $i echo $i
max=$((i + PER_MONITOR - 1)) max=$((i + PER_MONITOR - 1))
echo $max echo $max
screens= screens=
ind="•"
for j in $(seq $i $max); do for j in $(seq $i $max); do
ind=${DESKTOPS[$((j - 1))]}
screens="$screens$ind " screens="$screens$ind "
done done
bspc monitor "$mon" -d $screens bspc monitor "$mon" -d $screens