Skip to content

Fan Speed (format) #4681

@pepsimax303

Description

@pepsimax303

Would it be possible to add a format for fan speed without having to write an executable bash script as a custom module. I find it strange that waybar can run external exec commands but can't run an internal exec command like say conky can with sensors and grep.
I'm just asking why it is so hard to write a format for fan speed.

"hwmon-path": "/sys/class/hwmon/hwmon2/temp_input", (this work just fine because there is a format.) "format": "{temperatureC}°C {icon}",

"hwmon-path": "/sys/devices/platform/nct6775.656/hwmon/hwmon5/fan1_input", (both not working as there is no format) {RPM} {Speed}

"hwmon-path": "/sys/devices/hwmon/hwmon5/fan1_input",

using cat
cat /sys/class/hwmon/hwmon5/fan1_input
647

cat /sys/devices/platform/nct6775.656/hwmon/hwmon5/fan1_input
656

or for a read out of all motherboard fans with one command

cat /sys/class/hwmon/hwmon5/fan[1-7]_input
656
937
1012
963

Conky run exec as internal no script needed.

${execi 1 sensors nct6798-isa-0290 | grep fan1 | cut -c 26-30}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions