#!/bin/sh

bspc monitor -d 1 2 3 4 5
bspc config bottom_padding 50
bspc config top_padding 0
bspc config border_width 4
bspc config window_gap 10
bspc config split_ratio 0.51

# Opciones
bspc config gapless_monocle true
bspc config ignore_ewmh_focus true
bspc config pointer_follows_focus true
bspc config removal_adjustment true
bspc config single_monocle true
bspc config borderless_monocle false
bspc config honor_size_hints false
bspc config directional_focus_tightness low
bspc config automatic_scheme alternate
bspc config initial_polarity second_child
bspc config click_to_focus any
bspc config pointer_modifier mod4
bspc config pointer_action1 resize_side
bspc config pointer_action2 resize_corner
bspc config pointer_action3 move

# xrdb
get_xrdb() {
	xrdb -query | awk -v pat="$1" '$0~pat {print $2}'
}

# Colores
bspc config normal_border_color "$(get_xrdb color0)"
bspc config focused_border_color "$(get_xrdb color2)"
bspc config active_border_color "$(get_xrdb color8)"
bspc config presel_feedback_color "$(get_xrdb color6)"

# Flotantes
bspc rule -a Zathura state=tiled
bspc rule -a mpv state=floating
bspc rule -a pentablet state=floating
bspc rule -a flota state=floating
bspc rule -a Blueman-manager state=floating
bspc rule -a Firefox:Browser state=floating
bspc rule -a Firefox:Navigator state=tiled
bspc rule -a steam desktop='^3'
bspc rule -a corectrl desktop='^4'

export _JAVA_AWT_WM_NONREPARENTING=1
unclutter --jitter 30 --timeout 3 --ignore-scrolling &
$TERMINAL &
