mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 09:15:22 +01:00
[GH-ISSUE #1343] Per-monitor bar styling #401
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#401
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @imnotpoz on GitHub (Jan 24, 2026).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1343
Is your feature request related to a problem? Please describe.
I'm always frustrated when I can't style my bars depending on which monitor they're on
Currently I have a set of niri named workspaces on my main monitor, which aren't present on the second monitor. I styled them so they're a different color to normal dynamic workspaces, as in the attached screenshot:
This works wonderfully until I open more than 7 workspaces on the second monitor:
Describe the solution you'd like
One solution I thought of is adding a CSS class to each element that's just the monitor it's on (so for my issue I'd do
.workspaces .item:nth-child(-n+7) .eDP-1and then.workspaces .HDMI-A-1for the rest) but not sure if that'd be considered a proper solution or not.Describe alternatives you've considered
Running 2 entirely different ironbar instances but that would be very bad and ugly.
Additional context
@JakeStanger commented on GitHub (Jan 24, 2026):
I don't think adding a class to every widget is the answer, but it makes sense at the top-level. This is achievable currently by setting the name property on the bar.
In my own config for example I have a bar on each monitor named as such:
These can then be targeted using
#name(eg#DP-1), so you should be able to set up separate rules like:Does this do what you want?
@imnotpoz commented on GitHub (Jan 24, 2026):
It does thank you :3c