[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [STUMP] Drop the generation of stumpwm.texi
From: |
Diogo F. S. Ramos |
Subject: |
Re: [STUMP] Drop the generation of stumpwm.texi |
Date: |
Tue, 18 Nov 2014 16:14:05 -0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
> 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"))
Nice.
> A more lispy solution would be really awesome!
It is "more lispy" just because it uses more lisp expressions. In the
end, it calls `pacmd' and parses its output, just like yours.
- Re: [STUMP] Drop the generation of stumpwm.texi, (continued)
- Re: [STUMP] Drop the generation of stumpwm.texi, Diogo F. S. Ramos, 2014/11/17
- Re: [STUMP] Drop the generation of stumpwm.texi, David Bjergaard, 2014/11/17
- Re: [STUMP] Drop the generation of stumpwm.texi, Diogo F. S. Ramos, 2014/11/17
- Re: [STUMP] Drop the generation of stumpwm.texi, David Bjergaard, 2014/11/17
- Re: [STUMP] Drop the generation of stumpwm.texi, Diogo F. S. Ramos, 2014/11/17
- Re: [STUMP] Drop the generation of stumpwm.texi, David Bjergaard, 2014/11/17
- Re: [STUMP] Drop the generation of stumpwm.texi, Ivan Kanis, 2014/11/18
- Re: [STUMP] Drop the generation of stumpwm.texi, David Bjergaard, 2014/11/18
- Re: [STUMP] Drop the generation of stumpwm.texi, Diogo F. S. Ramos, 2014/11/18
- Re: [STUMP] Drop the generation of stumpwm.texi, David Bjergaard, 2014/11/18
- Re: [STUMP] Drop the generation of stumpwm.texi,
Diogo F. S. Ramos <=
- Re: [STUMP] Drop the generation of stumpwm.texi, David Bjergaard, 2014/11/18
- Re: [STUMP] Drop the generation of stumpwm.texi, Scott Jaderholm, 2014/11/26
- Re: [STUMP] Drop the generation of stumpwm.texi, Scott Jaderholm, 2014/11/26
- Re: [STUMP] Drop the generation of stumpwm.texi, David Bjergaard, 2014/11/27