A lightweight Linux system tray widget that displays the current CPU temperature as a color-coded icon.
- Shows CPU temperature directly in the system tray
- Color-coded icon: green (<50°C), yellow (<70°C), orange (<85°C), red (>=85°C)
- Updates every 3 seconds
- Works with Intel (coretemp) and AMD (k10temp) sensors
- Falls back to sysfs if psutil sensors are unavailable
- Compatible with GNOME, KDE, XFCE, Cinnamon, MATE
- Python 3.6+
- Linux with thermal sensor support
- One of: GNOME, KDE, XFCE, Cinnamon, MATE (for tray icon)
git clone <repo-url> cpu-temperature-widget
cd cpu-temperature-widget
./install.shThe installer will:
- Install Python dependencies (psutil, Pillow, pystray)
- Add the widget to system autostart
The widget will start automatically on next login.
# Install dependencies
pip install psutil Pillow pystray
# Run the widget
python3 cpu_tray.py./install.shmkdir -p ~/.config/autostart
cat > ~/.config/autostart/cpu-tray.desktop << EOF
[Desktop Entry]
Type=Application
Name=CPU Temperature Tray
Exec=python3 $(pwd)/cpu_tray.py
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
EOFrm ~/.config/autostart/cpu-tray.desktop- The widget starts in the system tray and shows current CPU temperature
- Right-click the icon to exit
MIT