dotfiles/roles/i3-dotfiles/files/scripts/sensors

11 lines
279 B
Plaintext
Raw Normal View History

2016-01-08 18:44:19 +01:00
#!/bin/sh
2017-12-16 00:46:51 +01:00
temp=$(acpi -t | grep "Thermal 1" | cut -d' ' -f4)
if [[ -z $temp ]]
then
temp=$(acpi -t | head -n1 | cut -d' ' -f4)
fi
echo -n "<span foreground='#ffd700' background='#8A458A'></span><span foreground='black' background='#ffd700'>  " $temp "º </span>"