dotfiles/.config/bspwm/bspwmrc

64 lines
2.0 KiB
Bash
Executable File

#! /bin/bash
# Set outputs
xrandr --output DP-0 --primary --mode 2560x1440 --rate 165.08 --left-of DP-4 --output DP-4 --mode 2560x1440 --rate 74.92
# Restore wallpaper
~/.fehbg
# Autolaunch
pgrep -x sxhkd > /dev/null || sxhkd &
pgrep -x picom > /dev/null || picom &
~/.config/polybar/launch.sh &
pgrep -x Discord > /dev/null || Discord &
# pgrep -x pipewire > /dev/null || pipewire &
# pgrep -x pipewire-pulse > /dev/null || pipewire-pulse &
# $HOME/.config/polybar/launch.sh
xsetroot -cursor_name left_ptr &
setxkbmap -model evdev -layout eu
bspc monitor DP-0 -d term browser game code misc
bspc monitor DP-4 -d browser2 comm music server mail tmp
bspc config border_width 2
bspc config window_gap 18
bspc config normal_border_color '#21201E'
bspc config active_border_color '#21201E'
bspc config focused_border_color '#76573A'
bspc config split_ratio 0.5
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc config focus_follows_pointer false
# -------------------------------------------------------- Rules
#
#---------------------------------------------- Default to float
bspc rule -a \* state=floating
#---------------------------------------------- Terminal / Kitty
bspc rule -a kitty state=tiled
#------------------------------------------------------- Firefox
bspc rule -a Firefox state=tiled
bspc rule -a "Firefox:*:Save Image" state=floating
# ------------------------------------ Discord => Workspace Comm
bspc rule -a discord state=tiled desktop=comm
# -------------------------------------- Steam => Workspace Game
bspc rule -a Steam state=tiled desktop=game
bspc rule -a "Steam:Friends List" split_ratio=0.3
# ------------------------------------- Coding => Workspace Code
bspc rule -a "Code - OSS" state=tiled desktop=code
# ------------------------------------------------------- Hydrus
bspc rule -a "Hydrus Client:*:main" state=tiled desktop=misc
bspc rule -a "Hydrus Client:*:main - hydrus 488" state=tiled desktop=misc
bspc rule -a "Hydrus Client:*:hydrus client media viewer" state=tiled