Skip to content

group: toggle show/hide with signal number (for keybinding)#4043

Open
coreydoughty wants to merge 1 commit into
Alexays:masterfrom
coreydoughty:group-patch
Open

group: toggle show/hide with signal number (for keybinding)#4043
coreydoughty wants to merge 1 commit into
Alexays:masterfrom
coreydoughty:group-patch

Conversation

@coreydoughty

Copy link
Copy Markdown
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

Invertisment commented May 20, 2025

Copy link
Copy Markdown
Contributor

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