LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Screenshots (http://www.linuxquestions.org/questions/linux-screenshots-94/)
-   -   The conky-ness thread! (http://www.linuxquestions.org/questions/linux-screenshots-94/the-conky-ness-thread-883862/)

corp769 06-01-2011 12:21 AM

The conky-ness thread!
 
3 Attachment(s)
Hello all!

Since we have a new sub-forum dedicated to screenshots, I figured I would create a new thread for bad@$$ conky-based screenshots. I really admire the use of conky, as you can do so much with it. To start, I have included a few shots of my laptop with multiple instances of conky running.

Cheers,

Josh

SkyEye 06-01-2011 01:13 AM

1 Attachment(s)
Something I've used a while ago.

Attachment 7192

corp769 06-01-2011 01:14 AM

Quote:

Originally Posted by SkyEye (Post 4372698)
Something I've used a while ago.

Attachment 7192

Oh cool, I really like that!

DJRcomputing 06-01-2011 03:29 AM

Quote:

Originally Posted by corp769 (Post 4372659)
...I figured I would create a new thread for bad@$$ conky-based screenshots.

*conks you over the head* You're such a dork. Still using that same, tired ol' wallpaper, I see, even though someone sent you some fresh material. :p

Back OT, though... Yeah, conky's cool. I swear everyone uses it, and those who don't should. Y'know, so they can be :cool: like Josh (corp769). LOL!

http://conky.sourceforge.net/

corp769 06-01-2011 08:16 AM

Quote:

Originally Posted by DJRcomputing (Post 4372806)
*conks you over the head* You're such a dork. Still using that same, tired ol' wallpaper, I see, even though someone sent you some fresh material. :p

Back OT, though... Yeah, conky's cool. I swear everyone uses it, and those who don't should. Y'know, so they can be :cool: like Josh (corp769). LOL!

http://conky.sourceforge.net/

You know I'm deploying today. Do you think I have the time to do that yet? NO! Give it a few days :p

silent 09-23-2011 10:38 AM

Great shots you've got there.
I also run conky even if i limit it to only one instance and use another term to tail -f /var/log/messages
Great work and keep on!

gutterslob 09-23-2011 12:05 PM

Mine is extremely simplistic. Just a bar on top with a single line of info.
Don't really need much more on a netbook.

http://ompldr.org/tYWhkeA.png

corp769 09-23-2011 07:02 PM

Quote:

Originally Posted by gutterslob (Post 4480331)
Mine is extremely simplistic. Just a bar on top with a single line of info.
Don't really need much more on a netbook.

http://ompldr.org/tYWhkeA.png

I noticed that most people prefer simplicity, whereas some, like myself, enjoy going all out. I'm about to redesign some of the code and script on my new alienware, so I should be posting more screenshots in about a week or two.

silent 09-25-2011 02:35 PM

Quote:

Originally Posted by gutterslob (Post 4480331)
Mine is extremely simplistic. Just a bar on top with a single line of info.
Don't really need much more on a netbook.

http://ompldr.org/tYWhkeA.png

That's the spirit! Minimalistic! and k.i.s.s http://en.wikipedia.org/wiki/K.I.S.S

rokytnji 09-25-2011 04:49 PM

1 Attachment(s)
Kinda simplistic. This Laptop (old but trusty IBM T23) has a bigger screen than my eeepc 701SD and 900 ,(I run horizontal conkys also). So I run fluxbox,conky,and tint2 on it. Kinda like a fake gnome 3 setup. Tint2 is set to autohide when not in use.

http://i53.tinypic.com/2hz319l.jpg

The conkyrc file

Code:


# stuff after 'TEXT' will be formatted on screen
##TEXT

background yes
use_xft yes
xftfont Sans:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 250 250
maximum_width 200
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
#default_color FFFF00
#default_color C0C0C0
#default_color F5F5F5
#default_color FF69B4
#default_color black
#default_color grey
#default_color red
#default_color tan2
#default_color dimgrey
#default_color CCCC33
#default_color 800000
#default_color 99FF99
#default_color 99FFFF
default_shade_color black
default_outline_color white
#alignment top_right
alignment top_left
gap_x 12
gap_y 80
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no

TEXT
${font sans-serif:bold:size=8}LINUX BIKER
${font sans-serif:bold:size=8}SYSTEM ${hr 2}
${font sans-serif:normal:size=8}$sysname $kernel $alignr $machine
Host:$alignr$nodename
Time: ${time %a %d %b %l:%M:%S%p}
Uptime:$alignr$uptime
File System: $alignr${fs_type}
Weather: ${execi 300 /home/harry/.weather.sh 79772}
Battery: ${battery_bar 8,44 BAT0} ${execi 1 /home/harry/.battery.sh}
LAPPY TEMP:  ${acpitemp}c
${font sans-serif:bold:size=8}PROCESSORS ${hr 2}
${font sans-serif:normal:size=8}${cpugraph cpu1}
CPU1: ${cpu cpu1}% ${cpubar cpu1}

${font sans-serif:bold:size=8}MEMORY ${hr 2}
${font sans-serif:normal:size=8}RAM $alignc $mem / $memmax $alignr $memperc%
$membar
${font sans-serif:bold:size=8}DISKS ${hr 2}
${font sans-serif:normal:size=8}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
${fs_bar /}
${font sans-serif:normal:size=8}/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_used_perc /home}%
${fs_bar /home}
SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}%
${swapbar}
${font sans-serif:bold:size=8}TOP PROCESSES ${hr 2}
${font sans-serif:normal:size=8}${top_mem name 1}${alignr}${top mem 1} %
${top_mem name 2}${alignr}${top mem 2} %
$font${top_mem name 3}${alignr}${top mem 3} %
$font${top_mem name 4}${alignr}${top mem 4} %
$font${top_mem name 5}${alignr}${top mem 5} %

${font sans-serif:bold:size=8}NETWORK ${hr 2}
${color}link strength: ${color} ${wireless_link_bar 7,50 wlan0}
#${font sans-serif:normal:size=8}IP address: $alignr ${addr wlan0}
#ESSID: $alignr ${wireless_essid wlan0}
Connection quality: $alignr ${wireless_link_qual_perc wlan0}%
${downspeedgraph wlan0}
DLS:${downspeed wlan0} kb/s $alignr total: ${totaldown wlan0}
${upspeedgraph wlan0}
ULS:${upspeed wlan0} kb/s $alignr total: ${totalup wlan0}



tintrc if anybody wants it. Under applications add your own or comment out mine.

Code:

#---------------------------------------------
# TINT2 CONFIG FILE mouseover
#---------------------------------------------

#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------
#1 panel background
rounded = 7
border_width = 1
#background_color = #002050 00
background_color = #000510 70
#background_color = #404040 20
border_color = #ffffff 18

#2 active window
rounded = 5
border_width = 1
background_color = #ffffff 18
border_color = #ffff00 100

#3 normal window
rounded = 5
border_width = 2
background_color = #ffffff 18
border_color = #ffffff 0

#4 urgent window
rounded = 5
border_width = 0
background_color = #ba5d00 100
border_color = #ffffff 50

#5 systray
rounded = 2
border_width = 0
background_color = #000000 0
border_color = #ffffff 40

#6 hovered window
rounded = 5
border_width = 1
background_color = #ffffff 18
border_color = #ffffff 100

#7 hovered active window
rounded = 5
border_width = 1
background_color = #ffffff 18
border_color = #aaaa55 100

#8 hovered urgent window
rounded = 5
border_width = 1
background_color = #ba5d00 100
border_color = #ffffff 100

#9 tooltip background
rounded = 7
border_width = 1
background_color = #000000 0
border_color = #ffffff 18

#---------------------------------------------
# PANEL
#---------------------------------------------
panel_items = CSTL
panel_monitor = all
panel_position = bottom right vertical
#panel_position = bottom right horizontal
panel_size = 100% 152
panel_margin = 0 0
panel_padding = 5 0
font_shadow = 0
panel_background_id = 1
wm_menu = 1
panel_dock = 0
strut_policy = follow_size
#strut_policy = none
panel_layer = top

