2016-10-19 07:56:37 -07:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
running() { pgrep "$1" >/dev/null; }
|
|
|
|
|
|
|
|
|
2016-10-27 06:33:49 -07:00
|
|
|
bspc config border_width 2
|
2016-10-19 07:56:37 -07:00
|
|
|
bspc config window_gap 14
|
2016-10-27 06:33:49 -07:00
|
|
|
bspc config bottom_padding 0
|
|
|
|
bspc config left_padding 0
|
|
|
|
bspc config right_padding 0
|
|
|
|
running lemonbar || bspc config top_padding 0
|
2016-10-19 07:56:37 -07:00
|
|
|
|
|
|
|
bspc config split_ratio 0.50
|
|
|
|
bspc config borderless_monocle true
|
|
|
|
bspc config gapless_monocle true
|
|
|
|
bspc config paddingless_monocle true
|
|
|
|
bspc config focus_by_distance true
|
|
|
|
bspc config history_aware_focus true
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Appearance
|
|
|
|
#
|
|
|
|
|
|
|
|
bspc config normal_frame_opacity 0.0
|
|
|
|
bspc config focused_frame_opacity 0.1
|
2016-10-27 06:33:49 -07:00
|
|
|
bspc config normal_border_color "#155872"
|
2016-10-19 07:56:37 -07:00
|
|
|
bspc config active_border_color "#1C1E20"
|
2016-10-27 06:33:49 -07:00
|
|
|
bspc config focused_border_color "#22252c"
|
2016-10-19 07:56:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Displays
|
|
|
|
#
|
|
|
|
|
|
|
|
i=1
|
|
|
|
for monitor in $(bspc query -M); do
|
|
|
|
bspc monitor $monitor -n "$i" -d $1/{desktop,code,web,file,chat,art,misc,music}
|
|
|
|
let i++
|
|
|
|
done
|
|
|
|
NMON=$i
|
|
|
|
unset i
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Rules
|
|
|
|
#
|
|
|
|
|
|
|
|
bspc rule -a mplayer2 state=floating
|
|
|
|
bspc rule -a Kupfer.py focus=on
|
|
|
|
bspc rule -a Screenkey manage=off
|
2016-10-22 05:02:33 -07:00
|
|
|
bspc rule -a scratchpad state=floating sticky=on center=on
|
2016-10-19 07:56:37 -07:00
|
|
|
bspc rule -a Emacs split_ratio=0.25
|
|
|
|
bspc rule -a Firefox split_ratio=0.30
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
# wallpaper
|
|
|
|
feh --bg-scale $HOME/pictures/wallpaper
|
|
|
|
|
|
|
|
# window manager helpers
|
|
|
|
running sxhkd || sxhkd &
|
|
|
|
running compton || compton &
|
|
|
|
# bar
|
2016-10-27 06:34:48 -07:00
|
|
|
running lemonbar || { cd ~/.config/panel && ./panel.sh & }
|
2016-10-19 07:56:37 -07:00
|
|
|
|
|
|
|
# bittorrent sync
|
|
|
|
running rslsync || { cd $HOME && /usr/local/bin/rslsync; }
|