Skip to content

Conversation

@coreydoughty
Copy link
Contributor

Adds the use of a signal number to toggle show/hide of a group module. Used in keybindings or similar.

Example config.jsonc:

{
  // ...
  "group/mygroup": {
    "signal": 1,
    "modules": [
      "...",
      "..."
    ],
    "drawer": {
      "children-class": "hidden",
      "click-to-reveal": true
    }
  },
  // ...
}

Example usage to show/hide:

pkill -RTMIN+1 waybar &

@Invertisment
Copy link
Contributor

Invertisment commented May 20, 2025

I implemented this to hide/show whole waybar: #3928

It's not yet merged for about two months but I'm using it without issues and it could probably be extended for your usecase.
i.e. to do internal broadcast of "hide group + show group"

This is my fork: https://github.com/Invertisment/Waybar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants