2017-02-20 23:39:22 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
2017-03-10 16:36:19 +00:00
|
|
|
if [ -e "$BSPWM_STATE" ] ; then
|
|
|
|
bspc wm -l "$BSPWM_STATE"
|
|
|
|
rm "$BSPWM_STATE"
|
|
|
|
fi
|
|
|
|
|
2017-09-19 04:24:56 +00:00
|
|
|
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
|
2017-02-20 23:39:22 +00:00
|
|
|
|
|
|
|
gap=8
|
2017-03-19 13:01:55 +00:00
|
|
|
b_border_width=2
|
2017-02-20 23:39:22 +00:00
|
|
|
export b_border_width
|
|
|
|
export gap
|
|
|
|
|
2017-02-27 02:52:13 +00:00
|
|
|
# This creates negative padding equal to window gap so that gaps are shown only between windows and not on desktop edges.
|
2017-09-19 04:24:56 +00:00
|
|
|
bspc config window_gap $gap
|
|
|
|
bspc config top_padding -$gap
|
|
|
|
bspc config left_padding -$gap
|
|
|
|
bspc config right_padding -$gap
|
|
|
|
bspc config bottom_padding -$gap
|
2017-02-20 23:39:22 +00:00
|
|
|
|
2017-02-27 02:52:13 +00:00
|
|
|
# Various settings
|
2017-09-19 04:24:56 +00:00
|
|
|
bspc config gapless_monocle false
|
|
|
|
bspc config borderless_monocle true
|
|
|
|
bspc config single_monocle true
|
|
|
|
bspc config paddingless_monocle false
|
2018-01-02 16:13:44 +00:00
|
|
|
bspc config pointer_follows_focus true
|
2018-01-12 03:48:27 +00:00
|
|
|
bspc config click_to_focus true
|
2017-09-19 04:24:56 +00:00
|
|
|
bspc config ignore_ewmh_focus true
|
|
|
|
bspc config auto_cancel true
|
|
|
|
bspc config honor_size_hints true
|
|
|
|
bspc config initial_polarity second_child
|
2018-01-02 16:13:44 +00:00
|
|
|
bspc config pointer_modifier mod4
|
|
|
|
bspc config pointer_action1 move
|
|
|
|
bspc config pointer_action2 resize_side
|
|
|
|
bspc config pointer_action3 resize_corner
|
2017-02-20 23:39:22 +00:00
|
|
|
|
2017-02-27 02:52:13 +00:00
|
|
|
# Color settings
|
2017-09-19 04:24:56 +00:00
|
|
|
bspc config normal_border_color "#212121"
|
|
|
|
bspc config focused_border_color "#215d9c"
|
2017-09-20 18:10:15 +00:00
|
|
|
bspc config active_border_color "#7cb342"
|
|
|
|
bspc config presel_feedback_color "#26c6da"
|
2017-09-19 04:24:56 +00:00
|
|
|
bspc config border_width $b_border_width
|
2017-03-19 13:01:55 +00:00
|
|
|
|
2017-02-27 02:52:13 +00:00
|
|
|
# Settings for manual splitting
|
2017-09-19 04:24:56 +00:00
|
|
|
bspc config split_ratio 0.45
|
2017-02-20 23:39:22 +00:00
|
|
|
|
2017-02-27 02:52:13 +00:00
|
|
|
# Floaters
|
2018-01-01 19:29:36 +00:00
|
|
|
bspc rule -a Lxappearance state=floating
|
2017-11-29 23:55:29 +00:00
|
|
|
bspc rule -a Vlc state=floating
|
|
|
|
bspc rule -a REAPER state=floating
|
2017-09-19 04:24:56 +00:00
|
|
|
bspc rule -a Sol state=floating
|
2017-09-11 13:44:59 +00:00
|
|
|
bspc rule -a Pavucontrol state=floating
|
2017-09-04 19:19:36 +00:00
|
|
|
bspc rule -a qsynth state=floating
|
|
|
|
bspc rule -a Catia.py sate=floating
|
2017-02-20 23:39:22 +00:00
|
|
|
bspc rule -a Cadence.py state=floating
|
2017-05-08 05:37:08 +00:00
|
|
|
bspc rule -a Qalculate-gtk state=floating
|
2017-02-20 23:39:22 +00:00
|
|
|
bspc rule -a mpv state=floating
|
2017-02-27 02:52:13 +00:00
|
|
|
bspc rule -a Gucharmap state=floating
|
2017-11-29 23:55:29 +00:00
|
|
|
bspc rule -a File-roller state=floating
|
2017-03-03 22:43:01 +00:00
|
|
|
bspc rule -a Catfish state=floating
|
2017-09-20 18:10:15 +00:00
|
|
|
|
|
|
|
# Others
|
2017-03-10 16:36:19 +00:00
|
|
|
bspc rule -a Zathura state=tiled
|
2017-02-27 02:52:13 +00:00
|
|
|
bspc rule -a Oblogout state=fullscreen
|
2017-09-11 03:37:55 +00:00
|
|
|
|
|
|
|
# Open in place
|
2017-09-11 13:44:59 +00:00
|
|
|
bspc rule -a Termite desktop=^1
|
2017-11-29 23:55:29 +00:00
|
|
|
bspc rule -a Firefox desktop=^2 private=on
|
2017-09-11 03:37:55 +00:00
|
|
|
bspc rule -a qutebrowser desktop=^2
|
2017-11-29 23:55:29 +00:00
|
|
|
bspc rule -a Thunar desktop=^3
|
2017-09-25 15:10:28 +00:00
|
|
|
|
|
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
|
|
export _JAVA_OPTIONS='-Dsun.java2d.opengl=true'
|
2017-02-27 02:52:13 +00:00
|
|
|
|
|
|
|
# External rules
|
|
|
|
bspc config external_rules_command `$HOME/.config/bspwm/scripts/external_rules.sh`
|
|
|
|
|
2017-03-10 16:36:19 +00:00
|
|
|
. $HOME/.config/bspwm/autostart
|