diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-12-13 10:59:52 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-12-13 16:30:37 +0100 |
commit | 1e064f8a0a3e3c5d9b8b3cf3f2faf65f4ca55b66 (patch) | |
tree | 7c76fc0869607332d5ea08556e79dcf3b98b9af1 /src/config.ini | |
parent | 0cd9f7602fe16b52cf728d4b1b52650fff338efd (diff) | |
download | pa-sink-ctl-1e064f8a0a3e3c5d9b8b3cf3f2faf65f4ca55b66.tar.gz pa-sink-ctl-1e064f8a0a3e3c5d9b8b3cf3f2faf65f4ca55b66.tar.bz2 pa-sink-ctl-1e064f8a0a3e3c5d9b8b3cf3f2faf65f4ca55b66.zip |
config: Read keymap from configuration file
This needed a split of the switch that handled input before
into several small callback functions.
Diffstat (limited to 'src/config.ini')
-rw-r--r-- | src/config.ini | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/config.ini b/src/config.ini index ecedead..cd658f1 100644 --- a/src/config.ini +++ b/src/config.ini @@ -3,6 +3,20 @@ ## List of properties to try to use as sink names, or sink name itself if empty. name-properties = device.description; device.product.name +[input] +## Key starting with a 0 and length > 1 are encoded in octal or hexadecimal, +## depending on second character being an 'x'. +## See ncurses.h for other presudo-character tokens +up = 0403:k;w +down = 0402;j;s +volume-down = 0404;h;a +volume-up = 0405;l;d +mute = m;x;M; +# switch sink input using return, tab or space +switch = 0xa;0x9; ; +# quit on q or escape +quit = q;033 + ## Priority groups can be used to set the display ## order for sinks. Priority groups start with "priority". ## "match": a pulseaudio property to match against (use pacmd list-sinks) |