stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [STUMP] A stumpwm's module


From: Max Mikhanosha
Subject: Re: [STUMP] A stumpwm's module
Date: Tue, 24 Apr 2012 10:34:06 -0400
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.6 Emacs/23.3.50 (x86_64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO)

At Tue, 24 Apr 2012 03:22:01 -0300,
Diogo F. S. Ramos wrote:
> 
> I've been using a *very* primitive code to interact with pulseaudio and
> I decided to pack it as a "module" [0].
> 
> This way, I can create symbols outside stumpwm package.
> 
> Unfortunately, by doing all this, I couldn't directly access a function
> called `bar', which is not exported by stumpwm, so I had to use `::'. It
> looks like a good symbol to export to me.

stumpwm export list is IMHO stale, and its impossible to extend it
well without using internal symbols, so I see absolutely no problem with that.
> 
> Also, because the procedure `define-key' only accepts commands, to make
> the life of the user easier, I decided to define three of them. To do
> it, I had to use `(in-package #:stumpwm)' inside my package. I don't
> know if this is OK or not.

Same as above, OK in my book, but I'm just a user like you not a
maintainer :-)

For whatever its worth, I had the same hack for over a year, rather
then go all lispy I thrown together a zsh script.. IMHO it is
extremely useful to have an "input" parameter that chooses input based
on name. This way I have bound super-W and super-R to control amarok
volume, s-S and s-F to control master volume, and s-X and s-V to
control Alsa volume, which is what firefox/chrome uses.

My script is attached, example usage:

pavol master +1
pavol Amarok -5
pavol ALSA +5

Attachment: pavol
Description: Text document






reply via email to

[Prev in Thread] Current Thread [Next in Thread]