mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 09:15:22 +01:00
[GH-ISSUE #7] Notification tray module #7034
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#7034
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 @JakeStanger on GitHub (Aug 14, 2022).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/7
Would be cool to be able to connect to notification daemons and keep track of past notifications, displaying them in a popout panel/tray of sorts.
@yffengdong commented on GitHub (Apr 7, 2023):
related issues: support SwayNotificationCenter
https://github.com/ErikReider/SwayNotificationCenter
@JakeStanger commented on GitHub (Apr 7, 2023):
This is probably the easiest way to go about it and something I've been considering for a while. I don't know if it's possible to hook into its daemon, but at the very least I can provide a (custom) module which opens it up.
@yavko commented on GitHub (Jun 30, 2023):
From taking a 15.73 second peak at the codebase I can confirm it is possible, and it's done through dbus.
@ErikReider commented on GitHub (Feb 11, 2024):
I'd be down to work with y'all on this for swaync! :)
@JakeStanger commented on GitHub (Feb 11, 2024):
Oh damn, the legend himself! That'd be really appreciated, thanks. I'll be coming to this issue soon-ish (read: within a few months) so now's actually a good time to really start planning the details on it.
My thoughts on this currently are that Ironbar shouldn't be treading on SwayNC's toes too much, and should only really be supplementing it with the bar integration. In real terms that means I see Ironbar being able to respond to new notifications and show info on the bar such as the latest notification or a total count, and provide a button which opens the notification panel. Communicating via dbus will work nicely.
I'm not sure if there's any other functionality I'm missing that people could see as useful?
@ErikReider commented on GitHub (Feb 12, 2024):
Swaync provides stable dbus methods that can easily be used by ironbar :)

Another thing would be to maybe export some GTK widgets as a library or something that others can use? So just attaching the "control center widget" to a popup on click? Not really sure about this though...
@JakeStanger commented on GitHub (Feb 16, 2024):
Good news about the dbus methods, looks like we're covered. I did have a good look at those before (as did Yakvo I assume) so good to have that reinforced.
There could be an interesting approach to this, which would be to decouple the UI and daemon, perhaps allowing 3rd party UIs to more easily hook in. I'm not sure how feasible or beneficial or sensible that'd be though, especially given D-Bus is already an option. This could risk a crossing of the responsibilities of each program, unless I'm misunderstanding. My belief here is that
swayncshould be responsible for notifications,ironbar(or other) should be responsible for talking to it, and it should be kept to that strict server/client model.If I've not quite grasped what you're suggesting or you've other ideas though I'm open to anything!
@JakeStanger commented on GitHub (Mar 3, 2024):
@ErikReider I've succesfully managed to talk to SwayNC and can do the basics already 🎉 but the subscribe method seems fairly limited at the moment. It looks like it just comes back with the following bits:
but as far as I can see there's no way to get the notification itself. Is there a way I'm missing, or is this something you think could be added (lmk and I can open an issue your end to track)?
@JakeStanger commented on GitHub (Mar 3, 2024):
In the meantime, an initial implementation of the widget is pretty much ready to be shipped in the above PR.
@ErikReider commented on GitHub (Mar 3, 2024):
Yeah, that's on purpose so that other applications can't snoop on the users notifications. Are there any other properties that you would like to be returned?
@JakeStanger commented on GitHub (Mar 4, 2024):
Oh that makes a lot of sense. Everything else I have covered, and to be honest the would-be-nice of the title makes less sense the more I think aobut it - notifications are obviously on screen, so why duplicate that on the bar?