[GH-ISSUE #554] Focused module doesn't work but only on deadbeef when last is opened #4398

Closed
opened 2026-05-23 00:53:03 +01:00 by JakeStanger · 3 comments
Owner

Originally created by @DanteDragan on GitHub (Apr 23, 2024).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/554

Describe the bug
Focused disappears right after focusing on new window after deadbeef. After closing deadbeef all is working properly.

To Reproduce
Steps to reproduce the behavior:
Open deadbeef with plugin Customizable toolbar for GTKUI(GTK3) and setting GUI/Misc -> Player -> Titlebar text while playing: set to %artist% - %album% (%year%) - %title% - %playback_time% / %length%

Expected behavior
Focused is working ok with deadbeef open

System information:

  • Distro: Arch Linux
  • Compositor: Hyprland
  • Ironbar version: 0.15.0-pre

Configuration

Share your bar configuration and stylesheet as applicable:

Config
{
  "position": "bottom",
  "height": 42,
  "start": [
    {
      "type": "launcher",
      "favourites": [
        "vivaldi"
      ],
      "show_names": false,
      "show_icons": true
    },
    {
      "type": "workspaces"
    }
  ],
  "center": [
    {
      "type": "focused",
      "show_icon": true,
      "show_title": true,
      "icon_size": 32,
      "truncate": "end"
    },
    {
      "type": "music",
      "player_type": "mpris",
      "format": "{artist} - {album} - {title}",
      "truncate": "end",
      "icon_size": 32,
      "icons": {
        "play": "",
        "pause": ""
      }
    }
  ],
  "end": [
    {
      "type": "clock",
      "format": "%d/%m/%Y\n%H:%M"
    },
    {
      "type": "volume",
      "format": "{icon} {percentage}%",
      "max_volume": 100,
      "icons": {
        "volume_high": "",
        "volume_medium": "",
        "volume_low": "",
        "muted": ""
      }
    },
    {
      "type": "clipboard",
      "icon": "",
      "max_items": 3,
      "truncate": {
        "mode": "end",
        "length": 50
      }
    },
    {
      "type": "tray",
      "icon_size": 50,
      "prefer_theme_icons": true
    },
    {
      "type": "notifications",
      "show_count": true,
      "icons": {
        "closed_none": "󰍥",
        "closed_some": "󱥂",
        "closed_dnd": "󱅯",
        "open_none": "󰍡",
        "open_some": "󱥁",
        "open_dnd": "󱅮"
      }
    }
  ]
}

Styles
* {
  font-family:
    Noto Sans Nerd Font,
    sans-serif;
  font-size: 14px;
  border: none;
  border-radius: 0px;
  margin-right: 2px;
  margin-left: 2px;
}

menubar,
button {
  border-radius: 33px;
}
.background {
  background: rgba(0, 0, 0, 0);
}
.popup {
  background: rgba(255, 255, 255, 255);

}
.focused {
  margin-right: 15px;
}
.focused .label {
  color: rgba(255, 255, 255, 255);
}

Additional context
I've waybar also installed.

Screenshots
https://disk.yandex.ru/i/eRkrIC09gkkPJg

Log
ironbar_log.log

Originally created by @DanteDragan on GitHub (Apr 23, 2024). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/554 **Describe the bug** Focused disappears right after focusing on new window after deadbeef. After closing deadbeef all is working properly. **To Reproduce** Steps to reproduce the behavior: Open deadbeef with plugin **Customizable toolbar for GTKUI(GTK3)** and setting `GUI/Misc -> Player -> Titlebar text while playing: ` set to `%artist% - %album% (%year%) - %title% - %playback_time% / %length% ` **Expected behavior** Focused is working ok with deadbeef open **System information:** - Distro: Arch Linux - Compositor: Hyprland - Ironbar version: 0.15.0-pre **Configuration** > Share your bar configuration and stylesheet as applicable: <details><summary>Config</summary> ``` { "position": "bottom", "height": 42, "start": [ { "type": "launcher", "favourites": [ "vivaldi" ], "show_names": false, "show_icons": true }, { "type": "workspaces" } ], "center": [ { "type": "focused", "show_icon": true, "show_title": true, "icon_size": 32, "truncate": "end" }, { "type": "music", "player_type": "mpris", "format": "{artist} - {album} - {title}", "truncate": "end", "icon_size": 32, "icons": { "play": "", "pause": "" } } ], "end": [ { "type": "clock", "format": "%d/%m/%Y\n%H:%M" }, { "type": "volume", "format": "{icon} {percentage}%", "max_volume": 100, "icons": { "volume_high": "", "volume_medium": "", "volume_low": "", "muted": "" } }, { "type": "clipboard", "icon": "", "max_items": 3, "truncate": { "mode": "end", "length": 50 } }, { "type": "tray", "icon_size": 50, "prefer_theme_icons": true }, { "type": "notifications", "show_count": true, "icons": { "closed_none": "󰍥", "closed_some": "󱥂", "closed_dnd": "󱅯", "open_none": "󰍡", "open_some": "󱥁", "open_dnd": "󱅮" } } ] } ``` </details> <details><summary>Styles</summary> ```css * { font-family: Noto Sans Nerd Font, sans-serif; font-size: 14px; border: none; border-radius: 0px; margin-right: 2px; margin-left: 2px; } menubar, button { border-radius: 33px; } .background { background: rgba(0, 0, 0, 0); } .popup { background: rgba(255, 255, 255, 255); } .focused { margin-right: 15px; } .focused .label { color: rgba(255, 255, 255, 255); } ``` </details> **Additional context** I've waybar also installed. **Screenshots** https://disk.yandex.ru/i/eRkrIC09gkkPJg **Log** [ironbar_log.log](https://github.com/JakeStanger/ironbar/files/15080503/ironbar_log.log)
JakeStanger 2026-05-23 00:53:03 +01:00
  • closed this issue
  • added the
    T:Bug
    label
Author
Owner

@JakeStanger commented on GitHub (Apr 24, 2024):

I wonder if this is related to #488

<!-- gh-comment-id:2074433128 --> @JakeStanger commented on GitHub (Apr 24, 2024): I wonder if this is related to #488
Author
Owner

@DanteDragan commented on GitHub (Apr 24, 2024):

You can see, that focus in the video, attached in #488, is going blank when track is changed. Maybe problem is related to music?

<!-- gh-comment-id:2075384270 --> @DanteDragan commented on GitHub (Apr 24, 2024): You can see, that focus in the video, attached in #488, is going blank when track is changed. Maybe problem is related to music?
Author
Owner

@JakeStanger commented on GitHub (Apr 24, 2024):

Got it. The issue is caused when an unfocused window changes title. Above PR resolves that, so will have that merged shortly.

<!-- gh-comment-id:2075783786 --> @JakeStanger commented on GitHub (Apr 24, 2024): Got it. The issue is caused when an unfocused window changes title. Above PR resolves that, so will have that merged shortly.
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#4398
No description provided.