dotfiles

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

commit 971e769f0ba2ab4c8123b73af187d498565ac55b
parent 06d379cede80ef89a18e826dc5ef57b8a56d0a33
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sun,  9 Feb 2020 09:15:33 -0500

bspwm directory added

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

diff --git a/.config/bspwm/bspwm/bspwmrc b/.config/bspwm/bspwm/bspwmrc @@ -0,0 +1,40 @@ +#!/bin/sh + +# If refreshing bspwm, remove all previous rules to prevent doubling up. +bspc rule -r "*" + +xsetroot -cursor_name left_ptr + +# 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 +# else +# mainmonitor="LVDS1" +# xrandr --output LVDS1 --auto +# fi + +# Start workspaces on the main monitor. +bspc monitor $mainmonitor -d 1 2 3 4 5 6 7 8 9 10 +bspc desktop -f 1 + +# 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 + +bspc rule -a Zathura state=tiled + +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)"