#---------------------------------------------
# TASKBAR
#---------------------------------------------
taskbar_mode = multi_desktop
taskbar_padding = 2 3 2
taskbar_background_id = 0

taskbar_name = 1
taskbar_name_padding = 6 3
taskbar_name_font = Liberation Sans 8
taskbar_name_font_color = #ffffff 100
taskbar_name_active_font_color = #ffffff 100
taskbar_name_background_id = 0
taskbar_name_active_background_id = 0


#---------------------------------------------
# TASKS
#---------------------------------------------
task_icon = 1
task_text = 1
task_maximum_size = 140 35
task_centered = 1
task_padding = 6 3
task_font = Liberation Sans 8
task_font_color = #ffffff 100
task_background_id = 3
task_icon_asb = 100 0 0
# replace STATUS by 'urgent', 'active' or 'iconfied'
#task_STATUS_background_id = 2
#task_STATUS_font_color = #ffffff 85
#task_STATUS_icon_asb = 100 0 0
# example:
task_active_background_id = 2
task_urgent_background_id = 4
# use STATUShovered for mouseover effects
task_normalhovered_background_id = 6
task_activehovered_background_id = 7
task_urgenthovered_background_id = 8
urgent_nb_of_blink = 100000

#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------
systray = 1
systray_padding = 4 4 4
systray_background_id = 5
systray_sort = left2right
# maximum icon size
systray_icon_size = 28
systray_icon_asb = 100 0 0

#---------------------------------------------
# APPLICATION LAUNCHER
#---------------------------------------------
launcher_padding = 2 4 2
launcher_background_id = 5
# Icon size
launcher_icon_size = 32

# Each launcher_item_app must be a full path to a .desktop file
launcher_item_app = /usr/share/applications/iceape-mailnews.desktop
launcher_item_app = /usr/share/applications/iceape-navigator.desktop
launcher_item_app = /usr/share/applications/geany.desktop
launcher_item_app = /usr/share/applications/gimp.desktop
launcher_item_app = /usr/share/applications/gxine.desktop
launcher_item_app = /usr/share/applications/gksu.desktop
launcher_item_app = /usr/share/applications/roxterm.desktop
launcher_item_app = /usr/share/applications/Thunar.desktop
launcher_item_app = /usr/share/applications/rox-filer.desktop



#---------------------------------------------
# CLOCK
#---------------------------------------------
time1_format = %H:%M
time1_font = sans bold 9
time2_format = %A %d %B
time2_font = Liberation Sans 8
clock_font_color = #ffffff 90
clock_padding = 1 0
clock_background_id = 0
clock_lclick_command = korganizer
clock_rclick_command = zenity --calendar --text ""
clock_tooltip = %A %0d %B %Y %nWeek %W
#time1_timezone = :US/Hawaii
#time2_timezone = :Europe/Berlin
#clock_tooltip_timezone = :/usr/share/zoneinfo/Europe/Paris

#---------------------------------------------
# BATTERY
#---------------------------------------------
#battery = 0
#battery_hide = 80
#battery_low_status = 10
#battery_low_cmd = notify-send -u critical -t 1000000 -i battery-caution "Low battery" "Level: 10%"
#bat1_font = sans 8
#bat2_font = sans 6
#battery_font_color = #ffaa00 100
#battery_padding = 1 0
#battery_background_id = 0

#---------------------------------------------
# TOOLTIP
#---------------------------------------------
tooltip = 1
tooltip_padding = 2 2
tooltip_show_timeout = 0.3
tooltip_hide_timeout = 0.1
tooltip_background_id = 9
tooltip_font_color = #ffffcc 100
tooltip_font = Sans 8

#---------------------------------------------
# MOUSE ACTION ON TASK
#---------------------------------------------
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify

