Commit Graph

7 Commits

Author SHA1 Message Date
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
f4064e013c fix: improve playback-health and touch-gestures tuning
- playback-health: skip bandwidth warning when buffer is healthy
  (configurable via bandwidth_buffer_mult, default 10× warning threshold)
- touch-gestures: use finer steps at low volume/brightness (<10%)
  (configurable via volume_step_fine, brightness_step_fine, fine_threshold)
2025-12-14 12:28:57 +01:00
b25c868422 fix: support native touch input on Wayland
mpv 0.40 on Wayland doesn't update mouse-pos during touch drags.
Add touch-pos property observer for reliable gesture tracking and
document the --native-touch=yes requirement.
2025-12-07 03:17:47 +01:00
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
6f716fe47c fix: ignore bottom edge so gestures avoid osc 2025-12-05 01:06:57 +01:00
73cfcf93c8 fix: probe wpctl/pactl without noisy errors 2025-12-05 00:58:36 +01:00
8f33a65c74 feat: add touch swipe system brightness and volume controls 2025-12-05 00:57:30 +01:00