You are not logged in.

#201 2009-01-18 15:55:48

timttmy
Member
From: UK
Registered: 2008-12-01
Posts: 53

Re: conky configs and screenshots!

Here's my conky from my eee pc 701 4g
Bits and pieces of the config are from all over the place, a how to here and forum topic there, you know what I mean.

The only bit I have written from scratch is the plugin script to show pacman updates.
I couldn't get the perl and python ones to work properly, so I wrote my own bash script.

conkyis6.th.jpg

In full screen.

conkyfullscreenww9.th.jpg

my .conkyrc

# Use Xft?
use_xft yes
xftfont cure:size=6

# Update interval in seconds
update_interval 4

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0


# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 280 5

maximum_width 150

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text

# Default colors and also border colors
default_color 303030
#default_shade_color white
default_outline_color blue

# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
#alignment bottom_left
alignment bottom_right

# Gap between borders of screen and text
# same thing as passing -x at command line
#gap_x 15
gap_y 30

own_window yes
own_window_class Conky
own_window_transparent yes
own_window_type desktop
    
# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer right
 

TEXT
${color 668ABF}${alignc 28}${font Dot Font:size=20}eeepc
${font Dot Font:size=7}

${color 9AB7DC}Cpu:${color a4a4a4} ${alignr 4}
${color 668ABF}${cpugraph cpu0 668ABF 9AB7DC}
${color 9AB7DC}free space on /:${color a4a4a4}${fs_free /}
${color 668ABF}${fs_bar 3,85 /}
${color 9AB7DC}free space on /home:${color a4a4a4}${fs_free /home/}
${color 668ABF}${fs_bar 3,85 /home/}

