Add env for monitors, sxhkd-vim

This commit is contained in:
Tobias Reisinger 2021-04-30 16:31:30 +02:00
parent 61fb97773c
commit 0158a3dbe2
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
10 changed files with 44 additions and 16 deletions
.config/bspwm

View file

@ -1,5 +1,7 @@
#!/bin/sh
. "$HOME/.config/environment"
bspc config normal_border_color "#44475a"
bspc config active_border_color "#bd93f9"
bspc config focused_border_color "#ff79c6"
@ -7,24 +9,24 @@ bspc config presel_feedback_color "#6272a4"
host_name=$(cat /proc/sys/kernel/hostname)
if [[ $host_name == "portalo" ]]; then
primary="HDMI-A-0"
secondary="DVI-D-0"
#primary="HDMI-A-0"
#secondary="DVI-D-0"
bspc monitor $primary -d web terminal 3 4 5 6 game
bspc monitor $secondary -d side-view voip messenger
bspc monitor $MONITOR_PRIMARY -d web terminal 3 4 5 6 game
bspc monitor $MONITOR_SECONDARY -d side-view voip messenger
sleep 0.1
bspc wm -O $primary $secondary
bspc wm -O $MONITOR_PRIMARY $MONITOR_SECONDARY
elif [[ $host_name == *"laptop"* ]]; then
primary="eDP-1"
secondary="HDMI-2"
#primary="eDP-1"
#secondary="HDMI-2"
bspc monitor $primary -d web terminal 3 4 5 6 messenger
bspc monitor $secondary -d side-view 9 10
bspc monitor $MONITOR_PRIMARY -d web terminal 3 4 5 6 messenger
bspc monitor $MONITOR_SECONDARY -d side-view 9 10
sleep 0.1
bspc wm -O $primary $secondary
bspc wm -O $MONITOR_PRIMARY $MONITOR_SECONDARY
else
bspc monitor primary -d web terminal 3 4 5 6 7 8 9 10
fi
@ -73,4 +75,5 @@ bspc rule -a 'Xarchiver' state='floating'
bspc rule -a 'Signal' desktop='messenger'
bspc rule -a 'Thunderbird:Mail' desktop='messenger' locked='true'
$HOME/.config/polybar/focus-voip.py &
$HOME/.config/polybar/launch.sh &