Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lilydjwg/dpms-off
Turn off monitors to save power (for Wayland)
https://github.com/lilydjwg/dpms-off
rust wayland wlroots
Last synced: 8 days ago
JSON representation
Turn off monitors to save power (for Wayland)
- Host: GitHub
- URL: https://github.com/lilydjwg/dpms-off
- Owner: lilydjwg
- Created: 2021-11-15T11:11:52.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-06-17T09:55:47.000Z (5 months ago)
- Last Synced: 2024-06-17T11:15:57.840Z (5 months ago)
- Topics: rust, wayland, wlroots
- Language: Rust
- Homepage:
- Size: 23.4 KB
- Stars: 22
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Same as `xset dpms force off`, but for Wayland.
It requires [zwlr_output_power_manager_v1](https://wayland.app/protocols/wlr-output-power-management-unstable-v1) and [ext_idle_notifier_v1](https://wayland.app/protocols/ext-idle-notify-v1) support from the Wayland compositer. wlroots supports them.
It turns off all monitors, and then it turns them back on when user activity re-occurs. Don't interrupt the process, or your monitor won't be turned on later!
Install the Rust toolchain and `cargo build --release` to build and find the built binary under `target/release`.