Giovanni Harting b890a4efcd feat: add power gauge/delta/minmax to ac-power and extract shared utils
ac-power enhancements:
- Add visual block gauge [████░░░░] colored by power level
- Show delta indicator (+50W) colored by trend (green=dropping, red=rising)
- Track min/max values with persistence to ~/.cache/mpv/
- Multi-process safe file writes (merges values on save)
- New script-message: ac-power-reset-minmax

Shared library (scripts/lib/utils.lua):
- Extract common helpers: trim, clamp, rgb_to_bgr, colorize
- Update all scripts to use shared module via package.path
2025-12-18 17:14:36 +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%