You are not logged in.

#1 2011-02-10 02:27:14

jmdennis
Member
Registered: 2011-02-08
Posts: 3

Post your Conky config

I found this article and I thought others might like it as well.

http://www.techdrivein.com/2011/02/6-aw … works.html

Edit by Mr Green Do not forget to add either a screenshot or link to one so we can view your hard work

Offline

#2 2011-02-10 21:24:16

lrcaballero
Member
From: /Home/San Diego, California
Registered: 2010-11-20
Posts: 261
Website

Re: Post your Conky config

@jmdennis

Thank you for sharing.....

Cheers


Live, Enjoy and Share

Offline

#3 2011-02-25 19:42:47

Pagoda
Member
From: Australia
Registered: 2011-02-14
Posts: 19

Re: Post your Conky config

To save opening a new thread for conky related posts I thought I might post here...
Just thought I might share my one-liner...

2011-02-28--1298851316_1360x768_scrot.png

background yes
use_xft yes
xftfont Ubuntu:size=7.5
xftalpha 0.6
update_interval 1.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_colour black
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
stippled_borders no
default_color eeeeee
default_shade_color 737373
default_outline_color black
alignment tl
minimum_size 1360
maximum_width 1360
gap_x 0
gap_y 3
no_buffers yes
uppercase yes
cpu_avg_samples 1
net_avg_samples 1
override_utf8_locale yes
use_spacer none
text_buffer_size 1024


TEXT
${alignc}HDD - ${execi 5 hddtemp /dev/sda | cut -c 21-30}   |   CPU - ${execi 30 sensors | grep 'temp2' | cut -c15-16}°C   |   Fan - ${execi 30 sensors | grep 'fan1' | cut -c13-21}   |   uptime - $uptime   |   cpu - $cpu%   |   memory - ${mem}b ($memperc%)   |   Processes - $processes   |   Swap - $swap ($swapperc%)   |   downspeed - ${downspeed eth0}   |   upspeed - ${upspeed eth0}   |   ip - ${addr eth0}   |   ${execpi 600 conkyEmail --template=/usr/share/conkyemail/example/conkyEmail.template}   |   Sydney - ${texeci 1800 conkyForecast --location=ASXX0112 --datatype=CT}    ${texeci 1800 conkyForecast --location=ASXX0112 --datatype=HT}   |   Updates  -  ${execi 600 pacman -Qu | wc -l}

Adopters will need to install lm_sensors, hddtemp, conkyemail-bzr and conkyforecast. All are available in AUR.
Help (Read-Me) files are included with conkyemail and conkyforecast.

Last edited by Pagoda (2011-02-27 18:07:44)

Offline

#4 2011-09-05 07:08:06

JohnnyRainCloud
Member
Registered: 2011-09-05
Posts: 9

Re: Post your Conky config

I took 2 that i liked and mixed them together and added a battery bar

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 200 200
maximum_width 200
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color black
default_outline_color white
alignment top_right
gap_x 12
gap_y 12
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no

TEXT
${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:$alignr${battery BAT0}

${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}
${font sans-serif:normal:size=8}IP address: $alignr ${addr ath0}
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 ath0} kb/s $alignr total: ${totalup wlan0}

Offline

#5 2011-09-30 01:53:45

Ghis1964
Member
From: St-Ludger, Beauce, Quebec;)
Registered: 2011-09-16
Posts: 16

Re: Post your Conky config

JohnnyRainCloud wrote:

I took 2 that i liked and mixed them together and added a battery bar

I took what I like from yours and add it to the AB original

thx;)

