fix laptop specific waybar cells
This commit is contained in:
@ -189,8 +189,8 @@
|
||||
format-low ="";
|
||||
format = " {percentage_used}%";
|
||||
states.low = 0;
|
||||
states.warning = 20;
|
||||
states.high= 30;
|
||||
states.warning = 70;
|
||||
states.high= 90;
|
||||
};
|
||||
|
||||
"custom/separator" = {
|
||||
|
||||
@ -5,14 +5,14 @@
|
||||
modules-right = lib.mkBefore ["custom/fans" "custom/dgpu"];
|
||||
"custom/dgpu" = {
|
||||
exec-if = "test \"$(supergfxctl -g)\" = \"Hybrid\" || test \"$(supergfxctl -g)\" = \"Vfio\"";
|
||||
exec = "echo \" on |\"";
|
||||
exec = "echo \" on\"";
|
||||
interval-if = 10;
|
||||
interval = 100;
|
||||
};
|
||||
|
||||
"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 = "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-if = 1;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user