Polybar: Add tint2 fallback
This commit is contained in:
parent
e1978e8db2
commit
067b33a780
Binary file not shown.
@ -14,6 +14,14 @@ die() {
|
||||
trap die EXIT
|
||||
|
||||
# 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() {
|
||||
# Restack compatibility
|
||||
if pgrep -U "$UID" bspwm > /dev/null 2>&1; then
|
||||
@ -47,6 +55,7 @@ step_wait() {
|
||||
|
||||
# Main
|
||||
main() {
|
||||
step_fallback
|
||||
step_configure_restack
|
||||
step_spawn_primary
|
||||
step_spawn_secondary
|
||||
|
Loading…
Reference in New Issue
Block a user