fix laptop specific waybar cells

This commit is contained in:
2026-06-16 20:43:41 +02:00
parent b9a33095f5
commit bba5ff934a
2 changed files with 4 additions and 4 deletions

View File

@ -189,8 +189,8 @@
format-low =""; format-low ="";
format = "󰋊 {percentage_used}%"; format = "󰋊 {percentage_used}%";
states.low = 0; states.low = 0;
states.warning = 20; states.warning = 70;
states.high= 30; states.high= 90;
}; };
"custom/separator" = { "custom/separator" = {

View File

@ -5,14 +5,14 @@
modules-right = lib.mkBefore ["custom/fans" "custom/dgpu"]; 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\"";
interval-if = 10; interval-if = 10;
interval = 100; interval = 100;
}; };
"custom/fans" = { "custom/fans" = {
exec-if = "test \"$(cat /sys/class/hwmon/hwmon6/fan1_input)\" -gt 0 -o \"$(cat /sys/class/hwmon/hwmon6/fan2_input)\" -gt 0"; exec-if = "test \"$(cat /sys/class/hwmon/hwmon6/fan1_input)\" -gt 0 -o \"$(cat /sys/class/hwmon/hwmon6/fan2_input)\" -gt 0";
exec = "echo \" \" \"$(($(cat /sys/class/hwmon/hwmon6/fan1_input) / 100)).$(($(cat /sys/class/hwmon/hwmon6/fan2_input) / 100)) |\""; exec = "echo \" \" \"$(($(cat /sys/class/hwmon/hwmon6/fan1_input) / 100)).$(($(cat /sys/class/hwmon/hwmon6/fan2_input) / 100))\"";
interval = 1; interval = 1;
interval-if = 1; interval-if = 1;
}; };