2021-10-04 15:00:37 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
2022-06-10 14:23:04 +02:00
|
|
|
# Set outputs
|
2022-06-09 13:53:30 +02:00
|
|
|
xrandr --output DP-0 --primary --mode 2560x1440 --rate 165.08 --left-of DP-4 --output DP-4 --mode 2560x1440 --rate 74.92
|
|
|
|
|
2022-06-10 14:23:04 +02:00
|
|
|
# Restore wallpaper
|
2022-06-09 13:53:30 +02:00
|
|
|
~/.fehbg
|
2021-10-04 15:00:37 +02:00
|
|
|
|
2022-06-10 14:23:04 +02:00
|
|
|
# Autolaunch
|
|
|
|
|
2021-10-04 15:00:37 +02:00
|
|
|
pgrep -x sxhkd > /dev/null || sxhkd &
|
|
|
|
pgrep -x picom > /dev/null || picom &
|
2022-06-10 14:23:04 +02:00
|
|
|
~/.config/polybar/launch.sh &
|
|
|
|
|
2021-10-04 15:00:37 +02:00
|
|
|
|
2022-06-09 13:53:30 +02:00
|
|
|
# $HOME/.config/polybar/launch.sh
|
2021-10-04 15:00:37 +02:00
|
|
|
xsetroot -cursor_name left_ptr &
|
2022-06-09 13:53:30 +02:00
|
|
|
setxkbmap -model evdev -layout eu
|
2021-10-04 15:00:37 +02:00
|
|
|
|
2022-06-09 13:53:30 +02:00
|
|
|
bspc monitor DP-0 -d term browser game code mail
|
|
|
|
bspc monitor DP-4 -d browser2 comm music server misc tmp
|
2021-10-04 15:00:37 +02:00
|
|
|
|
|
|
|
bspc config border_width 2
|
2022-06-10 14:23:04 +02:00
|
|
|
bspc config window_gap 18
|
|
|
|
bspc config normal_border_color '#76573A'
|
|
|
|
bspc config focused_border_color '#B43F1C'
|
2021-10-04 15:00:37 +02:00
|
|
|
|
|
|
|
bspc config split_ratio 0.5
|
|
|
|
bspc config borderless_monocle true
|
|
|
|
bspc config gapless_monocle true
|
|
|
|
|
2022-06-09 13:53:30 +02:00
|
|
|
bspc config focus_follows_pointer true
|
|
|
|
|
2022-01-13 14:11:59 +01:00
|
|
|
# -------------------------------------------------------- Rules
|
|
|
|
#
|
|
|
|
#---------------------------------------------- Default to float
|
2021-10-04 15:00:37 +02:00
|
|
|
bspc rule -a \* state=floating
|
|
|
|
|
2022-01-13 14:11:59 +01:00
|
|
|
#---------------------------------------------- Terminal / Kitty
|
2021-10-04 15:00:37 +02:00
|
|
|
bspc rule -a kitty state=tiled
|
|
|
|
|
2022-01-13 14:11:59 +01:00
|
|
|
#------------------------------------------------------- Firefox
|
2021-10-04 15:00:37 +02:00
|
|
|
bspc rule -a Firefox state=tiled
|
2022-01-13 14:11:59 +01:00
|
|
|
bspc rule -a Firefox:*:"Save Image" state=floating
|
2021-10-04 15:00:37 +02:00
|
|
|
|
2022-06-09 13:53:30 +02:00
|
|
|
# ------------------------------------ Discord => Workspace Comm
|
|
|
|
bspc rule -a discord state=tiled desktop=comm
|
2021-10-04 15:00:37 +02:00
|
|
|
|
2022-06-09 13:53:30 +02:00
|
|
|
# -------------------------------------- Steam => Workspace Game
|
|
|
|
bspc rule -a Steam state=tiled desktop=game
|
|
|
|
bspc rule -a 'Steam:*:Friends List' split_ratio=0.3
|
2021-10-04 15:00:37 +02:00
|
|
|
|
2022-06-09 13:53:30 +02:00
|
|
|
# ------------------------------------- Coding => Workspace Code
|
|
|
|
bspc rule -a "code - oss" state=tiled desktop=code
|