dotfiles

My dotfiles used for LARBS
Log | Files | Refs | README | LICENSE

commit 17e18513975e429c6312e6b7a698730331ed8598
parent 3fa2d5411acc39b4e0149bfa67ddbfabe2bb951a
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sun,  8 Dec 2019 15:01:54 -0500

bspwm added

Diffstat:
A.config/bspwm/bspwmrc | 33+++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+), 0 deletions(-)

diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc @@ -0,0 +1,33 @@ +#!/bin/sh + +# If refreshing bspwm, remove all previous rules to prevent doubling up. +bspc rule -r "*" + +# We look for a non-laptop monitor to use for default, but use the laptop +# screen (LVDS) if there's nothing else. This is because I assume that if you +# have an extra screen attached to a laptop, you want to use that. +mainmonitor="$(bspc query --monitors --names | grep -v LVDS | head -n 1)" + +if ! echo "$mainmonitor" | grep LVDS >/dev/null 2>&1; then + xrandr --output "$mainmonitor" --auto --output LVDS1 --off +fi + +# Start workspaces on the main monitor. +bspc monitor $mainmonitor -d 1 2 3 4 5 6 7 8 9 10 + +# If you want a multi-monitor display or something else, I leave that to you to +# arrange. I have this sensible default for most people's use cases. + + +bspc config border_width 3 +bspc config window_gap 15 +bspc config top_padding 24 # top_padding I set equal to polybar's height +bspc config focus_follows_pointer true + +dropdownname="dropdown" +bspc query -N -n .hidden >/dev/null || setsid $TERMINAL -n "$dropdownname" -e dropdown >/dev/null 2>&1 & +bspc rule -a St:$dropdownname hidden=on +bspc rule -a St:$dropdownname sticky=on +bspc rule -a St:$dropdownname state=floating + +bspc config external_rules_command "$(which floaters)"