|
<p>** USAGE
Make sure you have your media keys (or whatever) mapped to the appropriate
keysyms (using =xmodmap=), then put:
#+BEGIN_SRC lisp</p>
<pre><code> (load "/path/to/amixer.lisp")
</code></pre>
<p>#+END_SRC
...in your =~/.stumpwmrc=, followed by some keybindings (according
to your preference)</p>
<p>Example keybindings:
#+BEGIN_SRC lisp</p>
<pre><code> (define-key *top-map* (kbd "XF86AudioLowerVolume") "amixer-Front-1-")
(define-key *top-map* (kbd "XF86AudioRaiseVolume") "amixer-Front-1+")
(define-key *top-map* (kbd "XF86AudioMute") "amixer-Master-toggle pulse")
</code></pre>
<p>#+END_SRC
=amixer= commands take an optional parameter, the device parameter
as passed to the =-D=. This can be useful if you are running pulseaudio.</p>
<p>** Tasks</p>
<p>*** TODO Make the `defvolcontrol' macro create all the necessary commands at once.</p>
<ul>
<li>Should it just create, say, amixer-pcm, which would be passed an
argument? i.e., (define-key <em>this-map</em> (kbd "e") "amixer-pcm 1-")</li>
<li>Else, figure out how to make the macro not error when converting a
string to a symbol for the name of the command</li>
</ul>
|