Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Focused module doesn't work but only on deadbeef when last is opened #554

Closed
DanteDragan opened this issue Apr 23, 2024 · 3 comments · Fixed by #556
Closed

Focused module doesn't work but only on deadbeef when last is opened #554

DanteDragan opened this issue Apr 23, 2024 · 3 comments · Fixed by #556
Labels
bug Something isn't working

Comments

@DanteDragan
Copy link

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

@DanteDragan DanteDragan added the bug Something isn't working label Apr 23, 2024
@JakeStanger
Copy link
Owner

I wonder if this is related to #488

@DanteDragan
Copy link
Author

DanteDragan commented 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?

@JakeStanger
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants