Deepak Tripathi <dee...@gnumonk.com> 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 ). > > gnmk@gnmk-debian:~$ 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 > Stumpwm-devel@nongnu.org > 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 _______________________________________________ Stumpwm-devel mailing list Stumpwm-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/stumpwm-devel