46 lines
1.5 KiB
Plaintext
46 lines
1.5 KiB
Plaintext
|
#!/usr/bin/zsh
|
|||
|
|
|||
|
# настройка отображения программ на workspaces
|
|||
|
|
|||
|
# remove all rules first
|
|||
|
bspc rule -r *:*
|
|||
|
|
|||
|
bspc rule -a Google-chrome desktop='^1' follow=on focus=on
|
|||
|
bspc rule -a Google-chrome-beta desktop='^1'
|
|||
|
bspc rule -a chromium desktop='^1' follow=on focus=on
|
|||
|
# bspc rule -a firefox desktop='^1' follow=on focus=on
|
|||
|
|
|||
|
bspc rule -a TelegramDesktop desktop='^2'
|
|||
|
bspc rule -a zoom desktop='^2'
|
|||
|
bspc rule -a discord desktop='^2'
|
|||
|
|
|||
|
bspc rule -a DBeaver desktop='^3'
|
|||
|
bspc rule -a java desktop='^3'
|
|||
|
bspc rule -a Java desktop='^3'
|
|||
|
|
|||
|
bspc rule -a kitty:project_home desktop='^5'
|
|||
|
|
|||
|
bspc rule -a "ONLYOFFICE Desktop Editors" desktop='^11'
|
|||
|
|
|||
|
bspc rule -a Signal desktop='^12'
|
|||
|
bspc rule -a anki desktop='^12'
|
|||
|
bspc rule -a Anki desktop='^12'
|
|||
|
|
|||
|
# на 13 (f) столе все окна плавающие #
|
|||
|
FLOATING_DESKTOP_ID=$(bspc query -D -d '^13')
|
|||
|
bspc subscribe node_add | while read -a msg; do
|
|||
|
desk_id=${msg[2]}
|
|||
|
wid=${msg[4]}
|
|||
|
[ "$FLOATING_DESKTOP_ID" = "$desk_id" ] && bspc node "$wid" -t floating
|
|||
|
done
|
|||
|
|
|||
|
# # если перечислять #
|
|||
|
# declare -a files=(Pcmanfm Thunar Caja dolphin)
|
|||
|
# for i in ${files[@]}; do
|
|||
|
# bspc rule -a $i desktop='^3' follow=on focus=on;
|
|||
|
# done
|
|||
|
|
|||
|
# терминалы в которых запускаются разные приложения с нужными размерами
|
|||
|
bspc rule -a kitty:uparch_run state=floating rectangle=800x450+1516+700 follow=off
|
|||
|
bspc rule -a kitty:raid_run state=floating rectangle=1280x800+1416+700 follow=off
|