mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 09:15:22 +01:00
[GH-ISSUE #950] [Feature Request] NixOS home-manager module - automatically reload ironbar, once config changes #4508
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#4508
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 @74k1 on GitHub (Apr 29, 2025).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/950
Is your feature request related to a problem? Please describe.
The current Nix home-manager Module doesn't allow ironbar to reload, once the configuration has changed.
The Ironbar CSS file from the home-manager Module also doesn't get loaded at all initially.
This requires the user, even if
programs.ironbar.systemd = enable;is set, to have to manually restart ironbar withironbar restartand load the css once / at start withironbar load-css ~/.config/ironbar/ironbar.css.Describe the solution you'd like
I've already implemented a solution to this problem here https://github.com/74k1/ironbar/tree/update-flake. As per CONTRIBUTING.md I'd first like to check if @JakeStanger is open for a PR that would solve this minor issue. :)
My changes include:
onChange(simpleironbar reloadcommand) forxdg.ConfigFile."ironbar/config.json"config.wayland.systemd.targetinstead of"graphical-session.target"toPartOfandInstall.WantedByPartOfandInstall.WantedByExecReloadcommandExecPostifcfg.style != ""for loading css on service startDescribe alternatives you've considered
We could consider submitting this to home-manager upstream later, once we've refined the module further.
Additional context
After initial approval, I'd start updating the documentation for nix as per contributing guidelines.
And additionally, if it's okay, I'd like to reorganize the Nix flake structure to improve modularity and visibility, rather than keeping everything in flake.nix and nix/default.nix.
Thanks!
@JakeStanger commented on GitHub (Apr 29, 2025):
Yes this all sounds good to me, thanks for checking :)
The nix code does need some love but it's outside of my wheelhouse a bit so glad it's getting the attention it deserves. Happy to take on PRs for everything mentioned.