From 795a13bb0adda29e67923af7c2ef5e5609439983 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Thu, 11 Apr 2024 11:35:38 -0400 Subject: [PATCH] waybar: autohide power profile and sleep inhibitor --- homeManagerModules/guiApps/waybar/default.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/homeManagerModules/guiApps/waybar/default.nix b/homeManagerModules/guiApps/waybar/default.nix index 0ee46a7d..15ddf152 100644 --- a/homeManagerModules/guiApps/waybar/default.nix +++ b/homeManagerModules/guiApps/waybar/default.nix @@ -32,9 +32,7 @@ "network" "pulseaudio" # "wireplumber" - "battery" - "power-profiles-daemon" - "inhibitor" + "group/power" "custom/logout" "clock" ]; @@ -57,6 +55,19 @@ "interval" = 60; "format" = "{:%I:%M%p}"; }; + "group/power" = { + "orientation" = "inherit"; + "drawer" = { + "transition-duration" = 500; + "children-class" = "not-power"; + "transition-left-to-right" = false; + }; + "modules" = [ + "battery" + "power-profiles-daemon" + "inhibitor" + ]; + }; "battery" = { "states" = {"critical" = 20;}; "format" = "{icon}";