2022-01-18 01:25:46 -05:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
# monitor setup
|
|
|
|
if [[ $(cat /etc/hostname) == "gojou" ]]; then
|
|
|
|
bspc monitor DP-1 -d 1 2 3 4 5 101
|
|
|
|
bspc monitor HDMI-1 -d 6 7 8 9 102
|
|
|
|
elif [[ $(cat /etc/hostname) == "uzui" ]]; then
|
|
|
|
bspc monitor -d 1 2 3 4 5 6 7 8 9 101
|
|
|
|
else
|
|
|
|
bspc monitor -d 1 101
|
|
|
|
fi
|
|
|
|
|
|
|
|
bspc wm -O DP-1 HDMI-1
|
|
|
|
|
|
|
|
|
|
|
|
# change window settings
|
|
|
|
bspc config border_width 2
|
|
|
|
bspc config window_gap 12
|
|
|
|
|
|
|
|
# change tiling settings
|
|
|
|
bspc config split_ratio 0.52
|
|
|
|
bspc config borderless_monocle true
|
|
|
|
bspc config gapless_monocle true
|
|
|
|
|
|
|
|
|
|
|
|
# sxhkd shortcut start
|
|
|
|
pgrep -x sxhkd > /dev/null || sxhkd &
|
|
|
|
|
|
|
|
# get env vars
|
|
|
|
. "${HOME}/.zshenv"
|
|
|
|
|
|
|
|
# set background
|
|
|
|
. "${FEH_HOME}/.fehbg"
|
|
|
|
|
|
|
|
# launch polybar
|
|
|
|
$HOME/.config/polybar/launch.sh
|
|
|
|
|
|
|
|
|
|
|
|
# source wal colors
|
2022-02-14 23:36:29 -05:00
|
|
|
. "${HOME}/.cache/theme/variables.sh"
|
2022-01-18 01:25:46 -05:00
|
|
|
|
|
|
|
# launch picom
|
|
|
|
picom -b
|
|
|
|
|
|
|
|
# fix intelliJ kekw
|
|
|
|
wmname LG3D
|
|
|
|
|
|
|
|
# change pointer config to super
|
|
|
|
bspc config pointer_modifier mod4
|
|
|
|
|
|
|
|
# pointer actions on untiled windows
|
|
|
|
bspc config pointer_action1 move
|
|
|
|
bspc config pointer_action2 resize_side
|
|
|
|
|
|
|
|
# change color of border to the bright red
|
|
|
|
bspc config normal_border_color "$color15"
|
2022-02-14 23:36:29 -05:00
|
|
|
bspc config active_border_color "$color02"
|
|
|
|
bspc config focused_border_color "$color01"
|
|
|
|
bspc config presel_feedback_color "$color04"
|
2022-01-18 01:25:46 -05:00
|
|
|
|
|
|
|
# set window rules
|
|
|
|
bspc rule -a feh state=floating
|
|
|
|
bspc rule -a mpv state=floating
|
2022-02-15 16:08:17 -05:00
|
|
|
bspc rule -a Zathura state=tiled
|
2022-01-18 01:25:46 -05:00
|
|
|
bspc rule -a discord desktop='8'
|
2022-03-04 18:24:00 -05:00
|
|
|
bspc rule -a Element desktop='8'
|
2022-01-18 01:25:46 -05:00
|
|
|
bspc rule -a helvum desktop='9' focus=on follow=on state=floating
|
|
|
|
bspc rule -a Pavucontrol desktop='9' focus=on follow=on state=floating
|
|
|
|
bspc rule -a obs desktop='9' focus=on follow=on
|
|
|
|
|
|
|
|
# spotify smh
|
|
|
|
bspc config external_rules_command "$XDG_CONFIG_HOME/bspwm/nprogs.sh"
|
|
|
|
|
2022-02-16 20:08:28 -05:00
|
|
|
# discord smh
|
|
|
|
betterdiscordctl reinstall
|
2022-01-18 01:25:46 -05:00
|
|
|
|
|
|
|
# starting programs
|
|
|
|
udiskie &
|
|
|
|
dunst &
|
|
|
|
|
|
|
|
# lock screen
|
|
|
|
xset s on
|
|
|
|
xset s 600
|
|
|
|
xss-lock -n /usr/lib/xsecurelock/dimmer -l -- xsec &
|
|
|
|
|
|
|
|
|