bspwmrc (1895B)
1 #! /bin/sh 2 3 4 # If refreshing bspwm, remove all previous rules to prevent doubling up. 5 bspc rule -r "*" 6 7 run_if_not_running() { 8 [ "$(pgrep $1)" = "" ] && $1 $2 & 9 } 10 11 run_if_not_running sxhkd 12 run_if_not_running unclutter 13 xcompmgr & 14 dunst & 15 run_if_not_running redshift "-t 5500:3500" 16 17 # We look for a non-laptop monitor to use for default, but use the laptop 18 # screen (LVDS) if there's nothing else. This is because I assume that if you 19 # have an extra screen attached to a laptop, you want to use that. 20 #mainmonitor="$(bspc query --monitors --names | grep -v LVDS | head -n 1)" 21 22 23 #if ! echo "$mainmonitor" | grep LVDS >/dev/null 2>&1; then 24 # xrandr --output "$mainmonitor" --auto --output LVDS --off 25 #fi 26 27 #xrandr --output LVDS --auto 28 29 # Start workspaces on the main monitor. 30 bspc monitor $mainmonitor -d 1 2 3 4 5 6 7 8 9 10 31 # bspc monitor $mainmonitor -d A B C D E F G H I J 32 # bspc monitor $mainmonitor -d Zevs Hera Poseidon Demeter Dionysos Apollon Artemis Hermes Athene Ares 33 # bspc monitor $mainmonitor -d А Б В Г Д Е Ё Ж З И 34 # bspc monitor $mainmonitor -d Ⰰ Ⰱ Ⰲ Ⰳ Ⰴ Ⰵ Ⰶ Ⰷ Ⰸ Ⰺ 35 36 #bspc monitor -d I II III IV V VI VII VIII IX X 37 #bspc monitor VGA-0 -d I II III IV V 38 #bspc monitor LVDS -d VI VII VIII IX X 39 40 # ~/.local/bin/lemonbar-text | lemonbar -p -g x24 -B "#44111111" -f "Go:size=11" -f "Font Awesome" & 41 lemonblocks & 42 ~/.fehbg & 43 44 bspc config border_width 1 45 bspc config window_gap 0 46 # if panelbar-thing then bspc config top_padding 24 47 bspc config focus_follows_pointer true 48 49 bspc config split_ratio 0.5 50 bspc config borderless_monocle true 51 bspc config gapless_monocle true 52 53 # bspc rule -a Gimp desktop='^8' state=floating follow=on 54 # bspc rule -a mplayer2 state=floating 55 # bspc rule -a Kupfer.py focus=on 56 # bspc rule -a Screenkey manage=off 57 bspc rule -a Surf state=tiled 58 bspc rule -a Zathura state=tiled 59 bspc rule -a Gnome-calculator state=floating