Commit 5cf4708a authored by Guilherme Semente's avatar Guilherme Semente 🌱

Use alternative configuration for small screens

parent 39817c88
......@@ -8,12 +8,13 @@
SCREEN_WIDTH=$(xdpyinfo | awk '/dimensions/{print $2}' | cut -dx -f1)
bspc config automatic_scheme alternate
bspc config split_ratio 0.52
bspc config focus_follows_pointer false
bspc config pointer_follows_focus true
bspc config pointer_follows_monitor true
bspc config borderless_monocle false
bspc config gapless_monocle false
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config single_monocle false
bspc config window_gap 64
bspc config border_width 6
......@@ -24,16 +25,22 @@ bspc config normal_border_color "$BSPWM_BORDER_COLOR"
bspc config focused_border_color "$BSPWM_FOCUSED_COLOR"
bspc config presel_feedback_color "$BSPWM_PRESEL_COLOR"
bspc monitor -d 1 2 3 4
bspc rule -r "*"
bspc rule -a "Emacs" state=tiled
if [ "$SCREEN_WIDTH" -gt 1440 ]; then
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config right_monocle_padding "$(((SCREEN_WIDTH - 1440) / 2))"
bspc config left_monocle_padding "$(((SCREEN_WIDTH - 1440) / 2))"
fi
bspc monitor -d 1 2 3 4
bspc rule -a "*" state=pseudo_tiled
else
bspc config window_gap 16
bspc desktop -l monocle
bspc rule -a "*" state=floating
bspc rule -a "*" state=pseudo_tiled split_dir=south
fi
# bspc subscribe handler daemon
# start bspwm subscribe handler daemon
bspwm-subscribe-handler &
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment