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

Custom module has no rendered text/icon #3782

Closed
A opened this issue Nov 20, 2024 · 2 comments
Closed

Custom module has no rendered text/icon #3782

A opened this issue Nov 20, 2024 · 2 comments

Comments

@A
Copy link

A commented Nov 20, 2024

If i use "format": "{icon}" icon is rendered correctly, if I use "format": "{}" text is rendered correctly, if i use "format": "{} {icon}" text and icon is rendered correctly, but if I use "format": "{icon} {}" module is still clickable, but renders and empty string.

Waybar v0.11.0

Configuration:

  "custom/notification": {
    "tooltip": false,
    "format": "{icon} {}",
    "format-icons": {
      "notification": "<span foreground='#f38080'><sup></sup></span>",
      "none": "",
      "dnd-notification": "<span foreground='#f38080'><sup></sup></span>",
      "dnd-none": "",
      "inhibited-notification": "<span foreground='#f38080'><sup></sup></span>",
      "inhibited-none": "",
      "dnd-inhibited-notification": "<span foreground='#f38080'><sup></sup></span>",
      "dnd-inhibited-none": ""
    },
    "return-type": "json",
    "exec-if": "which swaync-client",
    "exec": "swaync-client -swb",
    "on-click": "swaync-client -t -sw",
    "on-click-right": "swaync-client -d -sw",
    "escape": true
  },

swaync-client -swb output:

{"text": "237", "alt": "dnd-notification", "tooltip": "237 Notifications", "class": "dnd-notification"}   
@alterNERDtive
Copy link

alterNERDtive commented Nov 27, 2024

I am experiencing the same issue; it is not limited to custom modules. It applies to any module, but most actual modules come with identifiers instead of the default {} (and those work fine).

Fedora 41, waybar 0.11.0.

@A
Copy link
Author

A commented Dec 3, 2024

I think this one was addressed in a3e7031, but hasn't been published yet. Works for me via waybar-git.

@A A closed this as completed Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants