SkillAgentSearch skills...

Psp

Rust Cross-platform Power State Plugin (PSP). Monitoring the power state and emit events via an MPSC channel.

Install / Use

/learn @pewsheen/Psp
About this skill

Quality Score

0/100

Category

Operations

Supported Platforms

Universal

Tags

README

Power State Plugin (PSP)

Rust Cross-platform Power State Plugin (PSP).

Using an MPSC channel for emitting events when screen-locked, unlocked, sleep, wake up.

Support Platform

  • [x] macOS
  • [x] Windows
  • [x] Unix (with D-Bus only)

Events

ScreenLocked

When you logout the session or close your laptop lid

ScreenUnlocked

When you login the session or open the laptop lid

Resume

Resume from sleep mode

Suspend

Turn your computer into sleep mode

Examples

With Tao

cargo run --example tao

With winit

cargo run --example winit
View on GitHub
GitHub Stars9
CategoryOperations
Updated3mo ago
Forks11

Languages

Rust

Security Score

82/100

Audited on Dec 20, 2025

No findings