Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Big Sur: shells seem to freeze the entire spacebar #104

Open
galbacarys opened this issue Apr 15, 2022 · 5 comments
Open

Big Sur: shells seem to freeze the entire spacebar #104

galbacarys opened this issue Apr 15, 2022 · 5 comments

Comments

@galbacarys
Copy link

Hey all, I'm running into a weird issue: shells seem to freeze the bar entirely!

I have the following very minimal config:

#!/usr/bin/env sh

spacebar -m config title off
spacebar -m config center_shell on
spacebar -m config center_shell command "echo 'it worked'"

echo "done"

and the startup of spacebar freezes. When I switch spaces, the bar doesn't refresh, the center shell just shows "center shell" (not the it worked I'm expecting), and the time doesn't update.

It seems that spacebar is freezing on setting the center_shell_command, and never gets to echo "done". Weirder still, if I invoke these commands manually from the command line rather than in the config file, everything works just fine.

I'm wondering if there's a race condition in Big Sur causing spacebar to freeze up completely if messages are sent too fast, but I'm not really sure. If y'all have any ideas, I'd really appreciate it!

@HATTER-LONG
Copy link

I have the same problem on Monterey :(

@HATTER-LONG
Copy link

deal it

@OneRaynyDay
Copy link

this is unfortunate. Any chance we'll get a patch to fix it for monterey?

@anujc4
Copy link

anujc4 commented Aug 9, 2022

I had the same issue on MacOS Monterey 12.4. Took me some time to figure out the solution was to tell spacebar the command to run first before turning the shell on. So for your case, this might help:

#!/usr/bin/env sh

spacebar -m config center_shell_command "echo 'it worked'" # set command first
spacebar -m config title off
spacebar -m config center_shell on # then turn the `center_shell` on

echo "done"

@dq-dd
Copy link

dq-dd commented Sep 14, 2022

grab some samples via Activity Monitor while spacebar is hanging
spacebar-samples.tgz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants