dgy
/
hexagons
Archived
1
0
Fork 0
This repository has been archived on 2021-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
hexagons/.config/bspwm/bspwmrc

76 lines
2.2 KiB
Bash
Executable File

#! /bin/sh
if [ -e "$BSPWM_STATE" ] ; then
bspc wm -l "$BSPWM_STATE"
rm "$BSPWM_STATE"
fi
bspc monitor -d I II III IV V VI VII VIII IX X
gap=8
panel_height=5
b_border_width=2
export b_border_width
export gap
export panel_height
# This creates negative padding equal to window gap so that gaps are shown only between windows and not on desktop edges.
bspc config window_gap $gap;
bspc config top_padding $((panel_height - gap))
bspc config left_padding -$gap
bspc config right_padding -$gap
bspc config bottom_padding -$gap
# Various settings
bspc config gapless_monocle false
bspc config borderless_monocle true
bspc config single_monocle true
bspc config paddingless_monocle false
bspc config remove_unplugged_monitors true
#bspc config pointer_follows_focus
bspc config focus_follows_pointer true
bspc config ignore_ewmh_focus true
# Do not make windows smaller than they wish to be
bspc config honor_size_hints true
# Color settings
bspc config normal_border_color "#171717"
bspc config focused_border_color "#215d9c"
bspc config presel_feedback_color "#51c4d4"
bspc config border_width $b_border_width
#bspc config focused_border_color "#00bcd4"
# Settings for manual splitting
bspc config split_ratio 0.45
# Floaters
bspc rule -a Ardour-5.9.0 state=floating
bspc rule -a qsynth state=floating
bspc rule -a Skype state=floating
bspc rule -a Catia.py sate=floating
bspc rule -a Cadence.py state=floating
bspc rule -a Pavucontrol state=floating
bspc rule -a Galculator state=floating
bspc rule -a Qalculate-gtk state=floating
bspc rule -a sun-awt-X11-XFramePeer state=floating
bspc rule -a processing-app-Base state=floating
bspc rule -a mpv state=floating
bspc rule -a Gucharmap state=floating
bspc rule -a Engrampa state=floating
bspc rule -a Catfish state=floating
bspc rule -a Zathura state=tiled
bspc rule -a Oblogout state=fullscreen
bspc rule -a Termite desktop=^1
bspc rule -a Firefox desktop=^2
# If our border width is not at least 5px 2 borders looks eh
pgrep -f 2bspwm >/dev/null 2>&1 && pkill -f 2bspwm
[ $b_border_width -gt 4 ] && (nohup $HOME/.config/bspwm/scripts/2bspwm &) &
# External rules
bspc config external_rules_command `$HOME/.config/bspwm/scripts/external_rules.sh`
. $HOME/.config/bspwm/autostart