Jean-Tinland / simple-bar

A yabai status bar widget for Übersicht
https://www.jeantinland.com/toolbox/simple-bar
MIT License
1.21k stars 129 forks source link

Won't switch spaces. #387

Closed shps18ppt closed 8 months ago

shps18ppt commented 10 months ago

https://github.com/Jean-Tinland/simple-bar/assets/131682899/c197d2e1-cd98-4dfe-9db1-7b4cc6d532fe

Is there anything I can do? I don't know how to reproduce this issue.

shps18ppt commented 9 months ago

@Jean-Tinland

Jean-Tinland commented 9 months ago

Sorry for my late response! I think you are not the only one experiencing this issue.

In order to help me while trying to resolve this, can you please tell me what is the version of the following:

Also, can you try to open the Übersicht console and look for any error when you click on the spaces in simple-bar? You can see on the image below where to find this menu.

image

Please copy and paste here the error if there is one.

Otherwise, can you try to manually switch space by executing this command in your terminal?

# where "2" is the number of the space you want to focus
yabai -m space --focus 2

Let me know if there is an error while executing this command as this is what is used by simple-bar in order to change space.

shps18ppt commented 9 months ago

Looks like there's an error. It seems to be my end, not simple-bar's end.

Unhandled Promise Rejection: Error: cannot focus space due to an error with the scripting-addition.

Anyways, here are the information you needed:

macos: sonoma 14.0
uebersicht: 1.6
yabai: 6.0

Thanks for your reply.

Carbone13 commented 9 months ago

You need to disable SIP and enable the scripting addition, see disabling SIP and enabling the scripting addition.