Skip to main content

py3status monitor to show the state of your cpu governor

Project description

py3status-cpu-governor

Python module for py3status to show the cpu_governor state in i3

This is handy if you manage your governor manually with something like

alias performance_mode='echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor'
alias powersave_mode='echo powersave | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor'
alias schedutil_mode='echo schedutil | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor'
alias cpu_frequency_watch='watch -n.5 "cat /proc/cpuinfo | grep \"^[c]pu MHz\""'

Screenshot

py3status cpu_governor

Pre-reqs

  • i3
  • py3status

Installation

From Git

git clone https://github.com/mcgillij/py3status-cpu-governor.git
mkdir -p ~/.i3/py3status && cd ~/.i3/py3status
ln -s <PATH_TO_CLONED_REPO>/src/py3status-cpu-governor/cpu_governor.py ./

With Pip

pip install py3status-cpu-governor

Building From AUR (Arch)

git clone https://aur.archlinux.org/py3status-cpu-governor.git
cd py3status-cpu-governor.git
makechrootpkg -c -r $HOME/$CHROOT

Installing Arch package

sudo pacman -U --asdeps py3status-cpu-governor-*-any.pkg.tar.zst

Configuration

add the following line to your ~/.config/i3/i3status.conf

order += "cpu_governor"

And restart your i3 session.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py3status-cpu-governor-0.1.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py3status_cpu_governor-0.1.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file py3status-cpu-governor-0.1.2.tar.gz.

File metadata

  • Download URL: py3status-cpu-governor-0.1.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.2 Linux/5.11.2-zen1-1-zen

File hashes

Hashes for py3status-cpu-governor-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f9afdda524eb4bff291dd766d022cb45b44f007894d864c122ecf746df3f5275
MD5 f0e38dd215a7360c63eeb195db24ea60
BLAKE2b-256 9b92ce10e0626677ef4dd3d6193b425e0355ae308d85e70e5caac6958ab051d4

See more details on using hashes here.

File details

Details for the file py3status_cpu_governor-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for py3status_cpu_governor-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 06460098f061123f0d93091347440d6ba527ffd221ec9614cedef4fb3dcdf847
MD5 31ec7d545ac145485fc510198a895946
BLAKE2b-256 566922250f3de4d5916f8fd472131bc0f0dc820910536682a7497e9b807fa12d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page