Weather ${hr 2}
Port Isaac${alignr}${execi 3600 weather.sh "EUR|UK|UK125|Port%20Isaac"}    
NETWORK ${hr 2}
${if_existing /proc/net/route wlan0}
Local IP: ${alignr}${addr wlan0}
Public IP: ${alignr}${execi 3600 wget -O - http://whatismyip.org/ | tail}
Gateway IP: ${alignr}${gw_ip}
${color 9AB7DC}Up:${color a4a4a4}${alignr}${upspeed wlan0}KB/s
${color 668ABF}${upspeedgraph wlan0 10,85 668ABF 9AB7DC}
${color 9AB7DC}Total: ${color a4a4a4}${totalup wlan0}
${color 9AB7DC}Down:${color a4a4a4}${alignr}${downspeed wlan0}KB/s
${color 668ABF}${downspeedgraph wlan0 10,85 668ABF 9AB7DC}
${color 9AB7DC}Total: ${color a4a4a4}${totaldown wlan0}

${color 9AB7DC}Available Arch Updates: 
${color a4a4a4}${execi 300 /usr/local/bin/archupdates.sh}

${color a4a4a4}Laptop Battery   
${color 668ABF}${battery BAT0} ${battery_bar 3,85 BAT0}

And if anyones interested here's my plugin script to check for pacman updates.

#!/bin/sh
#A plugin script for conky to show any available sofware updates for pacman.
#Written by Timttmy on 17/january/2009
#

pacman -Qu > ~/.pacup.txt
 sed  "s/ /\n/g" ~/.pacup.txt | sed '/^$/d'  |  sed -n -e :a -e '1,10!{P;N;D;};N;ba' | sed '1,6d' > ~/.pacup1.txt
 echo "" >> ~/.pacup1.txt
 echo "" >> ~/.pacup1.txt
 echo "Arch is upto date :)" >> ~/.pacup1.txt
 head -n 3 ~/.pacup1.txt 

# For your information (and mine in case I forget.)
#sed  "s/ /\n/g" Puts everything after a SPACE on a new line, creating a list.
#sed '/^$/d'     Removes all empty lines.
#sed -n -e :a -e '1,10!{P;N;D;};N;ba' Removes the last 10 lines of the file/list. ( The "Total Download Size:    10.00 MB, Total Installed Size:   16.88 MB" part)
#sed '1,6d' Removes the first 6 lines of the file/list. ( The "Checking for package upgrades..." part )

Let me know what you think.:P

Edit: The script will also run as is on the command line without conky.

Last edited by timttmy (2009-01-18 15:58:49)


This Is My Truth, Tell Me Yours

Offline

#202 2009-01-18 18:03:03

na12
Member
From: /home/serbia
Registered: 2008-12-23
Posts: 752

Re: conky configs and screenshots!

awesome plugin script,could you add something like this:

 *!* core/heimdal 1.2.1-3                    2.86 MB
 *!* core/glib2 2.18.4-1                     2.43 MB
 *!* core/pacman-mirrorlist 20090108-1       0.00 MB
 extra/gnome2-user-docs 2.24.2-1            23.79 MB
 extra/gnome-games 2.24.3-1                 19.78 MB
 extra/libgweather 2.24.3-1                 13.54 MB
 extra/gnome-applets 2.24.3.1-1             10.58 MB
                                        ------------
 42 packages (3 important 5.29 MB)         152.60 MB

Offline

#203 2009-01-18 19:01:39

timttmy
Member
From: UK
Registered: 2008-12-01
Posts: 53

Re: conky configs and screenshots!

na12 wrote:

awesome plugin script,could you add something like this:

 *!* core/heimdal 1.2.1-3                    2.86 MB
 *!* core/glib2 2.18.4-1                     2.43 MB
 *!* core/pacman-mirrorlist 20090108-1       0.00 MB
 extra/gnome2-user-docs 2.24.2-1            23.79 MB
 extra/gnome-games 2.24.3-1                 19.78 MB
 extra/libgweather 2.24.3-1                 13.54 MB
 extra/gnome-applets 2.24.3.1-1             10.58 MB
                                        ------------
 42 packages (3 important 5.29 MB)         152.60 MB

I don't know, but I will try. What options are you passing to pacman to get that output?
It could get messy with too many lines in the conky output, I think 3 maybe 5 lines plus the total line max.

BTW I am no bash guru so don't expect too much;)


This Is My Truth, Tell Me Yours

Offline

#204 2009-01-18 20:39:47

timttmy
Member
From: UK
Registered: 2008-12-01
Posts: 53

Re: conky configs and screenshots!

Version 0.2 of my plugin script to show updates in conky. Not much difference apart from when there are no updates this removes the empty lines before the
   "Arch is upto date "
line. Just a bit more tidy.

#!/bin/sh
#A plugin script for conky to show any available sofware updates for pacman.
#Written by Timttmy on 17/january/2009
# Version 0.2

pacman -Qu > ~/.pacup.txt
 sed  "s/ /\n/g" ~/.pacup.txt | sed '/^$/d'  |  sed -n -e :a -e '1,10!{P;N;D;};N;ba' | sed '1,6d' > ~/.pacup1.txt
 echo "" >> ~/.pacup1.txt
 echo "" >> ~/.pacup1.txt
 echo "Arch is upto date :)" >> ~/.pacup1.txt
 head -n 3 ~/.pacup1.txt | sed '/^$/d' > ~/.pacup2.txt
 cat ~/.pacup2.txt 

# For your information (and mine in case I forget.)
#sed  "s/ /\n/g" Puts everything after a SPACE on a new line, creating a list.
#sed '/^$/d'     Removes all empty lines.
#sed -n -e :a -e '1,10!{P;N;D;};N;ba' Removes the last 10 lines of the file/list. ( The "Total Download Size:    10.00 MB, Total Installed Size:   16.88 MB" part)
#sed '1,6d' Removes the first 6 lines of the file/list. ( The "Checking for package upgrades..." part )

@ na12
pacman -Qu doesn't give me any sizes for each package, just a total download size and a total installed size. If someone can tell me how to retrieve this info then I will try and parse the text the way you suggested, I think it would look cool.


This Is My Truth, Tell Me Yours

Offline

#205 2009-01-18 21:22:53

na12
Member
From: /home/serbia
Registered: 2008-12-23
Posts: 752

Re: conky configs and screenshots!

I used python script for output in terminal,but in conky won't work,it looks ugly

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Description: Python script for notifying archlinux updates.
# Usage: Put shell script with command 'pacman -Sy' into /etc/cron.hourly/
# Conky: e.g. put in conky '${texeci 1800 python path/to/this/file}'
# Author: Michal Orlik <thror.fw@gmail.com>, sabooky <sabooky@yahoo.com>

################################################################################
# SETTINGS - main settings
# set this to True if you just want one summary line (True/False)
brief = False
# number of packages to display (0 = display all)
num_of_pkgs = 7
#show only important packages
onlyImportant = False
########################################

# OPTIONAL SETTINGS
# PACKAGE RATING - prioritize packages by rating
# pkgs will be sorted by rating. pkg rating = ratePkg + rateRepo for that pkg
# pkg (default=0, wildcards accepted)
ratePkg = {
        'kernel*':10,
        'pacman':9,
        'nvidia*':8,
        'catalyst*':7,
        }
# repo (default=0, wildcards accepted)
rateRepo = {
        'core':5,
        'extra':4,
        'community':3,
        'testing':2,
        'unstable':1,
        }
# at what point is a pkg considered "important"
iThresh = 5
########################################

# OUTPUT SETINGS - configure the output format
# change width of output
width = 52

# if you would use horizontal you possibly want to disable 'block'
horizontally = False
# separator of horizontal layout
separator = ' ---'
# pkg template - this is how individual pkg info is displayed ('' = disabled)
# valid keywords - %(name)s, %(repo)s, %(size).2f, %(ver)s, %(rate)s
pkgTemplate = " %(repo)s/%(name)s %(ver)s"
# important pkg tempalte - same as above but for "important" pkgs
ipkgTemplate = " *!* %(repo)s/%(name)s %(ver)s"
# summary template - this is the summary line at the end
# valid keywords - %(numpkg)d, %(size).2f, %(inumpkg), %(isize).2f, %(pkgstring)s
summaryTemplate = " %(numpkg)d %(pkgstring)s"
# important summary template - same as above if "important" pkgs are found
isummaryTemplate = summaryTemplate + " (%(inumpkg)d important %(isize).2f MB)"
# pkg right column template - individual pkg right column
# valid keywords - same as pkgTemplate
pkgrightcolTemplate = "%(size).2f MB"
# important pkg right column template - same as above but for important pkgs
ipkgrightcolTemplate = pkgrightcolTemplate
# summary right column template - summay line right column
# valid keywords - same as summaryTemplate
summaryrightcolTemplate = "%(size).2f MB"
# important summary right column template - same as above if "important" pkgs are found
isummaryrightcolTemplate = summaryrightcolTemplate
# seperator before summary ('' = disabled)
block = '-' * 12
# up to date msg
u2d = ' Your system is up-to-date'
################################################################################

import subprocess
import re

from time import sleep
from glob import glob
from fnmatch import fnmatch

program = []
pkgs = []
url = None

def runpacman():
    """runs pacman returning the popen object"""
    p = subprocess.Popen(['pacman','-Qu'],
            stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
    return p

def cmpPkgs(x, y):
        """Compares packages for sorting"""
        if x['rate']==y['rate']:
                return cmp(x['size'], y['size'])
        else:
                return x['rate']-y['rate']

if onlyImportant:
        pkgTemplate, pkgrightcolTemplate = '',''

p = runpacman()
#parse pacmans output
for line in p.stdout:
    if re.match('(CÃ|Pakete|Targets|Se procesará|Cibles|Pacchetti|'
                        'Celuje|Pacotes|Цели) \(.*\):', line):
        program = line.split()[2:]  
               
        for line in p.stdout:
            if not line.strip():
                break
            program += line.split()

for item in program:
    pkg = {}
    desc_path = False
    desc_paths =  glob('/var/lib/pacman/sync/*/%s'%item)

    if not desc_path:
            desc_path = desc_paths[0] + '/desc'

    pkg['repo'] = desc_path.split('/')[-3]
    desc = open(desc_path).readlines()
    checkName = 0
    checkSize = 0
    checkVersion = 0
    for index, line in enumerate(desc):
        if line=='%NAME%\n' and checkName == 0:
            pkgName = desc[index+1].strip()
            pkg['name'] = pkgName
            checkName = 1
        if line=='%CSIZE%\n' and checkSize == 0:
            pkgSize = int(desc[index+1].strip())
            pkg['size'] = pkgSize / 1024.0 / 1024
            checkSize = 1
        if line=='%VERSION%\n' and checkVersion == 0:
            pkgVersion = desc[index+1].strip()
            pkg['ver'] = pkgVersion
            checkVersion = 1

    pkgRate = [v for x, v  in ratePkg.iteritems()
            if fnmatch(pkg['name'], x)]
    repoRate = [v for x, v in rateRepo.iteritems()
            if fnmatch(pkg['repo'], x)]
    pkg['rate'] = sum(pkgRate + repoRate)

    pkgs.append(pkg)

# echo list of pkgs
if pkgs:
    summary = {}
    summary['numpkg'] = len(pkgs)
    summary['size'] = sum([x['size'] for x in pkgs])
    if summary['numpkg'] == 1:
        summary['pkgstring'] = 'package'
    else:
        summary['pkgstring'] = 'packages'
    summary['inumpkg'] = 0
    summary['isize'] = 0
    lines = []
    pkgs.sort(cmpPkgs, reverse=True)
    for pkg in pkgs:
        important = False

        if pkg['rate'] >= iThresh:
            summary['isize'] += pkg['size']
            summary['inumpkg'] += 1
            pkgString = ipkgTemplate % pkg
            sizeValueString = ipkgrightcolTemplate % pkg
        else:
            pkgString = pkgTemplate % pkg
            sizeValueString = pkgrightcolTemplate % pkg

        if len(pkgString)+len(sizeValueString)>width-1:
                pkgString = pkgString[:width-len(sizeValueString)-4]+'...'

        line = pkgString.ljust(width - len(sizeValueString)) + sizeValueString
        if line.strip():
            lines.append(line)

    if not horizontally:
        separator = '\n'

    if not brief:
        if num_of_pkgs:
            print separator.join(lines[:num_of_pkgs])
        else:
            print separator.join(lines)
        if block:
            print block.rjust(width)


    if summary['inumpkg']:
        overallString = isummaryTemplate % summary
        overallMBString = summaryrightcolTemplate % summary
    else:
        overallString = summaryTemplate % summary
        overallMBString = isummaryrightcolTemplate % summary
    summaryline =  overallString.ljust(width - len(overallMBString)) \
                       + overallMBString
    if summaryline and not horizontally:
        print summaryline
else:
    print u2d

Offline

#206 2009-01-18 22:53:44

timttmy
Member
From: UK
Registered: 2008-12-01
Posts: 53

Re: conky configs and screenshots!

@na12
Maybe this will work for you?

#!/bin/sh
#this script should pipe the command line output from the python pacman update
#notifying programme into conky.
#
#Save this file in /usr/local/bin      as newpm.sh
#Make the file executable with, chmod +x /usr/local/bin/newpm.sh
#Add the line        ${alignr}${execi 1800 /usr/local/bin/newpm.sh} to your .conkyrc

python /usr/local/bin/pacman.py > ~/.pacmanupdates.txt
cat ~/.pacmanupdates.txt

You may have to change the path to pacman.py as I don't know where you saved it.
This should show the output from the python script exactly as it was on the command line, but with whatever fonts you are using in conky.


I have no updates ATM to test with, TYPICAL.
I hope this helps you.


This Is My Truth, Tell Me Yours

Offline

#207 2009-01-18 23:16:29

weasel8
Member
Registered: 2008-12-15
Posts: 149

Re: conky configs and screenshots!

Hey guys, I'm having some trouble with my conky config and could use a bit of help.

Why is the left margin different when I switch fonts?

Screenshot:
conky.png

Config:

# set to yes if you want Conky to be forked in the background
background yes

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans:size=18
#xftfont Sans:size=8

# Text alpha when using Xft
xftalpha 1

# Update interval in seconds
update_interval 1.0

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

own_window yes
own_window_transparent yes
#own_window_type override
own_window_type desktop
#own_window_type normal
#use this if you want a nice shadow to appear around conky

# If own_window is yes, these window manager hints may be used
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 200 200

# Maximum width
maximum_width 400

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Draw borders around graphs
draw_graph_borders no

# Stippled borders?
# stippled_borders 8

# border margins
# border_margin 2

# border width
# border_width 1

# Default colors and also border colors
default_color FFFFFF
default_shade_color 000000
default_outline_color black

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 12
gap_y 12

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no

##############################################
##############################################

TEXT
${font}${time %l:%M %P on %A, %B %d}
${font Bitstream Vera Sans:size=12}${fs_free /home} in /home

Offline

#208 2009-01-18 23:27:56

timttmy
Member
From: UK
Registered: 2008-12-01
Posts: 53

Re: conky configs and screenshots!

try adding ${alignl}
so it would look like this

TEXT
${alignl}${font}${time %l:%M %P on %A, %B %d}
${alignl}${font Bitstream Vera Sans:size=12}${fs_free /home} in /home

or change it to ${alignr}
see what looks best.
smile


This Is My Truth, Tell Me Yours

Offline

#209 2009-01-18 23:43:12

sm4tik
Member
From: Finland, Jyväskylä
Registered: 2006-11-05
Posts: 248
Website

Re: conky configs and screenshots!

@weasel8

I'd say it's your $time format. %l (small L) pads hours 1 to 9 with a space, you might want to try using %I (capital i) instead, which pads 1 to 9 with a zero.
See 'date --help' for more options

Offline

#210 2009-01-19 00:28:27

weasel8
Member
Registered: 2008-12-15
Posts: 149

Re: conky configs and screenshots!

sm4tik wrote:

@weasel8

I'd say it's your $time format. %l (small L) pads hours 1 to 9 with a space, you might want to try using %I (capital i) instead, which pads 1 to 9 with a zero.
See 'date --help' for more options

Thanks! That was my problem. Looking good now cool

Offline

#211 2009-01-19 21:37:28

na12
Member
From: /home/serbia
Registered: 2008-12-23
Posts: 752

Re: conky configs and screenshots!

timttmy wrote:

@na12
Maybe this will work for you?

#!/bin/sh
#this script should pipe the command line output from the python pacman update
#notifying programme into conky.
#
#Save this file in /usr/local/bin      as newpm.sh
#Make the file executable with, chmod +x /usr/local/bin/newpm.sh
#Add the line        ${alignr}${execi 1800 /usr/local/bin/newpm.sh} to your .conkyrc

python /usr/local/bin/pacman.py > ~/.pacmanupdates.txt
cat ~/.pacmanupdates.txt

You may have to change the path to pacman.py as I don't know where you saved it.
This should show the output from the python script exactly as it was on the command line, but with whatever fonts you are using in conky.


I have no updates ATM to test with, TYPICAL.
I hope this helps you.

thanks,it works,but only with monospace font,by the way,how to get normal font in gnome-terminal or tilda,all fonts except monospace make letters overlap

Last edited by na12 (2009-01-20 09:25:06)

Offline

#212 2009-01-23 21:19:59

nasum
Member
From: Germany, Stuttgart
Registered: 2008-10-21
Posts: 5
Website

Re: conky configs and screenshots!

conky.png

# Config made by Severin 'gripir' Friede
# <gripir@gripir.de>
# Feel free to use it!

background yes
use_xft yes
xftfont snap Mono:size=8
xftalpha 0.8
update_interval 2.0
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
maximum_width 250
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 4
border_margin 10
border_width 1
default_color white
default_shade_color black
default_outline_color black
alignment top_right
gap_x 10
gap_y 10
no_buffers yes
uppercase false
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale no
use_spacer none

# stuff after 'TEXT' will be formatted on screen

TEXT
${font URW Gothic L:size=16} 
${time %d. %b 20%y} ${alignr} ${time %H : %M} $font
$user_names @ $nodename on $sysname $kernel

${font URW Gothic L:size=11}// system $font
${color #cccccc}cpu: ${alignr}$cpu% 
${cpubar}
mem: ${alignr}$memperc% 
${membar}
uptime: ${alignr}$uptime
procs: ${alignr}$processes ($running_processes active)$color

${font URW Gothic L:size=11}// hdd $font
${color #cccccc}root: ${alignr}${fs_free /}/${fs_size /} 
${fs_bar /}
home: ${alignr}${fs_free /home/}/${fs_size /home/} 
${fs_bar /home/}
daten: ${alignr}${fs_free /mnt/daten}/${fs_size /mnt/daten} 
${fs_bar /mnt/daten}$color

${font URW Gothic L:size=11}// network $font
${color #cccccc}device: ${alignr}wlan0
ap: ${alignr}${wireless_essid wlan0} @ ${wireless_bitrate wlan0}
status: ${alignr}${wireless_link_qual_perc wlan0}% 
${wireless_link_bar wlan0}
down: ${alignr}${downspeed wlan0}k/s (${totaldown wlan0} total)
up: ${alignr}${upspeed wlan0}k/s (${totalup wlan0} total)$color

${font URW Gothic L:size=11}// now playing $font
${color #cccccc}${mpd_artist} - ${mpd_title}
${mpd_bar}
time: ${alignr}${mpd_elapsed}/${mpd_length} 
bitrate: ${alignr}${mpd_bitrate} kBit/s
volume: ${alignr}${mpd_vol}%$color

Minimalistic and one-coloured, but I like it that way wink

Offline

#213 2009-01-23 21:52:41

fuscia
Member
Registered: 2008-04-21
Posts: 398

Re: conky configs and screenshots!

wrong thread.

Last edited by fuscia (2009-01-23 22:11:28)

Offline

#214 2009-01-23 22:37:30

haxit
Member
From: /home/haxit
Registered: 2008-03-04
Posts: 1,247
Website

Re: conky configs and screenshots!

SOMETHING_210109_by_haxit.png

Ask me if you want the other stuff.

.conkyrc

use_xft yes
xftfont cure:size=8
update_interval 1
own_window_colour black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type desktop
own_window yes
double_buffer yes
maximum_width 1680
draw_shades no
draw_outline no
draw_borders no
stippled_borders 0
border_margin 5
border_width 1
default_color 42c4d3
alignment top_left
gap_x 430
gap_y 5
no_buffers yes
uppercase no
override_utf8_locale yes
use_spacer yes

TEXT
${time %A}, ${color ffffff}${time %B}${color} ${time %d}${color ffffff}  //  ${color}CPU0:${color ffffff} ${cpu cpu0}% ${color}CPU1:${color ffffff} ${cpu cpu1}%  //  ${color}RAM:${color ffffff} ${mem}  //  ${color}Root: ${color ffffff}${fs_free_perc /}% ${color}Home: ${color ffffff}${fs_free_perc /home}% ${color}External: ${color ffffff}${fs_free_perc /mnt/external}%  //  ${color}Email:${color ffffff} ${execi 300 python ~/scripts/gmail.py}  //  ${color}Arch:${color ffffff} ${texeci 300 perl ~/scripts/arch-updates/conky-updates.pl}${color} 
${color}Latest Packages: ${color ffffff}${execi 300 python ~/scripts/python-rss.py http://www.archlinux.org/feeds/packages/ 4}

.conkyrc_mpd

use_xft yes
xftfont cure:size=8
update_interval 1
own_window_colour black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type desktop
own_window yes
double_buffer yes
maximum_width 200
draw_shades no
draw_outline no
draw_borders no
stippled_borders 0
border_margin 5
border_width 1
default_color ffffff
alignment bottom_right
gap_x 4
gap_y 22
no_buffers yes
uppercase no
override_utf8_locale yes
use_spacer yes

TEXT
${mpd_smart}
${mpd_status}${alignr}${mpd_elapsed}/${mpd_length}
${color 42c4d3}${mpd_bar 5 1}

Archi686 User | Old Screenshots | Old .Configs
Vi veri universum vivus vici.

Offline

#215 2009-01-23 22:46:51

weasel8
Member
Registered: 2008-12-15
Posts: 149

Re: conky configs and screenshots!

2ntvklu.png

That's my battery on the top left (under the date & time), with taken/available space on my /home partition next to it, then the weather and my email. The bar on the bottom measures my CPU consumption.

Pretty simple.

# set to yes if you want Conky to be forked in the background
background yes

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans:size=16
#xftfont Sans:size=8

# Text alpha when using Xft
xftalpha 1

# Update interval in seconds
update_interval 0.5

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

own_window yes
own_window_transparent yes
#own_window_type override
own_window_type desktop
#own_window_type normal
#use this if you want a nice shadow to appear around conky

# If own_window is yes, these window manager hints may be used
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 0 0

# Maximum width
maximum_width 400

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Draw borders around graphs
draw_graph_borders no

# Stippled borders?
# stippled_borders 8

# border margins
# border_margin 2

# border width
# border_width 1

# Default colors and also border colors
default_color FFFFFF
default_shade_color 000000
default_outline_color black

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 12
gap_y 12

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no

TEXT
${font}${time %-I:%M %P on %A, %B %d}
${font Bitstream Vera Sans:size=12}${battery}${alignr}${fs_used /home}/${fs_size /home}
${execi 30 /home/elr/code/sh/weather.sh 94595}${alignr}${execi 30 /home/elr/code/py/gmail.py}
${cpubar cpu0}

Last edited by weasel8 (2009-01-23 22:49:58)

Offline

#216 2009-01-23 23:18:38

Ankka
Member
From: Finland
Registered: 2007-04-08
Posts: 98

Re: conky configs and screenshots!

conky.png

This is what I've been using for a while now. No extra hassle, just the essential stuff I really check out often. It sits in the upper left corner of the screen.

Clock
Remaining battery percent
CPU usage bar
CPU frequency (to be sure acpi_cpufreq and it's friends are working correctly)
CPU temp (which, to be honest, doesn't really matter)

Last edited by Ankka (2009-01-23 23:19:11)

Offline

#217 2009-01-24 10:38:34

initbox
Member
Registered: 2008-09-27
Posts: 172

Re: conky configs and screenshots!

conkynn7.th.jpg

I use this with my Ratpoison with a margin so that it doesn't get a window over it.

# Conky
#
#
own_window yes
own_window_type override #desktop = no decor, on desktop, no pager/t.bar, sticky across all wspaces | override = not under wm ctrl.
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour black

# Use double buffering (reduce flicker)
double_buffer yes

# Font, spacing
use_spacer left #Adds spaces around certain objects to stop them from moving other things around. (left, right, and none. monofonts only.)
use_xft yes
xftfont Terminus:size=6
draw_outline no # amplify text?
draw_borders no
uppercase no

# Update interval in seconds
update_interval 1.0

# Minimum size of text area
minimum_size 1680

# Maximum Width
maximum_width 1680

# Draw shades?
draw_shades no

# Stippled borders?
#stippled_borders 3

# border margins
border_margin 0
border_width 0

# Gaps around Conky
gap_x 0
gap_y 0

# Default colors and also border colors
# color2 is headers, color1 is normal text ---- color2=blue
default_color white
color1 ffffff
color2 46a4ff

# Text alignment
# may be top_left, top_right, top_middle, bottom_left, bottom_right, bottom_middle, middle_left, middle_right, or none (also can be abreviated as tl, tr, tm, bl, br, bm, ml, mr) 
alignment bottom_left

# stuff after 'TEXT' will be formatted on screen

TEXT
${color2}Uptime: ${color1}$uptime   ${color2}Load: ${color1}$loadavg   ${color2}::   ${color2}CPU Utilization:${color1}${cpu cpu0}%   ${color2}Memory: ${color1}$mem ${color2}[${color1}$memperc%${color2}] $alignr ${offset -20} ${color2}MPC [${color1}${mpd_status}${color2}]: ${color1}$mpd_artist ${color2}-${color1} ${mpd_title 20} ${color2}[${color1}$mpd_elapsed ${color2}/ ${color1}$mpd_length${color2}]   ${color2}::   ${color1}${time %a} ${time %e/%m/%y}${color2} / ${voffset -3}${font Terminus:size=12}${color1}${time %k:%M:%S}$color

Last edited by initbox (2009-01-24 10:44:16)

Offline

#218 2009-01-24 16:34:35

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: conky configs and screenshots!

edit ftp is down during upgrade to x86_64...

please try here

.conkyrc

# Conky Config File

# Main options (alphabetically)
alignment tr
background yes
border_margin 5 
color1 cd8500 
color2 104e8b 
default_color d3d3d3  
draw_outline no
draw_shades no
double_buffer yes
gap_x 10 
gap_y 5 
maximum_width 275
minimum_size 275 800 
no_buffers yes
own_window yes
own_window_type desktop
own_window_transparent yes
override_utf8_locale yes
short_units yes 
total_run_times 0
update_interval 1 
use_xft yes
xftalpha 0.7
xftfont tahoma:size=7

# After TEXT is formatted on screen
TEXT
${font monaco black:size=48}${alignr}${offset -150}${time %e}
${voffset -91}${goto 145}${color1}${font verdana:size=26}${time %I:%M}$color
${voffset -21}${goto 132}${font tahoma:size=8}${time %B}$font


${font tahoma:size=11}${goto 75}${color1}${execi 1 ~/.conky/amarok.sh title}${font tahoma:size=9}$color
${goto 95}${execi 1 ~/.conky/amarok.sh artist}
${goto 95}${execi 1 ~/.conky/amarok.sh album}$font


${goto 85}${color1}Weather ${color2}${hr 1}$color
${goto 95}${execi 3600 sh ~/.conky/weather.sh}

${goto 85}${color1}System ${color2}${hr 1}$color
${goto 95}cpu ${voffset 5}${goto 140}${cpu cpu0} %  
${voffset -17}${goto 130}${cpugraph 20,150 cd8500 104e8b}
${goto 95}ram ${goto 130}${membar 3}
${goto 95}swap ${goto 130}${swapbar 3}

${goto 85}${color1}Net  ${color2}${hr 1}$color
${voffset 5}${goto 105}${upspeedf eth0} k/s ${goto 200}${downspeedf eth0} k/s
${voffset -17}${goto 95}${upspeedgraph eth0 20,90 cd8500 104e8b} ${goto 190}${downspeedgraph eth0 20,90 cd8500 104e8b}

${goto 85}${color1}Drives  ${color2}${hr 1}$color
${goto 95}root/ ${goto 130}${fs_bar 3 /}
${goto 95}home/ ${goto 130}${fs_bar 3 /home/}
${goto 95}media/ ${goto 130}${fs_bar 3 /mnt/store/}
${goto 95}backup/ ${goto 130}${fs_bar 3 /mnt/backup/}

${goto 85}${color1}Logs  ${color2}${hr 1}$color
${exec bash ~/.conky/logs}

${goto 85}${color1}Mail ${color2}${hr 1}$color
${exec bash ~/.conky/mail}

.conky/weather.sh

#!/bin/sh
#Accuweather script for conky
#
#adapted from Michael Seiler 2007 by p brisbin
#

METRIC=0 #0 for deg F, 1 for deg C
LOC=02135

curl -s http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=${LOC} | perl -ne 'if (/Currently/) {chomp;/\<title\>Currently: (.*)?\<\/title\>/; print "$1"; }

.conky/amarok.sh

#!/bin/bash
# amaroK info display script by eirc <eirc.eirc@gmail.com>
# edited (reduced) by p brisbin
#
# requirements: amaroK (!)
# for Collection stats to work amarok must be using
# mySQL to store it's collection

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

esac

.conky/logs

#!/bin/bash
# p brisbin

spacer="                              "

ssh1="$(cat /var/log/auth.log | grep Accepted | tail -n 3 | head -n 1 |awk '{ print $1, $2, $3, "from IP: ", $11 }')"
ssh2="$(cat /var/log/auth.log | grep Accepted | tail -n 2 | head -n 1 | awk '{ print $1, $2, $3, "from IP: ", $11 }')"
ssh3="$(cat /var/log/auth.log | grep Accepted | tail -n 1 | awk '{ print $1, $2, $3, "from IP: ", $11 }')"

all1="$(cat /var/log/everything.log | grep -v ntpd | tail -n 3 | head -n 1)"
all2="$(cat /var/log/everything.log | grep -v ntpd | tail -n 2 | head -n 1)"
all3="$(cat /var/log/everything.log | grep -v ntpd | tail -n 1)"

error1="$(tail -n 3 /var/log/errors.log | head -n 1)"
error2="$(tail -n 2 /var/log/errors.log | head -n 1)"
error3="$(tail -n 1 /var/log/errors.log)"

dmesg1="$(dmesg | tail -n 3 | head -n 1)"
dmesg2="$(dmesg | tail -n 2 | head -n 1)"
dmesg3="$(dmesg | tail -n 1)"

echo "${spacer}${ssh1}"
echo "${spacer}${ssh2}"
echo "${spacer}${ssh3}"
echo ""
echo "${spacer}${all1}"
echo "${spacer}${all2}"
echo "${spacer}${all3}"
echo ""
echo "${spacer}${error1}"
echo "${spacer}${error2}"
echo "${spacer}${error3}"
echo ""
echo "${spacer}${dmesg1}"
echo "${spacer}${dmesg2}"
echo "${spacer}${dmesg3}"

exit 0

.conky/mail

#!/bin/bash 
# p brisbin
# Script to set up Conky output to display new messages 
# Mail must be stored in a Maildir under ~/Mail/INBOX/

spacer="                              "
box="${HOME}/Mail/INBOX/new/"
mcount=$(( $(ls -l ${box} | wc -l)-1 ))
count=1

if [ $mcount -eq 0 ]; then
  echo "${spacer}No unread messages."
else
  ls -t $box | while read file; do
    from=$(cat ${box}${file} | grep -m 1 ^From\: | cut -c 7-21)
    subject=$(cat ${box}${file} | grep -m 1 ^Subject\: | cut -c 10-60)
    echo "${spacer}${count}. ${from} - ${subject}"
    count=$(( count+1 ))
  done
fi

exit 0

edit: .conky/logs seems to use an obscene amount of cpu as your log files grow... use at your own risk

Last edited by brisbin33 (2009-02-03 14:42:43)

Offline

#219 2009-01-27 05:37:56

evr
Arch Linux f@h Team Member
Registered: 2009-01-23
Posts: 554

Re: conky configs and screenshots!

conkyop1.th.png

text_buffer_size 1000

background no

use_xft yes

#xftfont Bitstream Vera Sans Mono:size=8
#xftfont Terminus:size=8
xftfont Monaco:size=8

xftalpha 0

update_interval 2.0

total_run_times 0

own_window yes
own_window_type normal
own_window_transparent no
own_window_hints undecorated,below,sticky,skip_taskbar,skip_page
double_buffer yes

minimum_size 220 100

draw_shades yes

draw_outline yes

draw_borders no

stippled_borders 8

border_margin 4

border_width 1


default_color white
#default_color yellow
default_shade_color black
#default_shade_color yellow
default_outline_color white
#default_outline_color yellow


alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right

gap_x 10
gap_y 75

no_buffers yes

uppercase no

cpu_avg_samples 2

net_avg_samples 2

override_utf8_locale no

mpd_host 192.168.1.100

TEXT
${outlinecolor black}${hr}${font}
${color slate grey}${outlinecolor black}Kernel: ${color}$kernel ${alignr 1}${color slate grey}${outlinecolor black}IP: ${color}${addr wlan0}
${color slate grey}${outlinecolor black}${time %a,}${color }${time %e %B %G}${color slate grey}${outlinecolor black}${alignr 1}${time %Z: }${color }${time %H:%M:%S}
${color slate grey}${outlinecolor black}UpTime: ${color }$uptime${color slate grey}${outlinecolor black}${alignr 1}${utime %Z: }${color }${utime %H:%M:%S}
${hr}
${color slate grey}${outlinecolor black}Battery: ${color }${battery_percent}%${color slate grey}${outlinecolor black}${alignr 1}Time Remaining:${color }${battery_time}
${color slate grey}${outlinecolor black}CPU:${color } $cpu% ${color slate grey}${outlinecolor black}${alignr 1}Temp(C): ${color }${acpitemp}
${color slate grey}${outlinecolor black}Processes: ${color }$processes${color slate grey}${outlinecolor black}${alignr 1}Frequency: ${color }$freq MHz
${hr}
${color slate grey}${outlinecolor black}Highest CPU:                    ${color slate grey}${outlinecolor black}Highest MEM:
${font Bitstream Vera Sans Mono:size=8}${color }${top name 1}${top cpu 1}    ${alignr 1}${top_mem name 1}${top_mem mem 1}
${color }${top name 2}${top cpu 2}    ${alignr 1}${top_mem name 2}${top_mem mem 2}
${color }${top name 3}${top cpu 3}    ${alignr 1}${top_mem name 3}${top_mem mem 3}
${color }${top name 4}${top cpu 4}    ${alignr 1}${top_mem name 4}${top_mem mem 4}${font}
${hr}
${color slate grey}${outlinecolor black}MEM: ${color }$memperc%    ${alignr 1}$mem/$memmax ${membar 3,100}
${color slate grey}${outlinecolor black}ROOT:${color } ${fs_free_perc /}% ${alignr}${fs_free /}/${fs_size /} ${fs_bar 3,100 /}
${hr}
${color slate grey}${outlinecolor black}NET: 
${color}U/L Rate: ${color }${upspeed wlan0}k/s${alignr 1}D/L Rate: ${downspeed wlan0}k/s
Total:${totalup wlan0}${alignr 1}Total:${totaldown wlan0}
${upspeedgraph wlan0 20,150 000000 ffffff}${alignr 1}${downspeedgraph wlan0 20,150 000000 ffffff}
${hr}
${color slate grey}METARs:${color}
${execi 300 /home/evan/Scripts/metar.py KOUN KOKC KRVS}
${hr}
${color slate grey}Terminal Area Forecasts:${color}
${execi 540 /home/evan/Scripts/taf.py KOUN KOKC}
${hr}
${color slate grey}Winds Aloft:${color}
${font Bitstream Vera Sans Mono:size=8}${execi 720 /home/evan/Scripts/aloft.py}${font}
${if_running amarokapp}${hr}
${color slate grey}Now Playing: 
${color}${alignc}"${execi 5 ~/Scripts/amarok title}"
${alignc}${execi 5 ~/Scripts/amarok artist} - ${alignc}${execi 5 ~/Scripts/amarok album}
${color}${execibar 1 ~/Scripts/amarok progress}
${color slate grey}${alignc}Time: ${color}${execi 5 ~/Scripts/amarok currentTime}/${execi 5 ~/Scripts/amarok totalTime}
${else}${hr}
${color slate grey}Now Playing:
${color}${alignc}"${mpd_title}"
${alignc}${mpd_artist} - ${mpd_album}
${alignc}${mpd_bar 3,150}
${alignc}${mpd_elapsed}/${mpd_length}${endif}
${color}${hr}
${color slate grey}Laptop Temperatures(C):
${color}CPU:${ibm_temps 0}   MiniPCI:${ibm_temps 1}   HDD:${ibm_temps 2}   GPU:${ibm_temps 3}   Battery:${ibm_temps 6}
${hr}

Last edited by evr (2009-01-27 05:38:35)

Offline

#220 2009-01-27 14:04:53

sen
Member
From: .de
Registered: 2007-02-18
Posts: 153
Website

Re: conky configs and screenshots!

My last 2 conkys:

Conky___Royalty_by_sen7.png

Conky___Schattenreich_by_sen7.png

Offline

#221 2009-01-27 19:58:35

Alexdsan
Member
Registered: 2007-07-10
Posts: 28

Re: conky configs and screenshots!

Please, share your wallpaper.

thanks

Offline

#222 2009-01-28 12:08:26

cinan
Member
From: Slovakia
Registered: 2008-07-04
Posts: 251
Website

Re: conky configs and screenshots!

Offline

#223 2009-02-02 20:00:38

shlemisto
Member
From: Russia
Registered: 2009-01-23
Posts: 9
Website

Re: conky configs and screenshots!

sen wrote:

My last 2 conkys:

sen, config, please )

Last edited by shlemisto (2009-02-02 20:01:30)

Offline

#224 2009-02-02 20:32:06

corion
Member
Registered: 2008-09-13
Posts: 36
Website

Re: conky configs and screenshots!

shlemisto wrote:
sen wrote:

My last 2 conkys:

sen, config, please )

Just click download on the deviantart page. It links to tar files, hopefully with configs smile

Last edited by corion (2009-02-02 20:32:36)

Offline

#225 2009-02-03 11:40:16

shlemisto
Member
From: Russia
Registered: 2009-01-23
Posts: 9
Website

Re: conky configs and screenshots!

Just click download on the deviantart page. It links to tar files, hopefully with configs smile

that's at was really easy, thank

Offline

Board footer

Powered by FluxBB