summaryrefslogtreecommitdiff
path: root/alsamixer
diff options
context:
space:
mode:
authorSimon Hengel <simon.hengel@gmx.net>2009-04-01 21:51:21 +0200
committerTakashi Iwai <tiwai@suse.de>2009-04-20 14:53:38 +0200
commit8e0eb860efb27f906d058713394be3f5ede3d1a2 (patch)
tree8b61d9c4909cbe5f37eba1144649eb07a303276b /alsamixer
parentd01bbbd7061e447adc1c4acd406a3f64148a2c6e (diff)
ALSA: Added vi-like key bindings to alsamixer.
* Added 'j' as an alias for KEY_DOWN * Added 'k' as an alias for KEY_UP Signed-off-by: Simon Hengel <simon.hengel@gmx.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'alsamixer')
-rw-r--r--alsamixer/alsamixer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/alsamixer/alsamixer.c b/alsamixer/alsamixer.c
index 414033e..c65c22d 100644
--- a/alsamixer/alsamixer.c
+++ b/alsamixer/alsamixer.c
@@ -2113,11 +2113,13 @@ mixer_iteration (void)
mixer_hscroll_delta -= 1;
break;
case KEY_UP:
+ case 'k':
case 'w':
case 'W':
mixer_vscroll_delta -= 1;
break;
case KEY_DOWN:
+ case 'j':
case 'x':
case 'X':
mixer_vscroll_delta += 1;
@@ -2179,12 +2181,14 @@ mixer_iteration (void)
break;
case 'w':
case KEY_UP:
+ case 'k':
mixer_set_delta(1);
case 'W':
mixer_add_delta(1);
break;
case 'x':
case KEY_DOWN:
+ case 'j':
mixer_set_delta(-1);
case 'X':
mixer_add_delta(-1);