Idea: suppress idle lock/screensaver while audio/video is actively playing #10440
LexGrishin
started this conversation in
Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Idea: suppress idle lock/screensaver while audio/video is actively playing
The problem
Omarchy's idle screensaver/lock timers are driven purely by keyboard/mouse idle time. Watching a movie or a long video without touching the input devices eventually triggers the screensaver/lock mid-playback, even though you're clearly not idle.
Proposal
Detect actively-playing (non-corked) PipeWire/PulseAudio streams and automatically drive the existing "Stay Awake" toggle from that:
This reuses the Stay Awake state that already exists (the cup icon /
idle enable/disableIPC) — it just needs something to drive it automatically based on playback instead of only manual toggling.Working implementation
I've been running this as a small user-level systemd service for a while and it's been solid — no dependencies beyond
pactl/PipeWire, about 25 lines:Run as a
systemd --userservice alongside the shell.Why I think it's worth considering upstream
This feels like a common enough pain point (anyone watching video on their laptop) that it could be a built-in toggle (e.g.
idle.suppressOnPlaybackinshell.json) instead of something everyone has to hand-roll. Happy to clean this up and open a PR if there's interest — mainly wanted to gauge whether this fits Omarchy's direction before doing that work.All reactions