mirror of
https://gitlab.com/linuxstuff/dotfiles.git
synced 2026-06-19 04:06:00 +02:00
sensors_cpu
This commit is contained in:
@@ -192,6 +192,7 @@ type = internal/temperature
|
||||
interval = 3
|
||||
label = tmp: %temperature-c%
|
||||
|
||||
; run 'sensors-detect' from 'lm_sensors' first
|
||||
[module/sensors_cpu_pc]
|
||||
type = custom/script
|
||||
interval = 2
|
||||
@@ -207,7 +208,7 @@ interval = 2
|
||||
format = cpu: <label>
|
||||
label-maxlen=15
|
||||
label-ellipsis=true
|
||||
exec = "echo $((top -bn1 | grep 'Cpu(s)' | sed 's/.*, *\([0-9.]*\)%* id.*/\1/' | awk -F '.' '{print 100 - $1}' ; echo '%, ' ; sensors | grep "temp11" | awk -F' ' '{print $2}' | awk -F'.' '{print $1}' | tr -d '+'; echo '°') | tr -d '\n')"
|
||||
exec = "echo $((top -bn1 | grep 'Cpu(s)' | sed 's/.*, *\([0-9.]*\)%* id.*/\1/' | awk -F '.' '{print 100 - $1}' ; echo '%, ' ; sensors | grep "Package id 0:" | awk -F' ' '{print $4}' | awk -F'.' '{print $1}' | tr -d '+'; echo '°') | tr -d '\n')"
|
||||
click-left = "setsid alacritty -e sh -c htop"
|
||||
|
||||
[module/memory]
|
||||
|
||||
Reference in New Issue
Block a user