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 &
|
2022-01-27 10:39:40 +01:00
|
|
|
feh --bg-fill ~/Pictures/ku8phghju9981.png &
|
|
|
|
xset s off &
|
2021-12-04 17:24:21 +01:00
|
|
|
/usr/lib/kdeconnectd & disown
|
2022-01-17 11:32:56 +01:00
|
|
|
nextcloud & disown
|
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=""
|
2022-01-16 18:12:37 +01:00
|
|
|
INTEGRATED_DISPLAY="eDP"
|
2021-11-13 23:25:54 +01:00
|
|
|
|
|
|
|
for DISP in ${DISPLAYS}; do
|
2022-01-16 18:12:37 +01:00
|
|
|
if [ ${DISP} != ${INTEGRATED_DISPLAY} ]; then
|
2021-11-13 23:25:54 +01:00
|
|
|
EXT_PRIMARY=${DISP}
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
2021-11-19 14:26:07 +01:00
|
|
|
|
2021-11-14 00:13:17 +01:00
|
|
|
killall -q polybar
|
2021-11-18 12:21:01 +01:00
|
|
|
if [ "${EXT_PRIMARY}" != "" ]; then
|
2022-01-16 18:12:37 +01:00
|
|
|
xrandr --output ${EXT_PRIMARY} --primary --output ${INTEGRATED_DISPLAY} --right-of ${EXT_PRIMARY}
|
2021-11-19 14:26:07 +01:00
|
|
|
bspc monitor ${EXT_PRIMARY} -d 一 二 三 四 五
|
2022-01-16 18:12:37 +01:00
|
|
|
bspc monitor ${INTEGRATED_DISPLAY} -d 六 七 八 九 十
|
|
|
|
MONITOR=${EXT_PRIMARY} polybar main 2>&1 | tee -a /tmp/polybar.log & disown
|
2021-11-13 23:25:54 +01:00
|
|
|
else
|
2021-11-19 14:26:07 +01:00
|
|
|
bspc monitor eDP -d 一 二 三 四 五 六 七 八 九 十
|
2021-11-13 23:25:54 +01:00
|
|
|
fi
|
2021-11-12 23:04:44 +01:00
|
|
|
|
2022-01-16 18:12:37 +01:00
|
|
|
MONITOR=${INTEGRATED_DISPLAY} polybar main 2>&1 | tee -a /tmp/polybar.log & disown
|
2021-11-18 12:21:01 +01:00
|
|
|
|
2021-11-12 23:04:44 +01:00
|
|
|
bspc config border_width 0
|
2021-11-16 16:17:54 +01:00
|
|
|
bspc config window_gap 8
|
2021-12-04 17:24:21 +01:00
|
|
|
bspc config top_padding 25
|
2021-11-12 23:04:44 +01:00
|
|
|
bspc config split_ratio 0.6
|
|
|
|
|
2021-11-18 20:02:33 +01:00
|
|
|
# Fix for Java applications
|
|
|
|
wmname LG3D
|