🧹 restructure layout

This commit is contained in:
Moritz Böhme 2022-07-15 13:11:54 +02:00
parent 40c2a5fb29
commit 268374ad58
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
115 changed files with 2641 additions and 2085 deletions

11
modules/programs/bspwm/bspwmrc Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
mapfile -t monitors < <(bspc query -M --names | sort -r)
desktops=$(( 10 / ${#monitors[@]} ))
start=1
end=$desktops
for monitor in "${monitors[@]}"; do
bspc monitor "$monitor" -d $(seq -s ' ' $start $end)
start=$(( start + desktops ))
end=$(( end + desktops ))
done