background yes
use_xft yes
xftfont monospace:size=9
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 200 50
maximum_width 240
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color 000000
default_outline_color d9d7d6
alignment tr
gap_x 12
gap_y 50
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
color1 cyan
color2 gray
##############################################
#  Output
##############################################
TEXT
${color}CPU ${if_match ${cpu} >0}${color1}${else}${color2}${endif}O${if_match ${cpu} >10}${color1}${else}${color2}${endif}O${if_match ${cpu} >20}${color1}${else}${color2}${endif}O${if_match ${cpu} >30}${color1}${else}${color2}${endif}O${if_match ${cpu} >40}${color1}${else}${color2}${endif}O${if_match ${cpu} >50}${color1}${else}${color2}${endif}O${if_match ${cpu} >60}${color1}${else}${color2}${endif}O${if_match ${cpu} >70}${color1}${else}${color2}${endif}O${if_match ${cpu} >80}${color1}${else}${color2}${endif}O${if_match ${cpu} >90}${color1}${else}${color2}${endif}O   ${color}RAM ${if_match ${memperc} >0}${color1}${else}${color2}${endif}O${if_match ${memperc} >10}${color1}${else}${color2}${endif}O${if_match ${memperc} >20}${color1}${else}${color2}${endif}O${if_match ${memperc} >30}${color1}${else}${color2}${endif}O${if_match ${memperc} >40}${color1}${else}${color2}${endif}O${if_match ${memperc} >50}${color1}${else}${color2}${endif}O${if_match ${memperc} >60}${color1}${else}${color2}${endif}O${if_match ${memperc} >70}${color1}${else}${color2}${endif}O${if_match ${memperc} >80}${color1}${else}${color2}${endif}O${if_match ${memperc} >90}${color1}${else}${color2}${endif}O

SHORTCUT KEYS ${hr 2}
Alt+F2$alignr Run Dialog
Super+space$alignr Preferences
Super+t$alignr Terminal
Super+f$alignr File Manager
Super+e$alignr Editor
Super+m$alignr Media Player
Super+w$alignr Web Browser
Super+q$alignr Force Quit
Super+g$alignr Character Map
Super+l$alignr Logout
Super+u$alignr System Upgrade
Super+x$alignr Tiling Keybinds

${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}
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}
${font sans-serif:normal:size=8}
DLS:${downspeed wlan0} kb/s $alignr total: ${totaldown wlan0}
${upspeedgraph wlan0}
ULS:${upspeed ath0} kb/s $alignr total: ${totalup wlan0}

I always find a solution to a problem. Not quiet so for any particular problem I come across though;)

Offline

#6 2012-02-10 05:21:32

pablokal
Administrator
From: Nijmegen, Holland
Registered: 2010-10-12
Posts: 3,634
Website

Re: Post your Conky config

Nice, well done!! You sure mad an original mash up..


Getting your questions answered here at ArchBang Forums
Please! Always give hardware info, if there is a chance that 's relevant: #lspci -vnn
On Arch(bang) and Openbox: http://stillstup.blogspot.com/

Offline

#7 2012-02-10 16:10:07

handy
Member
Registered: 2011-11-03
Posts: 505

Re: Post your Conky config

I've seen some people get lost in the world of conky config for many months, if not years. Some of the guys into the weather stuff are REALLY into the weather stuff. Sector11 & mrpeachy are the world champions as far as I can tell. They really do set the standard, though mrpeachy has been moving to using the Lua language & not using conky at all.

Offline

#8 2012-04-01 11:54:41

lrcaballero
Member
From: /Home/San Diego, California
Registered: 2010-11-20
Posts: 261
Website

Re: Post your Conky config

Here's my mine, (sorry for some reason I couldn't make use of BBCode option!

4c20e6182698340.jpg

background yes
use_xft yes
xftfont KaratDemo:size=10
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 200 50
maximum_width 240
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color 000000
default_outline_color d9d7d6
alignment tl
gap_x 65
gap_y 65
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale nobackground yes
color1 99cc33
color2 white
##############################################
#  Output
##############################################
TEXT
${font KaratDemo:normal:size=10}$sysname: $kernel $alignr $machine
Host:$alignr$nodename
Uptime:$alignr$uptime

${alignc 85}${font KaratDemo:size=30}${time %l:%M}${font}
${alignc 75}${font KaratDemo Bold:size=10}${time %a %d %b %Y}

${font KaratDemo:normal:size=10}${color}CPU: ${if_match ${cpu} >0}${color1}${else}${color2}${endif}O${if_match ${cpu} >10}${color1}${else}${color2}${endif}O${if_match ${cpu} >20}${color1}${else}${color2}${endif}O${if_match ${cpu} >30}${color1}${else}${color2}${endif}O${if_match ${cpu} >40}${color1}${else}${color2}${endif}O${if_match ${cpu} >50}${color1}${else}${color2}${endif}O${if_match ${cpu} >60}${color1}${else}${color2}${endif}O${if_match ${cpu} >70}${color1}${else}${color2}${endif}O${if_match ${cpu} >80}${color1}${else}${color2}${endif}O${if_match ${cpu} >90}${color1}${else}${color2}${endif}O
${font KaratDemo:normal:size=10}${color}RAM: ${if_match ${memperc} >0}${color1}${else}${color2}${endif}O${if_match ${memperc} >10}${color1}${else}${color2}${endif}O${if_match ${memperc} >20}${color1}${else}${color2}${endif}O${if_match ${memperc} >30}${color1}${else}${color2}${endif}O${if_match ${memperc} >40}${color1}${else}${color2}${endif}O${if_match ${memperc} >50}${color1}${else}${color2}${endif}O${if_match ${memperc} >60}${color1}${else}${color2}${endif}O${if_match ${memperc} >70}${color1}${else}${color2}${endif}O${if_match ${memperc} >80}${color1}${else}${color2}${endif}O${if_match ${memperc} >90}${color1}${else}${color2}${endif}O

${font KaratDemo:bold:size=10}TOP PROCESSES:
${font KaratDemo:normal:size=10}${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} %

Last edited by lrcaballero (2012-04-03 09:48:53)


Live, Enjoy and Share

Offline

#9 2012-04-22 17:29:41

nhianho
Member
Registered: 2011-08-05
Posts: 30

Re: Post your Conky config

I've been trying to find a nice conky to replace the default one of Archbang as well and found this. The conky configs there look really great IMO

Link:

http://www.linuxandlife.com/2011/12/awe … anart.html


My favorite Linux sites: Distrowatch, Tux machines, Linux and Life,

Offline

#10 2012-04-22 18:25:05

handy
Member
Registered: 2011-11-03
Posts: 505

Re: Post your Conky config

You may find this site interesting, at least if you are not already aware of it:

http://conky.pitstop.free.fr/wiki/index … =Main_Page

Offline

#11 2012-04-24 22:04:57

Keta
Member
From: Austria
Registered: 2011-09-13
Posts: 77

Re: Post your Conky config

2012_04_25_1335334938_230x1011_scrot.png

alignment top_right
double_buffer yes
gap_x 5
gap_y 5
override_utf8_locale yes
update_interval 1.0
background yes
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_class conky-semi
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
minimum_size 200 5
maximum_width 200
use_xft yes
xftalpha 0.5
xftfont Sans:size=7

