stumpwm-devel
[Top][All Lists]
Advanced

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

Re: [STUMP] Drop the generation of stumpwm.texi


From: David Bjergaard
Subject: Re: [STUMP] Drop the generation of stumpwm.texi
Date: Tue, 18 Nov 2014 13:06:02 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

"Diogo F. S. Ramos" <address@hidden> writes:

>> I'm still interested :) I really need to do something about some of the
>> modules that we're hosting anyway (swm-emacs for sure).  A number of
>> them have horrible bitrot.  If your working on anything I'm very
>> interested to know!
>
> It is in the Wiki.
>
> It is a very simple module to do some primitive control of pulseaudio.
Actually this would be very useful to me, I currently use a very hackish
way of controlling pulse audio's volume with these in my stumpwmrc:
(defcommand vol-up () ()
  "Increase the volume from the shell"
  (run-shell-command 
   "pacmd set-sink-volume 0 $(printf '0x%x' $(( $(pacmd dump|grep 
set-sink-volume|cut -f3 -d' ') + 0xf00)) ) &> /dev/null"))
(defcommand vol-down () () 
  "Decrease the volume  from the shell"
  (run-shell-command 
   "pacmd set-sink-volume 0 $(printf '0x%x' $(( $(pacmd dump|grep 
set-sink-volume|cut -f3 -d' ') - 0xf00)) ) &> /dev/null"))

A more lispy solution would be really awesome!

    Dave



reply via email to

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