forked from noctuid/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbspwmrc
executable file
·65 lines (51 loc) · 1.59 KB
/
bspwmrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env bash
# https://www.reddit.com/r/bspwm/comments/dmnj2g/bspwm_laptop_clamshell_mode/
bspwm_is_restarting=false
restart_file=/tmp/bspwm-is-restarting-on-"$DISPLAY"
if [[ -f $restart_file ]]; then
bspwm_is_restarting=true
rm "$restart_file"
fi
# * Colors
# ** Default
bspc config presel_feedback_color "#b0fff2"
bspc config focused_border_color "#d0d293"
bspc config normal_border_color "#708090"
bspc config active_border_color "#555753"
# ** Pywal
bspwm_set_wal_colors
# * Environment Variables
if $bspwm_is_restarting; then
# update environment variables when reloading bspwm (so can change things
# without restarting X); the new values will be in effect for polybar and
# sxhkd
# shellcheck disable=SC1090
source ~/bin/helpers/xenv.sh
fi
# * Settings
# open second window on right
# bspc config initial_polarity second_child
bspc config split_ratio 0.55
bspc config gapless_monocle true
bspc config top_monocle_padding "$WM_GAP"
bspc config click_to_focus button1
bspc config focus_follows_pointer false
# when focusing a window, put the pointer at its center
# interesting but not useful for me
# bspc config pointer_follows_focus true
bspc config border_width "$WM_BORDER"
# a small gap looks nice without taking up too much space
# it also makes the layout (monocle or tiled) immediately obvious
bspc config window_gap "$WM_GAP"
# * Destktops
bspc monitor -d "一" "二" "三" "四" "五" "六" "七" "八" "九"
if ! $bspwm_is_restarting; then
bspc desktop -f ^2 &
fi
# * Window Rules and Hooks
rldbspc
# * Panel
xrestart polybar bspwm
# Local Variables:
# eval: (rainbow-mode 1)
# End: