Polybar: Add tint2 fallback

This commit is contained in:
Salt 2019-06-29 21:44:03 -05:00
parent e1978e8db2
commit 067b33a780
2 changed files with 9 additions and 0 deletions

Binary file not shown.

View File

@ -14,6 +14,14 @@ die() {
trap die EXIT trap die EXIT
# Steps # Steps
step_fallback() {
if ! command -v polybar > /dev/null 2>&1; then
if command -v tint2 > /dev/null 2>&1; then
exec tint2
fi
fi
exit 51
}
step_configure_restack() { step_configure_restack() {
# Restack compatibility # Restack compatibility
if pgrep -U "$UID" bspwm > /dev/null 2>&1; then if pgrep -U "$UID" bspwm > /dev/null 2>&1; then
@ -47,6 +55,7 @@ step_wait() {
# Main # Main
main() { main() {
step_fallback
step_configure_restack step_configure_restack
step_spawn_primary step_spawn_primary
step_spawn_secondary step_spawn_secondary