Conky
From FrugalWiki
i18n |
---|
English |
Dansk |
Français |
Magyar |
Contents |
Conky
Conky is a free software system monitor for the X Window System.
Installation
Use
You have to edit file~/.conkyrc
Here some examples: http://conky.sourceforge.net/screenshots.html
Then type the command
Additionnal Packages
conkyforecast
To display weather with conky:
More details here: http://doc.ubuntu-fr.org/conkyforecast (french)
Example in /usr/share/conkyforecast/example/
conkyemail
To display new mails with conky.
Example in /usr/share/conkyemail/example/
conkydeluge
To display torrents in use with Deluge in conky.
Example in /usr/share/conkydeluge/example/
conkypidgin
To display infos and contacts of pidgin with conky.
Example in /usr/share/conkypidginexample/
conkyrhythmbox
To display detail about playing song with Rhythmbox in conky.
Example in /usr/share/conkyrhythmbox/example/
conkyexaile
To display detail about playing song with Exaile in conky.
Example in /usr/share/conkyexaile/example/
conkybanshee
To display detail about playing song with Banshee in conky.
Example in /usr/share/conkybanshee/example/
conkygooglecalendar
To display Google Calendarin conky.
Example in /usr/share/conkygooglecalendar/example/
Usefull scripts
Displaying new mails of a gmail account
Create a file check_gmail.sh with:
#!/bin/bash gmail_login="login" gmail_password="passworf" dane="$(wget --secure-protocol=TLSv1 --timeout=3 -t 1 -q -O - \ https://${gmail_login}:${gmail_password}@mail.google.com/mail/feed/atom \ --no-check-certificate | grep 'fullcount' \ | sed -e 's/.*<fullcount>//;s/<\/fullcount>.*//' 2>/dev/null)" if [ -z "$dane" ]; then echo "Connection Error !" else echo "You've got: $dane mail(s)" fi
Make it executable:
Then add it to your conkyrc, for example
GMAIL ${hr 2} ${font StyleBats:size=16}t${font} ${texeci 60 ~/scripts/check_gmail.sh}
This will give you something like that:
Displayng playing songs with amarok
To see what you are listening with Amarok, add these lines to your .conkyrc:
${if_running amarokapp} ${color}AmaroK${color white} ${alignc}${execi 10 ~/.conky/amarok artist} ${alignc}${execi 10 ~/.conky/amarok title} ${execibar 1 ~/.conky/amarok progress} ${alignc}"${execi 10 ~/.conky/amarok album}" ${alignc}${execi 10 ~/.conky/amarok year} - ${color white}${alignc}${execi 10 ~/.conky/amarok genre}$endif
Note: If it doesn'twork, check the name of the process with command ps -aux and replace it at the first line the name “amarokapp” by the correct name.
Create an hidden directory in /home named ”.conky”
Then go into this directory :
Create the file “amarok”
your_favorite_editor(kate_gedite-kwrite) ~/.conky/amarok
And add :
#!/bin/bash # amaroK info display script by eirc <eirc.eirc@gmail.com> case "$1" in # Now Playing Info artist) dcop amarok player artist ;; title) dcop amarok player title ;; album) dcop amarok player album ;; year) dcop amarok player year ;; genre) dcop amarok player genre ;; progress) curr=`dcop amarok player trackCurrentTime` tot=`dcop amarok player trackTotalTime` if (( $tot )); then expr $curr \* 100 / $tot fi ;; esac
Make it executable: