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

Is xbar.var working? #668

Closed
kawarimidoll opened this issue Mar 28, 2021 · 3 comments
Closed

Is xbar.var working? #668

kawarimidoll opened this issue Mar 28, 2021 · 3 comments
Labels

Comments

@kawarimidoll
Copy link

Hello,

I'm trying to write my plugin with variables.
I copied the code from https://xbarapp.com/docs/2021/03/14/variables-in-xbar.html, but this didn't work...

My plugin ~/Library/Application Support/xbar/plugins/hello.10m.sh is below:

#!/bin/bash

# <xbar.var>string(VAR_NAME="World"): Your name.</xbar.var>
echo "Hello, ${VAR_NAME}"

The output on the menubar is only "Hello,", as this screenshot (I added annotations).

screenshot

It was not changed after refresh.

Do I need any other settings to use variables?

Version: macOS 11.2.3, xbar v2.0.33-beta

@matryer matryer added the bug label Mar 28, 2021
@matryer
Copy link
Owner

matryer commented Mar 28, 2021

@kawarimidoll The UI is broken... fixing now...

@matryer
Copy link
Owner

matryer commented Mar 28, 2021

@kawarimidoll please try the latest release, this should be fixed now.

@kawarimidoll
Copy link
Author

It works! Thank you for the quick fix 😄

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

No branches or pull requests

2 participants