archcraft-openbox/files/themes/tint2.sh

22 lines
456 B
Bash
Raw Permalink Normal View History

2023-10-05 10:09:04 +00:00
#!/usr/bin/env bash
## Copyright (C) 2020-2024 Aditya Shakya <adi1090x@gmail.com>
2023-10-05 10:09:04 +00:00
## Current Theme
STYLE="default"
## Launch tint2 with selected theme
launch_bar() {
# 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 the bar
tint2 -c "$HOME"/.config/openbox/themes/"$STYLE"/tint2/tint2rc &
}
# Execute function
launch_bar