diff --git a/dot_local/bin/executable_dual-polybar-launcher b/dot_local/bin/executable_dual-polybar-launcher index b5b3cab..7c14a05 100644 --- a/dot_local/bin/executable_dual-polybar-launcher +++ b/dot_local/bin/executable_dual-polybar-launcher @@ -7,7 +7,8 @@ killall -q polybar while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done # Launch Polybar, using default config location ~/.config/polybar/config -polybar one -r --config=~/.config/polybar/config.ini & -polybar two -r --config=~/.config/polybar/config.ini & +echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log +polybar one -r --config=~/.config/polybar/config.ini 2>&1 | tee -a /tmp/polybar1.log & disown +polybar two -r --config=~/.config/polybar/config.ini 2>&1 | tee -a /tmp/polybar2.log & disown echo "Polybar launched..." diff --git a/dot_local/bin/executable_single-polybar-launcher b/dot_local/bin/executable_single-polybar-launcher index 195d787..73b2814 100644 --- a/dot_local/bin/executable_single-polybar-launcher +++ b/dot_local/bin/executable_single-polybar-launcher @@ -1,13 +1,14 @@ #!/bin/bash # Terminate already running bar instances -killall -q polybar +#killall -q polybar # needed if ipc disabled +polybar-msg cmd quit # Wait until the processes have been shut down while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done -# Launch Polybar, using default config location ~/.config/polybar/config -polybar one -r --config=~/.config/polybar/config.ini & -#polybar two -r --config=~/.config/polybar/config.ini & +# Launch Polybar +echo "---" | tee -a /tmp/polybar.log +polybar one -r --config=~/.config/polybar/config.ini 2>&1 | tee -a /tmp/polybar.log & disown echo "Polybar launched..." diff --git a/dot_local/bin/executable_tint2-launcher b/dot_local/bin/executable_tint2-launcher index 251b288..df704a6 100644 --- a/dot_local/bin/executable_tint2-launcher +++ b/dot_local/bin/executable_tint2-launcher @@ -7,7 +7,8 @@ killall -q tint2 while pgrep -u $UID -x tint2 >/dev/null; do sleep 1; done # Launch tint2 -tint2 & disown +echo "---" | tee -a /tmp/tint2.log +tint2 2>&1 | tee -a /tmp/tint2.log & disown # Final command won't work without sleep sleep 1 &&