#---------------------------------------------
# AUTOHIDE OPTIONS
#---------------------------------------------
autohide = 1
autohide_show_timeout = 0.1
autohide_hide_timeout = 0.1
autohide_height = 2

A Horizontal conkyrc I run

Code:

#avoid flicker
double_buffer yes

#own window to run simultanious 2 or more conkys
own_window  yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager

#borders



#shades
draw_shades no

#position
gap_x 0
gap_y 4
alignment top_left

#behaviour
update_interval 1

#colour
default_color  green yellow
#default_shade_color 000000
own_window_colour 262729

#font
use_xft yes
xftfont sans:size=8

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

#to prevent window from moving
use_spacer none
minimum_size 1024 0

#mpd
#mpd_host localhost
#mpd_port 6600

TEXT
Date: ${color e0e0e0}${time %d/%m/%y} ${color} Time: ${color e0e0e0}${time %H:%M}${color}  |  Kernel: ${color e0e0e0}$kernel${color}  |  Cpu: ${color e0e0e0}${cpu}%${color}  Ram: ${color e0e0e0} $memperc% ${color} Swap: ${color e0e0e0} $swapperc% ${color} Disk: ${color e0e0e0}${fs_used_perc /}%${color} Home: ${color e0e0e0}${fs_used_perc /home}%${color}  |  Cpu: ${color e0e0e0}${acpitemp}°C${color}  | Signal: ${wireless_link_bar 7,50 wlan0} | ${color}Batt: ${color}$acpiacadapter, ${battery_percent BAT0}% ${execi 300 /home/harry/.battery.sh}

$memmax  ${execi 300 /home/harry/.weather.sh 79772}

~/.battery.sh (I have acpi and apm and acpi-tools installed. I have no /proc/acpi/battery folder. So I grab battery info from /sys/class/power_supply

Code:

#!/usr/bin/env python

import os, math
from decimal import *

rate = 0.0
batteries = os.listdir("/sys/class/power_supply")
output = "No Data"

for battery in batteries:
    if "BAT" in battery:
        status = open("/sys/class/power_supply/%s/status" % (battery)).read().strip("\n")
        if "Discharging" in status:
            energy = Decimal(open("/sys/class/power_supply/%s/energy_now" % (battery)).read())
            power = Decimal(open("/sys/class/power_supply/%s/power_now" % (battery)).read())
            if power > 0:
                hours = math.floor(energy / power)
                minutes = math.floor(((energy % power) / power) * 60)
                output = "%.0f hours %.0f minutes" % (hours, minutes)
            else:
                output = "Gathering"
        else:
            output = status
print output

~/.weather.sh ,(needs curl and perl installed)

Code:

#!/bin/sh
#AccuWeather (r) RSS weather tool for conky
#
#USAGE: weather.sh <locationcode>
#
#(c) Michael Seiler 2007

METRIC=0 #Should be 0 or 1; 0 for F, 1 for C

if [ -z $1 ]; then
    echo
    echo "USAGE: weather.sh <79772>"
    echo
    exit 0;
fi

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

Attachment 8078

rokytnji 09-29-2011 03:43 PM

2 Attachment(s)
Puppy 520 with JWM with wbar

Attachment 8082

Code:

#  acpifan                          ACPI fan state                         

#  acpitemp                          ACPI temperature.                       

#  adt746xcpu                        CPU temperature from therm_adt746x     

#  adt746xfan                        Fan speed from therm_adt746x           

#  battery          (num)          Remaining capacity in ACPI or APM       

#                                    battery. ACPI battery number can be     

#                                    given as argument (default is BAT0).   

#  buffers                          Amount of memory buffered               

#  cached                            Amount of memory cached                 

#  color            (color)        Change drawing color to color           

#  cpu                              CPU usage in percents                   

#  cpubar            (height)        Bar that shows CPU usage, height is     

#                                    bar's height in pixels                 

#  downspeed        net            Download speed in kilobytes             

#  downspeedf        net            Download speed in kilobytes with one   

#                                    decimal                                 

#  exec              shell command  Executes a shell command and displays   

#                                    the output in torsmo. warning: this     

#                                    takes a lot more resources than other   

#                                    variables. I'd recommend coding wanted 

#                                    behavior in C and posting a patch :-). 

#  execi            interval, shell Same as exec but with specific interval.

#                    command        Interval can't be less than             

#                                    update_interval in configuration.       

#  fs_bar            (height), (fs)  Bar that shows how much space is used on

#                                    a file system. height is the height in 

#                                    pixels. fs is any file on that file     

#                                    system.                                 

#  fs_free          (fs)            Free space on a file system available   

#                                    for users.                             

#  fs_free_perc      (fs)            Free percentage of space on a file     

#                                    system available for users.             

#  fs_size          (fs)            File system size                       

#  fs_used          (fs)            File system used space                 

#  hr                (height)        Horizontal line, height is the height in

#                                    pixels                                 

#  i2c              (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev 

#                                    may be omitted if you have only one I2C 

#                                    device. type is either in (or vol)     

#                                    meaning voltage, fan meaning fan or temp

#                                    meaning temperature. n is number of the 

#                                    sensor. See /sys/bus/i2c/devices/ on   

#                                    your local computer.                   

#  kernel                            Kernel version                         

#  loadavg          (1), (2), (3)  System load average, 1 is for past 1   

#                                    minute, 2 for past 5 minutes and 3 for 

#                                    past 15 minutes.                       

#  machine                          Machine, i686 for example               

#  mails                            Mail count in mail spool. You can use   

#                                    program like fetchmail to get mails from

#                                    some server using your favorite       

#                                    protocol. See also new_mails.           

#  mem                              Amount of memory in use                 

#  membar            (height)        Bar that shows amount of memory in use 

#  memmax                            Total amount of memory                 

#  memperc                          Percentage of memory in use             

#  new_mails                        Unread mail count in mail spool.       

#  nodename                          Hostname                               

#  outlinecolor      (color)        Change outline color                   

#  pre_exec          shell command  Executes a shell command one time before

#                                    torsmo displays anything and puts output

#                                    as text.                               

#  processes                        Total processes (sleeping and running) 

#  running_processes                Running processes (not sleeping),       

#                                    requires Linux 2.6                     

#  shadecolor        (color)        Change shading color                   

#  stippled_hr      (space),        Stippled (dashed) horizontal line       

#                    (height)       

#  swapbar          (height)        Bar that shows amount of swap in use   

#  swap                              Amount of swap in use                   

#  swapmax                          Total amount of swap                   

#  swapperc                          Percentage of swap in use               

#  sysname                          System name, Linux for example         

#  time              (format)        Local time, see man strftime to get more

#                                    information about format               

#  totaldown        net            Total download, overflows at 4 GB on   

#                                    Linux with 32-bit arch and there doesn't

#                                    seem to be a way to know how many times 

#                                    it has already done that before torsmo 

#                                    has started.                           

#  totalup          net            Total upload, this one too, may overflow

#  updates                          Number of updates (for debugging)       

#  upspeed          net            Upload speed in kilobytes               

#  upspeedf          net            Upload speed in kilobytes with one     
# stuff after 'TEXT' will be formatted on screen
##TEXT

background yes
use_xft yes
xftfont Sans:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window no
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 250 250
maximum_width 200
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
#default_color black
#default_color grey
#default_color red
#default_color tan2
#default_color dimgrey
#default_color CCCC33
#default_color 800000
#default_color 99FF99
default_color 99FFFF
default_shade_color black
default_outline_color white
alignment top_right
#alignment top_left
gap_x 12
gap_y 100
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no

TEXT
${font sans-serif:bold:size=8}BIKER PUPPY 520 FULL
${font sans-serif:bold:size=8}SYSTEM ${hr 2}
${font sans-serif:normal:size=8}$sysname $kernel $alignr $machine
Host:$alignr$nodename
Uptime:$alignr$uptime
File System: $alignr${fs_type}

Battery:  $acpiacadapter, ${battery_percent BAT0}%  ${battery_time BAT0}
TEMP:  ${acpitemp}c
${font sans-serif:bold:size=8}PROCESSORS ${hr 2}
${font sans-serif:normal:size=8}${cpugraph cpu1}
CPU1: ${cpu cpu1}% ${cpubar cpu1}

${font sans-serif:bold:size=8}MEMORY ${hr 2}
${font sans-serif:normal:size=8}RAM $alignc $mem / $memmax $alignr $memperc%
$membar
${font sans-serif:bold:size=8}DISKS ${hr 2}
${font sans-serif:normal:size=8}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
${fs_bar /}
SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}%
${swapbar}
${font sans-serif:bold:size=8}TOP PROCESSES ${hr 2}
${font sans-serif:normal:size=8}${top_mem name 1}${alignr}${top mem 1} %
${top_mem name 2}${alignr}${top mem 2} %
$font${top_mem name 3}${alignr}${top mem 3} %
$font${top_mem name 4}${alignr}${top mem 4} %
$font${top_mem name 5}${alignr}${top mem 5} %

${font sans-serif:bold:size=8}NETWORK ${hr 2}
${color}link strength: ${color} ${wireless_link_bar 7,50 wlan0}
#${font sans-serif:normal:size=8}IP address: $alignr ${addr wlan0}
#ESSID: $alignr ${wireless_essid wlan0}
Connection quality: $alignr ${wireless_link_qual_perc wlan0}%
${downspeedgraph wlan0}
DLS:${downspeed wlan0} kb/s $alignr total: ${totaldown wlan0}
${upspeedgraph wlan0}
ULS:${upspeed wlan0} kb/s $alignr total: ${totalup wlan0}

Edit: Changed Desktop and Conky

Attachment 8925

Daedra 09-29-2011 04:55 PM

1 Attachment(s)
Here is mine, pretty plain but I like it.

Juako 10-18-2011 09:21 AM

my conky
 
1 Attachment(s)
Based on one of the classic formats, been customizing it from a few years now.

http://ompldr.org/tYXY2bQ

Code:

background yes
out_to_console no
update_interval 1

own_window yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour black
own_window_argb_visual yes
own_window_argb_value 90
own_window_class conkybase
double_buffer yes

alignment top_right
maximum_width 205
gap_y 0
gap_x 0
draw_shades no
draw_graph_borders no

default_color white
color1 b4bdff
color2 ddaa00
color3 grey

use_xft yes
xftalpha 1
xftfont Bitstream Vera Sans Mono:size=8
use_spacer left

top_cpu_separate false
cpu_avg_samples 2
no_buffers no
if_up_strictness link
net_avg_samples 2

# cpu
template0 ${color}cpu\1  ${color1}${freq_g \1}Ghz ${color red}${cpubar cpu\1}
# mem
template1 ${color1}$\1 ${color e89d04}${offset 0}${\1bar}
# top
template2 ${if_match ${top cpu \1} == 0}${color 777777}${else}${color3}${endif}${top name \1} ${top pid \1}${top cpu \1}${top mem \1}
# fs
template3 ${color1}${fs_used \1} ${color1}${offset 0}${color 4e6302}${fs_bar \1}
# red
template4 ${if_up \1}\n\n${color}\1  ${color1}${addr \1}\n${color1}${upspeedgraph \1 36,100 ff0000 0000ff}${offset 5}${downspeedgraph \1 36,100 0000ff ff0000}\n${voffset -46}${color}up${alignr}${color}down\n\n${color1}${upspeedf \1} kb/s${alignr}${downspeedf \1} kb/s$endif
#temps
template5 ${exec\ cut\ -b1,3\ /sys/class/hwmon/hwmon\1/temp\2_\3}
template6 ${color}\1${if_match \2 < \3}${color1}${else}${if_match \2 < \4}${color yellow}${else}${color red}${endif}${endif}\2
template7 ${color3}\1${tab 22}${color1}${execi 300 vnstat \2 | sed -ne 's/\\([0-9]\\+\\(\\.[0-9]\\+\\) .B\\)/\\1a/\4;s/^.*\3.* \\([0-9].*B\\)a.*$/\\1/p' }

