From 113ef82727d8896e2de94585557a7b94ae46199f Mon Sep 17 00:00:00 2001
From: Tobias Reisinger <tobias@msrg.cc>
Date: Sun, 21 Nov 2021 14:58:26 +0100
Subject: [PATCH] Add presenter mode

---
 .config/aliasrc             | 1 +
 .config/bspwm/bspwmrc       | 3 +++
 .config/polybar/modules.ini | 2 ++
 .config/sxhkd/sxhkdrc       | 3 +++
 .xprofile                   | 2 +-
 5 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/.config/aliasrc b/.config/aliasrc
index 7df2f40..cb838bd 100644
--- a/.config/aliasrc
+++ b/.config/aliasrc
@@ -12,6 +12,7 @@ alias aliases.local='$EDITOR ~/.config/aliasrc.local && . ~/.config/aliasrc'
 alias artisan='./artisan'
 
 alias bfg='java -jar ~/tools/bfg-1.13.0.jar'
+alias bspwm-present='pkill xcompmgr; bspc monitor "$MONITOR_PRIMARY" -d web terminal 3 4 5 6 7 8 9 presenter1; bspc monitor "$MONITOR_SECONDARY" -d presenter2'
 
 alias clip='xclip -selection clipboard'
 alias cp='cp -iv'
diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc
index 82615de..f555ab6 100755
--- a/.config/bspwm/bspwmrc
+++ b/.config/bspwm/bspwmrc
@@ -42,6 +42,9 @@ bspc desktop web --layout monocle
 bspc desktop focus --layout monocle
 bspc desktop side-view --layout monocle
 
+bspc desktop presenter1 --layout monocle
+bspc desktop presenter2 --layout monocle
+
 bspc config border_width         1
 bspc config window_gap           10
 
diff --git a/.config/polybar/modules.ini b/.config/polybar/modules.ini
index 2923c50..2b1d6cc 100644
--- a/.config/polybar/modules.ini
+++ b/.config/polybar/modules.ini
@@ -55,6 +55,8 @@
     ws-icon-3 = messenger;
     ws-icon-4 = focus;
     ws-icon-5 = side-view;
+    ws-icon-6 = presenter1;
+    ws-icon-7 = presenter2;
     ws-icon-default = 
 
     enable-scroll = false
diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc
index 825986c..ef1d826 100644
--- a/.config/sxhkd/sxhkdrc
+++ b/.config/sxhkd/sxhkdrc
@@ -132,6 +132,9 @@ super + {_,shift + }{1-9,0}
 super + {_,shift + } dead_circumflex
     bspc {desktop -f,node -d} 'focus'
 
+super + shift + p
+    bspc desktop 'presenter1' --swap 'presenter2'
+
 #
 # preselect
 #
diff --git a/.xprofile b/.xprofile
index 491f37b..6db82b4 100644
--- a/.xprofile
+++ b/.xprofile
@@ -1,6 +1,6 @@
 . $HOME/.config/environment
 
-xcompmgr -n -f -D3 &
+xcompmgr -n -fF -D3 &
 numlockx on
 
 setxkbmap de