From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/14177 Path: news.gmane.org!not-for-mail From: Stinky Wizzleteet Newsgroups: gmane.emacs.gnus.user Subject: Customize gnus: X-Now-Playing Date: Wed, 11 Aug 2010 14:32:47 +0200 Organization: dyslexic agnostics unsure about a dog Message-ID: <8739ultjm8.fsf@mauc.nl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291956053 10257 80.91.229.12 (10 Dec 2010 04:40:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 04:40:53 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Dec 10 05:40:48 2010 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQumm-0001Hj-8r for gegu-info-gnus-english@m.gmane.org; Fri, 10 Dec 2010 05:40:48 +0100 Original-Received: from localhost ([127.0.0.1]:58038 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQufO-00006v-Bd for gegu-info-gnus-english@m.gmane.org; Thu, 09 Dec 2010 23:33:10 -0500 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Original-Newsgroups: gnu.emacs.gnus X-Now-Playing: Devo - The 4th Dimension User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:PCpnz1Equ9AsbI0XaAyBrb2J9wU= Original-Lines: 32 Original-NNTP-Posting-Host: 83.160.190.30 Original-X-Trace: 1281529967 news.xs4all.nl 22937 [::ffff:83.160.190.30]:58638 Original-X-Complaints-To: abuse@xs4all.nl Original-Xref: usenet.stanford.edu gnu.emacs.gnus:84631 X-Mailman-Approved-At: Thu, 09 Dec 2010 20:27:49 -0500 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:14177 Archived-At: Hi all, another journal entry for my gnus costomization, today it's the X-Now-Playing header you can see up there. >From the EmacsWiki (http://www.emacswiki.org/emacs/XNowPlayingHeader) ;;;;;;;;;;;;;;;;;; start .gnus edit (defun mak-insert-x-now-playing () "Insert the title of the song I'm currently listening to." (interactive) (if (string-match "." (shell-command-to-string (expand-file-name "/usr/bin/xmms_np"))) (shell-command-to-string (expand-file-name "/usr/bin/xmms_np")))) ;;;;;;;;;;;;;;;;;; stop xmms_np is a custom program that reads the now playing song from xmms. I'm using Rhythmbox, things turned out to be even easier: replace all instances of /usr/bin/xmms-np with: "/usr/bin/rhythmbox-client --print-playing" Rhytmbox has a cli client that comes in handy. posting stlye: insert this in your subsequent posting styles: ;;;;;;;;;;;;;;;;;; start .gnus edit ("X-Now-Playing" mak-insert-x-now-playing) ;;;;;;;;;;;;;;;;;; stop Come to think of it, I think I'll trot off to make some keybindings for rhythmbox-client -- Stinky Wizzleteet thinks: You are taking yourself far too seriously.