TEXT
$kernel$alignr${color1}$uptime_short ${color}up

${template0 1}
${template0 2}
${template0 3}
${template0 4}
${color}load  ${color1}$cpu %${alignr}${color}avg ${color1}$loadavg

${color}mem  ${template1 mem}
${color}swap  ${template1 swap}
$alignr${color}vm.swappiness $color1${exec sysctl -q vm.swappiness | sed 's/^.* = \(.*\)$/\1/'}

$alignc${template6 mb ${hwmon\ 1\ temp\ 2} ${template5\ 1\ 2\ max} ${template5\ 1\ 2\ crit}} ${template6 cpu ${hwmon\ 1\ temp\ 1} ${template5\ 1\ 1\ max} ${template5\ 1\ 1\ crit}} ${template6 gpu ${hwmon\ 0\ temp\ 1} ${template5\ 0\ 1\ max} ${template5\ 0\ 1\ crit}} ${template6 sda ${hddtemp} 35 45}

$color/    ${template3 /}
$color/home ${template3 /home}

${color}proc              pid  %cpu  %mem
${template2 1}
${template2 2}
${template2 3}
${template2 4}
${template2 5}
${template2 6}
${template2 7}
${template2 8}
${template2 9}${template4 eth0}${template4 wlan0}${template4 ppp0}${template4 usb0}
${template7 Day -q today 1}${tab 38, 0}${template7 Day -q today 2}
${template7 Week -w current 1}${tab 38, 0}${template7 Week -w current 2}
${template7 Month -m \\d039 1}${tab 38, 0}${template7 Month -m \\d039 2}

I start it with this script that takes care of the hwmon directory inside /sys, which sometimes appear as hwmon0 and sometimes as hwmon1, so I tweak some refs in the rc file with sed file before I fire up conky. You might not need this.

Code:

#/bin/bash
sleep 10
conkyrc="/home/me/data/box/themes/conky/conky_base.rc"
for hwmon in /sys/class/hwmon/*; do
        [[ -f "$hwmon/name" && "$(cat $hwmon/name)"=="k10temp" ]] && A=${hwmon: -1}
        (( B=1/(A+1) ))
done

sed -i '/^$alignc${template6/{h;s/^.*\(gpu.*$\)/\1/;s/\(\(hwmon\|template5\)\\\) '$A'/\1 '$B'/g;x;s/\(^.*\)gpu.*$/\1/;s/^.*\(gpu,*$\)/\1/;s/\(\(hwmon\|template5\)\\\) '$B'/\1 '$A'/g;G;s/\n//}' "$conkyrc"

pkill conky
conky -c "$conkyrc"


weirdwolf 11-01-2011 08:44 PM

First let me say, Nice work to all here.
I really like Conky, It can be as wild or mild as you want it to be.
I tend to favor the simplistic, not a lot more to it than when I first had it with DSL 2.2, even though I didn't know I could change it back then (not that I don't consider making it fancier sometimes).

http://oi44.tinypic.com/290r8qt.jpg

Sector11 01-01-2012 02:07 PM

Entitled: Watching the Watchers!

When my machine boots up, like most people I find myself on "A DECK" (desktop 1)
http://thumbnails43.imagebam.com/167...a167365343.jpg

What isn't readily apparent is on "C DECK" (desktop 3) I have three other conkys that only appear there.
http://thumbnails53.imagebam.com/167...e167365354.jpg

So I am back to running MORE conkys. Now I'll have to find some nice ones for "B DECK" (desktop 2)

A B & C Decks names are holdovers from a StarTrek conky I did a while back. Seems to fit - "What flight Deck are you on?" Since I'm usually found zooming around in my SR-11 that looks amazingly like an SR-71.


All times are GMT -5. The time now is 03:08 PM.