application icongmusicbrowser

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
third_party_apps:conky [2007/08/25 18:33] astierthird_party_apps:conky [2022/05/23 01:30] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
 This How-To has been conceived after the experiments on Ubuntu (Feisty Fawn - 7.04), a debian-based distribution, and by Quentin Sculo on a Mandriva 2007. This How-To has been conceived after the experiments on Ubuntu (Feisty Fawn - 7.04), a debian-based distribution, and by Quentin Sculo on a Mandriva 2007.
 +
 +
 +
  
 ======What is conky ?====== ======What is conky ?======
Line 9: Line 12:
 Conky can also display music playing information from a few music players / jukebox like bmp, audacious, mpd. Conky can also display music playing information from a few music players / jukebox like bmp, audacious, mpd.
  
-Quentin Sculo has developed a patch for conky (version 4 is available [[http://squentin.free.fr/gmusicbrowser/tmp/conky_gmb.patch4.gz|here]]) to display the gmusicbrowser playing information into conky. 
  
-After downloading the patch, create the conkypatch directory into your /home : 
-<code>mkdir conkypatch</code> 
-and move the patch you have just downloaded into it : 
-<code> mv downloaddirectory/conky_gmb.patch4.gz conkypatch</code> 
  
-to make the future operations easier.+======Without the patch====== 
 +loomsen has posted on the ubuntu forum a method to display the info in conky without patching it. 
 +see [[http://ubuntuforums.org/showthread.php?p=5967407#post5967407|this post]]
  
 +The advantage of this method is that it works with the current conky versions (1.6 and future versions)
  
 +The disadvantage is that it needs to run a small program for each update, so it's a bit less cpu-friendly.
  
  
 +======With the patch======
 +Quentin Sculo has developed a patch for conky (version for conky-1.5.1 is available [[http://gmusicbrowser.org/files/conky_gmb.patch5_1.5.1_new.gz|here]]) to display the gmusicbrowser playing information into conky.
  
 +//Sadly, this patch requires a lot of modification for using it with conky version 1.6 and higher. So currently you'll have to use the method above without the patch.//
  
 +=====Download and patch conky=====
  
-======Download and patch conky======+After downloading the patch, create the conkypatch directory into your /home : 
 +<code>mkdir conkypatch</code> 
 +and move the patch you have just downloaded into it : 
 +<code> mv downloaddirectory/conky-1.5.1_gmb.patch.gz conkypatch</code> 
 +to make the future operations easier.
  
-For this, go to the conky project homepage on sourceforge.net (http://conky.sourceforge.net/) and download [[http://sourceforge.net/project/showfiles.php?group_id=143975|conky-1.4.sources]] in the .tar.bz2 format (for example, directly [[http://sourceforge.net/project/downloading.php?group_id=143975&use_mirror=ovh&filename=conky-1.4.6.tar.bz2&69075622|here]]).+For this, go to the conky project homepage on sourceforge.net (http://conky.sourceforge.net/) and download [[http://sourceforge.net/project/showfiles.php?group_id=143975&package_id=158249|conky-1.5.sources]] in the .tar.bz2 format .
  
-Move the tar archive into the conkypatch directory : <code>mv downloaddirectory/conky-1.4.6.tar.bz2 conkypatch</code>+Move the tar archive into the conkypatch directory : <code>mv downloaddirectory/conky-1.5.1.tar.bz2 conkypatch</code>
  
 Move into the conkypatch directory : Move into the conkypatch directory :
 <code>cd conkypatch</code> <code>cd conkypatch</code>
  
-Untar the conky-1.4.6.tar.bz2 archive : +Untar the conky-1.5.1.tar.bz2 archive : 
-<code>tar xjfv conky-1.4.6.tar.bz2</code>+<code>tar xjfv conky-1.5.1.tar.bz2</code>
  
-Go into the conky-1.4.directory (created with the untar) : <code>cd conky-1.4.6</code>+Go into the conky-1.5.directory (created with the untar) : <code>cd conky-1.5.1</code>
  
 Apply the patch : Apply the patch :
-<code>zcat ../conky-1.4.6_gmb.patch.gz |patch -p1</code>+<code>zcat ../conky_gmb.patch5_1.5.1_new.gz |patch -p1</code>
  
-======Compile conky======+=====Compile conky=====
  
 First, check you have these packages installed on your system : gcc, make, automake1.9, autoconf, build-essential, checkinstall : First, check you have these packages installed on your system : gcc, make, automake1.9, autoconf, build-essential, checkinstall :
 <code>sudo aptitude install gcc automake1.9 autoconf build-essential checkinstall</code> <code>sudo aptitude install gcc automake1.9 autoconf build-essential checkinstall</code>
  
-Then in the /home/login/conkypatch/conky-1.4.5 directory (where you certainly are), do : <code>./autogen</code>.+Then in the /home/login/conkypatch/conky-1.5.1 directory (where you certainly are), do : <code>./autogen</code>.
  
 The terminal is quite informative ; if there are some errors or warnings, the messages it sends enable you to install the right packages. Personally, on Ubuntu Feisty Fawn, I had a conflict with several "automake" versions and I had to uninstall these packages : automake, automake1.4, automake1.7 et automake1.8 and only have automake1.9 installed. The terminal is quite informative ; if there are some errors or warnings, the messages it sends enable you to install the right packages. Personally, on Ubuntu Feisty Fawn, I had a conflict with several "automake" versions and I had to uninstall these packages : automake, automake1.4, automake1.7 et automake1.8 and only have automake1.9 installed.
Line 67: Line 77:
  
  
-======Configure conky=====+ 
 +=====Configure conky====
  
 For those who have just discovered conky, you must know that configuring conky means editing the conky configuration file which is a hidden file in your /home ; to edit that file, in a terminal, do : <code>gedit /home/login/.conkyrc</code> replacing "login" by your own login and "gedit" by the command of the text editor of your choice. For those who have just discovered conky, you must know that configuring conky means editing the conky configuration file which is a hidden file in your /home ; to edit that file, in a terminal, do : <code>gedit /home/login/.conkyrc</code> replacing "login" by your own login and "gedit" by the command of the text editor of your choice.
Line 73: Line 84:
 The patch we have just applied enables these next variables : $gmb_artist, $gmb_album, $gmb_bar, $gmb_elapsed, $gmb_length, $gmb_percent, $gmb_title, $gmb_track. The patch we have just applied enables these next variables : $gmb_artist, $gmb_album, $gmb_bar, $gmb_elapsed, $gmb_length, $gmb_percent, $gmb_title, $gmb_track.
  
-Here is an example of conky configuration and the corresponding capture : {{gallery>translations:fr:applications_tierces}}+Here is an example of conky configuration and the corresponding capture (under Ubuntu Gutsy) : {{gallery>translations:fr:applications_tierces}}
 <code> <code>
 # set to yes if you want Conky to be forked in the background # set to yes if you want Conky to be forked in the background
Line 338: Line 349:
 ${color #FFFB00}${gmb_elapsed}${color #DBAA82}/${gmb_length}  ${color #344299}${gmb_bar}${color #DBAA82} ${color #FFFB00}${gmb_elapsed}${color #DBAA82}/${gmb_length}  ${color #344299}${gmb_bar}${color #DBAA82}
 </code> </code>
 +
 +You can also have something like that :
 +<code>${color #FF000C}${font Lexia:size=10}Musique :${font Sans:size=8.5}${color0}
 +${if_existing /home/bbrice/.config/gmusicbrowser/gmusicbrowser.fifo}${gmb_title}
 +${gmb_artist}
 +${gmb_album}
 +${color #002939}${gmb_bar 18}${color0}
 +$alignc${voffset -21}${gmb_elapsed}/${gmb_length}$endif${if_empty $mpd_smart}$else${mpd_title}
 +${mpd_artist}
 +${mpd_album}
 +${color #002939}${mpd_bar 18}${color0}
 +$alignc${voffset -21}${mpd_elapsed}/${mpd_length}$endif
 +</code>
 +but in this case, you have to be careful to the location of the gmusicbrowser.fifo on your computer. In Ubuntu (Gutsy) you find this file here : ~/.gmusicbrowser/gmusicbrowser.fifo but in Debian Lenny, this file is "hidden" here : ~/.config/gmusicbrowser/gmusicbrowser.fifo.
  
 For some other examples and tips and tricks you can visit [[http://forum.ubuntu-fr.org/viewtopic.php?id=99471|this page]] on the [[http://www.ubuntu-fr.org/|Ubuntu-fr]] forum. For some other examples and tips and tricks you can visit [[http://forum.ubuntu-fr.org/viewtopic.php?id=99471|this page]] on the [[http://www.ubuntu-fr.org/|Ubuntu-fr]] forum.
third_party_apps/conky.1188059636.txt.gz · Last modified: 2022/05/23 01:30 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0