Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

bug(hyprland/workspaces): not updating windows icons when using `swapwindow` bind to move a window to other screen

Open puchy22 opened this issue 5 months ago • 0 comments

Bug Report

Description

I have a dual monitor setup. When I open a window on one screen and I swap two windows between monitors with the swapwindow bind the module hyprland/workspaces does not update the windows icons correctly. Issue #2993 is similar to this one.

Expected behavior

When I swap to windows between monitors the icons in both workspaces have to change too, when use bind movewindow or workspace, X this work in this way.

My configuration

Hyprland binds

bind = $mainMod CONTROL_L, left, swapwindow, l
bind = $mainMod CONTROL_L, right, swapwindow, r
bind = $mainMod CONTROL_L, up, swapwindow, u
bind = $mainMod CONTROL_L, down, swapwindow, d

Waybar config (hyprland/workspaces module)

  "hyprland/workspaces": {
    "on-click": "activate",
    "active-only": false,
    "format": "<big>{icon} {windows}</big>",
    "format-icons": {
      "active": "\uf192",
      "empty": "\uf10c",
      "default": "\uf10c"
    },
    "persistent-workspaces": {
      "DP-3": [
        1,
        2,
        3,
        4,
        5
      ],
      "eDP-1": [
        6,
        7,
        8,
        9,
        10
      ]
    },
    "window-rewrite-default": "\uf059",
    "window-rewrite": {
      "title<.*youtube.*>": "\uf16a",
      "title<.*github.*>": "\uf113",
      "title<.*chatgpt.*>": "\uec1e",
      "class<librewolf>": "\udb80\ude39",
      "class<chromium>": "\uf268",
      "foot": "\ue795",
      "code": "\udb82\ude1e",
      "thunar": "\udb80\ude4b"
    }
  },

Enviroment

Distro: Arch Linux Kernel name: Linux Kernel version: 6.10.10-arch1-1 Way Bar Version: Waybar v0.11.0

puchy22 avatar Sep 26 '24 20:09 puchy22