fix(bspwmrc): add auto detect for common panel/bar
Since limepanel is an optional package, it should not be enabled in the default config file.
EDIT: Add feature detection instead.
The following changes since commit f7c9dfd963367635a64969919454582f15aa17db:
Update bspwm-manjaro (2019-05-27 22:51:25 +0300)
are available in the Git repository at:
https://gitlab.com/sevillaarvin/bspwm-manjaro.git patch-2
for you to fetch changes up to ee688f050591ba525eaf060f0502f458efab58f3:
fix(bspwmrc): add auto detect for common panel/bar (2021-11-17 09:44:22 +0800)
----------------------------------------------------------------
Arvin Sevilla (2):
fix(bspwmrc): comment out optional package limepanel
fix(bspwmrc): add auto detect for common panel/bar
bspwmrc | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/bspwmrc b/bspwmrc
index 48ae050..05d2409 100644
--- a/bspwmrc
+++ b/bspwmrc
@@ -107,12 +107,23 @@ bspc config external_rules_command /usr/bin/pseudo_automatic_mode
##Autostart apps
#Keybindings daemon
#sxhkd &
+
#Source autostartfile. Uncomment this if you use bspwm-git
#. $HOME/.config/bspwm/autostart
-limepanel &
+if command -v limepanel
+then
+ limepanel &
+elif command -v polybar && [ -f $HOME/.config/polybar/config ]
+then
+ for bar in $(sed -n -E 's/\[bar\/(.*)]/\1/p' $HOME/.config/polybar/config)
+ do
+ polybar "$bar" &
+ done
+fi
+
# Alter compton settings if using intel graphics
GRAPHIC_CARD=$(lspci | grep -i "vga" | sed 's/.*://' | sed 's/(.*//' | sed 's/^[ \t]*//')
if [[ $(echo $GRAPHIC_CARD | grep -i 'intel\|lenovo') != "" ]]; then MCODE='initrd=\intel-ucode.img'
sed -i 's/"xrender"/"glx"/' ~/.config/compton.conf
grep -q 'vsync = "opengl-swc";' ~/.config/compton.conf || echo 'vsync = "opengl-swc";' >> ~/.config/compton.conf
-fi
\ No newline at end of file
+fi
OLD
The following changes since commit f7c9dfd963367635a64969919454582f15aa17db:
Update bspwm-manjaro (2019-05-27 22:51:25 +0300)
are available in the Git repository at:
https://gitlab.com/sevillaarvin/bspwm-manjaro.git patch-2
for you to fetch changes up to 4d3f1bba088add8fb3c24276324cfaf1182c6b66:
fix(bspwmrc): comment out optional package limepanel (2021-11-16 18:34:23 +0800)
----------------------------------------------------------------
Arvin Sevilla (1):
fix(bspwmrc): comment out optional package limepanel
bspwmrc | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/bspwmrc b/bspwmrc
index 48ae050..ebda6ff 100644
--- a/bspwmrc
+++ b/bspwmrc
@@ -107,12 +107,14 @@ bspc config external_rules_command /usr/bin/pseudo_automatic_mode
##Autostart apps
#Keybindings daemon
#sxhkd &
+
#Source autostartfile. Uncomment this if you use bspwm-git
#. $HOME/.config/bspwm/autostart
-limepanel &
+# limepanel &
+
# Alter compton settings if using intel graphics
GRAPHIC_CARD=$(lspci | grep -i "vga" | sed 's/.*://' | sed 's/(.*//' | sed 's/^[ \t]*//')
if [[ $(echo $GRAPHIC_CARD | grep -i 'intel\|lenovo') != "" ]]; then MCODE='initrd=\intel-ucode.img'
sed -i 's/"xrender"/"glx"/' ~/.config/compton.conf
grep -q 'vsync = "opengl-swc";' ~/.config/compton.conf || echo 'vsync = "opengl-swc";' >> ~/.config/compton.conf
-fi
\ No newline at end of file
+fi