My stumpwm configuration

README.org 1.0KB

    <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 &#34;/path/to/amixer.lisp&#34;) </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 &#34;XF86AudioLowerVolume&#34;) &#34;amixer-Front-1-&#34;) (define-key *top-map* (kbd &#34;XF86AudioRaiseVolume&#34;) &#34;amixer-Front-1+&#34;) (define-key *top-map* (kbd &#34;XF86AudioMute&#34;) &#34;amixer-Master-toggle pulse&#34;) </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&#39; 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 &#34;e&#34;) &#34;amixer-pcm 1-&#34;)</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>