dotfiles/config/bspwm/bspwmrc (view raw)
| 1 | #!/bin/sh |
| 2 | # Smirnov-O <ss2316544@gmail.com> |
| 3 | # BSPWM config file |
| 4 | |
| 5 | ## == Functions |
| 6 | Run() { |
| 7 | if ! pgrep $1; then $@& fi |
| 8 | } |
| 9 | |
| 10 | ## == Autostart |
| 11 | setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps" & |
| 12 | Run sxhkd -c .config/bspwm/sxhkd & |
| 13 | ~/.config/bspwm/bar.sh & |
| 14 | Run nitrogen --restore & |
| 15 | Run lxsession & |
| 16 | Run picom & |
| 17 | |
| 18 | ## == BSPWM |
| 19 | bspc monitor -d 1 2 3 4 5 6 7 8 9 |
| 20 | |
| 21 | bspc config border_width 2 |
| 22 | bspc config window_gap 8 |
| 23 | |
| 24 | bspc config split_ratio 0.52 |
| 25 | bspc config borderless_monocle true |
| 26 | bspc config gapless_monocle true |
| 27 | bspc config click_to_focus true |
| 28 | bspc config single_monocle false |
| 29 | bspc config borderless_monocle true |
| 30 | |
| 31 | # Colors |
| 32 | bspc config normal_border_color "#262A2B" |
| 33 | bspc config active_border_color "#1F2324" |
| 34 | bspc config focused_border_color "#008DCD" |
| 35 | bspc config presel_feedback_color "#51AFEF" |
| 36 | bspc config urgent_border_color "#FF6C6B" |
| 37 | |
| 38 | # Rules |
| 39 | bspc rule -a Alacritty desktop='^1' focus=on follow=on |
| 40 | bspc rule -a firefox desktop='^2' focus=on |
| 41 | bspc rule -a VSCodium desktop='^3' focus=on follow=on |
| 42 | bspc rule -a '*:nvim' desktop='^3' focus=on follow=on |
| 43 | bspc rule -a '*:ranger' desktop='^4' focus=on follow=on |
| 44 | bspc rule -a Thunar desktop='^4' focus=on follow=on |
| 45 | bspc rule -a Joplin desktop='^5' focus=on |
| 46 | bspc rule -a discord descord='^6' focus=on |
| 47 | bspc rule -a TelegramDesktop descord='^6' focus=on |
| 48 | bspc rule -a Spotify descord='^9' focus=on |
| 49 | bspc rule -a google-tasks-desktop state=floating |