Re: [wmii] dmenu mpd client

From: Johannes Krude <johannes_AT_krude.de>
Date: Mon, 15 Oct 2007 23:12:48 +0200

Am Freitag 12 Oktober 2007 schrieb Christian G. Warden:
> Here's a simpler fix:
> --- mpd-dmenu-2007.09.29 2007-09-29 03:20:42.000000000 -0700
> +++ mpd-dmenu 2007-10-11 15:47:06.000000000 -0700
> @@ -23,7 +23,7 @@
> list.find { |x| `MPD_HOST="#{x}" mpc>/dev/null; echo -n $?`=="0" }
> end
>
> -$dmenu= ENV["DMENU"] or "dmenu -b"
> +$dmenu= ENV["DMENU"] || "dmenu -b"
This is in ruby exactly the same, I think "or" is more readable then "||"

> - mpc("save", `echo | #{dmenu}`)
> + mpc("save", `echo | #{$dmenu}`)
You were right about that.
I think I forgot to test this feature.

The new version is available at:
http://johannes.krude.de/src/mpd-dmenu-2007.10.15

Received on Mon Oct 15 2007 - 23:13:26 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:29:59 UTC