From b1fbca8b34f123f0000a1248ddc1612f9fd4243c Mon Sep 17 00:00:00 2001 From: Salt Date: Sun, 21 Jan 2018 17:04:26 -0600 Subject: [PATCH] bspwm: Add workspace definition logic to bspwmrc The fact that the config file is a script is really handy I meant to do similar with i3, but the inability to use config file variables was a pain in the dick I can do this sort of stuff now with bspwm --- .config/bspwm/bspwmrc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index a6d2060f..e0518b14 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -42,7 +42,17 @@ fi $HOME/.config/polybar/start.sh ## bspwm GENERAL CONFIGURATION -bspc monitor -d 1 2 3 4 5 6 7 8 +hostname=$(hostname) +hosts_single=(iridium) +for host in $hosts_single; do + if [ $hostname = $host ]; then + bspc monitor -d 1 2 3 4 5 6 7 8 + fi +done +if [ $hostname = tungsten ]; then + bspc monitor DisplayPort-0 -d 1 2 3 4 + bspc monitor HDMI-0 -d 5 6 7 8 +fi bspc config border_width 4 bspc config window_gap 10