TEXT
${font openlogos:size=20}${font Arial:size=15}${color #0088cc}ARCH ${color Ivory}${font openlogos:size=15}STATS${font }
${font size=7}${color slate grey}Infos $hr${color }${font }

Kernel: ${alignr}$kernel ($machine)
Uptime: ${alignr}$uptime
Time: ${alignr}${time %H:%M:%S}
Date: ${alignr}${time %d.%m.%y}
User: ${alignr}$alignc${exec whoami} @ $nodename
Filesystem: $alignr${fs_type}

${font size=7}${color slate grey}CPU Usage $hr${color }${font }

CPU1 ${alignr}${cpu cpu0}%
${cpugraph cpu0 14, 200}

CPU2 ${alignr}${cpu cpu1}%
${cpugraph cpu1 14, 200}

CPU3 ${alignr}${cpu cpu2}%
${cpugraph cpu2 14, 200}

CPU4 ${alignr}${cpu cpu3}%
${cpugraph cpu3 14, 200}

${font size=7}${color slate grey}Ram Usage $hr${color }${font }

RAM ${alignr}$mem/$memmax
${membar 6, 200}

Swap ${alignr}$swap/$swapmax
${swapbar 6, 200}

${font size=7}${color slate grey}Filesystem $hr${color }${font }

/ ${alignr}${fs_free /}
${fs_bar 6, 200 /}

/home ${alignr}${fs_free /home}
${fs_bar 6, 200 /home}

/Wako ${alignr}${fs_free /media/Wako}
${fs_bar 6, 200 /media/Wako}

${font size=7}${color slate grey}Top CPU Tasks $hr${color }${font }

${color #ddaa00}${top name 1}${alignr}${top cpu 1}%${color }
${top name 2}${alignr}${top cpu 2}%
${top name 3}${alignr}${top cpu 3}%
${top name 4}${alignr}${top cpu 4}%
${top name 5}${alignr}${top cpu 5}%

${font size=7}${color slate grey}Top RAM Tasks  $hr${color }${font }

${color #ddaa00}${top_mem name 1}${alignr}${top_mem mem 1}%${color }
${top_mem name 2}${alignr}${top_mem mem 2}%
${top_mem name 3}${alignr}${top_mem mem 3}%
${top_mem name 4}${alignr}${top_mem mem 4}%
${top_mem name 5}${alignr}${top_mem mem 5}%

${font size=7}${color slate grey}Network $hr${color }${font }
IP (Lan): $alignr${addr eth0}
IP (Public): $alignr${execi 600 wget http://checkip.dyndns.org/ -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'}
Total Down $alignr${totaldown eth0}
Total Up   $alignr${totalup eth0}

Download ${alignr}${downspeed eth0}
${downspeedgraph eth0 20, 200}

Upload ${alignr}${upspeed eth0}
${upspeedgraph eth0 20, 200}

Outbound Connections:
${tcp_portmon 1 65535 rhost 0}:${tcp_portmon 1 65535 rport 0}
${tcp_portmon 1 65535 rhost 1}:${tcp_portmon 1 65535 rport 1}
${tcp_portmon 1 65535 rhost 2}:${tcp_portmon 1 65535 rport 2}
${tcp_portmon 1 65535 rhost 3}:${tcp_portmon 1 65535 rport 3}
${tcp_portmon 1 65535 rhost 4}:${tcp_portmon 1 65535 rport 4}
${tcp_portmon 1 65535 rhost 5}:${tcp_portmon 1 65535 rport 5}
${tcp_portmon 1 65535 rhost 6}:${tcp_portmon 1 65535 rport 6}
${tcp_portmon 1 65535 rhost 7}:${tcp_portmon 1 65535 rport 7}

Last edited by Keta (2012-04-25 00:23:18)

Offline

#12 2012-04-24 22:58:46

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,920

Re: Post your Conky config

@Keta check your cpu temp you are showing an 'A'...


Comments, suggestions please feel free to contact me mrgreen(at)archbang(dot)org

Offline

#13 2012-04-25 00:24:42

Keta
Member
From: Austria
Registered: 2011-09-13
Posts: 77

Re: Post your Conky config

Mr Green wrote:

@Keta check your cpu temp you are showing an 'A'...

33° dont bring it to run into conky :S

Offline

#14 2012-06-03 07:29:02

BaronOfBrains
Member
From: 33491 Cedar Creek Ln Lake Elsi
Registered: 2012-05-29
Posts: 20

Re: Post your Conky config

I'm a true minimalist.

When I realized that conky was merely providing data that could be quickly accessed elswhere, I entered the following code into the terminal:

sudo pacman -Rn conky

Now, who wants to see what it looks like?

Last edited by BaronOfBrains (2012-06-03 07:33:38)


The wiki is not wicked.

Offline

#15 2012-06-03 16:00:23

pablokal
Administrator
From: Nijmegen, Holland
Registered: 2010-10-12
Posts: 3,634
Website

Re: Post your Conky config

Just give room for every one to create a set up he likes. We all have our silly weaknesses.
Maybe it is a weakness of you to mock other people for something beautiful they like to create.
But I totally agree with you that conky has not much to do with minimalism and has a lot of nerdy showofferiness. And takes a lot of power of older pc's.
I always felt it  to be like a bit of alternative bling bling, but hey, why not?


Getting your questions answered here at ArchBang Forums
Please! Always give hardware info, if there is a chance that 's relevant: #lspci -vnn
On Arch(bang) and Openbox: http://stillstup.blogspot.com/

Offline

#16 2012-06-03 16:44:29

handy
Member
Registered: 2011-11-03
Posts: 505

Re: Post your Conky config

Each to their own.

I find my conky setups to be really useful, with one of them a quick glance will show me the assorted temperatures & the various system storage resources, CPU usage, network throughput, top process stat's & the 5 most recent posts in the system log. Which to me is like checking the fluids, belts & air pressures in a car.

The other shows me the next 8 days weather forecast; which as a camping addict I find extremely useful, particularly after two of the wettest years on record.

I don't bother with conky on underpowered hardware though.

Last edited by handy (2012-06-03 16:47:48)

Offline

#17 2012-06-29 04:25:28

djyoung4
Member
Registered: 2012-05-02
Posts: 18

Re: Post your Conky config

Heres mine.  an interactive log conky from mrpeachy on the ubuntu and crunchbang forums.  amazing stuff being done with conky these days
tZWp4Zw

tZWp4aQ

# To use #! in a conky use: ${exec echo '#!'}
# killall conky && conky -c ~/Conky/S11_LOGS.conky &

# WARNING: Change name and passwords on e-mail code if posting!!

###  Begin Window Settings  ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
# own_window_colour brown
own_window_class click_log
own_window_title click_log  ##### NOTE instruction in the LUA script! I changed it!

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### 'own_window_type override'
#                                                own_window_argb_visual yes

### When ARGB visuals are enabled, this use this to modify the alpha value
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
#own_window_argb_value 200

minimum_size 900 900     ## width, height
maximum_width 900       ## width, usually a good idea to equal minimum width

gap_x 10 # left-right
gap_y 10 # up-down

alignment tl #top_right
###################################################  End Window Settings  ###
###  Font Settings  #########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Anonymous Pro:size=9

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 0
# Force UTF8? requires XFT ###
override_utf8_locale yes

draw_shades no
default_shade_color black

draw_outline no # amplifies text if yes
default_outline_color black

uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
default_shade_color grey
default_outline_color black

default_color DCDCDC #Gainsboro
color0 9ACD32 #YellowGreen
color1 778899 #LightSlateGrey
color2 FF8C00 #Darkorange
color3 7FFF00 #Chartreuse
color4 FFA07A #LightSalmon
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 00FFFF #Cyan 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders no #yes
default_graph_size 15 40
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################

# Boolean value, if true, Conky will be forked to background when started.
background no

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 2048

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
## Above and After TEXT - requires a composite manager or blinks.
##
# lua_load ~/Conky/LUA/draw-bg.lua
#TEXT
#${lua conky_draw_bg 10 0 0 0 0 0x000000 0.6}
#
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
## OR Both above TEXT (No composite manager required - no blinking!)
#
#lua_load ~/Conky/LUA/draw-bg.lua
#lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.5
#
## Calling the weather script
#
# lua_load ~/v9000/v9000.lua
# lua_draw_hook_post weather
# lua_load ~/Conky/templates/v9003-V-template.lua
#
#starts the lua weather data gathering function, call once at top of conkyrc
##
#######################################################  End LUA Settings  ###

# The all important - How often conky refreshes.
# If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP!
update_interval 1


# Load Lua scripts
#lua_load ~/Conky/LUA/clock.lua
#lua_draw_hook_pre draw_clock

lua_load /home/djyoung4/conky/interactive_log/lua
lua_draw_hook_pre conky_main


## on blank line after text!
TEXT

lua

--[[conky interactive log messages by mrpeachy 03/12
http://youtu.be/SQVX3sgXdnA
call in conkyrc in a similar manner to this
lua_load /home/mcdowall/lua/filename.lua
lua_draw_hook_pre draw_main

in the conkyrc you also need to add this setting

own_window_title click_log

or you can set your own window title then edit towards the bottom of the script
so that any instances of click_log are replaced with the title you set
avoid spaces in title name

]]

require 'cairo'
start=1
buttons={}
buttons[1]=0
text_table={}
--------------------------------------------------------------------------------
function conky_main()
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
cr = cairo_create(cs)
local updates=tonumber(conky_parse('${updates}'))
if updates>5 then
--#########################################################################################################
--get click coordinates
localx,localy=clickfunction()--dont edit
--##############################################
--SETTINGS #####################################
--set message length
local tail_length=1
commands={
"dmesg",
"/var/log/auth.log",
"/var/log/boot",
"/var/log/daemon.log",
"/var/log/errors.log",
"/var/log/ConsoleKit/history",
"/var/log/everything.log",
"/var/log/kernel.log",
"/var/log/messages.log",
"/var/log/pacman.log",
"/var/log/slim.log",
"/var/log/syslog.log",
"/var/log/user.log",
"/var/log/pm-powersave.log",
"/var/log/Xorg.0.log",
"/var/log/Xorg.0.log.old",
}
--setup list table
list={
"dmesg",
"auth.log",
"boot",
"daemon.log",
"errors.log",
"ConsoleKit/history",
"everything.log",
"kernel.log",
"messages.log",
"pacman.log",
"slim.log",
"syslog.log",
"user.log",
"pm-powersave.log",
"Xorg.0.log",
"Xorg.0.log.old",
}
--set list font and size
local list_font="Anonymous Pro"
local list_fsize=12
--set text properties for LOG main button
local log_text="[Logs]"
local log_font="Anonymous Pro"
local log_fsize=12
--set button top left corner coordinates and width/heioght
local log_tlx=20.5
local log_tly=20.5
--need to set the top left corner of the top button in the list
local list_tlx=100.5
local list_tly=20.5
--set gap between buttons
local gap=5
--setup sections###############################
--set topl left coords and size of close button
local tlx_close=300.5
local tly_close=20.5
--set text properties for CLOSE main button
local close_text="[Close]"
local close_font="Anonymous Pro"
local close_fsize=12
--set properties for section display text
local section_font="Anonymous Pro"
local section_fsize=12
local section_blx=20.5
local section_bly=50.5
--set how many lines to show
local max_lines=60
local line_height=12
--END OF SETTINGS ########################################
--########################################################
--calculate number of entries in the above table
number_in_list=#list
--main button, button1 ###################################
--get dimensions of log text
cairo_select_font_face (cr, log_font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, log_fsize)
--get font height
extents=cairo_text_extents_t:create()
cairo_text_extents(cr,log_text,extents)
local log_height=extents.height
local log_width=extents.width
--########################################################
--calculate if click was inside box
if localx>=log_tlx and localx<=log_tlx+log_width and localy>=log_tly and localy<=log_tly+log_height and buttons[1]~=1 then
buttons[1]=1
elseif localx>=log_tlx and localx<=log_tlx+log_width and localy>=log_tly and localy<=log_tly+log_height and buttons[1]==1 then
buttons[1]=0
end
if buttons[1]==1 then
color={1,0,0,1}--set on color red
elseif buttons[1]==0 then
color={1,1,1,1}--offcolor white
end
cairo_set_source_rgba (cr,color[1],color[2],color[3],color[4])
--[[draw the box for positioning purposes, you can comment out the draw commands later
cairo_set_line_width (cr,1)
cairo_rectangle (cr,tlx,tly,width,height)
cairo_stroke (cr)--]]
--write title
cairo_move_to (cr,log_tlx,log_tly+log_height)
cairo_show_text (cr,log_text)
cairo_stroke (cr)
--------------------------------------------------------------------------------------
--if the main button is clicked then all this stuff will happen
if buttons[1]==1 then 
--generate buttons
cairo_select_font_face (cr, list_font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, list_fsize)
--get font height
local getheight_text="the quick brown fox jumps over the lazy dog"
extents=cairo_text_extents_t:create()
cairo_text_extents(cr,getheight_text,extents)
list_height=extents.height--dont localize
for i=1,number_in_list do --use a for loop to generate all the buttons with a single code chunk
--###########################################################
--buttons--##################################################
--calculate width and height based on text and font and fsize
local list_text=list[i]
extents=cairo_text_extents_t:create()
cairo_text_extents(cr,list_text,extents)
local list_width=extents.width
--###########################################################
--calculate if click is inside buttons
    if localx>=list_tlx and localx<=list_tlx+list_width and localy>=list_tly+((gap+list_height)*(i-1)) and localy<=list_tly+((gap+list_height)*(i-1))+list_height and buttons[tostring("button1_"..i)]~=1 then
    buttons[tostring("button1_"..i)]=1
    elseif localx>=list_tlx and localx<=list_tlx+list_width and localy>=list_tly+((gap+list_height)*(i-1)) and localy<=list_tly+((gap+list_height)*(i-1))+list_height and buttons[tostring("button1_"..i)]==1 then
    buttons[tostring("button1_"..i)]=0
    end
if buttons[tostring("button1_"..i)]==1 then
color={1,0,0,1}--set on color red
--also going to turn off all the other buttons
        n=i
        for i=1,number_in_list do
            if i~=n then
            buttons[tostring("button1_"..i)]=0
            end
        end
        buttons[1]=0
else--if buttons[tostring("button1_"..i)]==0 then
color={1,1,1,1}--offcolor white
end
cairo_set_source_rgba (cr,color[1],color[2],color[3],color[4])
--[[draw the box for positioning purposes, you can comment out the draw commands later
cairo_set_line_width (cr,1)
cairo_rectangle (cr,tlx,tly+((gap+height)*(i-1)),width,height)
cairo_stroke (cr)--]]
--------------------------------------------------------------------------------------
--write titles
cairo_move_to (cr,list_tlx,list_tly+((gap+list_height)*(i-1))+list_height)
cairo_show_text (cr,list_text)
cairo_stroke (cr)
end--for loop
end--if main button=1
--############################################################
--activate the function
--get dimensions of close text
cairo_select_font_face (cr, close_font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, close_fsize)
--get font height
extents=cairo_text_extents_t:create()
cairo_text_extents(cr,close_text,extents)
local height_close=extents.height
local width_close=extents.width
for i=1,number_in_list do
    if buttons[tostring("button1_"..i)]==1 then
if get_text~=1 then
text_table={}
--do the thing and put it in table
if i>1 then
    local file = assert(io.open(tostring(commands[i]), "r"))
    for line in file:lines() do 
    table.insert(text_table,line)
    end
    file:close()
    get_text=1
elseif i==1 then
    local file = io.popen(tostring(commands[i]))
    for line in file:lines() do 
    table.insert(text_table,line)
    end
    file:close()
    get_text=1    
end
end
    cairo_set_source_rgba (cr,1,1,1,1)    
    cairo_select_font_face (cr, section_font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, section_fsize)
    for i=1,max_lines do
    cairo_move_to (cr,section_blx,section_bly+((i-1)*line_height))
    cairo_show_text (cr,text_table[i])
    cairo_stroke (cr)    
    end
    cairo_set_source_rgba (cr,1,1,1,1)    
    cairo_select_font_face (cr, list_font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, list_fsize)
    cairo_move_to (cr,list_tlx,list_tly+list_height)
    cairo_show_text (cr,list[i])
    cairo_stroke (cr)    
    --loadstring('button1_'..i..'display("'..section_font..'",'..section_fsize..','..section_blx..','..section_bly..')')()
    --close button- turns everything off back to start position
    --calculate if click was inside box
    if localx>=tlx_close and localx<=tlx_close+width_close and localy>=tly_close and localy<=tly_close+height_close and buttons[2]~=1 then
    buttons[2]=1
    elseif localx>=tlx_close and localx<=tlx_close+width_close and localy>=tly_close and localy<=tly_close+height_close and buttons[2]==1 then
    buttons[2]=0
    end
    if buttons[2]==1 then
    color={1,0,0,1}--set on color red    
            for i=1,number_in_list do
                buttons[tostring("button1_"..i)]=0
            end
            buttons[1]=0
            buttons[2]=0
            get_text=0
    else
    color={1,1,1,1}--offcolor white
    end
    cairo_set_source_rgba (cr,color[1],color[2],color[3],color[4])
    --[[draw the box for positioning purposes, you can comment out the draw commands later
    cairo_set_line_width (cr,1)
    cairo_rectangle (cr,tlx_close,tly_close,width_close,height_close)
    cairo_stroke (cr)--]]
    --write titles
    cairo_select_font_face (cr, close_font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, close_fsize)
    cairo_move_to (cr,tlx_close,tly_close+height_close)
    cairo_show_text (cr,close_text)
    cairo_stroke (cr)
    end--if button =1
end--for i=
--#########################################################################################################
end-- if updates>5
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end--end main function

function clickfunction()
--start click logging and calculations ##########################################
if start==1 then
xdot=conky_parse("${if_running xdotool}1${else}0${endif}")
    if tonumber(xdot)==1 then
    os.execute("/usr/bin/killall xdotool && echo 'xdo killed' &")
    end
os.execute("xdotool search --name click_log behave %@ mouse-click getmouselocation >> /tmp/xdo &")
start=nil--]]
local f = io.popen("xwininfo -name 'click_log' | grep 'Absolute'")
geometry = f:read("*a")
f:close()
geometry=string.gsub(geometry,"[\n]","")
s,f,abstlx=string.find(geometry,"X%p%s*(%d*)")
s,f,abstly=string.find(geometry,"Y%p%s*(%d*)")
end--if start=1 ######################################
--click calculations #################################
local f=io.open("/tmp/xdo")
click=f:read()
f:close()
    if click~=nil then
    local f = io.open("/tmp/xdo","w")
    f:write("")
    f:close() 
    end--if click=nil
if click==nil then click="x:0 y:0 " end
s,f,mousex=string.find(click,"x%p(%d*)%s")
s,f,mousey=string.find(click,"y%p(%d*)%s")
mousex=tonumber(mousex)
mousey=tonumber(mousey)
localx=mousex-abstlx
localy=mousey-abstly
--END CLICK CALCULATIONS #################################
return localx,localy
end--function

Last edited by djyoung4 (2012-06-29 04:25:50)

Offline

#18 2013-09-28 20:40:46

Supergeek800
Member
From: Lawton, OK
Registered: 2012-11-06
Posts: 17
Website

Re: Post your Conky config

Here's my  configuration, I basically took the stock configuration, and tweaked it, adding bits and pieces from you guys' configurations, as well as the weather info from http://ragingpenguin.us/2013/01/19-simp … il-config/
--------------------------------------------------------------------------------------------------------------------------
Configuration parameters
--------------------------------------------------------------------------------------------------------------------------

background yes
use_xft yes
xftfont monospace:size=9
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
own_window_colour black
double_buffer yes
minimum_size 3 3
maximum_width 400
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color gray
default_shade_color 000000
default_outline_color d9d7d6
alignment tr
gap_x 12
gap_y 12
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
color1 red
color2 gray
##############################################
#  Output
##############################################
TEXT
CPU: $alignr${cpu cpu0}%
${cpubar cpu0}
RAM: $alignr$mem / $memmax $alignr ${memperc}%
$membar
SWAP: $alignr${swap} / ${swapmax} $alignr ${swapperc}%
${swapbar}
HOST: $alignr$nodename
UPTIME: $alignr$uptime

HD ${hr 2}
/ ${alignr} ${fs_size /} / ${fs_free /} - ${fs_used_perc /}% used / ${fs_free_perc /}% free
${fs_bar /} 

SYSTEM ${hr 2}
$sysname $kernel $alignr $machine

WEATHER ${hr 2}
${execpi 1000 curl -s [url]http://weather.noaa.gov/pub/data/observations/metar/decoded/KLAW.TXT[/url] | sed -n 3,9p}

WARNINGS/WATCHES/ADVISORIES ${hr 2}
${execpi 1000 wget -q --output-document="/tmp/wraw.txt" http://alerts.weather.gov/cap/wwaatmget.php?x=OKZ038&y=1}\
${execpi 1000 cat /tmp/wraw.txt | grep "<title>" | sed -n 2,4p | sed -e 's/^[[:space:]]*//' | sed -e 's/\///' | sed -e 's/<title>//g' | sed -e 's/ until/\nuntil/' | sed "s/\([a-zA-Z]\)\s*$/\1/" > /tmp/walerts.txt}\
${execpi 1000 cat /tmp/walerts.txt}

NET ${hr 2}
Down: ${downspeed enp0s19f5u6} kb/s $alignr total: ${totaldown enp0s19f5u6}
Up: ${upspeed enp0s19f5u6} kb/s $alignr total: ${totalup enp0s19f5u6}

Added code tags -- Mr Green

Last edited by Supergeek800 (2013-10-01 17:03:45)


Metal: HP dc5750 | OS: Arch 32-bit | Kernel: 3.13.6-1-ARCH | 1.8GHz AMD Sempron 3400+ | 1.5GiB RAM | 80GiB HDD | Display manager: LXDM | DE: MATE or E18.

Offline

#19 2013-11-09 11:55:11

akts
Member
Registered: 2013-11-01
Posts: 6

Re: Post your Conky config

Mine!! A simple conky bar big_smile

#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
draw_borders no
border_margin 3

#shades
draw_shades no

#position
gap_x 0
gap_y 25
alignment bottom_left

#behaviour
update_interval 1

#colour
default_color  8f8f8f
#default_shade_color 000000
own_window_colour 191919

#font
use_xft yes
xftfont Dejavu Sans:size=7

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

#to prevent window from moving
use_spacer none
minimum_size 1280 0

TEXT
${alignc}Date: ${color e0e0e0}${time %d/%m/%y}${color}  Time: ${color e0e0e0}${time %H:%M}${color}  |  Kernel: ${color e0e0e0}$kernel${color}  Uptime: ${color e0e0e0}${uptime_short}${color}  |  Cpu: ${color e0e0e0}${cpu}%${color}  Ram: ${color e0e0e0}${memperc}%${color}  Swap: ${color e0e0e0}${swapperc}%${color}  Battery: ${color e0e0e0}${battery_percent BAT0}%${color}  Disk: ${color e0e0e0}${fs_used_perc /}%${color}

It looks like
IwA8VDp.png

I have a 1280X800 screen, adjust for your resolution big_smile

Offline

Board footer

Powered by FluxBB