An open API service indexing awesome lists of open source software.

https://github.com/n0rbert/powerprofilesctl-tray

Tray icon indicator for powerprofilesctl for laptop, with support of modern Ayatana Indicators
https://github.com/n0rbert/powerprofilesctl-tray

ayatana ayatana-appindicator debian debian-desktop debian-linux mate mate-desktop mate-desktop-environment mate-panel

Last synced: 4 months ago
JSON representation

Tray icon indicator for powerprofilesctl for laptop, with support of modern Ayatana Indicators

Awesome Lists containing this project

README

          

# powerprofilesctl-tray

Tray icon indicator for `powerprofilesctl` command (from [power-profiles-daemon](https://gitlab.freedesktop.org/upower/power-profiles-daemon) project) for laptop, with support of modern Ayatana Indicators.

This indicator is compatible with Debian 12 (*bookworm*), it combines well with [debian-mate-ayatana-settings](https://github.com/N0rbert/debian-mate-ayatana-settings).

Depending on user needs, it may be packaged locally and then installed using below commands:

```
sudo apt-get update
sudo apt-get install debhelper git

cd ~/Downloads
git clone https://github.com/N0rbert/powerprofilesctl-tray
cd powerprofilesctl-tray
dpkg-buildpackage -uc -us -b
sudo apt-get install ../powerprofilesctl-tray*.deb
```

and then relogin or reboot and login to get indicator shown in the tray.

This script may be installed manually for single user by installing dependencies - `power-profiles-daemon`, `gir1.2-ayatanaappindicator3-0.1` and `adwaita-icon-theme`:

```
sudo apt-get update
sudo apt-get install power-profiles-daemon gir1.2-ayatanaappindicator3-0.1 adwaita-icon-theme
```

and then cloning this repository and copying needed files to the home folder by using commands below:

```
cd ~/Downloads
git clone https://github.com/N0rbert/powerprofilesctl-tray
cd powerprofilesctl-tray

mkdir ~/bin
cp -v usr/bin/powerprofilesctl-tray.py ~/bin/
chmod +x ~/bin/powerprofilesctl-tray.py

mkdir -p ~/.config/autostart/

cat < ~/.config/autostart/powerprofilesctl-tray.py.desktop
[Desktop Entry]
Type=Application
Exec=python3 $HOME/bin/powerprofilesctl-tray.py
Name=powerprofilesctl-tray
Comment=Tray icon indicator for powerprofilesctl for laptop, with support of modern Ayatana Indicators
X-MATE-Autostart-Delay=0
EOF
```

and then relogin or reboot and login to get indicator shown in the tray.

The installed indicator will be placed inside MATE Panel as tray icon and will look as shown below:

| **Profile ↓** / **Look →** | **Default Debian with MATE desktop task** | **Debian with modern Ayatana Indicators using [debian-mate-ayatana-settings](https://github.com/N0rbert/debian-mate-ayatana-settings)** |
|:---------------------------:|:-----------------------------------------:|:---------------------------------------------------------------------------------------------------------------------------------------:|
| **Power-saver** | ![](.github/debian-mate-default_power-saver.png) | ![](.github/debian-mate-ayatana_power-saver.png) |
| **Balanced** | ![](.github/debian-mate-default_balanced.png) | ![](.github/debian-mate-ayatana_balanced.png) |
| **Performance** | ![](.github/debian-mate-default_performance.png) | ![](.github/debian-mate-ayatana_performance.png) |

Removal procedure is simple:

```
rm -v ~/.config/autostart/powerprofilesctl-tray.py.desktop
rm -v ~/bin/powerprofilesctl-tray.py
```

Note: installation on the Debian 11 (*bullseye*) is possible too, but here user should download and install packages `power-profiles-daemon` and `adwaita-icon-theme` from Debian 12 (*bookworm*) repository manually.