Alexays / Waybar

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

Module wrl/workspaes: Unkown module (NixOS, using overlay) #2116

Open danielgomez3 opened 1 year ago

danielgomez3 commented 1 year ago

The majority of this debug log is not related to this issue, but despite all available efforts, wrl/workspaces is just not recognized, despite using an overlay. Full Output:

$ waybar                                                                                                                  [15:46:40]
[2023-04-14 15:46:49.821] [info] Using configuration file /home/daniel/.config/waybar/config
[2023-04-14 15:46:49.822] [info] Using CSS file //nix/store/i37dbigxsa4j74qgjzmkbph6d7ycj76g-waybar-0.9.17/etc/xdg/waybar/style.css
[2023-04-14 15:46:49.828] [warning] module wrl/workspaces: Unknown module: wrl/workspaces
[2023-04-14 15:46:49.834] [warning] module sway/mode: Disabling module "sway/mode", Socket path is empty
[2023-04-14 15:46:49.852] [warning] module sway/scratchpad: Disabling module "sway/scratchpad", Socket path is empty
[2023-04-14 15:46:49.857] [warning] module sway/window: Disabling module "sway/window", Socket path is empty
[2023-04-14 15:46:49.858] [error] media stopped unexpectedly, is it endless?
[2023-04-14 15:46:49.861] [warning] module backlight: Disabling module "backlight", No backlight found
[2023-04-14 15:46:49.861] [warning] Can't open /dev/input/event16 (are you in the input group?): EACCES Permission denied
[2023-04-14 15:46:49.861] [warning] Can't open /dev/input/event15 (are you in the input group?): EACCES Permission denied
[2023-04-14 15:46:49.861] [warning] Can't open /dev/input/event14 (are you in the input group?): EACCES Permission denied
[2023-04-14 15:46:49.861] [warning] Can't open /dev/input/event13 (are you in the input group?): EACCES Permission denied
[2023-04-14 15:46:49.861] [warning] Can't open /dev/input/event12 (are you in the input group?): EACCES Permission denied
[2023-04-14 15:46:49.861] [warning] Can't open /dev/input/event11 (are you in the input group?): EACCES Permission denied
[2023-04-14 15:46:49.861] [warning] Can't open /dev/input/mouse0 (are you in the input group?): EACCES Permission denied
[2023-04-14 15:46:49.861] [warning] Can't open /dev/input/mice (are you in the input group?): EACCES Permission denied
[2023-04-14 15:46:49.861] [warning] Can't open /dev/input/event10 (are you in the input group?): EACCES Permission denied
[2023-04-14 15:46:49.861] [warning] Can't open /dev/input/event9 (are you in the input group?): EACCES Permission denied
[2023-04-14 15:46:49.861] [warning] Can't open /dev/input/event8 (are you in the input group?): EACCES Permission denied
[2023-04-14 15:46:49.861] [warning] Can't open /dev/input/event7 (are you in the input group?): EACCES Permission denied
[2023-04-14 15:46:49.861] [warning] Can't open /dev/input/event6 (are you in the input group?): EACCES Permission denied
[2023-04-14 15:46:49.861] [warning] Can't open /dev/input/event5 (are you in the input group?): EACCES Permission denied
[2023-04-14 15:46:49.861] [warning] Can't open /dev/input/event4 (are you in the input group?): EACCES Permission denied
[2023-04-14 15:46:49.861] [warning] Can't open /dev/input/event3 (are you in the input group?): EACCES Permission denied
[2023-04-14 15:46:49.861] [warning] Can't open /dev/input/event2 (are you in the input group?): EACCES Permission denied
[2023-04-14 15:46:49.861] [warning] Can't open /dev/input/event1 (are you in the input group?): EACCES Permission denied
[2023-04-14 15:46:49.861] [warning] Can't open /dev/input/event0 (are you in the input group?): EACCES Permission denied
[2023-04-14 15:46:49.861] [warning] module keyboard-state: Disabling module "keyboard-state", Failed to find keyboard device: EACCES Permission denied
[2023-04-14 15:46:49.867] [warning] module sway/language: Disabling module "sway/language", Socket path is empty
[2023-04-14 15:46:49.868] [warning] No batteries.
[2023-04-14 15:46:49.868] [warning] As using a timezone, some format args may be missing as the date library haven't got a release since 2018.
[2023-04-14 15:46:49.868] [warning] No battery named BAT2
[2023-04-14 15:46:49.999] [info] Bar configured (width: 1920, height: 30) for output: HDMI-A-1
[2023-04-14 15:46:50.861] [error] mpd: Failed to connect to MPD: Connection refused
[2023-04-14 15:46:52.865] [error] mpd: Failed to connect to MPD: Connection refused
[2023-04-14 15:46:54.869] [error] mpd: Failed to connect to MPD: Connection refused
Hubro commented 1 year ago

Same here, getting:

[2023-04-16 16:17:59.541] [warning] module wlr/workspaces: Unknown module: wlr/workspaces

With Hyprland :man_shrugging:


EDIT: @danielgomez3 I see you're mistyped wlr/workspaces both in your config and in your issue title. I guess that's your problem.

I've written it correctly though and I'm still getting the warning, and the module is not showing up :thinking:

danielgomez3 commented 1 year ago

Thanks, I still get the error regardless. I was just in a rush trying to replicate it.

Hubro commented 1 year ago

Seems this module is experimental and needs a build flag. That surprised me since the module is documented in the man pages on my system.

I installed waybar from the waybar-hyprland AUR package and now the module works.

danielgomez3 commented 1 year ago

@Hubro Unfortunately this is for NixOS, and downloaded via the Nix Package manager.

theshatterstone commented 1 year ago

@danielgomez3 It seems that NixOS doesn't package waybar with the experimental options enabled. Maybe you can try to get in touch with the maintainers to see if they are interested in creating a nixpkg for hyprland with the experimental build flag, and maybe if they would be willing to create a way for you to use the hyprctl and cava patches on NixOS (the patches applied in waybar-hyprland on the AUR)?

theshatterstone commented 1 year ago

@danielgomez3 @Hubro The way to fix this is via compiling Waybar with the experimental option by adding the following to configuration.nix in the packages section:

environment.systemPackages = with pkgs; [
   (waybar.overrideAttrs (oldAttrs: {
    mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
    }))
]
khaneliman commented 1 year ago

@Alexays this can be closed, nixpkgs includes experimental support by default now since https://github.com/NixOS/nixpkgs/pull/251115