hyprland-autoname-workspaces: [BUG] Names not updating on window open/close

Describe the bug Workspace names are not properly updated on window open/close events (triggered by standard Hyprland keybinds). Old icons remain, new icons do not appear. The next event (workspace switch, third window opened, window focus switch, etc) eventually updates the names to their true values.

I am not sure if this bug should be filed against hyprland-workspaces instead. Please let me know and I will close ASAP. Thank you!

Program version? 1.1.5

Program configuration dump? (ideally)

{
  "version": "1.1.5",
  "class": {
    "[Cc]odium(.*)": "󰨞",
    "(?i)Alacritty": "",
    "[Ff]irefox": "󰈹",
    "[Mm]pv": "",
    "DEFAULT": "󰝤",
    "[Nn]autilus": ""
  },
  "class_active": {},
  "initial_class": {},
  "initial_class_active": {},
  "workspaces_name": {
    "8": "eight",
    "10": "ten",
    "1": "one",
    "0": "zero",
    "6": "six",
    "3": "three",
    "2": "two",
    "5": "five",
    "7": "seven",
    "4": "four",
    "9": "nine"
  },
  "title_in_class": {
    "(?i)Alacritty": {
      "(?i)neovim": "neovim"
    }
  },
  "title_in_class_active": {
    "(?i)firefox": {
      "(?i)twitch": "<span color='purple'>{icon}</span>"
    }
  },
  "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": {
    "aProgram": "^$",
    "(?i)TestApp": "",
    "(?i)fcitx": ".*",
    "": "^$",
    "[Ss]team": "^$"
  },
  "format": {
    "dedup": false,
    "dedup_inactive_fullscreen": false,
    "delim": " ",
    "workspace": "{clients}",
    "workspace_empty": "󰝣",
    "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}"
  }
}

To Reproduce Steps to reproduce the behavior:

  1. Start hyprland-workspaces
  2. Start hyprland-autoname-workspaces
  3. Create more than one window
  4. Close a window
  5. The second window’s icon remains until a new event (i.e. workspace switch) is triggered

Expected behavior Workspace names are updated when a window is opened/closed.

Linux Distro (please complete the following information): Fedora 38

Additional context Video clearly illustrating problem: https://files.catbox.moe/pwgsdf.mkv

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Reactions: 1
  • Comments: 17 (3 by maintainers)

Most upvoted comments

It’s still not working for me FYI. I’m on Arch and I’m using the latest versions of waybar, hypr and hyprland-autoname-workspaces. I ensured to install the *-git versions of each package via AUR.

Is there any fix for this available yet or is one currently being worked on?

Thx,

EDIT: Ahhh nevermind, I just manually installed waybar from the latest master branch as was mentioned above and now it’s working as expected!

Issue doesn’t seem exist on my current system anymore:

$ waybar --version
Waybar v0.9.24

$ hyprland-autoname-workspaces --version
hyprland-autoname-workspaces 1.1.11

$ hyprctl version
Hyprland, built from branch  at commit v0.33.1  ().
Tag: 

flags: (if any)
debug

$ nixos-version
24.05.20231217.91a0070 (Uakari)

You need to either wait for the next release, or cherry-pick the necessary commit from the master branch: https://github.com/hyprwm/Hyprland/commit/2d100bf57e0c0184d307bd4173b1a8d9fc7130e1

@elythh I’m using NixOS (nixos-unstable) and was facing this problem as well. I was able to solve it by using the Waybar package from nixpkgs-wayland.

The hyperland-nvidia-git AUR package worked out for me! Thanks for the help

Could you confirm if your waybar is also built from latest master? The latest release is too old, doesn’t contain the necessary fix yet.