From f05be01fba0113c324e0051b8997ef8c2ed90722 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Tue, 30 May 2023 15:15:20 +0200 Subject: Change volume adjustment key bindings Use the much more obvious ones. --- NEWS | 2 ++ nncmpp.adoc | 4 ++-- nncmpp.c | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index a33f735..459689d 100644 --- a/NEWS +++ b/NEWS @@ -15,6 +15,8 @@ Unreleased * Added Readline-like M-u, M-l, M-c editor bindings + * Changed volume adjustment bindings to use +/- keys + 2.0.0 (2022-09-03) diff --git a/nncmpp.adoc b/nncmpp.adoc index 5b1cfdb..2fc8361 100644 --- a/nncmpp.adoc +++ b/nncmpp.adoc @@ -117,8 +117,8 @@ as in the snippet above. To replace the default volume control bindings, use: .... normal = { - "M-PageUp" = "pulse-volume-up" - "M-PageDown" = "pulse-volume-down" + "+" = "pulse-volume-up" + "-" = "pulse-volume-down" } .... diff --git a/nncmpp.c b/nncmpp.c index e05af0b..5ea6543 100644 --- a/nncmpp.c +++ b/nncmpp.c @@ -3073,8 +3073,8 @@ g_normal_defaults[] = { "Space", ACTION_MPD_TOGGLE }, { "C-Space", ACTION_MPD_STOP }, { "u", ACTION_MPD_UPDATE_DB }, - { "M-PageUp", ACTION_MPD_VOLUME_UP }, - { "M-PageDown", ACTION_MPD_VOLUME_DOWN }, + { "+", ACTION_MPD_VOLUME_UP }, + { "-", ACTION_MPD_VOLUME_DOWN }, }, g_editor_defaults[] = { -- cgit v1.2.3-70-g09d2