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