summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-05-30 15:15:20 +0200
committerPřemysl Eric Janouch <p@janouch.name>2023-05-30 15:17:04 +0200
commitf05be01fba0113c324e0051b8997ef8c2ed90722 (patch)
tree56148dfd6c0f3d88c2b43149c419984870ed1972
parent14dba91dd1b13f1839687c3cd37c245768d36b95 (diff)
downloadnncmpp-f05be01fba0113c324e0051b8997ef8c2ed90722.tar.gz
nncmpp-f05be01fba0113c324e0051b8997ef8c2ed90722.tar.xz
nncmpp-f05be01fba0113c324e0051b8997ef8c2ed90722.zip
Change volume adjustment key bindings
Use the much more obvious ones.
-rw-r--r--NEWS2
-rw-r--r--nncmpp.adoc4
-rw-r--r--nncmpp.c4
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[] =
{