2021-11-12 23:04:44 +01:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
# Autostart
|
|
|
|
pgrep -x sxhkd > /dev/null || sxhkd &
|
|
|
|
xrdb -load $HOME/.config/.Xresources &
|
|
|
|
dunst -conf $HOME/.config/dunst/dunstrc &
|
|
|
|
picom &
|
2021-11-15 14:28:54 +01:00
|
|
|
feh --bg-fill ~/Pictures/1153857.png &
|
2021-11-12 23:04:44 +01:00
|
|
|
|
|
|
|
xset -b
|
|
|
|
|
2021-11-14 00:13:17 +01:00
|
|
|
DISPLAYS=$(xrandr -q | grep -w 'connected' | cut -d ' ' -f 1)
|
2021-11-13 23:25:54 +01:00
|
|
|
EXT_PRIMARY=""
|
|
|
|
|
|
|
|
for DISP in ${DISPLAYS}; do
|
|
|
|
if [ ${DISP} != 'eDP' ]; then
|
|
|
|
EXT_PRIMARY=${DISP}
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2021-11-14 00:13:17 +01:00
|
|
|
killall -q polybar
|
|
|
|
if [ ${EXT_PRIMARY} != "" ]; then
|
2021-11-13 23:25:54 +01:00
|
|
|
xrandr --output ${EXT_PRIMARY} --primary --output eDP --right-of ${EXT_PRIMARY}
|
|
|
|
bspc monitor ${EXT_PRIMARY} -d I II III IV V
|
|
|
|
bspc monitor eDP -d VI VII VIII IX X
|
|
|
|
MONITOR="eDP" polybar main 2>&1 | tee -a /tmp/polybar.log & disown
|
|
|
|
MONITOR=${EXT_PRIMARY} polybar ext 2>&1 | tee -a /tmp/polybar.log & disown
|
|
|
|
else
|
|
|
|
bspc monitor eDP -d I II III IV V VI VII VIII IX X
|
|
|
|
MONITOR="eDP" polybar main 2>&1 | tee -a /tmp/polybar.log & disown
|
|
|
|
fi
|
2021-11-12 23:04:44 +01:00
|
|
|
|
|
|
|
bspc config border_width 0
|
|
|
|
bspc config top_padding 34
|
|
|
|
bspc config window_gap 16
|
|
|
|
bspc config split_ratio 0.6
|
|
|
|
|