stumpwm-devel
[Top][All Lists]
Advanced

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

Re: [STUMP] contrib/mpd modules with stumpwm.


From: Johnny
Subject: Re: [STUMP] contrib/mpd modules with stumpwm.
Date: Wed, 17 Apr 2013 19:20:09 +0100
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1 (gnu/linux)

Deepak Tripathi <address@hidden> writes:

> Team,
>
> How to use contrib/mpd module, As per document I have used following in
> mode-line format.
>
> (load-module "mpd")
> (setf *mode-line-background-color* "Black"
>       *mode-line-foreground-color* "White"
>       *mode-line-border-color* "White"
>       *mode-line-timeout* 1
>       *window-format* "^B^8*%n%s%m%30t ::^7*"
>       *group-format* "%t"
>       *screen-mode-line-format* (list "^B||%m ||^b^7*%g^B || %w ^1*"
> ))
>
> also I have mpd daemon running on system ( I am on Debian Wheezy ).
>
> address@hidden:~$ telnet localhost 6600
> Trying ::1...
> Connected to localhost.
> Escape character is '^]'.
> OK MPD 0.16.0
>
> Any Idea, Or will be great if anybody will share their rc file with contrib
> modules enabled.
>
> --
> gnumonk
>
> _______________________________________________
> Stumpwm-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/stumpwm-devel

Hi Deepak,

I have the following lines in my rc file and this works. Note that after
mpd is running you have to connect to it (C-t C-m x) to control mpd. 

(load "/usr/local/share/stumpwm/contrib/mpd.lisp")
(define-key *root-map* (kbd "C-m") '*mpd-map*) ; Binds C-m to mpd map, under 
*root-map* (C-t C-m to access)
(setf *mpd-modeline-fmt* "[%s;%r;%F]: %a - %A - %t (%n/%p)")
(setf *screen-mode-line-format* (list '(:eval (run-shell-command "date '+%R, %F 
%a'|tr -d [:cntrl:]" t)) "| %m | %B | %t | %c| %l | [^B%n^b] %W)"))



-- 
Johnny



reply via email to

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