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

[hyprland/workspaces] duplicate workspace buttons/labes #3912

Open
icsboyx opened this issue Jan 31, 2025 · 3 comments
Open

[hyprland/workspaces] duplicate workspace buttons/labes #3912

icsboyx opened this issue Jan 31, 2025 · 3 comments

Comments

@icsboyx
Copy link

icsboyx commented Jan 31, 2025

Hi to all

Image

all persistent workspace buttons are duplicated.

waybar --version
Waybar v0.11.0
hyprctl version
Hyprland 0.47.1 built from branch  at commit 75dff7205f6d2bd437abfb4196f700abee92581a  (version: bump to 0.47.1).
Date: Wed Jan 29 23:19:39 2025
Tag: v0.47.1, commits: 5756
built against:
 aquamarine 0.7.2
 hyprlang 0.6.0
 hyprutils 0.5.0
 hyprcursor 0.1.11
 hyprgraphics 0.1.1


no flags are set

In hyprland I have this config for workspace

workspace = 1, monitor:DP-4, persistent:true, default:true, # defaultName:Left
workspace = 2, monitor:DP-5, persistent:true, default:true, # defaultName:Center
workspace = 3, monitor:DP-6, persistent:true, default:true, # defaultName:Right

workspace = name:Discord, monitor:DP-6, persistent:true
workspace = name:Obs, monitor:DP-6, persistent:true

windowrule= workspace name:Discord, ^.*(discord).*$
windowrule= workspace name:Obs, ^.*(obs).*$

waybar config for [hyprland/workspaces] is default one

"modules-left": ["hyprland/workspaces"],
  "modules-center": ["hyprland/window"],
  "modules-right": [
    "idle_inhibitor",
    "pulseaudio",
    "network",
    "cpu",
    "memory",
    "temperature#CPU",
    "temperature#MB",
    "backlight",
    "keyboard-state",
    "hyprland/language",
    "battery",
    "clock",
    "tray",
    "custom/power"
  ],
  // Modules configuration
  "hyprland/workspaces": {},
  "keyboard-state": {
    "numlock": true,
    "capslock": true,
    "format": "{name} {icon}",
    "format-icons": {
      "locked": "",
      "unlocked": ""
    }
  },

logs form waybar:

[2025-01-31 12:53:42.563] [info] Using configuration file /home/icsboyx/.config/waybar/config
[2025-01-31 12:53:42.564] [info] Discovered appearance 'dark'
[2025-01-31 12:53:42.564] [info] Using CSS file /home/icsboyx/.config/waybar/style.css
[2025-01-31 12:53:42.575] [info] Hyprland IPC starting
[2025-01-31 12:53:42.576] [info] Loading persistent workspaces from Hyprland workspace rules
[2025-01-31 12:53:42.577] [warning] module backlight: Disabling module "backlight", No backlight found
[2025-01-31 12:53:42.577] [info] Found device Logitech USB Keyboard at '/dev/input/event5'
[2025-01-31 12:53:42.947] [warning] No batteries.
[2025-01-31 12:53:42.958] [info] Loading persistent workspaces from Hyprland workspace rules
[2025-01-31 12:53:42.959] [warning] module backlight: Disabling module "backlight", No backlight found
[2025-01-31 12:53:42.959] [info] Found device Logitech USB Keyboard at '/dev/input/event5'
[2025-01-31 12:53:43.317] [warning] No batteries.
[2025-01-31 12:53:43.318] [info] Loading persistent workspaces from Hyprland workspace rules
[2025-01-31 12:53:43.334] [warning] module backlight: Disabling module "backlight", No backlight found
[2025-01-31 12:53:43.334] [info] Found device Logitech USB Keyboard at '/dev/input/event5'
[2025-01-31 12:53:43.679] [warning] No batteries.

** (waybar:4863): WARNING **: 12:53:43.926: Status Notifier Item with bus name ':1.14' and object path '/org/ayatana/NotificationItem/nm_applet' is already registered
[2025-01-31 12:53:44.166] [info] Bar configured (width: 1920, height: 35) for output: DP-4
[2025-01-31 12:53:44.167] [info] Bar configured (width: 1920, height: 35) for output: DP-5
[2025-01-31 12:53:44.167] [info] Bar configured (width: 1920, height: 35) for output: DP-6

** (waybar:4863): WARNING **: 12:53:45.114: Status Notifier Item with bus name ':1.14' and object path '/org/ayatana/NotificationItem/nm_applet' is already registered

Hyprland workspace output:

hyprctl workspaces

workspace ID 1 (1) on monitor DP-4:
	monitorID: 0
	windows: 1
	hasfullscreen: 0
	lastwindow: 0x5a7d9a3d1250
	lastwindowtitle: [hyprland/workspaces] duplicate workspace buttons/labes · Issue #3912 · Alexays/Waybar - Google Chrome

workspace ID 2 (2) on monitor DP-5:
	monitorID: 1
	windows: 3
	hasfullscreen: 0
	lastwindow: 0x5a7d9a3e2180
	lastwindowtitle: icsboyx@xxx:~

workspace ID 3 (3) on monitor DP-6:
	monitorID: 2
	windows: 0
	hasfullscreen: 0
	lastwindow: 0x0
	lastwindowtitle:

workspace ID -1337 (Discord) on monitor DP-6:
	monitorID: 2
	windows: 1
	hasfullscreen: 0
	lastwindow: 0x5a7d9a364e90
	lastwindowtitle: Friends - Discord

workspace ID -1338 (Obs) on monitor DP-6:
	monitorID: 2
	windows: 1
	hasfullscreen: 0
	lastwindow: 0x5a7d9a473bf0
	lastwindowtitle: OBS 31.0.1-tytan652-1 - Profile: Untitled - Scenes: Untitled

Do you have any suggestion or workaround ?
Regards
ics

@msmafra
Copy link

msmafra commented Feb 5, 2025

Please share you full .jsonc and .css files. I tested with your snippet combined with my Hyrpand one and it did not duplicate persistent workspaces, at least not in Hyprland 0.47.2.

@Dregu
Copy link

Dregu commented Feb 7, 2025

I have the same issue on hyprland 0.47.2 and waybar 0.11.0. It seems to only affect workspaces that are both persistent:true and name:something. Conveniently ignore-workspaces: ['something'] hides only one the clones, so that's how I worked around this.

@msmafra
Copy link

msmafra commented Feb 7, 2025

I have the same issue on hyprland 0.47.2 and waybar 0.11.0. It seems to only affect workspaces that are both persistent:true and name:something. Conveniently ignore-workspaces: ['something'] hides only one the clones, so that's how I worked around this.

Oh yeah! Now I see it now. Named persistent ones are being duplicated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants