58 lines
1.9 KiB
Bash
Executable file
58 lines
1.9 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
host_name=$(cat /proc/sys/kernel/hostname)
|
|
if [[ $host_name == "portalo" ]]; then
|
|
bspc monitor HDMI-1 -n primary
|
|
bspc monitor DVI-D-1 -n secondary
|
|
|
|
bspc monitor primary -d web terminal 3 4 5 6 game
|
|
bspc monitor secondary -d side-view voip messenger
|
|
|
|
bspc wm -O primary secondary
|
|
|
|
elif [[ $host_name == *"laptop"* ]]; then
|
|
bspc monitor eDP-1 -d web terminal 3 4 5 6 7 8 9 10
|
|
else
|
|
bspc monitor primary -d web terminal 3 4 5 6 7 8 9 10
|
|
fi
|
|
|
|
bspc desktop web --layout monocle
|
|
bspc desktop game --layout monocle
|
|
|
|
bspc config border_width 1
|
|
bspc config window_gap 10
|
|
|
|
bspc config split_ratio 0.50
|
|
bspc config borderless_monocle true
|
|
bspc config gapless_monocle true
|
|
|
|
bspc config focus_follows_pointer true
|
|
|
|
bspc config automatic_scheme alternate
|
|
|
|
bspc config external_rules_command "$HOME/.config/bspwm/external_rules"
|
|
|
|
bspc rule -a 'firefox' desktop='web'
|
|
bspc rule -a 'qutebrowser' desktop='web'
|
|
|
|
bspc rule -a 'firefox:Toolkit' follow='true' desktop='side-view' state='fullscreen'
|
|
bspc rule -a 'vlc' follow='true' desktop='side-view' state='fullscreen'
|
|
bspc rule -a 'MPlayer' follow='true' desktop='side-view' state='fullscreen'
|
|
bspc rule -a 'mpv:gl' follow='true' desktop='side-view' state='fullscreen'
|
|
bspc rule -a 'FreeTube' follow='true' desktop='side-view'
|
|
|
|
|
|
bspc rule -a 'TeamSpeak 3' desktop='voip' locked='true'
|
|
bspc rule -a 'Alacritty:mail' desktop='voip' locked='true'
|
|
bspc rule -a 'Element' desktop='voip' locked='true'
|
|
bspc rule -a 'Element (Riot)' desktop='voip' locked='true'
|
|
bspc rule -a 'discord' desktop='voip'
|
|
bspc rule -a 'Evolution' desktop='messenger'
|
|
bspc rule -a 'Signal' desktop='messenger' locked='true'
|
|
#bspc rule -a 'Steam' desktop='game'
|
|
bspc rule -a 'Zathura' state='tiled'
|
|
bspc rule -a 'Guitarix:guitarix' desktop='messenger'
|
|
bspc rule -a 'sticky-note:sticky-note' state='floating' sticky='on' border='off'
|
|
bspc rule -a 'Xarchiver' state='floating'
|
|
|
|
$HOME/.config/polybar/launch.sh &
|