Move autostart between bspwm and xprofile

This commit is contained in:
Tobias Reisinger 2020-11-18 16:08:10 +01:00
parent 8e33a041f4
commit e11fd1a774
2 changed files with 17 additions and 13 deletions
.config/bspwm

View file

@ -1,15 +1,15 @@
#!/bin/sh
sxhkd &
host_name=$(cat /proc/sys/kernel/hostname)
if [[ $host_name == "portalo" ]]; then
bspc monitor HDMI-1 -d web terminal 3 4 5 6 game
bspc monitor DVI-D-1 -d side-view voip messenger
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
bspc desktop ^7 --layout monocle
#bspc desktop ^9 --layout monocle
bspc desktop ^10 --layout monocle
elif [[ $host_name == *"laptop"* ]]; then
bspc monitor eDP-1 -d web terminal 3 4 5 6 7 8 9 10
else
@ -17,6 +17,7 @@ else
fi
bspc desktop web --layout monocle
bspc desktop game --layout monocle
bspc config border_width 1
bspc config window_gap 10
@ -38,6 +39,8 @@ bspc rule -a 'firefox:Toolkit' follow='true' desktop='side-view' state='fullscre
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'
@ -53,4 +56,3 @@ bspc rule -a 'sticky-note:sticky-note' state='floating' sticky='on' border='off'
bspc rule -a 'Xarchiver' state='floating'
$HOME/.config/polybar/launch.sh &
$HOME/.config/bspwm/swallow.py &