News | About | Get Frugalware | Packages | Documentation | Discussion Forums | Bug Tracker | Wiki | Community | Development

Conky

From FrugalWiki

Jump to: navigation, search
i18n
English
Dansk
Français
Magyar


Contents

Conky

Conky is a free software system monitor for the X Window System.

Conky-capture.png

Installation

Root terminal 48px.png
# pacman-g2 -S conky


Use

You have to edit file~/.conkyrc

Here some examples: http://conky.sourceforge.net/screenshots.html

Then type the command

User terminal 48px.png
$ conky &

Additionnal Packages

conkyforecast

To display weather with conky:

Root terminal 48px.png
# pacman-g2 -S conkyforecast


More details here: http://doc.ubuntu-fr.org/conkyforecast (french)

Example in /usr/share/conkyforecast/example/

Conkyforecast.png

conkyemail

To display new mails with conky.

Root terminal 48px.png
# pacman-g2 -S conkyemail


Example in /usr/share/conkyemail/example/

conkydeluge

To display torrents in use with Deluge in conky.

Root terminal 48px.png
# pacman-g2 -S conkydeluge


Example in /usr/share/conkydeluge/example/

conkypidgin

To display infos and contacts of pidgin with conky.

Root terminal 48px.png
# pacman-g2 -S conkypidgin


Example in /usr/share/conkypidginexample/

conkyrhythmbox

To display detail about playing song with Rhythmbox in conky.

Root terminal 48px.png
# pacman-g2 -S conkyrhythmbox


Example in /usr/share/conkyrhythmbox/example/

conkyexaile

To display detail about playing song with Exaile in conky.

Root terminal 48px.png
# pacman-g2 -S conkyexaile


Example in /usr/share/conkyexaile/example/

conkybanshee

To display detail about playing song with Banshee in conky.

Root terminal 48px.png
# pacman-g2 -S conkyexaile


Example in /usr/share/conkybanshee/example/

conkygooglecalendar

To display Google Calendarin conky.

Root terminal 48px.png
# pacman-g2 -S conkygooglecalendar


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:

User terminal 48px.png
$ chmod +x check_gmail.sh

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:

Conky-gmail.png


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 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”

User terminal 48px.png
$ mkdir ~/.conky

Then go into this directory :

User terminal 48px.png
$ cd ~/.conky/

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:

User terminal 48px.png
$ sudo chmod +x ~/.conky/amarok
Personal tools
Namespaces
Variants
Actions