Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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-panel

Last synced: 25 days 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). For standalone use one should install three packages - `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
```

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.

To install this indicator for the current user use the commands below:

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

mkdir ~/bin
cp -v 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
Hidden=false
Name[en_US]=powerprofilesctl-tray
Name=powerprofilesctl-tray
Comment[en_US]=powerprofilesctl-tray
Comment=powerprofilesctl-tray
X-MATE-Autostart-Delay=0
EOF
```

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
```