b890a4efcd1564441c74159c3164b12b32068d08
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
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.
Languages
Lua
99.8%
Just
0.2%