78 lines
1.6 KiB
Bash
Executable File
78 lines
1.6 KiB
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
# config window apperance
|
|
bspc config border_width 2
|
|
bspc config window_gap 18
|
|
|
|
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 term web games misc
|
|
fi
|
|
|
|
# key used with mouse for moving and resizing windows
|
|
bspc config pointer_modifier mod4
|
|
|
|
# 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 Nvidia-settings state=floating
|
|
bspc rule -a obs state=floating
|
|
bspc rule -a Pavucontrol state=floating
|
|
bspc rule -a V4l2ucp state=floating
|
|
bspc rule -a Nitrogen state=floating
|
|
bspc rule -a Vividhue state=floating
|
|
|
|
|
|
#################################
|
|
# start the following application
|
|
#################################
|
|
|
|
# compositor
|
|
picom --experimental-backends -b
|
|
|
|
# set cursor to expected left-pointer
|
|
xsetroot -cursor_name left_ptr
|
|
|
|
# restore wallpaper
|
|
nitrogen --restore
|
|
|
|
# panel
|
|
~/.config/bspwm/panel &
|
|
|
|
# hotkey daemon
|
|
sxhkd &
|
|
|
|
# desktop notifications
|
|
dunst &
|
|
|
|
# clipboard manager
|
|
autocutsel -fork -selection CLIPBOARD
|
|
autocutsel -fork -selection PRIMARY
|
|
clipmenud &
|
|
|
|
# detect and mount external storage devices
|
|
udiskie &
|
|
|
|
# hide mouse when idle
|
|
unclutter &
|
|
|
|
# start music player daemon
|
|
mpd
|