From 82a74d8695a6942a46124f499e1b4ef2764d9e11 Mon Sep 17 00:00:00 2001 From: Nathanael Robbins Date: Mon, 29 Apr 2024 21:23:33 -0400 Subject: [PATCH] REVERT: waybar: fix hyprland workspaces Wait for https://github.com/Alexays/Waybar/pull/3183 to land in a Nixpkgs release --- home-manager/modules/gui/bar.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/home-manager/modules/gui/bar.nix b/home-manager/modules/gui/bar.nix index 9772c5e..9b6b893 100644 --- a/home-manager/modules/gui/bar.nix +++ b/home-manager/modules/gui/bar.nix @@ -17,8 +17,13 @@ in programs.waybar = { style = ./bar.css; enable = true; - package = pkgs.waybar.overrideAttrs (oldAttrs: { - mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ]; + package = pkgs.waybar.overrideAttrs (oldAttrs: { # TODO: Revert when Waybar 0.10.3 lands in Nixpkgs + src = pkgs.fetchFromGitHub { + owner = "Alexays"; + repo = "Waybar"; + rev = "f41458ea24a57bb71b629089396c31fe4dd97f1c"; + hash = "sha256-rgBFaUVE8x/NoZyq8TK20IqbTBQa4deYm+Jc+L2aHEg="; + }; }); settings = [ { @@ -126,6 +131,12 @@ in interval = 60; format = "{:%I:%M %p}"; }; + "hyprland/workspaces" = { + disable-scroll = false; + format = "{name}"; + persistent-workspaces = { + }; + }; } ]; };