[GH-ISSUE #1428] Tray module doesn't detect already dispatched items #3244

Open
opened 2026-05-22 23:55:00 +01:00 by JakeStanger · 2 comments
Owner

Originally created by @Ynverxe on GitHub (Mar 22, 2026).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1428

Describe the bug
If there are any items that were dispatched before Ironbar opens, it doesn't detect them the first run, but if you run Ironbar a second time then they show in the tray.

I saw this behaviour with blueman-applet.

To reproduce
Steps to reproduce the behavior:

  1. Add module tray
  2. Make sure there's an applet dispatched before running Ironbar (like blueman-applet or spotify)
  3. Run Ironbar
  4. Close Ironbar and re-run it.

Edit: Most of Rolling Release stuff, included Ironbar, was installed via Nix

Expected behavior
I think the expected behaviour must be that Ironbar should look for already dispatched items.

System information:

  • Distro: Linux war-machine 6.12.74+deb13+1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.74-2 (2026-03-08) x86_64 GNU/Linux
  • Compositor: Hyprland
  • Ironbar version: 0.19.0-pre

Configuration

Config
height: 30
position: "top"
margin:
  left: 20
  top: 5
  right: 20
start:
- type: "sys_info"
  format:
  - "{memory_used#M} MB / {memory_total#M} MB"
  intervals:
    memory: 1
- type: "label"
  label: "IPv4: {{ ip route get 1 | awk '{print $7}' }}"
end:
- type: "battery"
- type: "volume"
  sink_slider_orientation: "horizontal"
  marquee:
    enable: true
    max_length: 40
- type: "notifications"
center:
- type: "tray"
- type: "workspaces"
  name_map:
    1: "1"
    2: "2"
    3: "3"
    4: "4"
    5: "5"
    6: "6"
    7: "7"
    8: "8"
    9: "9"
  favorites: [ "1", "2", "3", "4", "5", "6", "7", "8", "9" ]
- type: "clock"
  format: "%A %d de %B, %r"
Styles
@define-color text #3D3D3D;
@define-color workspaces #383838;
@define-color workspaces-inner-background #2a2a2a;
@define-color workspace-active #7ec8e3;
@define-color workspace-hover #7ec8e3;

* {
  border: none;
  box-shadow: none;
  font-family: JetBrains Mono NFM;
  font-weight: 900;
}

.background,
#bar {
  background: transparent;
}

.tray,
.label,
.sysinfo,
.volume,
.networkmanager,
.clock,
.workspaces {
  margin: 0px 4px 0px 4px;
  border-radius: 15px;
  padding: 0px 10px 0px 10px;
  font-size: 12px;
  background: #2a2a2a;
}

.workspaces {
  font-size: 17px;
  font-weight: bolder;
  padding: 0px;
}

.workspaces .item {
  padding: 0px 6px 0px 6px;
  border-radius: 0px;
}

.tray > button {
  background: transparent;
}

.sysinfo > label {
  color: #82d9a0;
}

.label {
  color: #7ec8e3;
}

.tray > button {
  border-color: #e0a8c8;
  border: 2px;
}

.clock {
  color: #e0a8c8;
}

.volume {
  color: #f0c060;
}

.workspaces {
  background-color: @workspaces-inner-background;
  border-color: @workspaces-inner-background;
  border-style: solid;
  border-width: 5px;
  padding-left: 5px;
  padding-right: 5px;
}

