mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-11-08 21:40:47 -05:00
19 lines
500 B
Bash
19 lines
500 B
Bash
#!/bin/bash
|
|
|
|
# Terminate already running bar instances
|
|
killall -q tint2
|
|
|
|
# Wait until the processes have been shut down
|
|
while pgrep -u $UID -x tint2 >/dev/null; do sleep 1; done
|
|
|
|
# Launch tint2
|
|
echo "---" | tee -a /tmp/tint2.log
|
|
tint2 2>&1 | tee -a /tmp/tint2.log & disown
|
|
|
|
# Final command won't work without sleep
|
|
sleep 1 &&
|
|
|
|
# Keep tint2 below other windows in fullscreen
|
|
if pgrep -x "tint2" > /dev/null ; then
|
|
xdo above -t "$(xdo id -N Bspwm -n root | sort | head -n 1)" $(xdo id -n tint2)
|
|
fi
|