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

Set WAYBAR_OUTPUT_NAME env variable in custom module event handlers. #3848

Open
rafal11ck opened this issue Dec 27, 2024 · 0 comments
Open
Labels
bug Something isn't working custom

Comments

@rafal11ck
Copy link

WAYBAR_OUTPUT_NAME is set for exec, but not for on-click, on-scroll-up, on-scroll-down.

This can be observed with following module that dumps env to file from exec and events then compares it, diff is shown in the stdout so diff can be noticed easily when waybar is run from cli:

  "custom/events": {
    "format": "eventTest",
    "exec": "env > /tmp/debug.log ; printf 'aaa\ntip\nclass\n100\n'",
    "on-click": "env > /tmp/debug2.log && diff /tmp/debug.log /tmp/debug2.log ",
    "on-scroll-up": "env > /tmp/debug2.log && diff /tmp/debug.log /tmp/debug2.log ",
    "on-scroll-down": "env > /tmp/debug2.log && diff /tmp/debug.log /tmp/debug2.log "
  }

part of output that I get:

 34d33
< WAYBAR_OUTPUT_NAME=DP-2

This seems to be related:
#2821 (comment)

@github-actions github-actions bot added bug Something isn't working custom labels Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working custom
Projects
None yet
Development

No branches or pull requests

1 participant