stumpwm-devel
[Top][All Lists]
Advanced

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

Re: [STUMP] stumpwm-goodies for a better stump experience


From: Joel Fernandes
Subject: Re: [STUMP] stumpwm-goodies for a better stump experience
Date: Mon, 1 Jun 2009 13:27:55 -0700

Hi Shawn,

Thanks alot for the email!

> It'd be interesting to find out how the python module adjusts the
> brightness and possibly implement that directly. Do you know if that's
> plausible?

The python module uses the dbus message bus interface to directly talk
to HAL which sets the panel brightness.
I had considered writing it in common lisp. Unfortunately cl-dbus is
at a very early stage as of now. There are dbus specific user space
tools that allow working with the protocol and we could possibly have
stump use dbus in this way, but then I'm not too sure if that would
give the same performance as the python equivalent. Any suggestions?

> Have you looked at the modeline modules in contrib/? A lot of these
> features are already implemented. Perhaps you could merge any missing
> features?

Can't believe I overlooked contrib/, thanks for pointing out, will dive in!

> In modeline-config.lisp, a lot of the functions run shell commands to
> gather information. Since stumpwm is compiled with cl-ppcre (perl
> compatible regular expressions), it'd more stylistically sound and
> possibly faster to do the processing in your lisp functions. In the
> case of stuff like:

I totally agree with you, it actually should be faster. Thanks for the
suggestion.

> (run-shell-command "cat /home/joel/emacs-jabber-mail.temp" t)
>
> This would probably be better done as: (with-open-file (s
> (make-pathname :name "emacs-jabber-mail" :type "temp" :defaults
> (user-homedir-pathname))) (read-line s))
>
> That way it's all done in lisp and it's not hardcoded for your username.

Yes. I agree that pure lisp is the way to go. I'm also looking for
ways to send data from emacs to stumpwm (which explains the .temp file
in the code above).
I wrote a emacs-jabber gmail notifier a few weeks ago in elisp:
http://github.com/joelagnel/jabber-mail-notify/tree
I was using a clunky file based approach (file written by emacs) and
had stumpwm poll for new data, it had its own problems.
I think I could do with a sort of an IPC framework or named pipes.
what do you think?

> I like the looks of modeline-gmail.lisp. Did you commit your gmail
> password to a public git repo or is icylispy just a dummy name? If you
> could add some documentation to the top of that file so people know
> how to use it, I'll add it to contrib.

That is mostly a dummy name, :) I don't really use modeline-gmail so
I'm not too sure. mode-line/ is mostly isaac's work
@icy: could you put in documentation for the same and notify the list?

Thanks!
Joel




reply via email to

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