Alexays / Waybar

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

Unknown module: wlr/workspaces #2160

Open campbellcole opened 1 year ago

campbellcole commented 1 year ago

The documentation makes it seem like the wlroots workspace module should always be available, but I can't get it to work using NixOS on latest unstable nixpkgs:

$ waybar
[2023-05-06 18:50:58.876] [info] Using configuration file /home/campbell/.config/waybar/config.jsonc
[2023-05-06 18:50:58.876] [info] Using CSS file /home/campbell/.config/waybar/style.css
[2023-05-06 18:50:58.878] [warning] As using a timezone, some format args may be missing as the date library haven't got a release since 2018.
[2023-05-06 18:50:58.879] [warning] module wlr/workspaces: Unknown module: wlr/workspaces

Am I typing something wrong? My dotfiles are basically a copy paste of somebody elses just ported for NixOS, so I didn't even make this waybar configuration. Thanks for your time.

Histalek commented 1 year ago

waybar needs to be built with -Dexperimental=true for wlr/workspaces to be available. See #1766

theshatterstone commented 1 year ago

On NixOS, you can add the following in your environment.systemPackages, which will make it so that Waybar is recompiled with experimental, every time you run a rebuild-switch:

(waybar.overrideAttrs (oldAttrs: { mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true "]; }))