2021-11-03 04:45:44 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
2021-11-30 03:43:28 +00:00
|
|
|
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 &
|
2021-11-03 04:45:44 +00:00
|
|
|
|
2021-11-30 03:43:28 +00:00
|
|
|
~/.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
|
2021-11-03 04:45:44 +00:00
|
|
|
|
|
|
|
bspc config border_width 1
|
|
|
|
bspc config window_gap 12
|
|
|
|
|
|
|
|
bspc config split_ratio 0.5
|
|
|
|
bspc config borderless_monocle true
|
|
|
|
bspc config gapless_monocle true
|
|
|
|
|
|
|
|
#bspc rule -a Gimp desktop='^8' state=floating follow=on
|
|
|
|
#bspc rule -a Chromium desktop='^2'
|
|
|
|
#bspc rule -a mplayer2 state=floating
|
|
|
|
#bspc rule -a Kupfer.py focus=on
|
|
|
|
#bspc rule -a Screenkey manage=off
|