Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
6.46k stars 696 forks source link

Ghost icons for defaultNamed persistent workspaces Hyprland #3093

Open KrolixW opened 6 months ago

KrolixW commented 6 months ago

If you have a workspace with persistnent: true and some defaultName, you'll get a ghost icon with a workspace id. Issue wasn't present in previous version of waybar.

Steps to reproduce:

  1. Add to your hyprland config persistent workspace with default name: workspace = 1, defaultName:terminal, persistent:true
  2. Observe: 2 workspace icons for the same workspace, one with the name and one with id.

image

librowski commented 6 months ago

I've managed to workaround the issue, but it's far from ideal. Did it by removing defaultName from persistent workspaces config and using these settings for waybar:

  "hyprland/workspaces": {
    "format": "{icon}",
    "format-icons": {
      "1": "Web",
      "2": "Editor",
      "3": "Terminal",
      "4": "Debugging",
      "5": "Communication"
    }
  },
KrolixW commented 5 months ago

Okay i figured it out. with this setup waybar also creates icons for workspaces "name:n" where n is id of persistent workspace with default name

easiest workaround is to simply switch to those workspaces with: hyprctl dispatch workspace name:1 then once you leave the workspace, waybar receives destroyworkspace event and removes duplicate icon