Polybar: Minor refactor

This commit is contained in:
Salt 2020-05-28 20:28:05 -05:00
parent a2a0b87b42
commit 8a6a1fb5c8

View File

@ -29,7 +29,7 @@ step_fallback() {
exit 51 exit 51
fi fi
} }
step_configure_restack() { step_configure() {
# Restack compatibility # Restack compatibility
if pgrep -U "$UID" bspwm > /dev/null 2>&1; then if pgrep -U "$UID" bspwm > /dev/null 2>&1; then
export PB_WM_RESTACK="bspwm" export PB_WM_RESTACK="bspwm"
@ -66,7 +66,7 @@ step_wait() {
# Main # Main
main() { main() {
step_fallback step_fallback
step_configure_restack step_configure
step_spawn_primary step_spawn_primary
step_spawn_secondary step_spawn_secondary
step_wait step_wait