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

11 lines
279 B
Bash
Executable File

#!/bin/sh
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>"