From e19613a474b59419fa34ba849bd066f66968e12c Mon Sep 17 00:00:00 2001 From: justmidi Date: Mon, 29 Nov 2021 21:43:28 -0600 Subject: [PATCH] big addition --- bspwmrc | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/bspwmrc b/bspwmrc index b3c325d..30894f2 100755 --- a/bspwmrc +++ b/bspwmrc @@ -1,8 +1,42 @@ #! /bin/sh -pgrep -x sxhkd > /dev/null || sxhkd & +pgrep -x sxhkd > /dev/null || sxhkd -m -1 & +pgrep -x picom > /dev/null || picom & +pgrep -x panel > /dev/null || .config/panel/panel & +pgrep -x dunst > /dev/null || dunst & +#pgrep -x succade > /dev/null || succade & # || ~/.config/lemonbar/lemonconfig & -bspc monitor -d 1 2 3 4 5 6 7 8 9 10 +~/.fehbg + +# host specific configs +case "$(cat /etc/hostname)" in + *desktop) + # swap alt with super + setxkbmap -option altwin:swap_alt_win + ;; +esac + +# monitors +if xrandr -q | grep DVI-0; then + xrandr --output HDMI-0 --primary --mode 1920x1080 --rotate normal --output DVI-0 --mode 1920x1080 --rotate normal --right-of HDMI-0 +fi + +# desktops +if bspc query -M --names | grep HDMI-0; then + if bspc query -M --names | grep DVI-0; then + bspc monitor HDMI-0 -d 1 2 3 4 5 6 7 8 9 10 + bspc monitor DVI-0 -d 1 2 3 4 5 6 7 8 9 10 + bspc wm -O HDMI-0 DVI-0 + fi +elif bspc query -M --names | grep LVDS-1; then + if bspc query -M --names | grep VGA-1; then + bspc monitor LVDS-1 -d 1 2 3 4 5 6 7 8 9 10 + bspc monitor VGA-1 -d 1 2 3 4 5 6 7 8 9 10 + bspc wm -O LVDS-1 VGA-1 + fi +else + bspc monitor -d 1 2 3 4 5 6 7 8 9 10 +fi bspc config border_width 1 bspc config window_gap 12