dotfiles/bspwm/bspwmrc

95 lines
2.2 KiB
Plaintext
Raw Permalink Normal View History

2022-01-18 01:25:46 -05:00
#! /bin/sh
# monitor setup
if [[ $(cat /etc/hostname) == "gojou" ]]; then
2022-05-21 23:13:38 -04:00
bspc monitor DP-0 -d 1 2 3 4 5 101
bspc monitor HDMI-0 -d 6 7 8 9 102
2022-01-18 01:25:46 -05:00
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
2023-10-10 16:53:57 -04:00
echo $(cat /etc/hostname) > "${XDG_CACHE_HOME}"/device_hostname
2022-05-21 23:13:38 -04:00
bspc wm -O DP-0 HDMI-0
2022-01-18 01:25:46 -05:00
2023-10-06 01:15:38 -04:00
echo "landscape" > "${XDG_CACHE_HOME}"/window_mode
WINDOW_MODE=$(cat "${XDG_CACHE_HOME}"/window_mode)
pkill actuator
actuator "${XDG_CONFIG_HOME}/actuator/$(cat /etc/hostname)/${WINDOW_MODE}.toml" &
2022-01-18 01:25:46 -05:00
# change window settings
bspc config border_width 2
bspc config window_gap 12
# change tiling settings
2024-02-14 17:49:23 -05:00
bspc config split_ratio 0.5
2022-01-18 01:25:46 -05:00
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
2023-08-29 17:34:37 -04:00
bspc rule -a Spotify desktop='7'
2022-01-18 01:25:46 -05:00
# 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 -n &
2022-01-18 01:25:46 -05:00
dunst &
# lock screen
xset s on
xset s 600
xss-lock -n /usr/lib/xsecurelock/dimmer -l -- xsec &
2023-10-08 20:29:40 -04:00
# set cursor on
xsetroot -cursor_name left_ptr &