From a3bcd63b3db64250e34d9a1d8a4c78b34e17212f Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 31 May 2024 19:46:47 +0100 Subject: [PATCH] Add keybindings for controlling volume Add keybindings for increasing and decreasing volume in mpv. --- lib/nixos/home-manager/modules/mpv.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/nixos/home-manager/modules/mpv.nix b/lib/nixos/home-manager/modules/mpv.nix index 8c80492..163205c 100644 --- a/lib/nixos/home-manager/modules/mpv.nix +++ b/lib/nixos/home-manager/modules/mpv.nix @@ -1,5 +1,11 @@ { programs.mpv = { enable = true; + + # https://github.com/mpv-player/mpv/blob/master/etc/input.conf + bindings = { + "DOWN" = "add volume -5"; + "UP" = "add volume 5"; + }; }; }