https://github.com/mcgillij/py3status-cpu-governor
p3status cpu_governor for i3
https://github.com/mcgillij/py3status-cpu-governor
archlinux aur cpu governor monitoring py3status python
Last synced: about 2 months ago
JSON representation
p3status cpu_governor for i3
- Host: GitHub
- URL: https://github.com/mcgillij/py3status-cpu-governor
- Owner: mcgillij
- License: mit
- Created: 2021-01-30T00:52:29.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-23T04:36:33.000Z (6 months ago)
- Last Synced: 2025-03-25T06:13:08.838Z (3 months ago)
- Topics: archlinux, aur, cpu, governor, monitoring, py3status, python
- Language: Python
- Homepage:
- Size: 80.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# py3status-cpu-governor
Python module for py3status to show the cpu_governor state in i3[](https://pepy.tech/project/py3status-cpu-governor)
This is handy if you manage your governor manually with something like or use [gamemode](https://github.com/FeralInteractive/gamemode)
``` bash
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
## Pre-reqs
* i3
* py3status## Installation
### From Git
``` bash
git clone https://github.com/mcgillij/py3status-cpu-governor.git
mkdir -p ~/.i3/py3status && cd ~/.i3/py3status
ln -s /src/py3status-cpu-governor/cpu_governor.py ./
```### With pip, pipenv or poetry
``` bash
pip install py3status-cpu-governor
pipenv install py3status-cpu-governor
poetry add py3status-cpu-governor && poetry install
```### With `yay`
``` bash
yay -S py3status-cpu-governor
```### Building Arch package w/PKGBUILD
``` bash
git clone https://aur.archlinux.org/py3status-cpu-governor.git
cd py3status-cpu-governor.git
makechrootpkg -c -r $HOME/$CHROOT
```### Installing Arch package
``` bash
sudo pacman -U --asdeps py3status-cpu-governor-*-any.pkg.tar.zst
```## Configuration
add the following line to your *~/.config/i3/i3status.conf*
``` bash
order += "cpu_governor"
```And restart your i3 session.