-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Unknow script output #1
Comments
Went through this because I'm super interested myself, it looks like you require Install Homebrew if you haven't and |
The "spaces-secondary" widget prints out workspaces from a secondary connected monitor. If you don't have one, it will print out an error, so you should just disabled it from the uebersicht menu. |
Alternatively, use yabai's signals to trigger refreshing specific uebersicht widgets. I've just added more info on that in the README: https://github.com/kkga/nibar#usage |
This no longer works for whatever reason. I got the bar working with spaces by changing the refreshrate but adding the yabai spaces-changed signal isn't working. See my comments in koekeishiya/yabai#381 None of these work: # ubersicht="$(ps ax | grep sicht | awk '{print $5}' | head -1 | cut -d/ -f3 | cut -d. -f1)"
# echo $ubersicht
# refresh primary display workspaces
# yabai -m signal --add event='space_changed' action="ru"
# refresh my Übersicht bar when the space changes
# yabai -m signal --add event='space_changed' \
# action="osascript -e 'tell application \"'$(ps ax | grep sicht | awk '{print $5}' | head -1 | cut -d/ -f3 | cut -d. -f1)'\" to refresh'"
# yabai -m signal --add event=space_changed action="osascript -e 'display notification \"active space changed.\" with title \"yabai\" subtitle \"signal\"'"
# yabai -m signal --add event=space_changed action="osascript -e 'tell application $(ps ax | grep sicht | awk '{print $5}' | head -1 | cut -d/ -f3 | cut -d. -f1) to refresh'"
# refresh primary display workspaces
# yabai -m signal --add event=space_changed \
# action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"nibar-spaces-primary-jsx\"'"
# yabai -m notification trigger=space-changed \
# action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"yabai-space-widget\"'"
# yabai -m signal --add event=space_changed action="osascript -e 'display notification \"active space changed.\" with title \"yabai\" subtitle \"signal\"'" |
here's what I have in yabai -m signal --add event=space_changed \
action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"nibar-spaces-primary-jsx\"'"
yabai -m signal --add event=window_focused \
action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"nibar-spaces-primary-jsx\"'"
yabai -m signal --add event=space_changed \
action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"nibar-spaces-secondary-jsx\"'"
yabai -m signal --add event=window_focused \
action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"nibar-spaces-secondary-jsx\"'" It works perfectly in my case.
What do you see when running 👇 this command directly in a terminal? osascript -e 'tell application "Übersicht" to refresh widget id "nibar-spaces-primary-jsx"' |
Hey thanks for the quick reply! I get: $ osascript -e 'tell application "Übersicht" to refresh widget id "nibar-spaces-primary-jsx"'
32:46: syntax error: A identifier can’t go after this identifier. (-2740)
$ osascript -e 'tell application \"Übersicht\" to refresh widget id "nibar-spaces-primary-jsx"'
17:18: syntax error: Expected expression, property or key form, etc. but found unknown token. (-2741)
rublev@andreis-MacBook-Pro ~ % I tried the commands you listed as well and changed refreshRate to false in the JSX file but it didn't work. |
Hi,
I just installed your widget and in the desktop infos (on the left) i have an error :
Error : unknown script output
I looked at both primary and secondary spaces scripts and ran them manually. Primary printed a correct result but secondary did not, saying it could not locate the given display.
In
spaces-secondary.sh
I replaced this line by :But i still have the same error. Do you know what's causing this ?
Thanks
The text was updated successfully, but these errors were encountered: