hyprland-autoname-workspaces icon indicating copy to clipboard operation
hyprland-autoname-workspaces copied to clipboard

[BUG] Waybar active workspace not detected when the focused window is not the active one at the program's launch

Open MathisP75 opened this issue 2 years ago โ€ข 5 comments

Describe the bug Waybar does not indicate the active workspace if there are more than 1 window opened in it and that the focused window is not the one that was focused at the moment of launching hyprland-autoname-workspaces.

Program version?

1.1.9

Program configuration dump? (ideally)

{
  "version": "1.1.9",
  "class": {
    "WebCord": "๓ฐ™ฏ",
    "qutepreview": "๏…œ",
    "wire": "๓ฐ€",
    "krita": "๏€พ",
    "libreoffice-impress": "๏‡„",
    "mpv": "๏‹",
    "neomutt": "๏ƒ ",
    "taskwarrior-tui": "๏‚ฎ",
    "chromium": "๏‰จ",
    ".*transmission.*": "๏€™",
    "Gimp-2.10": "๏‡…",
    "vlc": "๏…„",
    "rapid-photo-downloader": "๏Œ‚",
    "work": "๏‘™",
    "zoom": "๏€Ž",
    "kitty": "๏„ ",
    "nm-connection-editor": "๏ƒจ",
    "kicad": "๏‚ญ",
    "shopping": "๏‘™",
    "nemo": "๏ผ",
    "spotify": "๏†ผ",
    "wayvnc": "๓ฐ€„",
    "libreoffice-startcenter": "๏‡‚",
    "sandboxed-tor-browser": "๏ˆ•",
    "swappy": "๏€พ",
    "discord": "๓ฐ™ฏ",
    "obsidian": "๏…‹",
    "xplr": "๏ผ",
    "firefox": "๏‰ฉ",
    "songrec": "๏‡‡",
    "scli": "๏„ฒ",
    "Signal": "๏„ฒ",
    "plexamp": "๏†ผ",
    "steam": "๏†ถ",
    "paperwork": "๏‡˜",
    "caprine": "๓ฐˆŽ",
    "virt-manager": "๏‹’",
    "libreoffice-calc": "๏‡ƒ",
    "udiskie": "๏‚ ",
    "telegramdesktop": "๏‹†",
    "org-qutebrowser-qutebrowser": "๏‘™",
    "DEFAULT": "๏™",
    "org-pwmt-zathura": "๏‡",
    "whatsapp-desktop": "๏ˆฒ",
    "streamlink-twitch-gui": "๏‡จ",
    "vimiv": "๏Œ‚",
    "slack": "๏ฏ",
    "org.pwmt.zathura": "๏‡",
    "remote-viewer": "๏„ˆ",
    "com.obsproject.Studio": "๓ฐป‚",
    "sun-awt-x11-xframepeer": "๏ƒง",
    "@Joplin/app-desktop": "๓ฑž",
    "code-oss": "๓ฐจž",
    "pavucontrol": "๏Žต",
    "libreoffice-writer": "๏‡‚",
    "thunar": "๏ป",
    "wlfreerdp": "๓ฐ€„",
    "wireshark-gtk": "๏ƒ",
    "eeschema": "๏‚ญ",
    "personal": "๏‘™",
    "org-ksnip-ksnip": "๏ฅ",
    "org-telegram-desktop": "๏‹†",
    "whatsapp-nativefier-d52542": "๏ˆฒ",
    "snappergui": "๏‘จ",
    "vncviewer": "๏‰•",
    "molotov": "๏‰ฌ"
  },
  "class_active": {},
  "initial_class": {},
  "initial_class_active": {},
  "workspaces_name": {},
  "title_in_class": {},
  "title_in_class_active": {},
  "title_in_initial_class": {},
  "title_in_initial_class_active": {},
  "initial_title_in_class": {},
  "initial_title_in_class_active": {},
  "initial_title_in_initial_class": {},
  "initial_title_in_initial_class_active": {},
  "exclude": {},
  "format": {
    "dedup": true,
    "dedup_inactive_fullscreen": false,
    "delim": " ",
    "workspace": "{id}:{delim}{clients}",
    "workspace_empty": "{id}",
    "client": "{icon}{delim}",
    "client_fullscreen": "[{icon}]{delim}",
    "client_active": "{icon}",
    "client_dup": "{icon}{counter_sup}{delim}",
    "client_dup_active": "*{icon}*{delim}{icon}{counter_unfocused_sup}",
    "client_dup_fullscreen": "[{icon}]{delim}{icon}{counter_unfocused_sup}"
  }
}

