[GH-ISSUE #770] ironbar bar <name> hide doesn't hide all bars by the same name #8674

Closed
opened 2026-05-23 03:53:40 +01:00 by JakeStanger · 2 comments
Owner

Originally created by @zeroeightysix on GitHub (Nov 10, 2024).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/770

Originally assigned to: @zeroeightysix on GitHub.

Hi, glad to see this project has evolved so well :)
I'm finally trying to move from swaybar, but:

With a simple config on a multimonitor setup:

name = "bar"
start = []
center = []
end = []

invoking the cli to hide the bar that is on multiple monitors:

ironbar bar bar hide

only hides a bar on a single monitor, instead of all.

Originally created by @zeroeightysix on GitHub (Nov 10, 2024). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/770 Originally assigned to: @zeroeightysix on GitHub. Hi, glad to see this project has evolved so well :) I'm finally trying to move from swaybar, but: With a simple config on a multimonitor setup: ```toml name = "bar" start = [] center = [] end = [] ``` invoking the cli to hide the bar that is on multiple monitors: `ironbar bar bar hide` only hides a bar on a single monitor, instead of all.
JakeStanger 2026-05-23 03:53:40 +01:00
Author
Owner

@zeroeightysix commented on GitHub (Nov 10, 2024):

I guess this comes from the fact that ironbar assumes the names are unique, while (and rather trivially) allowing you to set the same name for multiple bars.

<!-- gh-comment-id:2466746494 --> @zeroeightysix commented on GitHub (Nov 10, 2024): I guess this comes from the fact that ironbar assumes the names are unique, while (and rather trivially) allowing you to set the same name for multiple bars.
Author
Owner

@JakeStanger commented on GitHub (Nov 10, 2024):

Hey, yes the name is intended to be unique per bar, so the IPC server will only ever operate on the first match.

I see the issue here. I think the solution is just to make it operate on all matches instead, which is an easy enough change in theory.

<!-- gh-comment-id:2466768503 --> @JakeStanger commented on GitHub (Nov 10, 2024): Hey, yes the name is intended to be unique per bar, so the IPC server will only ever operate on the first match. I see the issue here. I think the solution is just to make it operate on all matches instead, which is an easy enough change in theory.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#8674
No description provided.