A GTK tray applet for power management for i3/sway/KDE
Project description
pwr-tray
A GTK Tray Applet for Power/Energy Saving and System/DE Controls
Install
Details TBD
- Basically:
pipx install pwr-tray - Plus, various executables.
- Manually run as
pwr-trayto create config (in~/.config/pwr-tray/config.ini)
Manual Launch
- For foreground in terminal, run
pwr-tray - In background, run
setsid pwr-tray >/dev/null 2>&1 &
Output for Debugging
- unless stdout is a tty, say for debugging, ~/.config/pwr-tray/debug.log is used instead of stdout
- if we create a log file, its size is limited to 512K and then it is truncated
- TBD: more info (
tail -F,ssh, whatever)
Menu Options
Choose from three major power modes (to limit the effect of timeouts):
- ☀ PRESENTATION Mode - Keeps the monitors on and system up.
- ☀ NO-SLEEP Mode - Keeps the system up, but not the monitors on.
- ☀ NORMAL Mode - Allows the monitors off and system to go down (the default).
Or choose to start the screen saver / lock:
- ▷ Start Screensaver - start the screensaver (configure your screensaver separately, as you wish, but it should not be "None").
- ▷ Blank Monitors - Blanks the screen immediately and locks the screen (using your screen saver).
Or choose a new system state:
- ▼ Suspend System - suspends the system immediately.
- ▼ Reboot System - reboots the system immediately.
- ▼ Poweroff System - power down the system immediately.
Or choose new controls values:
- ♺ Chg Screen Idle: 10m->30m - change the time to start the screen saver; each time clicked, it changes to the next one; you can fix the timeout or choose a list of them from the command line options; the default list is [10m, 30m].
- ♺ Chg System Idle: 30m->60m - change the time to take the system down; clicking selects the next value; change on the command line; the default is [30m, 60m].
- ♺ Chg Down State: Suspend - toggle how the system goes down when System Idle expires, Suspend or PowerOff; you can select the default from the command line.
Notes:
- only the menu options that can have effect are shown (e.g., you cannot see "Presentation Mode" if in "Presentation Mode", you cannot see "Chg Screen Idle" if there is only one possibility, etc).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pwr_tray-0.1.tar.gz.
File metadata
- Download URL: pwr_tray-0.1.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42a44c64b5d764757e53596f7a3defb67071fbdb039596421908bd3f399fa895
|
|
| MD5 |
6a492fd3c1de5d1f452d391a7608838f
|
|
| BLAKE2b-256 |
eb5b7b8a3d1b7d708d43c47d617b42576dc4a217aa10bade89aa6e6c0f3b93cb
|
File details
Details for the file pwr_tray-0.1-py3-none-any.whl.
File metadata
- Download URL: pwr_tray-0.1-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de8a22701dc3076305e9e10780d40ed9fe16a43fe5b7e0314a4329f3014b1b4f
|
|
| MD5 |
dda15990eefdf7db559f5f27f812b3c0
|
|
| BLAKE2b-256 |
173292b2957afa1843f8ac6882d109437381021bfb78cb6f22a55a0b387c56d7
|