![]() ( let* ((xmms-output (shell-command-to-string "Display the current xmms track to the current ERC buffer." If there is an error message, display it to the user rather than inserting it.Trailing newline(s) and whitespace are removed.Here is another version of the ‘erc-cmd-XMMS’ function. (mapconcat 'identity (nthcdr 3 (split-string (shell-command-to-string "xmms-shell -e current-track") " ")) " ") "Say the current xmms mp3 song title to the current ERC channel (xmms-shell version)" This would work with xmms-shell from the command line ( defun erc-cmd-XMMS () (shell-command-to-string "xmmsctrl title") (shell-command-to-string "xmmsctrl playing echo $?")) "Say the current xmms mp3 song title to the current ERC channel" ( defun erc-cmd-XMMS (line &optional force) I’m sure there could be something that worked with xmms-shell.el. ![]() Here’s my script using xmmsctrl to grab the info from xmms. The nice thing is that if an error occurs, a message will be shown on your screen, rather than sent to the channel. (emms-player-mpd-show nil ( lambda (buffer desc) This works with emms-player-mpd.el (the MusicPD backend for EMMS) and ERC. (add-hook 'emms-player-started-hook 'erc-cmd-EMMS) (erc-cmd-GAWAY (concat "Live from EMMS: " string)) Or combining the above two to change the chat status of ERC(particularly for IM) for every track change in EMMS - Shyam_k ( defun erc-cmd-EMMS ( &rest ignore) "Display the current EMMS track to the current ERC buffer." This works well for EMMS and ERC: ( defun erc-cmd-EMMS ( &rest ignore) (add-hook 'emms-player-started-hook 'emms-show) This works well for EMMS: Show the current track each time EMMS starts to play a track with "NP : " (add-to-list 'emms-info-methods-list 'emms-info-mp3info)Įmms-streams together with emms-stream-info may solve a lot of your streaming audio “now playing” problems. ![]() (add-to-list 'emms-info-methods-list 'emms-info-ogg-comment) Not working in current CVS :set 'emms-info-ogg-comment-set) :providep 'emms-info-ogg-comment-providep (define-emms-info-method emms-info-ogg-comment ( require ' emms-info-ogg) (setq emms-show-format "NP: %s"Įmms-track-description-function 'emms-info-file-info-song-artist) (define-emms-info-method emms-info-mp3info This works well for EMMS ( DrewRaines): ( require ' emms-info) ![]() Bascially, I wanted an easy link to give for how to do this in ERC. I’m sure everyone has their own versions of this function. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |