2022-06-01 23:21:34 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
2022-06-02 00:40:27 +00:00
|
|
|
# set primary monitor and lower resolution
|
2022-06-01 23:21:34 +00:00
|
|
|
xrandr --output HDMI-A-0 --mode 2560x1440 --primary --right-of eDP
|
|
|
|
|
|
|
|
# start sxhkd
|
|
|
|
pgrep -x sxhkd > /dev/null || sxhkd &
|
|
|
|
|
2022-06-02 00:40:27 +00:00
|
|
|
bspc monitor eDP -d 1 2 3 4 5
|
2022-06-01 23:21:34 +00:00
|
|
|
bspc monitor HDMI-A-0 -d 6 7 8 9 10
|
|
|
|
|
|
|
|
bspc config border_width 4
|
|
|
|
bspc config window_gap 15
|
|
|
|
bspc config split_ratio 0.5
|
|
|
|
bspc config borderless_monocle true
|
|
|
|
bspc config gapless_monocle true
|
|
|
|
|
|
|
|
# theme
|
|
|
|
hsetroot -solid '#181926'
|
|
|
|
|
|
|
|
bspc config normal_border_color \#b4befe
|
|
|
|
bspc config focused_border_color \#cba6f7
|
|
|
|
bspc config active_border_color \#cba6f7
|
|
|
|
bspc config urgent_border_color \#cba6f7
|
|
|
|
bspc config presel_feedback_color \#cba6f7
|
|
|
|
|
2022-06-02 00:40:27 +00:00
|
|
|
# rules
|
|
|
|
bspc rule -a discord -o node=@^1:^1:/2 desktop='1' follow=off focus=off
|
|
|
|
bspc rule -a Element -o node=@^1:^1:/1 desktop='1'
|
2022-06-01 23:21:34 +00:00
|
|
|
bspc rule -a TelegramDesktop -o node=@^1:^1:/1 desktop='1'
|
|
|
|
bspc rule -a firefox desktop='6' state=tiled follow=off
|
|
|
|
bspc rule -a REAPER desktop='10' follow=off
|
2022-06-02 00:40:27 +00:00
|
|
|
|
|
|
|
# floating windows
|
|
|
|
bspc rule -a Pavucontrol state=floating rectangle=600x800+0+0 center=on
|
|
|
|
bspc rule -a 1Password state=floating rectangle=1000x900+0+0 center=on
|
|
|
|
bspc rule -a Org.gnome.Nautilus state=floating rectangle=1200x900+0+0 center=on
|
2022-06-01 23:21:34 +00:00
|
|
|
|
|
|
|
# startup
|
|
|
|
picom --experimental-backends &
|
|
|
|
polybar-msg cmd quit
|
|
|
|
polybar left &
|
|
|
|
polybar right &
|
|
|
|
dunst &
|
|
|
|
|
|
|
|
if [ ! -f /tmp/startup.lock ]; then
|
|
|
|
touch /tmp/startup.lock
|
|
|
|
|
|
|
|
element-desktop &
|
|
|
|
telegram-desktop &
|
|
|
|
discord-canary &
|
|
|
|
|
|
|
|
firefox &
|
|
|
|
fi
|