wingpanel-indicator-powersave is a user-discretion power management utility, serving as a frontend to throttlectl, a command-line user-discretion power management utility written in bash.
- libgranite-dev
- libpolkit-gobject-1-dev
- libglib2.0-dev
- libgtk-3-dev
- libwingpanel-dev
- policykit-1
- meson
- valac
git clone https://github.com/quequotion/wingpanel-indicator-powersave.git
cd wingpanel-indicator-powersave/
meson build --prefix=/usr
ninja -C build
sudo ninja -C build install
curl https://raw.githubusercontent.com/quequotion/pantheon-qq/master/throttlectl/throttlectl -o throttlectl
sudo install -Dm755 {,/usr/bin/}throttlectl
curl https://raw.githubusercontent.com/quequotion/pantheon-qq/master/throttlectl/performance -o performance
sudo install -Dm644 {,/etc/throttle.d/}performance
curl https://raw.githubusercontent.com/quequotion/pantheon-qq/master/throttlectl/powersave -o powersave
sudo install -Dm644 {,/etc/throttle.d/}powersave
curl https://raw.githubusercontent.com/quequotion/pantheon-qq/master/throttlectl/throttle-cut.service -o throttle-cut.service
sudo install -Dm644 {,/etc/systemd/system/}throttle-cut.service
A package is available in the AUR: wingpanel-indicator-powersave-git. See the comments there for instructions on building it (without an AUR helper).