named desktops
This commit is contained in:
parent
01d1eb8d24
commit
ca82f3f0a1
5
env/wm/bspwm_config
vendored
5
env/wm/bspwm_config
vendored
|
@ -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
|
||||||
|
|
Reference in a new issue