big addition

This commit is contained in:
justmidi 2021-11-29 21:43:28 -06:00
parent 2206cd5a03
commit e19613a474

36
bspwmrc
View file

@ -1,8 +1,42 @@
#! /bin/sh #! /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 &
~/.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 bspc monitor -d 1 2 3 4 5 6 7 8 9 10
fi
bspc config border_width 1 bspc config border_width 1
bspc config window_gap 12 bspc config window_gap 12