fix waybar module for laptop home

This commit is contained in:
2024-12-19 17:14:17 +01:00
parent a6551444ec
commit 56762a2e68

View File

@ -1,7 +1,8 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
{ {
modules-right = ["custom/fans", "custom/dgpu"]; programs.waybar.settings.mainBar = {
modules-right = lib.mkBefore ["custom/fans" "custom/dgpu"];
"custom/dgpu" = { "custom/dgpu" = {
exec-if = "test \"$(supergfxctl -g)\" = \"Hybrid\" || test \"$(supergfxctl -g)\" = \"Vfio\""; exec-if = "test \"$(supergfxctl -g)\" = \"Hybrid\" || test \"$(supergfxctl -g)\" = \"Vfio\"";
exec = "echo \" on |\""; exec = "echo \" on |\"";
@ -15,4 +16,5 @@
interval = 1; interval = 1;
interval-if = 1; interval-if = 1;
}; };
};
} }