Skip to content

About

A lightweight Linux system tray widget that displays the current CPU temperature as a color-coded icon.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

CPU Temperature Tray

A lightweight Linux system tray widget that displays the current CPU temperature as a color-coded icon.

Features

  • 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

Requirements

  • Python 3.6+
  • Linux with thermal sensor support
  • One of: GNOME, KDE, XFCE, Cinnamon, MATE (for tray icon)

Quick Install

git clone <repo-url> cpu-temperature-widget
cd cpu-temperature-widget
./install.sh

The installer will:

  1. Install Python dependencies (psutil, Pillow, pystray)
  2. Add the widget to system autostart

The widget will start automatically on next login.

Manual Install

# Install dependencies
pip install psutil Pillow pystray

# Run the widget
python3 cpu_tray.py

Autostart Setup

Using the install script (recommended)

./install.sh

Manual: Desktop autostart

mkdir -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
EOF

Remove from autostart

rm ~/.config/autostart/cpu-tray.desktop

Usage

  • The widget starts in the system tray and shows current CPU temperature
  • Right-click the icon to exit

License

MIT

About

A lightweight Linux system tray widget that displays the current CPU temperature as a color-coded icon.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages