Format GHz with leading zero
This commit is contained in:
parent
767679ab52
commit
a1e43a186d
|
@ -100,7 +100,7 @@ top_panel.create = function(s)
|
|||
end,
|
||||
}),
|
||||
wibox.widget.textbox(' | '),
|
||||
awful.widget.watch('bash -c "/usr/bin/cat /proc/cpuinfo | grep MHz | cut -b 12- | sort -r | head -n 1 | xargs printf \'%f / 1000\n\' | bc -l | cut -b -4"', 1),
|
||||
awful.widget.watch('bash -c "/usr/bin/cat /proc/cpuinfo | grep MHz | cut -b 12- | sort -r | head -n 1 | xargs printf \'%f / 1000\n\' | bc -l | awk \'{printf \\"%.2f\\n\\", $0}\'"', 1),
|
||||
wibox.widget.textbox('GHz | '),
|
||||
awful.widget.watch('bash -c "sensors | grep Tctl | cut -f 10 -d \' \' | cut -c 2-"', 5),
|
||||
wibox.widget.textbox(' '),
|
||||
|
|
Loading…
Reference in New Issue