mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 12:15:22 +01:00
[GH-ISSUE #982] feature request: don't show the bindmode when it's the default mode #4522
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#4522
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 @postsolar on GitHub (May 15, 2025).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/982
Is your feature request related to a problem? Please describe.
If the bar has a particular styling (the module for bindmode is visually isolated), there would be an empty block for the "default" or "global" bindmode (
submap = resetin Hyprland lingo). This is visually unappealing and provides no useful information.Non-default mode on:

Default mode on:

I'd like to just not see the widget when the bindmode is the default one.
Describe the solution you'd like
There are many ways to address it. Off the top of my head I could think of:
Describe alternatives you've considered
show_iffield forlabelwidgets. Ok but extra code.load-csscommand. Quite hacky but works too.Both could be done with either:
bind = mod, key, exec, hyprctl dispatch submap foo && ironbar var set submap foo && ironbar var set submapVisible true, which adds quite a bit of coupling between Hyprland config and IronbarAdditional context
@JakeStanger commented on GitHub (May 16, 2025):
On Sway, this is known as the "default" mode, and it's sent as an empty string
github.com/JakeStanger/ironbar@f3ae57bfe5/src/clients/compositor/sway.rs (L246-L252)Replicating this to hide it on Hyprland if needed would be my preference.
If that's not enough (since it's already showing empty), I reckon the best bet is to add some logic to the module itself that does something akin to
@postsolar commented on GitHub (May 16, 2025):
Do you think it should be configurable, and if yes, then hide or don't hide by default?
@JakeStanger commented on GitHub (May 16, 2025):
I personally cannot see a use for having it shown if empty, especially since there's no formatting options for the module, and GTK CSS doesn't have pseudoelements, so it'll always be empty in this scenario.
If you can see any reason why somebody would want it to show, then I'd say yes configurable, but hidden by default, otherwise nah.