To Reproduce Steps to reproduce the behavior:

  1. Launch a Waybar config with hyprland/workspaces
  2. Open 2 different windows on the same workspace, one of them being a terminal
  3. Launch hyprland-autoname-workspaces in said terminal
  4. The workspace appears to be focused in Waybar
  5. Focus the other window in that workspace
  6. Waybar does not highlight the current workspace as being active

Expected behavior

The active workspace should be highlighted no matter the focused window within it.

Linux Distro (please complete the following information):

Arch

MathisP75 avatar Sep 13 '23 15:09 MathisP75

image image

MathisP75 avatar Sep 13 '23 15:09 MathisP75

Thanks for the report @MathisP75 I will dig into when I can, feel free to do it and make a PR if you want ๐Ÿ˜‰

cyrinux avatar Sep 13 '23 16:09 cyrinux

Still waiting for this issue to be resolved

reluctantslave avatar Nov 12 '23 16:11 reluctantslave

Still waiting for this issue to be resolved

Feel free to fix it ๐Ÿ™‚

cyrinux avatar Nov 12 '23 18:11 cyrinux

I cant seem to get the active workspace highlighting to work at all. For me, it makes no difference how many windows (clients) are opened, what workspace they are in or when they were opened (before or after hyprland-autoname-workspaces). The option seems to have no effect no matter what I do. I'll gladly help troubleshooting with this, if anyone has any ideas.

Dump: { "version": "1.1.11", "class": { "Gimp-2.10": "๏‡ผ ", "GitHub Desktop": "๏‚› ", "VSCodium": "๏„ก ", "wdisplays": "๏กน ", "Tor Browser": "๏จฉ", "zoom": "๏€ฝ ", "discord": "๓ฐ™ฏ ", "Signal Beta": "๓ฐก ", "slack": "๏†˜", "foot": "๏’‰ ", "geogebra": "๏‡ฌ ", "packettracer": "๏›ฟ", "qpdfview.local.qpdfview": "๏‡ ", "DEFAULT": "๏™ ", "virt-manager": "๐Ÿ–ฅ", "TeamViewer": "๐Ÿ’ป", "nextcloud": "๏ƒ‚ ", "electron-mail": "๏ฏ ", "chat-gpt": "๏ฎง ", "geany": "๏„ก ", "file-roller": "๏†‡ ", "whatsapp-for-linux": "๏ˆฒ ", "Vmware": "๐Ÿ–ฅ ", "Chromium": "๏‰จ ", "/^matlab/": "๏ฎ’", "libreoffice-writer": "๏„ ", "Spotify": "๏†ผ", "vlc": "๏€ ", "Microsoft Teams - Preview": "๐Ÿ—ช ", "unityhub": "๏†ฒ ", "deluge": "๐Ÿงฒ", "Catapult": "๏„› ", "libreoffice-calc": "๏ƒŽ ", "org.keepassxc.KeePassXC": "๐Ÿ”‘", "thunar": "๐Ÿ“", "mate-calc": "๏‡ฌ ", "thunderbird": "๏ƒ  ", "steam": "๏†ถ" }, "class_active": {}, "initial_class": { "Firefox Beta": "๏‰ฉ ", "Unity": "๏†ฒ ", "qpdfview": "๏‡ " }, "initial_class_active": {}, "workspaces_name": {}, "title_in_class": {}, "title_in_class_active": {}, "title_in_initial_class": {}, "title_in_initial_class_active": {}, "initial_title_in_class": {}, "initial_title_in_class_active": {}, "initial_title_in_initial_class": {}, "initial_title_in_initial_class_active": {}, "exclude": { "": "^$" }, "format": { "dedup": true, "dedup_inactive_fullscreen": true, "delim": " ", "workspace": "{id}:{delim}{clients}", "workspace_empty": "{id}", "client": "{icon}", "client_fullscreen": "{icon}", "client_active": "[{icon}]", "client_dup": "{icon}{counter_sup}", "client_dup_active": "{icon}{delim}{icon}{counter_unfocused_sup}", "client_dup_fullscreen": "[{icon}]{delim}{icon}{counter_unfocused_sup}" } }

Joni-Samanen avatar Nov 14 '23 21:11 Joni-Samanen