53 lines
1.1 KiB
Bash
Executable File
53 lines
1.1 KiB
Bash
Executable File
#! /usr/bin/bash
|
|
|
|
# bspwm config
|
|
bspc config border_width 2
|
|
bspc config window_gap 4
|
|
|
|
bspc config split_ratio 0.50
|
|
bspc config borderless_monocle true
|
|
bspc config gapless_monocle true
|
|
bspc config ignore_ewmh_focus true
|
|
bspc config click_to_focus true
|
|
|
|
# color
|
|
bspc config focused_border_color "#517ba2"
|
|
bspc config presel_feedback_color "#517ba2"
|
|
|
|
# setup workspaces
|
|
monitors=$(bspc query -M)
|
|
monitors=(${monitors})
|
|
|
|
if [ ${#monitors[@]} -eq 2 ]; then
|
|
bspc monitor ${monitors[0]} -d web games
|
|
bspc monitor ${monitors[1]} -d term misc
|
|
else
|
|
bspc monitor -d web term games misc
|
|
fi
|
|
|
|
# application rules
|
|
bspc rule -a Chromium desktop=web
|
|
bspc rule -a Steam follow=off state=floating desktop=games
|
|
bspc rule -a Galculator state=floating
|
|
bspc rule -a RocketLeague border=off
|
|
bspc rule -a Nvidia-settings state=floating
|
|
bspc rule -a obs state=floating
|
|
bspc rule -a Pavucontrol state=floating
|
|
bspc rule -a "TeamSpeak 3" state=floating
|
|
bspc rule -a Nitrogen state=floating
|
|
|
|
# compositor
|
|
compton -b
|
|
|
|
# restore wallpaper
|
|
nitrogen --restore
|
|
|
|
# panel
|
|
~/.config/bspwm/panel &
|
|
|
|
# hotkey daemon
|
|
sxhkd &
|
|
|
|
# desktop notifications
|
|
dunst &
|