dotfiles/homedir/.config/bspwm/bspwmrc

52 lines
1.3 KiB
Plaintext
Raw Normal View History

#!/usr/bin/env bash
nullexec() { "$@" &>/dev/null; }
PATH+=":$HOME/.config/alternatives"
PATH+=":$HOME/.config/bspwm/bin"
# Cursor for the root window
xsetroot -cursor_name left_ptr
# Global config
bspc config focused_border_color "#67748F"
bspc config normal_border_color "#1f1f1f"
bspc config window_gap "9"
bspc config border_width '2'
bspc config split_ratio '0.52'
bspc config borderless_monocle 'false'
bspc config gapless_monocle 'false'
bspc config ignore_ewmh_focus 'true'
bspc config initial_polarity 'second_child'
bspc config click_to_focus 'button1'
# Workspaces and monitors
bspc monitor -d 1 2 3 4 5 6 7 8 9 0 q w e r t y h
# Float some bastards
#bspfloat 1 &
# Individual padding
for d in 1 3; do
bspset -d "$d" padding 48
done
# Rules
"$XDG_CONFIG_HOME/bspwm/rules"
# start some services
services=( sxhkd dunst ssh-agent ufwd{,-private,-scn,-fikus} syncthing mpd )
for s in "${services[@]}"; do
if ! service "$s" status; then
service "$s" start
fi
done
# Always restart the panel
service moltenbar restart
nullexec browser &
nullexec telegram &
#nullexec dropbox &
nullexec mumble &