.workspaces .item {
  background: lighter(#383838);
  border-radius: 20px;
  margin-left: 4px;
  margin-right: 4px;
}

.workspaces .item label {
  font-family: sans-serif;
  font-size: 12px;
  color: #E0F7FA;
}

.workspaces .item {
  min-width: 12px;
  max-width: 12px;
  border-radius: 99px;
  transition: min-width 350ms ease, max-width 350ms ease;
}

.workspaces .item.focused {
  min-width: 50px;
  max-width: 50px;
  background: #7ec8e3;
}

.workspaces .item.focused label {
  color: @workspaces-inner-background;
}

popover, popover contents, .popup {
  background: transparent;
}

popover arrow,
popover contents {
  background: rgba(35,35,45,0.9);
}

.tray popover arrow,
popover contents {
  border-style: solid;
  border-radius: 15px;
  border-width: 3px;
  border-color: rgb(80,80,90);
}

popover,
popover contents,
.popup,
popover contents button,
.popup-clock .calendar {
  color: #E0F7FA;
}

popover contents label {
  font-family: sans-serif;
  font-weight: normal;
}

popover contents button {
  background: rgba(0,0,0,0);
}

scale highlight {
  background: #3de37a;
  border: none;
  min-height: 6px;
}

scale slider {
  background: rgb(70,70,80);
}

popover modelbutton:hover {
  background: rgba(255,255,255,0.08);
  color: #e6e8ee;
}

.popup-clock .calendar {
  background: transparent;
}

.popup-clock .calendar-clock {
  font-size: 30px;
  padding-bottom: 15px;
}

popover contents {
  animation-name: popover_show;
  animation-duration: 280ms;
  animation-fill-mode: both; 
}

@keyframes popover_show {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0px);
  }
}
Originally created by @Ynverxe on GitHub (Mar 22, 2026). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1428 **Describe the bug** If there are any items that were dispatched before Ironbar opens, it doesn't detect them the first run, but if you run Ironbar a second time then they show in the tray. I saw this behaviour with blueman-applet. **To reproduce** Steps to reproduce the behavior: 1. Add module `tray` 2. Make sure there's an applet dispatched before running Ironbar (like blueman-applet or spotify) 3. Run Ironbar 4. Close Ironbar and re-run it. Edit: Most of Rolling Release stuff, included Ironbar, was installed via Nix **Expected behavior** I think the expected behaviour must be that Ironbar should look for already dispatched items. **System information:** - Distro: ``Linux war-machine 6.12.74+deb13+1-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.74-2 (2026-03-08) x86_64 GNU/Linux`` - Compositor: Hyprland - Ironbar version: 0.19.0-pre **Configuration** <!-- Share your bar configuration and stylesheet as applicable: --> <details><summary>Config</summary> ``` height: 30 position: "top" margin: left: 20 top: 5 right: 20 start: - type: "sys_info" format: - "{memory_used#M} MB / {memory_total#M} MB" intervals: memory: 1 - type: "label" label: "IPv4: {{ ip route get 1 | awk '{print $7}' }}" end: - type: "battery" - type: "volume" sink_slider_orientation: "horizontal" marquee: enable: true max_length: 40 - type: "notifications" center: - type: "tray" - type: "workspaces" name_map: 1: "1" 2: "2" 3: "3" 4: "4" 5: "5" 6: "6" 7: "7" 8: "8" 9: "9" favorites: [ "1", "2", "3", "4", "5", "6", "7", "8", "9" ] - type: "clock" format: "%A %d de %B, %r" ``` </details> <details><summary>Styles</summary> ```css @define-color text #3D3D3D; @define-color workspaces #383838; @define-color workspaces-inner-background #2a2a2a; @define-color workspace-active #7ec8e3; @define-color workspace-hover #7ec8e3; * { border: none; box-shadow: none; font-family: JetBrains Mono NFM; font-weight: 900; } .background, #bar { background: transparent; } .tray, .label, .sysinfo, .volume, .networkmanager, .clock, .workspaces { margin: 0px 4px 0px 4px; border-radius: 15px; padding: 0px 10px 0px 10px; font-size: 12px; background: #2a2a2a; } .workspaces { font-size: 17px; font-weight: bolder; padding: 0px; } .workspaces .item { padding: 0px 6px 0px 6px; border-radius: 0px; } .tray > button { background: transparent; } .sysinfo > label { color: #82d9a0; } .label { color: #7ec8e3; } .tray > button { border-color: #e0a8c8; border: 2px; } .clock { color: #e0a8c8; } .volume { color: #f0c060; } .workspaces { background-color: @workspaces-inner-background; border-color: @workspaces-inner-background; border-style: solid; border-width: 5px; padding-left: 5px; padding-right: 5px; } .workspaces .item { background: lighter(#383838); border-radius: 20px; margin-left: 4px; margin-right: 4px; } .workspaces .item label { font-family: sans-serif; font-size: 12px; color: #E0F7FA; } .workspaces .item { min-width: 12px; max-width: 12px; border-radius: 99px; transition: min-width 350ms ease, max-width 350ms ease; } .workspaces .item.focused { min-width: 50px; max-width: 50px; background: #7ec8e3; } .workspaces .item.focused label { color: @workspaces-inner-background; } popover, popover contents, .popup { background: transparent; } popover arrow, popover contents { background: rgba(35,35,45,0.9); } .tray popover arrow, popover contents { border-style: solid; border-radius: 15px; border-width: 3px; border-color: rgb(80,80,90); } popover, popover contents, .popup, popover contents button, .popup-clock .calendar { color: #E0F7FA; } popover contents label { font-family: sans-serif; font-weight: normal; } popover contents button { background: rgba(0,0,0,0); } scale highlight { background: #3de37a; border: none; min-height: 6px; } scale slider { background: rgb(70,70,80); } popover modelbutton:hover { background: rgba(255,255,255,0.08); color: #e6e8ee; } .popup-clock .calendar { background: transparent; } .popup-clock .calendar-clock { font-size: 30px; padding-bottom: 15px; } popover contents { animation-name: popover_show; animation-duration: 280ms; animation-fill-mode: both; } @keyframes popover_show { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: translateY(0px); } } ``` </details>
Author
Owner

@JakeStanger commented on GitHub (Mar 28, 2026):

I can't test with blueman, but I'm not able to reproduce this generally. Are you running any other bar/tray widget at the same time? Do you experience this with any other apps?

<!-- gh-comment-id:4148171925 --> @JakeStanger commented on GitHub (Mar 28, 2026): I can't test with blueman, but I'm not able to reproduce this generally. Are you running any other bar/tray widget at the same time? Do you experience this with any other apps?
Author
Owner

@sbe-visma commented on GitHub (Apr 9, 2026):

This might be the same issue I had, frequently ironbar displays way less, or no tay icons compared to what my waybar setup did previously. it's been a bit hit or miss, sometimes i start ironbar and nothing is there, sometimes thy've all dissapeared after I've had my computer locked for a while, sometimes only blueman shows up, etc.
Didn't see anything helpful in the logs, and have now reverted back to waybar because of this and an audio issue (I'll report separately)

<!-- gh-comment-id:4214227526 --> @sbe-visma commented on GitHub (Apr 9, 2026): This might be the same issue I had, frequently ironbar displays way less, or no tay icons compared to what my waybar setup did previously. it's been a bit hit or miss, sometimes i start ironbar and nothing is there, sometimes thy've all dissapeared after I've had my computer locked for a while, sometimes only blueman shows up, etc. Didn't see anything helpful in the logs, and have now reverted back to waybar because of this and an audio issue (I'll report separately)
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#3244
No description provided.