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 not working anymore since 0.10.0 #3026

Closed
DamianRyse opened this issue Mar 18, 2024 · 11 comments
Closed

hyprland/workspaces not working anymore since 0.10.0 #3026

DamianRyse opened this issue Mar 18, 2024 · 11 comments
Labels
bug Something isn't working custom hyprland

Comments

@DamianRyse
Copy link

Since the upgrade to waybar version 0.10.0, the module hyprland/workspaces is not showing up anymore. I am using the following configuration:

    "hyprland/workspaces": {
        "disable-scroll": true,
        "all-outputs": true,
        "on-click": "activate",
	"format": "{name}"
    },

waybar shows no errors when executing in the terminal. On the other hand, hyprland/window still works just fine.

@github-actions github-actions bot added bug Something isn't working custom hyprland labels Mar 18, 2024
@tomben13
Copy link

I cannot reproduce your issue. Can you share your full waybar and hyprland configs ?

@DamianRyse
Copy link
Author

config-files.tar.gz

@tomben13 see file attached.

@tomben13
Copy link

Still cannot reproduce. Which version of hyprland are you on ?
Also this may be related to your styles. Can you share you CSS file ?

@niksingh710
Copy link

for me if i am adding workspaces without any css

  "hyprland/workspaces": {
    "format": "<sub>{icon}</sub>",
    "format-window-separator": "\n",
    "all-ouputs": true,
    "format-icons": {
      "active": " 󰮯 ",
      "default": "󰊠 ",
      "empty": "󰧵 "
    }
  },

and then switch focus between new workspace or monitor it crashes waybar

󰘧 waybar
[2024-03-18 18:54:22.523] [info] Using configuration file /home/niksingh710/.config/waybar/config.jsonc
[2024-03-18 18:54:22.523] [info] Including resource file: ~/.config/waybar/bars/top.jsonc
[2024-03-18 18:54:22.525] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
[2024-03-18 18:54:22.525] [info] Using CSS file /home/niksingh710/.config/waybar/style.css

(waybar:238188): Gtk-WARNING **: 18:54:22.526: Theme parsing error: style.css:13:13: The 'icon-shadow' property has been renamed to '-gtk-icon-shadow'
[2024-03-18 18:54:22.532] [warning] persistent_workspaces is deprecated. Please change config to use persistent-workspaces.
[2024-03-18 18:54:22.532] [info] Hyprland IPC starting
[2024-03-18 18:54:22.627] [info] Loading persistent workspaces from Waybar config
[2024-03-18 18:54:22.628] [info] Loading persistent workspaces from Hyprland workspace rules
[2024-03-18 18:54:22.814] [error] hyprland/workspaces: in Json::Value::resolveReference(key, end): requires objectValue
[2024-03-18 18:54:22.844] [info] Bar configured (width: 32, height: 1080) for output: DP-1

** (waybar:238188): CRITICAL **: 18:54:23.683:
unhandled exception (type Glib::Error) in signal handler:
domain: g-dbus-error-quark
code  : 41
what  : GDBus.Error:org.freedesktop.DBus.Error.UnknownObject: Unknown object '/org/freedesktop/login1/session/self'.

[2024-03-18 18:54:24.579] [error] hyprland/workspaces: in Json::Value::resolveReference(key, end): requires objectValue
[2024-03-18 18:54:24.935] [error] hyprland/workspaces: in Json::Value::resolveReference(key, end): requires objectValue
[2024-03-18 18:54:26.066] [error] hyprland/workspaces: in Json::Value::resolveReference(key, end): requires objectValue
[2024-03-18 18:54:26.105] [error] hyprland/workspaces: in Json::Value::resolveReference(key, end): requires objectValue
[2024-03-18 18:54:26.922] [error] hyprland/workspaces: in Json::Value::resolveReference(key, end): requires objectValue
[2024-03-18 18:54:27.693] [error] hyprland/workspaces: in Json::Value::resolveReference(key, end): requires objectValue
[2024-03-18 18:54:28.348] [error] hyprland/workspaces: in Json::Value::resolveReference(key, end): requires objectValue
zsh: segmentation fault (core dumped)  waybar

@Syndelis
Copy link
Contributor

What versions of Hyprland and Waybar are you using? Does downgrading Waybar fix it for you?

@DamianRyse
Copy link
Author

It turns out I was running on an older Hyprland version (0.31 of an unofficial nvidia package). After removing the old one and installing 0.35 via pacman, it is working again.

@niksingh710
Copy link

What versions of Hyprland and Waybar are you using? Does downgrading Waybar fix it for you?

for me the error is in -git version but not in the release version of 0.10

@tomben13
Copy link

@niksingh710 Have you upgraded to latest git version ? This should have been fixed by #3023

@niksingh710
Copy link

@niksingh710 Have you upgraded to latest git version ? This should have been fixed by #3023

Nop, I reverted to the stable release package.

@tomben13
Copy link

Nop, I reverted to the stable release package.

Can you test again on the latest git version ?

@niksingh710
Copy link

Nop, I reverted to the stable release package.

Can you test again on the latest git version ?

yep just installed and it is working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working custom hyprland
Projects
None yet
Development

No branches or pull requests

4 participants