2017-02-20 23:39:22 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
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
|
2018-02-14 22:03:56 +00:00
|
|
|
pad=6
|
2018-03-15 19:26:00 +00:00
|
|
|
b_width=1
|
2018-01-24 19:32:47 +00:00
|
|
|
export b_width
|
2017-02-20 23:39:22 +00:00
|
|
|
export gap
|
2018-01-30 04:25:41 +00:00
|
|
|
export pad
|
2017-02-20 23:39:22 +00:00
|
|
|
|
2018-01-30 04:25:41 +00:00
|
|
|
# Setting -$gap on *_padding 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
|
2018-01-30 04:25:41 +00:00
|
|
|
bspc config top_padding $pad
|
|
|
|
bspc config left_padding $pad
|
|
|
|
bspc config right_padding $pad
|
|
|
|
bspc config bottom_padding $pad
|
2017-02-20 23:39:22 +00:00
|
|
|
|
2018-01-24 19:32:47 +00:00
|
|
|
# Settings
|
2018-01-30 04:25:41 +00:00
|
|
|
bspc config paddingless_monocle true
|
|
|
|
bspc config gapless_monocle true
|
2018-01-22 05:32:55 +00:00
|
|
|
bspc config borderless_monocle true
|
2018-02-12 06:07:29 +00:00
|
|
|
bspc config single_monocle true
|
2018-01-24 19:32:47 +00:00
|
|
|
bspc config remove_unplugged_monitors true
|
|
|
|
bspc config remove_disabled_monitors true
|
2018-01-22 05:32:55 +00:00
|
|
|
bspc config pointer_follows_focus true
|
2018-01-24 19:32:47 +00:00
|
|
|
bspc config ignore_ewmh_focus false
|
2018-01-22 05:32:55 +00:00
|
|
|
bspc config auto_cancel true
|
|
|
|
bspc config honor_size_hints true
|
2018-01-24 19:32:47 +00:00
|
|
|
bspc config directional_focus_tightness low
|
2018-01-22 05:32:55 +00:00
|
|
|
bspc config initial_polarity second_child
|
2018-01-24 19:32:47 +00:00
|
|
|
bspc config click_to_focus any
|
2018-01-30 04:25:41 +00:00
|
|
|
bspc config pointer_modifier mod4
|
|
|
|
bspc config pointer_action1 resize_side
|
|
|
|
bspc config pointer_action2 resize_corner
|
|
|
|
bspc config pointer_action3 move
|
2018-01-24 19:32:47 +00:00
|
|
|
bspc config split_ratio 0.45
|
2017-02-20 23:39:22 +00:00
|
|
|
|
2018-01-24 19:32:47 +00:00
|
|
|
# Colors
|
2018-01-30 04:25:41 +00:00
|
|
|
bspc config normal_border_color "#252525"
|
2017-09-19 04:24:56 +00:00
|
|
|
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"
|
2018-01-24 19:32:47 +00:00
|
|
|
bspc config border_width $b_width
|
2017-02-20 23:39:22 +00:00
|
|
|
|
2017-02-27 02:52:13 +00:00
|
|
|
# Floaters
|
2018-01-24 19:32:47 +00:00
|
|
|
bspc rule -a Lxappearance state=floating
|
|
|
|
bspc rule -a Vlc state=floating
|
|
|
|
bspc rule -a REAPER state=floating
|
|
|
|
bspc rule -a Sol state=floating
|
|
|
|
bspc rule -a Pavucontrol state=floating
|
|
|
|
bspc rule -a qsynth state=floating
|
|
|
|
bspc rule -a Catia.py state=floating
|
|
|
|
bspc rule -a Cadence.py state=floating
|
|
|
|
bspc rule -a Qalculate-gtk state=floating
|
|
|
|
bspc rule -a mpv state=floating
|
|
|
|
bspc rule -a Gucharmap state=floating
|
|
|
|
bspc rule -a File-roller state=floating
|
|
|
|
bspc rule -a Catfish state=floating
|
2018-02-09 20:05:20 +00:00
|
|
|
bspc rule -a st-256color state=floating
|
2017-09-20 18:10:15 +00:00
|
|
|
|
|
|
|
# Others
|
2018-01-24 19:32:47 +00:00
|
|
|
bspc rule -a Zathura state=tiled
|
|
|
|
bspc rule -a Oblogout state=fullscreen
|
2017-09-11 03:37:55 +00:00
|
|
|
|
2018-01-24 19:32:47 +00:00
|
|
|
# Run in place
|
|
|
|
bspc rule -a Termite desktop=^1
|
2018-01-30 04:25:41 +00:00
|
|
|
bspc rule -a Firefox desktop=^2
|
2018-01-24 19:32:47 +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
|
2018-01-24 19:32:47 +00:00
|
|
|
bspc config external_rules_command `$HOME/.config/bspwm/external_rules.sh`
|
|
|
|
|
2018-03-15 19:26:00 +00:00
|
|
|
#2bspwm &
|
2017-02-27 02:52:13 +00:00
|
|
|
|
2017-03-10 16:36:19 +00:00
|
|
|
. $HOME/.config/bspwm/autostart
|