Giovanni Harting 749bed7dfb refactor: improve robustness and consistency across all scripts
- kb-blackout: optimize trim(), fix log units, add jit fallback
- ac-power: extract error handling helper, add capture_stderr,
  validate timeout, add security note, rename CONFIG to config
- touch-gestures: add min_brightness config, optimize brightnessctl
  to single call, improve wpctl regex, add shutdown handler
2025-12-06 19:58:30 +01:00
2025-11-08 22:34:59 +01:00
2025-11-08 22:46:42 +01:00
2025-11-08 22:34:59 +01:00
2025-11-08 22:38:43 +01:00
2025-11-08 22:34:59 +01:00

mpv-scripts

Small collection of personal mpv Lua scripts. Drop any file from scripts/ into your ~/.config/mpv/scripts/ to enable it.

  • ac-power.lua — polls Home Assistant for a power sensor and shows wattage in the OSD with debounce/backoff.
  • kb-blackout.lua — dims or turns off the keyboard backlight while mpv is playing, restores it on pause/idle/unfocus.
  • touch-gestures.lua — tablet-friendly vertical edge swipes: right edge changes system volume (PipeWire/Pulse), left edge changes screen brightness (brightnessctl), with OSD feedback and bottom exclusion to avoid the OSC.
Description
No description provided
Readme MIT 75 KiB
Languages
Lua 99.8%
Just 0.2%