tarch-configs/configs/bspwm/bin/bsprules
Andrey Zimin 1b1b70daed add nvim
2024-03-10 13:30:59 +03:00

46 lines
1.5 KiB
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/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