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: Diogo F. S. Ramos
Subject: Re: [STUMP] A stumpwm's module
Date: Fri, 10 Aug 2012 03:14:12 -0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

Scott Jaderholm <address@hidden> writes:

> Cool, this does the job for me. Thank you!

:^)

> I needed this change on my system.
>
> -(defcommand pavol-interactive (&optional (index 0)) (:rest)
> +(defcommand pavol-interactive (&optional (index "0")) (:rest)

Strange, although I confess I wrestled with this specific part of the
code.

> I also did this as a temporary measure because I was getting a no-name
> result when I use "pactl load-module module-equalizer-sink".
>
> (defun sink-input-index-name (sink-input-index)
>    "The application name of the sinput index."
> -  (ppcre:register-groups-bind (name)
> -      ("\\ *application.name = (.*)" sink-input-index)
> -    (subseq name 1 (1- (length name)))))
> +  (or (ppcre:register-groups-bind (name)
> +          ("\\ *application.name = (.*)" sink-input-index)
> +        (subseq name 1 (1- (length name))))
> +      "equalizer"))

Yeah, I assumed that everything had an 'application.name' because I
always saw one in my tests. Apparently I was wrong :^(. Oh well.

> I guess it will take some time to see how often I use this. If I find
> that I use it quite a bit I'll probably add in full command name, even
> if they're long, because I run several mplayer's at the same time.

Looking at the problem now, there is a field called 'media.name' that
could be used for some sort of identification, but unfortunately not
every application seems to fill it with useful information. Amarok set
it with the name of the music and author, but mplayer just writes "audio
stream" and Flash's plugging with "ALSA Playback".



reply via email to

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