From 56762a2e6867ff2fbeec2885eba0d5394974b51e Mon Sep 17 00:00:00 2001 From: tomoron Date: Thu, 19 Dec 2024 17:14:17 +0100 Subject: [PATCH] fix waybar module for laptop home --- homes/laptop/waybar.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homes/laptop/waybar.nix b/homes/laptop/waybar.nix index 500fcc6..ac41b50 100644 --- a/homes/laptop/waybar.nix +++ b/homes/laptop/waybar.nix @@ -1,7 +1,8 @@ { config, lib, pkgs, ... }: { - modules-right = ["custom/fans", "custom/dgpu"]; + programs.waybar.settings.mainBar = { + modules-right = lib.mkBefore ["custom/fans" "custom/dgpu"]; "custom/dgpu" = { exec-if = "test \"$(supergfxctl -g)\" = \"Hybrid\" || test \"$(supergfxctl -g)\" = \"Vfio\""; exec = "echo \"  on |\""; @@ -15,4 +16,5 @@ interval = 1; interval-if = 1; }; + }; }