Manjaro Linux Forum

Contributions & Artwork => Artwork and Screenshots => Topic started by: tsw on 23. March 2013, 18:12:16

Title: Conky thread, show your work!
Post by: tsw on 23. March 2013, 18:12:16
Yes, in thesame spirit as on Arch forum, a conky thread. Found one  here, but felt very dead. So, I'll try to make a new one.

I hope we can share usefull commands and bright ideas here.  Of course I start with sharing mine,
it is work in progress, change it all the time, but it's getting there. Will add conkyrc to the pastebin later (will edit post then).

I've made the rough layout, now for some tweaks, colors, and some polsih - and to me thats the hard part, make it look good.
Must add some TOP aswell, and minor details.

(http://www.pictures.se/bilder/guMAD.th.png) (http://www.pictures.se/bild/fj)

And a little tip also. Use IF when making conkys! Like for my interfaces. eth0 for example.

${if_existing /proc/net/route eth0} Write stuff about it IF used.${else} eth0 not used.. ${endif}

This can be used in many ways, like ${if_running blabla} , for example spotify, execute a script to find song, IF running. Not the best tip in the world, but maybe helps someone to think out new stuff.
Title: Re: Conky thread, show your work!
Post by: poker98face on 23. March 2013, 18:22:34
(http://i.imgur.com/fuSXE42.jpg[img])
Found on internet, i have changed icon from ubuntu to arch, added second partition and changed color and position :) Can you please tell me how to add clock to conky?
Title: Re: Conky thread, show your work!
Post by: tsw on 23. March 2013, 18:32:42
First, your question: 

${time %a %d %b %Y}   were:  a = day, d = date, b = month, Y  = year

experiment with the variables, there are quite a lot to try.  But just a basic clock: ${time %l:%M}

And now, looking good! you are using openlogos? I've tried it, but only shows square! So anoying. Even that:
[tsw@megatron ~]$ pacman -Q | grep openlogos
ttf-openlogos 0.806-3
Title: Re: Conky thread, show your work!
Post by: poker98face on 23. March 2013, 18:47:43
https://bbs.archlinux.org/viewtopic.php?id=45256 (https://bbs.archlinux.org/viewtopic.php?id=45256) openlogos from repo doesnt working  ;)
Title: Re: Conky thread, show your work!
Post by: mips on 23. March 2013, 19:02:44
When you guys post here it would be helpful if you included the configs in code tags or linked to them on pastebin.
Title: Re: Conky thread, show your work!
Post by: tsw on 23. March 2013, 19:10:03
When you guys post here it would be helpful if you included the configs in code tags or linked to them on pastebin.

Yepp, that was my plan. Easy to grab a complete, or parts of code, or just inspiration. Sharing is caring :)

I just want to make it feel more complete before I paste the code for mine. I will also make it more userfriendly first, many comments and easy
to understand what is what - for changing it and such. So fairly soon I will edit my first post and attach link to pastebin. But the main point with a thread like
this is to share config, almost pointless otherwise.

Changed my mind, sharing it anyway, it is not close to "final", and quite messy, but still, output as it is now will be as in post #1 (you only need to change path
for mount points, and interface names. It has a lot commented out. Beacuse I'm trying layouts all the time, adding, moving, etc :) But here it is as we speak..

Code: [Select]
######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 2

imlib_cache_size 0
double_buffer yes
no_buffers yes

format_human_readable

#####################
# - Text settings - #
#####################
use_xft yes
xftfont Droid Sans:size=8
override_utf8_locale yes
text_buffer_size 2048

#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

alignment top_right
gap_y 10
gap_x 20
border_inner_margin 0

minimum_size 280 300
#maximum_width 400
#maximum_height 460

default_bar_size 92 6

#########################
# - Graphics settings - #
#########################
draw_shades no
default_shade_color 000000
default_color FFFFFF

TEXT
${alignc -24}${color  white}${font Neuropolitical:pixelsize=11}${time %a %d %b %Y}     ${font}
${font Droid Sans:style=Bold:size=8}MANJAROLINUX $hr${font}
##############
# -   OS       - #
##############
${voffset 5}${font OpenLogos:size=35}${font}${goto 45}${voffset -30}Name:  ${alignr}${nodename}
${goto 45}OS: ${alignr}Manjaro Linux
${goto 45}Kernel: ${alignr}${kernel}
${goto 45}Uptime: ${alignr}${uptime}
${goto 45}Avg Load: ${alignr}${cpu cpu0}%
${voffset 8}${font Droid Sans:style=Bold:size=8}SYSTEM $hr${font}
##############
# - SYSTEM - #
##############
# |--CPU
${voffset 6}${font Droid Sans:style=Bold:size=8}CPU${font}${offset -20}${goto 45}Core 1: ${font Droid Sans:style=Bold:size=8}${cpu cpu1}%${font} ${alignr}Core 2: ${font Droid Sans:style=Bold:size=8}${cpu cpu2}%${font}
${goto 45}Core 3: ${font Droid Sans:style=Bold:size=8}${cpu cpu3}%${font} ${alignr}Core 4: ${font Droid Sans:style=Bold:size=8}${cpu cpu4}%
# |--MEM
${voffset 6}${font Droid Sans:style=Bold:size=8}RAM${font}${goto 45}RAM: ${font Droid Sans:style=Bold:size=8}$memperc%${font} ${alignr}${membar 7,70}
${goto 45}Free: ${font Droid Sans:style=Bold:size=8}${memeasyfree}${font} ${alignr}Used: ${font Droid Sans:style=Bold:size=8}${mem}${font}
# |--HDD'

${font Droid Sans:style=Bold:size=8}STORAGE $hr${font}
${voffset 5}${goto 45}Root ${font Droid Sans:style=Bold:size=8}${fs_used_perc /}%${font} ${alignr}${fs_bar 7,70 /}
${goto 45}Free: ${font Droid Sans:style=Bold:size=8}${fs_free /}${font} ${alignr}Used: ${font Droid Sans:style=Bold:size=8}${fs_used /}${font}

${goto 45}Home ${font Droid Sans:style=Bold:size=8}${fs_used_perc /home}%${font} ${alignr}${fs_bar 7,70 /home}
${goto 45}Free: ${font Droid Sans:style=Bold:size=8}${fs_free /home}${font} ${alignr}Used: ${font Droid Sans:style=Bold:size=8}${fs_used /home}${font}

${goto 45}Windows: ${font Droid Sans:style=Bold:size=8}${fs_used_perc /run/media/tsw/windows}%${font} ${alignr}${fs_bar 7,70 /run/media/tsw/windows}
${goto 45}Free: ${font Droid Sans:style=Bold:size=8}${fs_free /run/media/tsw/windows}${font} ${alignr}Used: ${font Droid Sans:style=Bold:size=8}${fs_used /run/media/tsw/windows}${font}

${goto 45}Data: ${font Droid Sans:style=Bold:size=8}${fs_used_perc /run/media/tsw/data}%${font} ${alignr}${fs_bar 7,70 /run/media/tsw/data}
${goto 45}Free: ${font Droid Sans:style=Bold:size=8}${fs_free /run/media/tsw/data}${font} ${alignr}Used: ${font Droid Sans:style=Bold:size=8}${fs_used /run/media/tsw/data}${font}
# |--SWAP
#${voffset 5}${font Droid Sans:style=Bold:size=8}SWAP${font}${goto 45}Swap: ${font Droid Sans:style=Bold:size=8}${swapperc}%${font} ${alignr}${swapbar 7,70}
#${goto 45}Free: ${font Droid Sans:style=Bold:size=8}$swapmax${font} ${alignr}Used: ${font Droid Sans:style=Bold:size=8}$swap${font}
###############
# - NETWORK - #
###############
${voffset 8}${font Droid Sans:style=Bold:size=8}NETWORK $hr${font}
#${voffset 5}${font Droid Sans:style=Bold:size=8}Public${font}${goto 45}Addr:${goto 85}${font Droid Sans:style=Bold:size=8}${execi 240 curl http://automation.whatismyip.com/#n09230945.asp}${font}
${if_existing /proc/net/route wlp4s0}${voffset 5}${font Droid Sans:style=Bold:size=8}wlan0${font}${goto 45}Addr:${goto 85}${font Droid Sans:style=Bold:size=8}${addr wlp4s0}${font}
${goto 45}Down:${goto 85}${font Droid Sans:style=Bold:size=8}${downspeed wlp4s0}${font}${alignr}${downspeedgraph wlp4s0 8,50 000000 00FF00}
${goto 45}Up:${goto 85}${font Droid Sans:style=Bold:size=8}${upspeed wlp4s0}${font}${alignr}${upspeedgraph wlp4s0 8,50 000000 FF0000}
${goto 45}Total:${goto 85}${font Droid Sans:style=Bold:size=8}${totaldown wlp4s0}${font} / ${font Droid Sans:style=Bold:size=8}${totalup wlp4s0}${font}${else}${font Droid Sans:style=Bold:size=8}wlp4s0${font}${goto 45}Not Conencted${endif}

${if_existing /proc/net/route eth0}${voffset 5}${font Droid Sans:style=Bold:size=8}eth0${font}${goto 45}Addr:${goto 85}${font Droid Sans:style=Bold:size=8}${addr eth0}${font}
${goto 45}Down:${goto 85}${font Droid Sans:style=Bold:size=8}${downspeed eth0}${font}${alignr}${downspeedgraph eth0 8,50 EEEEEE}
${goto 45}Up:${goto 85}${font Droid Sans:style=Bold:size=8}${upspeed eth0}${font}${alignr}${upspeedgraph eth0 8,50 EEEEEE}
${goto 45}Total:${goto 85}${font Droid Sans:style=Bold:size=8}${totaldown eth0}${font} / ${font Droid Sans:style=Bold:size=8}${totalup eth0}${font}${else}${font Droid Sans:style=Bold:size=8}eth0${font}${goto 45}Not Connected${endif}

${if_existing /proc/net/route wlp4s0}${voffset 8}${font Droid Sans:style=Bold:size=8}WIRELESS $hr${font}
${voffset 5}${goto 45}Int:${goto 85}${font Droid Sans:style=Bold:size=8}wlp4s0${font}
${goto 45}SSID:${goto 85}${font Droid Sans:style=Bold:size=8}${wireless_essid wlp4s0}${font}
${goto 45}Speed:${goto 85}${font Droid Sans:style=Bold:size=8}${wireless_bitrate wlp4s0}${font}
${goto 45}Signal:${goto 85}${font Droid Sans:style=Bold:size=8}${wireless_link_qual_perc wlp4s0}%${font}${alignr}${wireless_link_bar 7,70 wlp4s0}${endif}
#############
# - CLOCK - #
#############
${voffset 8}${font Droid Sans:style=Bold:size=8}CLOCK $hr${font}
${font Droid Sans:size=20}${alignc}${time %l:%M}${font}
${alignc}${time %d %B %Y}
Title: Re: Conky thread, show your work!
Post by: verderol on 27. March 2013, 11:16:17
Still working on it

Found the Weather script in the crunchbang forums. Kudos

(http://i.imgur.com/hfKzmUj.jpg)


Code: [Select]
#Author url = http://dobbie03.deviantart.com/art/My-First-Conky-Config-327206399
#Modified by Umair = http://www.NoobsLab.com

alignment middle_middle
background no
border_margin 5
border_width 5
default_color d7d7d7  #413536 # grey 5f5f5f 3F3F3F 183149 3B3B3B 26211F
double_buffer yes
draw_borders no
draw_outline no
draw_shades no
gap_x 0
gap_y 80
maximum_width 1000
minimum_size 175
no_buffers yes
override_utf8_locale yes
own_window yes
own_window_title conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_argb_visual yes
own_window_type conky
text_buffer_size 8000
total_run_times 0
update_interval 1
uppercase no
use_xft yes
xftalpha 1
xftfont Freesans:pixelsize=9

# fonts
# Blue Highway
# Zegoe Light - U
# Zekton
# Calibri
# Engebrechtre
# Opeln2001
# Pricedown

TEXT
${color F8F8FF}${font brook23:pixelsize=24}${alignc}${time [ %A, %H:%M:%S ]}${font}
${color FFFFFF}${font brook23:pixelsize=65}${alignc}${time %d %B, %Y}${font}


${font Denne's Old Handwriting:pixelsize=18}${alignc}[ CPU1: ${cpu cpu0}% CPU2: ${cpu cpu1}% | RAM Usage: ${mem} ]
${font Denne's Old Handwriting:pixelsize=18}${alignc}[ Root: ${fs_free /} / ${fs_size /} ]
${font Denne's Old Handwriting:pixelsize=18}${alignc}[ User: ${exec users} | System Uptime: ${uptime_short} ]
${font Denne's Old Handwriting:pixelsize=18}${alignc}[ Net Up: ${upspeed eth0} Net Down: ${downspeed eth0} ]
${font Denne's Old Handwriting:pixelsize=18}${alignc}[ MANJARO: ${rss http://manjaro.org/feed/ 1 item_titles 1} ]

Code: [Select]
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_class Conky
own_window_hints undecorated,below,skip_taskbar,skip_pager below
double_buffer yes


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

# fiddle with window
use_spacer right
use_xft yes

# Update interval in seconds
update_interval 3.0

# Minimum size of text area
minimum_size 1000 576
maximum_width 230
alignment top_left

override_utf8_locale yes

# Draw shades?
draw_shades no

# Text stuff
draw_outline yes # amplifies text if yes
draw_borders no
#font freesans -12
xftfont brook23:size=14
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_inner_margin 9
border_outer_margin 0

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color cbcbcb


# 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
gap_x 10
gap_y 60

# stuff after 'TEXT' will be formatted on screen

TEXT

${color 8e8e8e}WEATHER ${hr 2}$color${execi 600 bash $HOME/1a_accuweather_conkyweather_font/1a}

${font conkyweather:size=40}${execi 600  sed -n '2p' ~/1a_accuweather_conkyweather_font/curr_cond}${font}${goto 75}${voffset -40}CURRENTLY: ${execpi 600 sed -n '4p' $HOME/1a_accuweather_conkyweather_font/curr_cond}°C
${goto 75}${execpi 600 sed -n '3p' $HOME/1a_accuweather_conkyweather_font/curr_cond|fold -w30}


${font conkyweather:size=40}${execi 600  sed -n '2p' ~/1a_accuweather_conkyweather_font/tod_ton}${font}${goto 75}${voffset -40}${execpi 600 sed -n '1p' $HOME/1a_accuweather_conkyweather_font/tod_ton}: ${execpi 600 sed -n '4p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°C/${execpi 600 sed -n '5p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°C
${goto 75}${execpi 600 sed -n '3p' $HOME/1a_accuweather_conkyweather_font/tod_ton|fold -w30}


${font conkyweather:size=40}${execi 600  sed -n '7p' ~/1a_accuweather_conkyweather_font/tod_ton}${font}${goto 75}${voffset -40}${execpi 600 sed -n '6p' $HOME/1a_accuweather_conkyweather_font/tod_ton}: ${execpi 600 sed -n '9p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°C/${execpi 600 sed -n '10p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°C
${goto 75}${execpi 600 sed -n '8p' $HOME/1a_accuweather_conkyweather_font/tod_ton|fold -w30}


${font conkyweather:size=40}${execi 600  sed -n '12p' ~/1a_accuweather_conkyweather_font/tod_ton}${font}${goto 75}${voffset -40}${execpi 600 sed -n '11p' $HOME/1a_accuweather_conkyweather_font/tod_ton}: ${execpi 600 sed -n '14p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°C/${execpi 600 sed -n '15p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°C
${goto 75}${execpi 600 sed -n '13p' $HOME/1a_accuweather_conkyweather_font/tod_ton|fold -w30}


${font conkyweather:size=40}${execi 600  sed -n '17p' ~/1a_accuweather_conkyweather_font/tod_ton}${font}${goto 75}${voffset -40}${execpi 600 sed -n '16p' $HOME/1a_accuweather_conkyweather_font/tod_ton}: ${execpi 600 sed -n '19p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°C/${execpi 600 sed -n '20p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°C
${goto 75}${execpi 600 sed -n '18p' $HOME/1a_accuweather_conkyweather_font/tod_ton|fold -w30}


${font conkyweather:size=40}${execi 600  sed -n '22p' ~/1a_accuweather_conkyweather_font/tod_ton}${font}${goto 75}${voffset -40}${execpi 600 sed -n '21p' $HOME/1a_accuweather_conkyweather_font/tod_ton}: ${execpi 600 sed -n '24p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°C/${execpi 600 sed -n '25p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°C
${goto 75}${execpi 600 sed -n '23p' $HOME/1a_accuweather_conkyweather_font/tod_ton|fold -w30}


${font conkyweather:size=40}${execi 600  sed -n '2p' ~/1a_accuweather_conkyweather_font/last_days}${font}${goto 75}${voffset -40}${execpi 600 sed -n '1p' $HOME/1a_accuweather_conkyweather_font/last_days}: ${execpi 600 sed -n '4p' $HOME/1a_accuweather_conkyweather_font/last_days}°C/${execpi 600 sed -n '5p' $HOME/1a_accuweather_conkyweather_font/last_days}°C
${goto 75}${execpi 600 sed -n '3p' $HOME/1a_accuweather_conkyweather_font/last_days|fold -w30}


${font conkyweather:size=40}${execi 600  sed -n '7p' ~/1a_accuweather_conkyweather_font/last_days}${font}${goto 75}${voffset -40}${execpi 600 sed -n '6p' $HOME/1a_accuweather_conkyweather_font/last_days}: ${execpi 600 sed -n '9p' $HOME/1a_accuweather_conkyweather_font/last_days}°C/${execpi 600 sed -n '10p' $HOME/1a_accuweather_conkyweather_font/last_days}°C
${goto 75}${execpi 600 sed -n '8p' $HOME/1a_accuweather_conkyweather_font/last_days|fold -w30}


${font conkyweather:size=40}${execi 600  sed -n '12p' ~/1a_accuweather_conkyweather_font/last_days}${font}${goto 75}${voffset -40}${execpi 600 sed -n '11p' $HOME/1a_accuweather_conkyweather_font/last_days}: ${execpi 600 sed -n '14p' $HOME/1a_accuweather_conkyweather_font/last_days}°C/${execpi 600 sed -n '15p' $HOME/1a_accuweather_conkyweather_font/last_days}°C
${goto 75}${execpi 600 sed -n '13p' $HOME/1a_accuweather_conkyweather_font/last_days|fold -w30}


${font conkyweather:size=40}${execi 600  sed -n '17p' ~/1a_accuweather_conkyweather_font/last_days}${font}${goto 75}${voffset -40}${execpi 600 sed -n '16p' $HOME/1a_accuweather_conkyweather_font/last_days}: ${execpi 600 sed -n '19p' $HOME/1a_accuweather_conkyweather_font/last_days}°C/${execpi 600 sed -n '20p' $HOME/1a_accuweather_conkyweather_font/last_days}°C
${goto 75}${execpi 600 sed -n '18p' $HOME/1a_accuweather_conkyweather_font/last_days|fold -w30}


${font conkyweather:size=40}${execi 600  sed -n '22p' ~/1a_accuweather_conkyweather_font/last_days}${font}${goto 75}${voffset -40}${execpi 600 sed -n '21p' $HOME/1a_accuweather_conkyweather_font/last_days}: ${execpi 600 sed -n '24p' $HOME/1a_accuweather_conkyweather_font/last_days}°C/${execpi 600 sed -n '25p' $HOME/1a_accuweather_conkyweather_font/last_days}°C
${goto 75}${execpi 600 sed -n '23p' $HOME/1a_accuweather_conkyweather_font/last_days|fold -w30}



Title: Re: Conky thread, show your work!
Post by: LCJr on 28. March 2013, 23:52:17
Like everything else on my computer a rather boring(but functional) Conky:)  I started orginally with Conky Bebop by elchacmool and have pretty much redone the whole thing.  I think the clock is about the only thing I've left untouched.
(http://thumbnails104.imagebam.com/24600/c610eb245990271.jpg) (http://www.imagebam.com/image/c610eb245990271)
Code: [Select]
#Based off Conky bebop by elchacmool
#Inspired in: http://pastebin.com/HjGiZH1E
# Use Xft?
use_xft yes
xftfont Deja Vu Serif:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 2

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

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

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
##############################################
# Compositing tips:
# Conky can play strangely when used with
# different compositors. I have found the
# following to work well, but your mileage
# may vary. Comment/uncomment to suit.
##############################################
## no compositor
own_window_type override
own_window_argb_visual no

## xcompmgr
#own_window_type override
#own_window_argb_visual yes

## cairo-compmgr
#own_window_class Conky
#own_window_argb_visual no
#####################################
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 180 0
#maximum_width 200

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_inner_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color 54C571
own_window_colour black
color1 CACACA

# 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 10
gap_y 10

# 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 1

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

# 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 none

TEXT


${font AvantGarde:pixelsize=65}${alignc}${time %H:%M}${font}

${font avantgarde:pixelsize=11}${alignc}${time  %B %d, %Y}
${alignc}${time %A}${font}

MANJARO LINUX NET EDITION ${hr 2}

${voffset 4} Kernel: ${alignr}${kernel}
${voffset 4} Uptime: ${alignr}$uptime_short

CPU FREQUENCY/LOAD/TEMP ${hr 2}

${voffset 4} CPU Avg: ${alignr}${freq_g cpu0}GHz / ${cpu cpu0}% / ${hwmon 0 temp 1}C
${voffset 4} Core 0: ${alignr}${freq_g cpu1}GHz / ${cpu cpu1}% / ${hwmon 0 temp 2}C
${voffset 4} Core 1: ${alignr}${freq_g cpu2}GHz / ${cpu cpu2}% / ${hwmon 0 temp 3}C

${voffset 4} GPU: ${alignr}${hwmon 2 temp 1}C

TOP CPU ${hr 2}
${voffset 4} ${top name 1}${alignr} ${top cpu 1}
${voffset 4} ${top name 2}${alignr} ${top cpu 2}
${voffset 4} ${top name 3}${alignr} ${top cpu 3}
${voffset 4} ${top name 4}${alignr} ${top cpu 4}
${voffset 4} ${top name 5}${alignr} ${top cpu 5}

MEMORY USED/TOTAL ${hr 2}

${voffset 4} RAM: ${alignr}$mem / $memmax
${voffset 4} Swap: ${alignr}$swap / $swapmax

TOP RAM ${hr 2}
${voffset 4} ${top_mem name 1}${alignr} ${top_mem mem_res 1}
${voffset 4} ${top_mem name 2}${alignr} ${top_mem mem_res 2}
${voffset 4} ${top_mem name 3}${alignr} ${top_mem mem_res 3}
${voffset 4} ${top_mem name 4}${alignr} ${top_mem mem_res 4}
${voffset 4} ${top_mem name 5}${alignr} ${top_mem mem_res 5}

NETWORK ${hr 2}

${voffset 4} Down: ${downspeedf eno1}KiB/s ${alignr}Up: ${upspeedf eno1}KiB/s
${voffset 4} Total Down: ${alignr}${totaldown eno1}
${voffset 4} Total Up: ${alignr}${totalup eno1}

HDD USED/FREE/TOTAL ${hr 2}

${voffset 4} sdb6: ${alignr}${fs_used /} / ${fs_free /} / ${fs_size /}







About the only helpful tips I can give is look over the objects list on the Conky site:  http://conky.sourceforge.net/variables.html
And use hwmon for temps, see method two here:  http://conky.pitstop.free.fr/wiki/index.php5?title=Using_Sensors_%28en%29
Title: Re: Conky thread, show your work!
Post by: Marz0 on 30. March 2013, 18:28:53
Here is my config.  I found the basis of this online and modded to my liking.

(http://i.imgur.com/50EWZgs.png)

Code: [Select]
## I don't take full credit for this config!  I found it on the net and mofified to my own liking.
##
background no
font sans:size=8
#xftfont sans:size=10
use_xft yes
xftalpha 0.9
update_interval 3.0
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 600
maximum_width 225
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color black
default_outline_color green
alignment top_right
gap_x 20
gap_y 20
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
temperature_unit celcius

TEXT
${image $HOME/.Conky/Pukin/logo1.png -p 0,5 -s 55x55} ${alignc 72}${font Neuropolitical:pixelsize=30}${alignr}${color tan2}Manjaro
${color tan2}${font Neuropolitical:size=8:bold}TIME ${color slategrey} ${hr 2} ${color white}${font}
${color white}${font Neuropolitical:pixelsize=46}${time %H:%M}${font}
${alignc -24}${color  white}${font Neuropolitical:pixelsize=10}${time %a %d %b %Y}${font}
${color tan2}${font Neuropolitical:size=8:bold}SYSTEM ${color slategrey} ${hr 2} ${color white}${font}
 Hostname: $alignr$nodename
 Kernel: $alignr$kernel
 Uptime: $alignr$uptime
 Battery: ${battery_percent BAT1}% ${alignr}${battery_bar 6, 140 BAT1}

${color tan2}${font Neuropolitical:size=8:bold}PROCESSOR ${color slateGray} ${hr 2} ${color white}${font}
 CPU: ${alignr}${freq} MHz
 Processes: ${alignr}$processes ($running_processes running)
 CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 6,140}
 CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 6,140}
 CPU3: ${cpu cpu3}% ${alignr}${cpubar cpu3 6,140}
 CPU4: ${cpu cpu4}% ${alignr}${cpubar cpu4 6,140}
 CPU Temp:${alignr}${hwmon temp 1}°C

${color tan2}${font Neuropolitical:size=8:bold}MEMORY ${color SlateGray} ${hr 2} ${color white}${font}
 Ram: ${memperc}% ${alignr}${membar 5,140}
 Swap: ${swapperc}% ${alignr}${swapbar 5,140}

${color tan2}${font Neuropolitical:size=8:bold}PROCESSES ${color SlateGray} ${hr 2} ${color white}${font}
 NAME: $alignr   PID   CPU  MEM ${font sans:pixelsize=9}
   ${top name 1} $alignr ${top pid 1} ${top cpu 1} ${top mem 1}
   ${top name 2} $alignr ${top pid 2} ${top cpu 2} ${top mem 2}
   ${top name 3} $alignr ${top pid 3} ${top cpu 3} ${top mem 3}
   ${top name 4} $alignr ${top pid 4} ${top cpu 4} ${top mem 4}
   ${top name 5} $alignr ${top pid 5} ${top cpu 5} ${top mem 5}

${font Neuropolitical:bold:size=8}${color tan2}FILESYSTEM ${color slategrey} ${hr 2} ${color white}${font}
 Root: ${alignr}${fs_used_perc /}%  ${fs_bar 6, 140}
${font sans:pixelsize=7.85}${alignc 48}Size: ${fs_used /} / ${fs_size}${font}
 Data: ${alignr}${fs_used_perc /run/media/james/Storage}%  ${fs_bar 6, 140 /run/media/james/Storage}
${font sans:pixelsize=7.85}${alignc 48}Size: ${fs_used /media/New Volume} / ${fs_size /media/New Volume}${font}
 Removable:
  Cruiser: ${fs_used_perc /media/D092-94A9}% ${fs_bar 6, 60 /media/D092-94A9} ${font sans:pixelsize=7.85}${alignr}${fs_used /media/D092-94A9} / ${fs_size /media/D092-94A9}${font}
  Xternal: ${fs_used_perc /media/Elements}% ${fs_bar  6, 60 /media/Elements} ${font sans:pixelsize=7.85}${alignr}${fs_used /media/Elements} / ${fs_size /media/Elements}${font}

${color tan2}${font Neuropolitical:size=8:bold}NETWORK ${color slateGray} ${hr 2} ${color white}${font}
 SSID: $alignr ${wireless_essid wlp0s29u1u7}
 WiFi Signal: ${alignr}${wireless_link_bar 6, 140 wlp0s29u1u7}
 Local IP: ${alignr}${addr wlp0s29u1u7}
 Public IP: ${alignr}${exec wget -q -O - checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'}

${color tan2}${font Neuropolitical:size=8:bold}NVIDIA ${color slateGray} ${hr 2} ${color white}${font}
${alignr}${font Neuropolitical:pixelsize=8.5}${color tan2}${exec inxi -G | grep -i "card" | tail -c+26}${color white}${font}
GPU Clock: ${alignr}${exec nvidia-settings -q GPU2DClockFreqs -t}MHz${color}
Video RAM: ${alignr}${exec nvidia-settings -q VideoRam -t} KiB
Driver Version: ${alignr}${exec nvidia-settings -q NvidiaDriverVersion -t}
Resolution:${alignr}${exec inxi -G | grep "Resolution" | tail -c+84}
#Resolution: ${alignr}${exec nvidia-settings -q FrontEndResolution -t}
#Refresh: ${alignr}${exec nvidia-settings -q RefreshRate3 -t}
OpenGL: ${alignr}${exec nvidia-settings -q OpenGLVersion -t | head -c6}
Xorg: ${alignr}${exec cat /var/log/Xorg.0.log | grep "X.Org X Server " | tail -c+16}${font}

Title: Re: Conky thread, show your work!
Post by: eskaini on 30. March 2013, 18:31:56
Nice buddy, like it :)
Title: Re: Conky thread, show your work!
Post by: Marz0 on 30. March 2013, 21:03:57
Made a slight change.  Neuropolitical font can be found using "yaourt Neuropolitical"

(http://i.imgur.com/rf7m8Q1.png)

Code: [Select]
## I don't take full credit for this config!  I found it on the net and modded to my own liking.
##
background no
font sans:size=8
#xftfont sans:size=10
use_xft yes
xftalpha 0.9
update_interval 3.0
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 600
maximum_width 225
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color black
default_outline_color green
alignment top_right
gap_x 20
gap_y 20
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
temperature_unit celcius

TEXT
${image $HOME/.Conky/Pukin/logo1.png -p 0,5 -s 55x55} ${alignc 72}${font Neuropolitical:pixelsize=30}${alignr}${color tan2}Manjaro
${color tan2}${font Neuropolitical:size=8:bold}TIME ${color slategrey} ${hr 2} ${color white}${font}
${color white}${font Neuropolitical:pixelsize=46}${time %H:%M}${font}
${alignc -24}${color  white}${font Neuropolitical:pixelsize=10}${time %a %d %b %Y}${font}
${color tan2}${font Neuropolitical:size=8:bold}SYSTEM ${color slategrey} ${hr 2} ${color white}${font}
 Hostname: $alignr$nodename
 Kernel: $alignr$kernel
 Uptime: $alignr$uptime
 Battery: ${battery_percent BAT1}% ${alignr}${battery_bar 6, 140 BAT1}

${color tan2}${font Neuropolitical:size=8:bold}PROCESSOR ${color slateGray} ${hr 2} ${color white}${font}
${color tan2}${font Neuropolitical:size=8:bold}${exec inxi -C | grep -E -o "Core.{0,9}"}${color white}${font}
 CPU: ${alignr}${freq} MHz
 Processes: ${alignr}$processes ($running_processes running)
 CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 6,140}
 CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 6,140}
 CPU3: ${cpu cpu3}% ${alignr}${cpubar cpu3 6,140}
 CPU4: ${cpu cpu4}% ${alignr}${cpubar cpu4 6,140}
 CPU Temp:${alignr}${hwmon temp 1}°C

${color tan2}${font Neuropolitical:size=8:bold}MEMORY ${color SlateGray} ${hr 2} ${color white}${font}
 Ram: ${memperc}% ${alignr}${membar 5,140}
 Swap: ${swapperc}% ${alignr}${swapbar 5,140}

${color tan2}${font Neuropolitical:size=8:bold}PROCESSES ${color SlateGray} ${hr 2} ${color white}${font}
 NAME: $alignr   PID   CPU  MEM ${font sans:pixelsize=9}
   ${top name 1} $alignr ${top pid 1} ${top cpu 1} ${top mem 1}
   ${top name 2} $alignr ${top pid 2} ${top cpu 2} ${top mem 2}
   ${top name 3} $alignr ${top pid 3} ${top cpu 3} ${top mem 3}
   ${top name 4} $alignr ${top pid 4} ${top cpu 4} ${top mem 4}
   ${top name 5} $alignr ${top pid 5} ${top cpu 5} ${top mem 5}

${font Neuropolitical:bold:size=8}${color tan2}FILESYSTEM ${color slategrey} ${hr 2} ${color white}${font}
 Root: ${alignr}${fs_used_perc /}%  ${fs_bar 6, 140}
${font sans:pixelsize=7.85}${alignc 48}Size: ${fs_used /} / ${fs_size}${font}
 Data: ${alignr}${fs_used_perc /run/media/james/Storage}%  ${fs_bar 6, 140 /run/media/james/Storage}
${font sans:pixelsize=7.85}${alignc 48}Size: ${fs_used /media/New Volume} / ${fs_size /media/New Volume}${font}
 Removable:
  Cruiser: ${fs_used_perc /media/D092-94A9}% ${fs_bar 6, 60 /media/D092-94A9} ${font sans:pixelsize=7.85}${alignr}${fs_used /media/D092-94A9} / ${fs_size /media/D092-94A9}${font}
  Xternal: ${fs_used_perc /media/Elements}% ${fs_bar  6, 60 /media/Elements} ${font sans:pixelsize=7.85}${alignr}${fs_used /media/Elements} / ${fs_size /media/Elements}${font}

${color tan2}${font Neuropolitical:size=8:bold}NETWORK ${color slateGray} ${hr 2} ${color white}${font}
 SSID: $alignr ${wireless_essid wlp0s29u1u7}
 WiFi Signal: ${alignr}${wireless_link_bar 6, 140 wlp0s29u1u7}
 Local IP: ${alignr}${addr wlp0s29u1u7}
 Public IP: ${alignr}${exec wget -q -O - checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'}

${color tan2}${font Neuropolitical:size=8:bold}NVIDIA ${color slateGray} ${hr 2} ${color white}${font}
${alignr}${font Neuropolitical:pixelsize=8}${color tan2}${exec inxi -G | grep -i "card" | tail -c+26}${color white}${font}
GPU Clock: ${alignr}${exec nvidia-settings -q GPU2DClockFreqs -t}MHz${color}
Video RAM: ${alignr}${exec nvidia-settings -q VideoRam -t} KiB
Driver Version: ${alignr}${exec nvidia-settings -q NvidiaDriverVersion -t}
Resolution:${alignr}${exec inxi -G | grep "Resolution" | tail -c+84}
#Resolution: ${alignr}${exec nvidia-settings -q FrontEndResolution -t}
#Refresh: ${alignr}${exec nvidia-settings -q RefreshRate3 -t}
OpenGL: ${alignr}${exec nvidia-settings -q OpenGLVersion -t | head -c6}
Xorg: ${alignr}${exec cat /var/log/Xorg.0.log | grep "X.Org X Server " | tail -c+16}${font}
Title: Re: Conky thread, show your work!
Post by: Culinax on 08. April 2013, 21:28:33
This is mine, it's pretty basic, but I use it as an alternative statusbar in spectrwm before I start writing my own in bash (but I think that'll mostly become copy-paste work :P )

(http://i.imgur.com/zFGoCwL.png)

Code: [Select]
out_to_console yes
out_to_x no
background no
update_interval 2
total_run_times 0
use_spacer none

TEXT
${color}$mpd_smart  ::  ${color 66a0ba}CPU: ${color}${cpu cpu1}% / ${cpu cpu2}%  ::  ${color 66a0ba}RAM: ${color}$memperc% ($mem)  ::  ${color 66a0ba}Temp: ${color}$acpitemp${iconv_start UTF-8 ISO_8859-1}°${iconv_stop}C  ::  ${color 66a0ba}Bat: ${color}${battery_short BAT1}  ::  ${time %d/%m/%Y %H:%M}
Title: Re: Conky thread, show your work!
Post by: poker98face on 09. April 2013, 13:07:36
Here is my new conky  :)
(http://i.imgur.com/jTHk33l.png)

But i need help, i wanna add processor/video card temperature, add manjaro logo and make it bigger but i don't know how to do this.
Code: [Select]
#######################################################################################
###  Conky by http://gnome-look.org/content/show.php/conky+gray?content=155967     ####
###  Modified by:http:www.NoobsLab.com and poker98face :)  ###                                           
#######################################################################################

double_buffer yes
own_window_class conky
own_window yes
own_window_type conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
draw_borders no
draw_graph_borders no
border_margin 3
draw_shades yes
gap_x 0
gap_y 5
alignment top_left
update_interval 1
default_color  8f8f8f
own_window_colour 2d2d2d
use_xft yes
xftfont sans:size=7
override_utf8_locale yes
use_spacer none
minimum_size 1920 0
TEXT
${goto 5}Date: ${color e0e0e0}${font sans:size=7}${time %d/%m/%y}${color}${font}  Time: ${color e0e0e0}${font sans:size=7}${time %H:%M}${color}${font}  |  Kernel: ${color e0e0e0}${font sans:size=7}$kernel${color}${font}  Uptime: ${color e0e0e0}${font sans:size=7}${uptime_short}${color}${font}  |  Cpu: ${color e0e0e0}${font sans:size=7}${cpu}%${color}${font}  Ram: ${color e0e0e0}${font sans:size=7}${memperc}%${color}${font}  Swap: ${color e0e0e0}${font sans:size=7}${swapperc}%${color}${font}    |   ${color e0e0e0}${font sans:size=7}Root${color}${font} ${fs_used_perc /}% ${fs_used /} / ${fs_size /}|   ${color e0e0e0}${font sans:size=7}Dane${color}${font} ${fs_used_perc /mnt/Dane}% ${fs_used /mnt/Dane} / ${fs_size /mnt/Dane}    |  ${color} ${if_existing /proc/net/route wlp2s0}Network: ${color 82BA00}Up :${color} ${color e0e0e0}${upspeed wlp2s0} kb/s${color}  ${color 82BA00}Down :${color} ${color e0e0e0}${downspeed } kb/s${color} ${color 82BA00}Total :${color} ${color e0e0e0}${totaldown wlp2s0}${color}${else}${if_existing /proc/net/route wlp2s0}${color 82BA00}${font sans:size=7}Up :${color}${font} ${color e0e0e0}${upspeed wlp2s0} kb/s${color}  ${color 82BA00}${font sans:size=7}Down :${color}${font} ${color e0e0e0}${downspeed wlp2s0} kb/s${color} ${color 82BA00}${font sans:size=7}Total down :${color}${font} ${color e0e0e0}${totaldown wlp2s0}${color}${endif}${else}Network Unavailable${endif}
Title: Re: Conky thread, show your work!
Post by: eskaini on 09. April 2013, 13:24:24
I can't help you with your questions, but i have a link for you: http://conky.sourceforge.net/config_settings.html

And one thing to the conky code:

Code: [Select]
#######################################################################################
###  Conky by http://gnome-look.org/content/show.php/conky+gray?content=155967     ####
###  Modified by:http:www.NoobsLab.com and poker98face :)  ###                                           
#######################################################################################

This can't be right, because we used this conky config 2011 when we started Manjaro. I don't know who was the creator (maybe Roland himself), but i know that it was me who modified and enhanced it.
But it doesn't matter now who and when it was, just for your information. ;)
Title: Re: Conky thread, show your work!
Post by: poker98face on 09. April 2013, 13:37:02
http://www.noobslab.com/2012/12/conky-bar-for-ubuntulinux.html I downloaded it from here  :)
Title: Re: Conky thread, show your work!
Post by: LCJr on 09. April 2013, 14:11:07
But i need help, i wanna add processor/video card temperature, add manjaro logo and make it bigger but i don't know how to do this.

I'm just learning this stuff myself but I'll try to help.

For temps look at the hwmon conky.pitstop tutorial I linked to in my post. 

Here's an example of adding an image:
Code: [Select]
${image ~/.conky/icons/ManjaroArch2.png -p 44,0 -s 90x110}Obviously the first part is the location of the image you want to use.  The 44,0 is xy coordinates if you're trying to put the image in a specific location.  Not sure how much you'd need that with your setup.  The 90x110 is the size in pixels the image will be displayed at.  In this case I had a logo that was 90 pixels wide x 110 high.

For bigger I believe just changing the font size will do it.  Change the 7 to a larger number.
Code: [Select]
xftfont sans:size=7
Hope that helps.
Title: Re: Conky thread, show your work!
Post by: Marz0 on 09. April 2013, 15:06:12
See my config above in the posts.  I have added more to mine since I last posted including the GPU Temp.  Below is the line I used in my config to display the GPU temp.

Code: [Select]
GPU Temp: ${alignr}${exec inxi -s | grep -i gpu | tail -c5 | head -c2}°C
--------------------------------------------------------------------------------

You may need to adjust the tail and head values until yours displays the temp for you correctly.
Title: Re: Conky thread, show your work!
Post by: poker98face on 09. April 2013, 15:08:53
So i added just processor temperature and ip adress, removed network up/down and changed some colors  8)
(http://i.imgur.com/i7xOc4N.png)

Thank you all for help :)
Title: Re: Conky thread, show your work!
Post by: Marz0 on 09. April 2013, 15:12:42
Your Welcome  :)
Title: Re: Conky thread, show your work!
Post by: Matthias19281 on 16. April 2013, 22:29:30
I played arroud a little bit - thats the result

And here's the modified code:
Code: [Select]
# Manjaro Openbox-Lite Conky Configuration Script
#
# Written by Carl Duff of the Manjaro Team
# Email: carl[at]manjaro[dot]org - Website: www.manjaro.org - Forum: http://forum.manjaro.org/
#
# Feel free to alter, distribute, etc., this config file as you wish.
#

#  Basic Settings

background yes
use_xft yes
xftfont sans:size=11
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type override #desktop
own_window_hints below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 450 1
maximum_width 600
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color Black
default_shade_color 000000
default_outline_color d9d7d6
alignment tr
gap_x 5
gap_y 55
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

# Fancy Conky display

TEXT
${image /home/matthias/Bilder/93_thermometer.png -p 25,35 -s 70x70}
${font sans:size=70}${alignr}${color #696969}${time %H:%M}${voffset -27}${voffset -45}
${font sans:size=25}${execi 300 lynx -source http://www.wetter.com/wetter_aktuell/aktuelles_wetter/deutschland/zweibruecken/DE0012021.html | grep °C | head -n1 | sed 's/ //g'}${alignr}${time %a %d %B %Y}${voffset -15}
${font sans:bold:size=9}${alignr}${color #006400}CPU ${color #696969}${cpu cpu0}% / ${freq}MHz - ${color #006400}RAM ${color #696969}$memperc%/$mem - ${color #006400}SWAP ${color #696969}$swap - ${color #006400}UP ${color #696969}$uptime_short
${hr 1}${voffset 5}6
${font sans:bold:size=9}${color #696969}${image /usr/share/icons/Faenza/status/48/nm-signal-75.png -p 0,182 -s 35x35}${offset 76}${color #006400}${wireless_bitrate wlp8s0}${color #696969}${font}
${font sans:bold:size=9}${color #696969}${offset 76}${color #006400}${wireless_link_qual wlp8s0}%${color #696969}${font}

${font sans:bold:size=9}Up: ${offset 50}${color #006400}${upspeed wlp8s0}${font} ${alignr}${upspeedgraph wlp8s0 9, 270}${color #696969}
${font sans:bold:size=9}Gesamt: ${offset 16}${color #006400}${totalup wlp8s0}${font} ${color #696969}
${font sans:bold:size=9}Down: ${offset 30}${color #006400}${downspeed wlp8s0}${font} ${alignr}${downspeedgraph wlp8s0 9, 270}${color #696969}
${font sans:bold:size=9}Gesamt: ${offset 16}${color #006400}${totaldown wlan0}${font} ${color #696969}
${font}${hr 1}${voffset 5}
${font sans:bold:size=9}${image /usr/share/icons/Faenza/status/48/gpm-primary-080.png -p 0,353 -s 35x35}${offset 76}${color #006400}${battery_percent}% ${font}${alignr}${battery_bar 9, 270}
${font sans:bold:size=9}${color #696969}${offset 76}${color #006400}${battery_time}${color #696969}${font}
${hr 1}${voffset 5}
${font}${font sans:bold:size=9}${image /usr/share/icons/Sanguine/48x48/devices/gnome-dev-harddisk.png -p 0,413 -s 35x35}${offset 76}${voffset 7}${color #006400}${fs_used}/${fs_size}${font} ${alignr}${fs_bar 9, 270 /}${color #696969}
${font}${font sans:bold:size=9}${image /usr/share/icons/Sanguine/48x48/places/user-home.png -p 0,453 -s 35x35}${offset 76}${voffset 19}${color #006400}${fs_used /home}/${fs_size /home}${font} ${alignr}${fs_bar 9, 270 /home}${color #696969}
${voffset 5}${hr 1}${voffset 5}
${font sans:bold:size=9}CPU Verbrauch $alignr ${color #006400}CPU% MEM%${color #696969}${voffset 5}
${color #B22222}${top name 1}$alignr${top cpu 1}${top mem 1}${color #696969}
${color #B22222}${top name 2}$alignr${top cpu 2}${top mem 2}${color #696969}
${top name 3}${color #006400}$alignr${color #006400}${top cpu 3}${top mem 3}${color #696969}
${top name 4}${color #006400}$alignr${color #006400}${top cpu 4}${top mem 4}${color #696969}
${top name 5}${color #006400}$alignr${color #006400}${top cpu 5}${top mem 5}${color #696969}

RAM Verbrauch $alignr ${color #006400}CPU% MEM%${color #696969}${voffset 5}
${color #B22222}${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1}${color #696969}
${color #B22222}${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2}${color #696969}
${top_mem name 3}${color #006400}$alignr${color #006400}${top_mem cpu 3}${top_mem mem 3}${color #696969}
${top_mem name 4}${color #006400}$alignr${color #006400}${top_mem cpu 4}${top_mem mem 4}${color #696969}
${top_mem name 5}${color #006400}$alignr${color #006400}${top_mem cpu 5}${top_mem mem 5}${color #696969}

Info: lynx is needed for the Temperatur (Weather) and satanic-icon-theme from the AUR for the icons /home and /
Title: Re: Conky thread, show your work!
Post by: dRo07 on 29. April 2013, 21:42:32
A classical one with dmesg output

(http://i.imgur.com/yLCsW9s.png)

First one
Code: [Select]
#~/.conkyrc1
background no
own_window yes
own_window_class Conky
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager 
own_window_transparent yes

use_xft yes
xftfont Bitstream Vera Sans Mono Roman:size=7
xftalpha 1
update_interval 2.0
total_run_times 0

double_buffer yes
minimum_size 220
maximum_width 220
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
default_color 00BBEE
default_shade_color 000000
default_outline_color 828282
alignment top_left
gap_x 12
gap_y 56
no_buffers yes
uppercase no
cpu_avg_samples 4
override_utf8_locale no

##############################################
#  Output
##############################################
TEXT
S Y S T E M    I N F O
${hr}
$alignc${exec cat /etc/sabayon-edition}
Kernel:$alignr${exec uname -r}
Uptime:$alignr$uptime
Batterie:$alignr$battery_short / $battery_time

D I S K
${hr}
Disk used (/home):
${fs_bar /home}
Disk used (/):
${fs_bar /}
Disk read: $alignr${diskio_read}
#${diskiograph_read -l -t}
Disk write: $alignr${diskio_write}
#${diskiograph_write -l -t}

P R O C E S S E S
${hr}
CPU processes: $alignr${running_processes}/${processes}
CPU threads: $alignr[${running_threads}]
CPU usage:$alignr${cpu cpu1}%/${freq cpu1}MHz
${cpugraph cpu1 OOBBEE FFFFFF -t}
CPU usage:$alignr${cpu cpu2}%/${freq cpu1}MHz
${cpugraph cpu2 OOBBEE FFFFFF -t}

By CPU $alignr   PID    CPU
$hr
${top name 1} $alignr ${top pid 1} ${top cpu 1}
${top name 2} $alignr ${top pid 2} ${top cpu 2}
${top name 3} $alignr ${top pid 3} ${top cpu 3}
${top name 4} $alignr ${top pid 4} ${top cpu 4}
${top name 5} $alignr ${top pid 5} ${top cpu 5}
${top name 6} $alignr ${top pid 6} ${top cpu 6}
${top name 7} $alignr ${top pid 7} ${top cpu 7}
${top name 8} $alignr ${top pid 8} ${top cpu 8}
${top name 9} $alignr ${top pid 9} ${top cpu 9}
${top name 10} $alignr ${top pid 10} ${top cpu 10}

By MEM $alignr   PID   MEM
$hr
${top_mem name 1} $alignr ${top_mem pid 1} ${top_mem mem 1}
${top_mem name 2} $alignr ${top_mem pid 2} ${top_mem mem 2}
${top_mem name 3} $alignr ${top_mem pid 3} ${top_mem mem 3}
${top_mem name 4} $alignr ${top_mem pid 4} ${top_mem mem 4}
${top_mem name 5} $alignr ${top_mem pid 5} ${top_mem mem 5}

MEM free:$alignr$memfree/$memmax
${membar}

D M E S G
$hr
${exec dmesg | tail -5  | fold -w44}
$hr


Second one with psad code commented because useless on latop
Code: [Select]
background no
own_window yes
own_window_class Conky
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager 
own_window_transparent yes

use_xft yes
xftfont Bitstream Vera Sans Mono Roman:size=7
xftalpha 1
update_interval 1.0
total_run_times 0

double_buffer yes
minimum_size 220 180
maximum_width 220
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
default_color 00BBEE
default_shade_color 000000
default_outline_color 828282
alignment top_right
gap_x 12
gap_y 56
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no

##############################################
#  Output
##############################################
TEXT
N E T W O R K
${hr}
Ext IP $alignr ${exec curl http://ipecho.net/plain; echo}

Wlan IP $alignr ${addr wlp3s0}
ESSID $alignr ${wireless_essid wlp3s0}
Quality $alignr ${wireless_link_qual_perc wlp3s0}%
Inbound $alignr ${downspeed wlp3s0}/s
${downspeedgraph  wlp3s0 00BBEE FFFFFF -t}
Outbound $alignr ${upspeed wlp3s0}/s
${upspeedgraph wlp3s0 00BBEE FFFFFF -t}

Wwan0 IP $alignr ${addr wwp0s29f7u4i7}
Inbound $alignr ${downspeed wwp0s29f7u4i7}/s
${downspeedgraph  wwp0s29f7u4i7 00BBEE FFFFFF -t}
Outbound $alignr ${upspeed wwp0s29f7u4i7}/s
${upspeedgraph wwp0s29f7u4i7 00BBEE FFFFFF -t}

Eth0 $alignr ${addr enp0s25}
Inbound $alignr ${downspeed enp0s25}/s
${downspeedgraph enp0s25 00BBEE FFFFFF -t}
Outbound $alignr ${upspeed enp0s25}/s
${upspeedgraph enp0s25 00BBEE FFFFFF  -t}

Open ports: ${alignr}[${tcp_portmon 1 65535 count}]
IP${alignr}DPORT
${tcp_portmon 1 65535 rip  0}${alignr 1}${tcp_portmon 1 65535 rport  0}
${tcp_portmon 1 65535 rip  1}${alignr 1}${tcp_portmon 1 65535 rport  1}
${tcp_portmon 1 65535 rip  2}${alignr 1}${tcp_portmon 1 65535 rport  2}
${tcp_portmon 1 65535 rip  3}${alignr 1}${tcp_portmon 1 65535 rport  3}
${tcp_portmon 1 65535 rip  4}${alignr 1}${tcp_portmon 1 65535 rport  4}
${tcp_portmon 1 65535 rip  5}${alignr 1}${tcp_portmon 1 65535 rport  5}
${tcp_portmon 1 65535 rip  6}${alignr 1}${tcp_portmon 1 65535 rport  6}
${tcp_portmon 1 65535 rip  7}${alignr 1}${tcp_portmon 1 65535 rport  7}
${tcp_portmon 1 65535 rip  8}${alignr 1}${tcp_portmon 1 65535 rport  8}
${tcp_portmon 1 65535 rip  9}${alignr 1}${tcp_portmon 1 65535 rport  9}
${tcp_portmon 1 65535 rip 10}${alignr 1}${tcp_portmon 1 65535 rport 10}
${tcp_portmon 1 65535 rip 11}${alignr 1}${tcp_portmon 1 65535 rport 11}
${tcp_portmon 1 65535 rip 12}${alignr 1}${tcp_portmon 1 65535 rport 12}
${tcp_portmon 1 65535 rip 13}${alignr 1}${tcp_portmon 1 65535 rport 13}
${tcp_portmon 1 65535 rip 14}${alignr 1}${tcp_portmon 1 65535 rport 14}

#Last attackers:
#${execi 60 echo $(awk 'NR==4, NF && !/#/ {print $1}' "/var/log/psad/top_attackers")}
#${execi 60 echo $(awk 'NR==6, NF && !/#/ {print $1}' "/var/log/psad/top_attackers")}
#${execi 60 echo $(awk 'NR==8, NF && !/#/ {print $1}' "/var/log/psad/top_attackers")}


startup script / rerun script
Code: [Select]
#!/bin/bash

if pgrep -f "conky -c $1"
then
killall conky
(sleep 2s && conky -c ~/.conkyrc1) &
(sleep 2s && conky -c ~/.conkyrc2) &
exit
else
(sleep 2s && conky -c ~/.conkyrc1) &
(sleep 2s && conky -c ~/.conkyrc2) &
exit
fi
exit

If i've time to waste i'll try to add powertop output (to see that conky is the first energy consummer behind my laptop fan…)
Title: Re: Conky thread, show your work!
Post by: diggingman on 02. May 2013, 17:34:44
(http://trevormartin.smugmug.com/photos/i-cxRTCQF/0/L/i-cxRTCQF-L.png) (http://trevormartin.smugmug.com/Photos/hidden/29213426_Gv4mmJ#!i=2489457169&k=cxRTCQF&lb=1&s=A)

My first Conky, based on a few I found online, I still have a few tweaks I'd like to do.

.conkyrc
Code: [Select]
#  Basic Settings

background no
use_xft yes
xftfont 123:size=10
xftalpha 0.1
update_interval 1
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_size 1680 1050
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color lightgray
default_shade_color red
default_outline_color green
alignment top_right
gap_x 24
 
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
 
TEXT
$color${font}${font Open Sans:size=26}$alignr${time %I:%M %P}$font
${color sienna}${font Open Sans:Bold:size=11}Date${hr 2}$color$font
$color${font Open Sans:size=12}$alignr${time %a}, ${time %d %b %Y}$font$color
 
# SYS
${font Open Sans:Bold:size=11}${color sienna}SYSTEM${hr 2}$color${font}
$sysname $kernel $alignr $machine
Uptime $alignr $uptime
MB Temperature $alignr ${execi 30 sensors | grep 'SYSTIN:' | cut -c17-18}°C
GPU Temperature $alignr ${execi 60 nvidia-settings -query GPUCoreTemp | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'}°C
 
# CPU
${font Open Sans:Bold:size=11}${color sienna}CPU${hr 2}
$color${font}Intel i5 2500k $alignr ${freq_g cpu0}GHz
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
${font}Core 0 ${color sienna}${execi 30 sensors | grep 'Core 0:' | cut -c18-19}°C${color} @ ${cpu cpu1} % $alignc ${cpubar cpu1}${color}
${font}Core 1 ${color sienna}${execi 30 sensors | grep 'Core 1:' | cut -c18-19}°C${color} @ ${cpu cpu2} % $alignc ${cpubar cpu2}${color}
${font}Core 2 ${color sienna}${execi 30 sensors | grep 'Core 2:' | cut -c18-19}°C${color} @ ${cpu cpu3} % $alignc ${cpubar cpu3}${color}
${font}Core 3 ${color sienna}${execi 30 sensors | grep 'Core 3:' | cut -c18-19}°C${color} @ ${cpu cpu4} % $alignc ${cpubar cpu4}${color}

 
# TOP
${font Open Sans:Bold:size=11}${color sienna}TOP${hr 2}
$color${font}${font Open Sans:bold:size=8.5}PROCESS $alignr CPU USAGE$font
${top name 1}${alignr}${top cpu 1} %
${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} %
 
# MEMORY
${font Open Sans:Bold:size=11}${color sienna}MEMORY${hr 2}
$color${font}${font Open Sans:bold:size=8.5}RAM$font
$mem / $memmax $alignr $memperc %
$membar
 
${font Open Sans:bold:size=8.5}SWAP$font
$swap / $swapmax $alignr $swapperc
${swapbar};
 
# NETWORK
${font Open Sans:Bold:size=10}${color sienna}Network${hr 2}
$color${font Open Sans:bold:size=10}External IP ${font}${alignr}${execi 3600 wget -O - http://ip.tupeux.com | tail}$font
SSID: $alignr ${wireless_essid wlp8s0}
${font Open Sans:bold:size=8.5}IP $font$alignr ${addr wlp8s0}
down $alignr ${downspeedf wlp8s0} kb/s
up $alignr ${upspeedf wlp8s0} kb/s
down total ${totaldown wlp8s0} $alignr up total ${totalup eth0}

Connection Quality: $alignr ${wireless_link_qual_perc wlp8s0}%
 
# HDD
${font Open Sans:Bold:size=10}${color sienna}Disks${hr 2}
 
${font Open Sans:bold:size=8.5}HOME $font$alignr ${fs_type /home}
${fs_used /home} / ${fs_size /home} ${color white}$alignr ${fs_used_perc /home} %
${fs_bar /home}

${font Open Sans:bold:size=8.5}Linux Storage $font$alignr ${fs_type /home/trevor/Storage}
${fs_used /home/trevor/Storage} / ${fs_size /home/trevor/Storage} $alignr ${fs_used_perc /home/trevor/Storage} %
${fs_bar /home/trevor/Storage}

# gmail
${font Open Sans:Bold:size=11}${color sienna}GMAIL ${hr 2}$color
${font Open Sans:Bold:size=11}${execpi 200 python ~/Scripts/gmail.py}

# weather
${font Open Sans:Bold:size=11}${color sienna}Weather ${hr 2}$color
${execi 1200 /home/trevor/Scripts/weather2.py enterzipcodehere}

#shortcuts
${font Open Sans:Bold:size=11}${color sienna}Shortcuts ${hr 2}$color
${font Open Sans:bold:size=8.5}Super f     File manager
${font Open Sans:bold:size=8.5}Super b     Browser
${font Open Sans:bold:size=8.5}Super f     Terminal
${font Open Sans:bold:size=8.5}Super e     Leafpad
${font Open Sans:bold:size=8.5}Super n     Nvidia Settings
${font Open Sans:bold:size=8.5}Super v     Virtualbox
${font Open Sans:bold:size=8.5}Super x     Logout


gmail.py
Code: [Select]
#!/usr/bin/env python
# -*- coding: UTF-8 -*-

import sys, imaplib

port = 993
server = 'imap.gmail.com'

username = 'enternamehere'
passwd = 'enterpasswordhere'

imap_server = imaplib.IMAP4_SSL(server, port)
try:
imap_server.login(username, passwd)
except:
print('?? New messages')
sys.exit( 1 )

typ, data = imap_server.select ('Inbox', True)
if typ == 'OK':
total = int(data[0])
typ, data = imap_server.search (None, 'SEEN')
if typ == 'OK':
seen = len(data[0].split())
print('{}/{} new'.format(total, total - seen))

if typ != 'OK':
print('?? New messages')

imap_server.logout()

weather.py
Code: [Select]
# !/usr/bin/bash
METRIC=0 #Should be 0 or 1; 0 for F, 1 for C
if [ -z $1 ]; then
    echo "USAGE: weather.sh <locationcode>"
    exit 0;
fi

wget -q http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=$1 -O - | awk \
'/Currently:/ {CurWeather=$0}
/[0-9] Forecast<\/title>/ {nr=NR+5}
NR==nr    {postIndx[++x]=$0}
# x>2    {exit}
END{
    split(CurWeather,tmp,"Currently: ")
    split(tmp[2],tmp1,"<")
    CurWeather=sprintf("%s",tmp1[1])
    sub(":",",",CurWeather)
    for(x in postIndx){
    split(postIndx[x],tmp,";|&")
    split(tmp[1],tmp,">")
    split(tmp[2],statement," F ") # substitute C for F if metric differs
    split(tmp[2],temp)
    forecast[++y]=sprintf("%d-%dF %-15s",temp[5],temp[2],statement[3])
    }
    printf("WEATHER:\nNow: %s\nToday: %s\nTomorrow: %s",CurWeather,forecast[1],forecast[2])
}'
Title: Re: Conky thread, show your work!
Post by: runpc2deth on 07. May 2013, 08:10:46
I can't help you with your questions, but i have a link for you: http://conky.sourceforge.net/config_settings.html

And one thing to the conky code:

Code: [Select]
#######################################################################################
###  Conky by http://gnome-look.org/content/show.php/conky+gray?content=155967     ####
###  Modified by:http:www.NoobsLab.com and poker98face :)  ###                                           
#######################################################################################

This can't be right, because we used this conky config 2011 when we started Manjaro. I don't know who was the creator (maybe Roland himself), but i know that it was me who modified and enhanced it.
But it doesn't matter now who and when it was, just for your information. ;)

why did you guys stop using this script?  it works good  :D 
Title: Re: Conky thread, show your work!
Post by: eskaini on 07. May 2013, 10:24:29
I don't know, maybe someone thought there are better ones.
Title: Re: Conky thread, show your work!
Post by: runpc2deth on 07. May 2013, 21:47:15
Code: [Select]
${goto 5}Date: ${color e0e0e0}${font sans:size=8}${time %d/%m/%y}${color}${font}  Time: ${color e0e0e0}${font sans:size=8}${time %r}${color}${font}  |  Kernel: ${color e0e0e0}${font sans:size=8}$kernel${color}${font}  Uptime: ${color e0e0e0}${font sans:size=8}${uptime_short}${color}${font}  |  Cpu: ${color e0e0e0}${font sans:size=8}${cpu}%${color}${font}  Ram: ${color e0e0e0}${font sans:size=8}${memperc}%${color}${font}  Swap: ${color e0e0e0}${font sans:size=8}${swapperc}%${color}${font}    |   ${color e0e0e0}${font sans:size=8}Root${color}${font} ${fs_used_perc /}% ${fs_used /} / ${fs_size /}|   ${color e0e0e0}${font sans:size=8}Dane${color}${font} ${fs_used_perc /mnt/Dane}% ${fs_used /mnt/Dane} / ${fs_size /mnt/Dane}    |  ${color} ${if_existing /proc/net/route enp1s0}Network: ${color 82BA00}Up :${color} ${color e0e0e0}${upspeed enp1s0} kb/s${color}  ${color 82BA00}Down :${color} ${color e0e0e0}${downspeed enpls0} kb/s${color} ${color 82BA00}Total :${color} ${color e0e0e0}${totaldown enp1s0}${color}${else}${if_existing /proc/net/route enpls0}${color 82BA00}${font sans:size=9}Up :${color}${font} ${color e0e0e0}${upspeed enp1s0} kb/s${color}  ${color 82BA00}${font sans:size=9}Down :${color}${font} ${color e0e0e0}${downspeed enp1s0} kb/s${color} ${color 82BA00}${font sans:size=9}Total down :${color}${font} ${color e0e0e0}${totaldown enp1s0}${color}${endif}${else}Network Unavailable${endif}
what is dane?  also for some reason the upload speed shows but not download speeds?  i really like this though because it doesnt take up much space and its in view all the time unlike the default conky.  its nice to take a peak on things and not have to change windows.
Title: Re: Conky thread, show your work!
Post by: StealthPenguin on 07. May 2013, 21:54:51
http://www.noobslab.com/2012/12/conky-bar-for-ubuntulinux.html (http://www.noobslab.com/2012/12/conky-bar-for-ubuntulinux.html) I downloaded it from here 
Great, thanks for the link.  Ill try to mess with it tomorrow. 


So i added just processor temperature and ip adress, removed network up/down and changed some colors 
(http://i.imgur.com/i7xOc4N.png)

Thank you all for help
Could you please post the config file?
Title: Re: Conky thread, show your work!
Post by: runpc2deth on 08. May 2013, 00:30:32
does anyone have the conky from manjaro 2011?
Title: Re: Conky thread, show your work!
Post by: eskaini on 08. May 2013, 00:32:48
Yes, i have it. I will post it tomorrow.
Title: Re: Conky thread, show your work!
Post by: runpc2deth on 08. May 2013, 00:35:29
cool thanks!  :)
Title: Re: Conky thread, show your work!
Post by: eskaini on 08. May 2013, 11:04:24
Here it is (from my VBox from 2011, never updated  ;D )

Code: [Select]
#avoid flicker
double_buffer yes


#own window to run simultanious 2 or more conkys
own_window yes
own_window_type panel
own_window_transparent no
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

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

#borders
draw_borders no

#shades
draw_shades no

#position
gap_x 0
gap_y 4
alignment top_middle

#behaviour
update_interval 1

#colour
default_color  ffffff
#default_shade_color ffffff
#own_window_colour 262729
own_window_colour 2c2c2c

#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 5000 0
maximum_size 5000 0

#mpd
#mpd_host localhost
#mpd_port 6600

TEXT
${alignc}Date: ${color 67db6d}${time %d.%m.%y}${color}  Time: ${color 67db6d}${time %H:%M}${color}  |  Kernel: ${color 67db6d}$kernel${color}  Arch: ${color 67db6d}$machine${color}  Up: ${color 67db6d}${uptime_short}${color}  |  Cpu: ${color 67db6d}${cpu}% ${cpugraph 5,50 ffffff 67db6d}${color}  Ram: ${color 67db6d}${memperc}% ${membar 5,50}${color}  Swap: ${color 67db6d}${swapperc}%${color}  Disk: ${color 67db6d}${fs_used_perc /}% ${fs_free /} ${fs_bar 5,20 /}${color}  |  IP: ${color 67db6d}${execpi 300 curl www.whatismyip.org}${color}  ${if_existing /proc/net/route eth0}Up: ${color 67db6d}${upspeed eth0} ${upspeedgraph eth0 5,30 ffffff 67db6d 150} ${totalup eth0}${color}  Down: ${color 67db6d}${downspeed eth0} ${downspeedgraph eth0 5,30 ffffff 67db6d 18} ${totaldown eth0}${color}${else}Network Unavailable${endif}${alignc}
Title: Re: Conky thread, show your work!
Post by: eskaini on 08. May 2013, 11:22:33
This one is the real original from 07.08.2011:

Code: [Select]
#avoid flicker
double_buffer yes

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

#borders
draw_borders no
border_margin 3

#shades
draw_shades no
v
#position
gap_x 0
gap_y 4
alignment top_middle

#behaviour
update_interval 1

#colour
default_color  e0e0e0
#default_shade_color 000000
own_window_colour 4c4c4c

#font
use_xft yes
xftfont 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 5000 0
maximum_size 5000 0

#mpd
#mpd_host localhost
#mpd_port 6600

TEXT
${alignc}Date: ${color 02d2f7}${time %d.%m.%y}${color}  Time: ${color 02d2f7}${time %H:%M}${color}  |  Kernel: ${color 02d2f7}$kernel${color}  Architecture: ${color 02d2f7}$machine${color}  Uptime: ${color 02d2f7}${uptime_short}${color}  |  Cpu: ${color 02d2f7}${cpu}%${color}  Ram: ${color 02d2f7}${memperc}%${color}  Swap: ${color 02d2f7}${swapperc}%${color}  Disk: ${color 02d2f7}${fs_used_perc /}%${color}  |  IP: ${color 02d2f7}${addr}${color}  ${if_existing /proc/net/route wlan0}Signal: ${color 02d2f7}${wireless_link_qual wlan0}%${color}  Up: ${color 02d2f7}${upspeed wlan0} kb/s${color}  Down: ${color 02d2f7}${downspeed wlan0} kb/s${color}${else}${if_existing /proc/net/route eth0}Up: ${color 02d2f7}${upspeed eth0} kb/s${color}  Down: ${color 02d2f7}${downspeed eth0} kb/s${color}${endif}${else}Network Unavailable${endif}${alignc}
Title: Re: Conky thread, show your work!
Post by: eskaini on 08. May 2013, 12:11:25
Here's my modified version with working IP, Up- and Downlad stats and how much traffic i used this month (atm it is May, next month i will see June of course). The monthly traffic is realised with vnstat, so you need to install and configure it. If you another device as enp2s0 please replace it with your device.

Code: (bash) [Select]
#avoid flicker
double_buffer yes


#own window to run simultanious 2 or more conkys
own_window yes
own_window_type panel
own_window_transparent no
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

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

#borders
draw_borders no

#shades
draw_shades no

#position
gap_x 0
gap_y 4
alignment top_middle

#behaviour
update_interval 1

#colour
default_color  ffffff
#default_shade_color ffffff
#own_window_colour 262729
own_window_colour 2c2c2c

#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 5000 0
maximum_size 5000 0

#mpd
#mpd_host localhost
#mpd_port 6600

TEXT
${alignc}Date: ${color 33b5e5}${time %d.%m.%y}${color}  Time: ${color 33b5e5}${time %H:%M}${color}  |  Kernel: ${color 33b5e5}$kernel${color}  Arch: ${color 33b5e5}$machine${color}  Up: ${color 33b5e5}${uptime_short}${color}  |  Cpu: ${color 33b5e5}${cpu}% ${cpugraph 5,50 ffffff 33b5e5}${color}  Ram: ${color 33b5e5}${memperc}% ${membar 5,50}${color}  Swap: ${color 33b5e5}${swapperc}%${color}  Disk: ${color 33b5e5}${fs_used_perc /}% ${fs_free /} ${fs_bar 5,20 /}${color}  |  IP: ${color 33b5e5}${execi 7200 wget http://v4.ipv6-test.com/api/myip.php -q -O -}${color}  ${if_existing /proc/net/route enp2s0}Up: ${color 33b5e5}${upspeed enp2s0} ${upspeedgraph enp2s0 5,30 ffffff 33b5e5 150} ${totalup enp2s0}${color}  Down: ${color 33b5e5}${downspeed enp2s0} ${downspeedgraph enp2s0 5,30 ffffff 33b5e5 18} ${totaldown enp2s0}${color}${else}Network Unavailable${endif} Traffic ${color 33b5e5}${time %B}: ${execi 300 vnstat -m | grep "`LC_ALL=C date +"%b '%y"`" | awk '{print $9 $10}'}${color}${alignc}

If you need your net stats for WLAN i can give it to you.

And if you want it as autostart you have to run this command in your terminal (it is for KDE)

Code: (bash) [Select]
ln -s /usr/bin/conky ~/.kde4/Autostart/conkylink
Title: Re: Conky thread, show your work!
Post by: runpc2deth on 10. May 2013, 01:43:32
i couldn't get all 3 of those conkys to work  :-\  nothing appears and my tint2 panels loses its transparency also.  the only thing i change in the code is change top_middle to bottom_middle.  since i like having my tint panel on top.  any ideas?   im using openbox.
Title: Re: Conky thread, show your work!
Post by: eskaini on 10. May 2013, 01:53:00
And what is error message you get?
Title: Re: Conky thread, show your work!
Post by: runpc2deth on 10. May 2013, 01:57:26
i dont see any error messages appear.  i enabled the border and it appeared on top even though i have it set at bottom_middle
Title: Re: Conky thread, show your work!
Post by: eskaini on 10. May 2013, 02:03:47
So conky is behind your panel, right?

Can you please start conky from terminal with "conky &" and post the message you get.
Title: Re: Conky thread, show your work!
Post by: runpc2deth on 10. May 2013, 02:06:01
yes it appears its behind my tint2 panel

here is the output.

Code: [Select]
[brett@manjaro ~]$ conky &
[1] 1923
[brett@manjaro ~]$ Conky: /home/brett/.conkyrc: 13: no such configuration: 'border_margin'
Conky: /home/brett/.conkyrc: 17: no such configuration: 'v'
Conky: /home/brett/.conkyrc: 41: no such configuration: 'maximum_size'
Conky: one or more $endif's are missing
Conky: desktop window (b7) is root window
Conky: window type - panel
Conky: drawing to created window (0x3400002)
Conky: drawing to double buffer
Conky: defining struts
[brett@manjaro ~]$
Title: Re: Conky thread, show your work!
Post by: eskaini on 10. May 2013, 02:10:48
I will test it tomorrow.

But can you please test my latest conkyrc?

AFAIK i had this problem too 2 years ago, but i don't know how i solved it.
Title: Re: Conky thread, show your work!
Post by: poker98face on 10. May 2013, 02:14:03
Great, thanks for the link.  Ill try to mess with it tomorrow. 

Could you please post the config file?

${goto 5}Date: ${color e0e0e0}${font sans:size=8}${time %d/%m/%y}${color}${font}  Time: ${color e0e0e0}${font sans:size=8}${time %r}${color}${font}  |  Kernel: ${color e0e0e0}${font sans:size=8}$kernel${color}${font}  Uptime: ${color e0e0e0}${font sans:size=8}${uptime_short}${color}${font}  |  Cpu: ${color e0e0e0}${font sans:size=8}${cpu}%${color}${font}  Ram: ${color e0e0e0}${font sans:size=8}${memperc}%${color}${font}  Swap: ${color e0e0e0}${font sans:size=8}${swapperc}%${color}${font}    |   ${color e0e0e0}${font sans:size=8}Root${color}${font} ${fs_used_perc /}% ${fs_used /} / ${fs_size /}|   ${color e0e0e0}${font sans:size=8}Dane${color}${font} ${fs_used_perc /mnt/Dane}% ${fs_used /mnt/Dane} / ${fs_size /mnt/Dane}    |  ${color} ${if_existing /proc/net/route enp1s0}Network: ${color 82BA00}Up :${color} ${color e0e0e0}${upspeed enp1s0} kb/s${color}  ${color 82BA00}Down :${color} ${color e0e0e0}${downspeed enpls0} kb/s${color} ${color 82BA00}Total :${color} ${color e0e0e0}${totaldown enp1s0}${color}${else}${if_existing /proc/net/route enpls0}${color 82BA00}${font sans:size=9}Up :${color}${font} ${color e0e0e0}${upspeed enp1s0} kb/s${color}  ${color 82BA00}${font sans:size=9}Down :${color}${font} ${color e0e0e0}${downspeed enp1s0} kb/s${color} ${color 82BA00}${font sans:size=9}Total down :${color}${font} ${color e0e0e0}${totaldown enp1s0}${color}${endif}${else}Network Unavailable${endif}

But remove the red line and change enpls0 to wlan0 or eth0  ;)


what is dane?  also for some reason the upload speed shows but not download speeds?  i really like this though because it doesnt take up much space and its in view all the time unlike the default conky.  its nice to take a peak on things and not have to change windows.
Dane mean files in polish and this is name of my /dev/sda2 partition with all my files (music, videos, icons and themes etc)  :) Try to change enpls0 to wlan0 or eth0  ;)



Title: Re: Conky thread, show your work!
Post by: runpc2deth on 10. May 2013, 02:30:21
@poker98face

ill try changing to wlan0 or eth0.  thanks
Title: Re: Conky thread, show your work!
Post by: runpc2deth on 10. May 2013, 02:39:48
I will test it tomorrow.

But can you please test my latest conkyrc?

AFAIK i had this problem too 2 years ago, but i don't know how i solved it.

i tested your latest conky and i got that one running.  for some reason it doesnt want to move to the bottom of the screen  ;D 

Title: Re: Conky thread, show your work!
Post by: runpc2deth on 10. May 2013, 02:46:46
Here is my new conky  :)
(http://i.imgur.com/jTHk33l.png)

But i need help, i wanna add processor/video card temperature, add manjaro logo and make it bigger but i don't know how to do this.
Code: [Select]
#######################################################################################
###  Conky by http://gnome-look.org/content/show.php/conky+gray?content=155967     ####
###  Modified by:http:www.NoobsLab.com and poker98face :)  ###                                           
#######################################################################################

double_buffer yes
own_window_class conky
own_window yes
own_window_type conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
draw_borders no
draw_graph_borders no
border_margin 3
draw_shades yes
gap_x 0
gap_y 5
alignment top_left
update_interval 1
default_color  8f8f8f
own_window_colour 2d2d2d
use_xft yes
xftfont sans:size=7
override_utf8_locale yes
use_spacer none
minimum_size 1920 0
TEXT
${goto 5}Date: ${color e0e0e0}${font sans:size=7}${time %d/%m/%y}${color}${font}  Time: ${color e0e0e0}${font sans:size=7}${time %H:%M}${color}${font}  |  Kernel: ${color e0e0e0}${font sans:size=7}$kernel${color}${font}  Uptime: ${color e0e0e0}${font sans:size=7}${uptime_short}${color}${font}  |  Cpu: ${color e0e0e0}${font sans:size=7}${cpu}%${color}${font}  Ram: ${color e0e0e0}${font sans:size=7}${memperc}%${color}${font}  Swap: ${color e0e0e0}${font sans:size=7}${swapperc}%${color}${font}    |   ${color e0e0e0}${font sans:size=7}Root${color}${font} ${fs_used_perc /}% ${fs_used /} / ${fs_size /}|   ${color e0e0e0}${font sans:size=7}Dane${color}${font} ${fs_used_perc /mnt/Dane}% ${fs_used /mnt/Dane} / ${fs_size /mnt/Dane}    |  ${color} ${if_existing /proc/net/route wlp2s0}Network: ${color 82BA00}Up :${color} ${color e0e0e0}${upspeed wlp2s0} kb/s${color}  ${color 82BA00}Down :${color} ${color e0e0e0}${downspeed } kb/s${color} ${color 82BA00}Total :${color} ${color e0e0e0}${totaldown wlp2s0}${color}${else}${if_existing /proc/net/route wlp2s0}${color 82BA00}${font sans:size=7}Up :${color}${font} ${color e0e0e0}${upspeed wlp2s0} kb/s${color}  ${color 82BA00}${font sans:size=7}Down :${color}${font} ${color e0e0e0}${downspeed wlp2s0} kb/s${color} ${color 82BA00}${font sans:size=7}Total down :${color}${font} ${color e0e0e0}${totaldown wlp2s0}${color}${endif}${else}Network Unavailable${endif}

this version of it worked good.  i was able to move to the bottom.  how do you make it so the windows won't cover it? i want the conky on top at all times.
Title: Re: Conky thread, show your work!
Post by: eskaini on 22. May 2013, 02:38:26
This is my newest conky. It isn't ready because i have still have some issues with the text and the icons from the weather.

(http://i.imgur.com/Pzl16ip.png)
Title: Re: Conky thread, show your work!
Post by: eskaini on 22. May 2013, 16:29:43
I finally got it working, now it's correct.

EDIT: changed it again, i think now i'm finished.

(http://i.imgur.com/PD1JE0i.png)
Title: Re: Conky thread, show your work!
Post by: eskaini on 23. May 2013, 17:00:27
Ok, changed it again  ;D

(http://i.imgur.com/DWEoUr1.png)
Title: Re: Conky thread, show your work!
Post by: Linuxkartoffel on 23. May 2013, 17:06:57
Ok, changed it again  ;D

(http://i.imgur.com/DWEoUr1.png)
can you share your configs?
Title: Re: Conky thread, show your work!
Post by: hammer3344 on 24. May 2013, 02:12:18
So I peiced this together after looking at several conky configs. This took time and effort and all though I cant completly claim this as my own from scratch, I put the effort into customizing it to what I wanted ^_^

(http://i401.photobucket.com/albums/pp98/hammer3344/conky.png) (http://s401.photobucket.com/user/hammer3344/media/conky.png.html)
Code: [Select]
background no
draw_borders no
draw_shades no

default_color 00ADFF
#default_color orange

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type override
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

use_xft yes
xftfont Sans:size=11
xftalpha 0.5

update_interval 1
double_buffer yes

alignment top_right
gap_x 25
gap_y 25



TEXT

${time %A, %B %d, %Y}$color$font
#${color 00ADFF}${font :size=15}Time$color $hr$font
${color 00ADFF}${font :size=15}Time$color $hr$font
${font :size=25}$alignc${time %l:%M %p}$font

#${color 00ADFF}${font :size=11}System$color $hr$font
${color 00ADFF}${font :size=11}System$color $hr$font
Uptime:$alignr$uptime
Kernel:$alignr$kernel

#${color 000}${font :size=11}Processor$color $hr$font
${color 00ADFF}${font :size=11}Processor$color $hr$font
Core 1:$alignr${freq_g cpu1}Ghz
${cpu cpu1}% ${cpubar 15,350, }
Core 2:$alignr${freq_g cpu2}Ghz
${cpu cpu2}% ${cpubar 15,350, }
Core 3:$alignr${freq_g cpu3}Ghz
${cpu cpu3}% ${cpubar 15,350, }
Core 4:$alignr${freq_g cpu4}Ghz
${cpu cpu4}% ${cpubar 15,350, }

#${color 00ADFF}${font :size=11}Memory$color $hr$font
${color 00ADFF}${font :size=11}Memory$color $hr$font
Memory:$alignr${mem} / ${memmax}
${memperc}% ${membar 15,350, }
Cached:$alignr${cached}
Swap:$alignr${swap} / ${swapmax}

${color 00ADFF}Filesystem ${hr 1}${color}
Root: ${alignr}${fs_free /} / ${fs_size /}
${fs_bar 15,350 /}
Home: ${alignr}${fs_free /home} / ${fs_size /home}
${fs_bar 15,350 /home}

#${color 00ADFF}${font :size=11}Network$color $hr$font
NAT ${alignr}${addr wlp2s0}
NET IP ${alignr}${execi 3600 wget -O - http://ip.tupeux.com | tail}
Down ${downspeed wlp2s0} k/s ${alignr} Total ${totaldown wlp2s0}
${downspeedgraph wlp2s0 40,350} ${alignr}
Up ${upspeed wlp2s0} k/s ${alignr} Total ${totalup wlp2s0}
${upspeedgraph wlp2s0 40,350} ${alignr}




Title: Re: Conky thread, show your work!
Post by: runpc2deth on 25. May 2013, 12:21:27
ok couple questions. 

1st i still cant get the download speed to show.  everything else but that.  im using the same address as the other ones. i tried eth0 and wlan and those don't work either.

2nd. how do i add more cpus? i have 4.

if i can get those figured out ill be set  ;D

Code: [Select]
double_buffer yes
own_window_class conky
own_window yes
own_window_type conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
draw_borders no
draw_graph_borders no
border_margin 3
draw_shades yes
gap_x 0
gap_y 5
alignment top_left
update_interval 1
default_color  8f8f8f
own_window_colour 2d2d2d
use_xft yes
xftfont sans:size=11
override_utf8_locale yes
use_spacer none
minimum_size 820 0
TEXT
${goto 5}Cpu: ${color e0e0e0}${font sans:size=11}${cpu}%${color}${font}  Ram: ${color e0e0e0}${font sans:size=11}${memperc}%${color}${font} | ${color} ${if_existing /proc/net/route enp1s0}Net: ${color 82BA00}Up :${color} ${color e0e0e0}${upspeed enp1s0} kb/s${color}  ${color 82BA00}Down :${color} ${color e0e0e0}${downspeed } kb/s${color} ${color 82BA00}Total :${color} ${color e0e0e0}${totaldown enp1s0}${color}${else}${if_existing /proc/net/route enp1s0}${color 82BA00}${font sans:size=11}Up :${color}${font} ${color e0e0e0}${upspeed enp1s0} kb/s${color}  ${color 82BA00}${font sans:size=11}Down :${color}${font} ${color e0e0e0}${downspeed enp1s0} kb/s${color} ${color 82BA00}${font sans:size=11}Total down :${color}${font} ${color e0e0e0}${totaldown enp1s0}${color}${endif}${else}Network Unavailable${endif}
Title: Re: Conky thread, show your work!
Post by: LCJr on 25. May 2013, 15:38:36
Look in Network Manager/Connection Information for your device id(s).  My wired connection is always labeled eno1 in Manjaro.

For the CPU's just look at hammer3344's and some of the other posts plus the Conky page: http://conky.sourceforge.net/variables.html
Title: Re: Conky thread, show your work!
Post by: eskaini on 25. May 2013, 17:54:33
My conky config is now available here: Conky Config (http://fav.me/d66ikg1)
Title: Re: Conky thread, show your work!
Post by: runpc2deth on 26. May 2013, 03:40:15
Look in Network Manager/Connection Information for your device id(s).  My wired connection is always labeled eno1 in Manjaro.

For the CPU's just look at hammer3344's and some of the other posts plus the Conky page: http://conky.sourceforge.net/variables.html

im not sure what the problem is with the network with this conky.  i input just whats in my network manager and the upspeed and total work just not downspeed.  im guessing it has more to do with the conky. 
Title: Re: Conky thread, show your work!
Post by: runpc2deth on 26. May 2013, 05:24:04
just as i thought something is wrong with the network settings in the conky.  i put another one in there and it loaded up all my network stats perfectly.
Title: Re: Conky thread, show your work!
Post by: eskaini on 26. May 2013, 06:54:46
just as i thought something is wrong with the network settings in the conky.  i put another one in there and it loaded up all my network stats perfectly.

Could it be that ${downspeed} on it's own is missing your connection info?
Title: Re: Conky thread, show your work!
Post by: runpc2deth on 26. May 2013, 14:04:01
it could be.  im still learning conky so im not good at editing but i matched it up with rest of the conky info but couldnt figure it out.  oh well i just find another conky :)
Title: Re: Conky thread, show your work!
Post by: LCJr on 26. May 2013, 20:00:02
@ runpc2deth  I agree with stupley the downspeed needs a device specified as in {downspeed eno1}.  Also you might try downspeedf to get the output in Kb/s.

OK here's mine after some more evolution.  It gives a config error 22 which I haven't been able to find any info on but it works fine.  Anyone have any idea on that error message?

(http://thumbnails108.imagebam.com/25650/6e5711256493538.jpg) (http://www.imagebam.com/image/6e5711256493538)
Learned something new(to me anyway), the xftalpha setting only affects the text using the default settings.

Code: [Select]
#Based off Conky bebop by elchacmool and horribly mutilated by LCJr
#Inspired in: http://pastebin.com/HjGiZH1E
# Use Xft?
use_xft yes
xftfont Arneson:bold:size=10
#xftfont Liberation Mono:size=10
xftalpha 0.6
text_buffer_size 2048

# Update interval in seconds
update_interval 2

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

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

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
##############################################
# Compositing tips:
# Conky can play strangely when used with
# different compositors. I have found the
# following to work well, but your mileage
# may vary. Comment/uncomment to suit.
##############################################
## no compositor
own_window_type override
own_window_argb_visual no

## xcompmgr
#own_window_type override
#own_window_argb_visual yes

## cairo-compmgr
#own_window_class Conky
#own_window_argb_visual no
#####################################
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 200 0
#maximum_width 200

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_inner_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color 000000
own_window_colour white
color1 CACACA

# 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 10

# 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 1

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

# 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 none

TEXT


${font Arneson:bold:pixelsize=48}${alignc}${time %l:%M %p}${font}

${font Arneson:bold:pixelsize=16}${alignc}${time  %B %d, %Y}
${alignc}${time %A}${font}

${hr 3}
${font Arneson:bold:size=12}MANJARO LINUX NET EDITION${font}
${hr 3}
${voffset 4} Kernel: ${alignr}${kernel}
${voffset 4} Uptime: ${alignr}$uptime_short

${font Arneson:bold:size=11}CPU ${font Arneson:bold:size=8}FREQ/LOAD/TEMP${font} ${hr 2}
${voffset 4} CPU Avg: ${alignr}${freq_g cpu0}GHz / ${cpu cpu0}% / ${hwmon 0 temp 1}C
${voffset 4} Core 0: ${alignr}${freq_g cpu1}GHz / ${cpu cpu1}% / ${hwmon 0 temp 2}C
${voffset 4} Core 1: ${alignr}${freq_g cpu2}GHz / ${cpu cpu2}% / ${hwmon 0 temp 3}C

${font Arneson:bold:size=11}TOP CPU${font} ${hr 2}
${voffset 4} ${top name 1}${alignr} ${top cpu 1}
${voffset 4} ${top name 2}${alignr} ${top cpu 2}
${voffset 4} ${top name 3}${alignr} ${top cpu 3}

${font Arneson:bold:size=11}MEMORY ${font Arneson:bold:size=8}USED/TOTAL${font} ${hr 2}
${voffset 4} RAM: ${alignr}$mem / $memmax
${voffset 4} Swap: ${alignr}$swap / $swapmax

${font Arneson:bold:size=11}TOP RAM${font} ${hr 2}
${voffset 4} ${top_mem name 1}${alignr} ${top_mem mem_res 1}
${voffset 4} ${top_mem name 2}${alignr} ${top_mem mem_res 2}
${voffset 4} ${top_mem name 3}${alignr} ${top_mem mem_res 3}

${font Arneson:bold:size=11}NETWORK${font} ${hr 2}
${voffset 4} DownSpeed: ${downspeedf eno1} KiB/s ${alignr}
${voffset 4} UpSpeed: ${upspeedf eno1} KiB/s
${voffset 4} Total Down: ${alignr}${totaldown eno1}
${voffset 4} Total Up: ${alignr}${totalup eno1}

${font Arneson:bold:size=11}HDD ${font Arneson:bold:size=8}USED/FREE${font} ${hr 2}
${voffset 4} Root: ${alignr}${fs_used /} / ${fs_free /}
${voffset 4} Var: ${alignr}${fs_used /var} / ${fs_free /var}
${voffset 4} Home: ${alignr}${fs_used /home} / ${fs_free /home}

Arneson font available here:  http://www.dafont.com/arneson.font
Title: Re: Conky thread, show your work!
Post by: eskaini on 26. May 2013, 23:31:07
If I remember correctly #border margins are deprecated .
Title: Re: Conky thread, show your work!
Post by: runpc2deth on 26. May 2013, 23:32:20
@LCJr  i didnt try that.  i went ahead and gave up on that conky for now :)  ill keep that in mind next time im having issues.
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 11. June 2013, 01:01:35
here is mine. it is a best (in my opinion) of all the previous conkies in this thread. all done with the copy-and-paste-and-customize method. thanks to all of you, who made this possible!

Code: [Select]
background no
draw_borders no
draw_shades no

default_color 00ADFF
#default_color orange

# Create own window instead of using desktop (required in nautilus)
#own_window yes
#own_window_transparent yes
#own_window_type override
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

use_xft yes
xftfont Sans:size=11
xftalpha 0.5

update_interval 1
double_buffer yes

alignment top_right
gap_x 25
gap_y 25



TEXT

${font :size=26}$alignr ${time %H:%M}$font
${font :size=11}$alignr ${time %A, %d.%B %Y}$color$font

${font :size=11}Uptime:$alignr$uptime
Kernel:$alignr$kernel
OpenGL: ${alignr}${exec nvidia-settings -q OpenGLVersion -t}
Processes: ${alignr}$processes ($running_processes running)
#GPU Temp: $alignr ${execi 60 nvidia-settings -query GPUCoreTemp | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'}°C

${font :size=11}CPU 1: ${font :size=9}${cpu cpu0}% ${alignr}${cpubar cpu0 10,150} $alignr ${freq_g cpu0} Ghz
${font :size=11}CPU 2: ${font :size=9}${cpu cpu1}% ${alignr}${cpubar cpu1 10,150} $alignr ${freq_g cpu1} Ghz
${font :size=11}CPU 3: ${font :size=9}${cpu cpu2}% ${alignr}${cpubar cpu2 10,150} $alignr ${freq_g cpu2} Ghz
${font :size=11}CPU 4: ${font :size=9}${cpu cpu3}% ${alignr}${cpubar cpu3 10,150} $alignr ${freq_g cpu3} Ghz
${font :size=11}CPU 5: ${font :size=9}${cpu cpu4}% ${alignr}${cpubar cpu4 10,150} $alignr ${freq_g cpu4} Ghz
${font :size=11}CPU 6: ${font :size=9}${cpu cpu5}% ${alignr}${cpubar cpu5 10,150} $alignr ${freq_g cpu5} Ghz
${font :size=11}CPU 7: ${font :size=9}${cpu cpu6}% ${alignr}${cpubar cpu6 10,150} $alignr ${freq_g cpu6} Ghz
${font :size=11}CPU 8: ${font :size=9}${cpu cpu7}% ${alignr}${cpubar cpu7 10,150} $alignr ${freq_g cpu7} Ghz

${font :size=11}RAM: ${memperc}% $alignr${mem} / ${memmax}
${alignr}${memgraph 40,300}
Swap:$alignr${swap} / ${swapmax}

NAME: $alignr   PID   CPU   MEM${font :size=9}
   ${top name 1} $alignr${top pid 1}   ${top cpu 1}             
   ${top name 2} $alignr${top pid 2}   ${top cpu 2}             
   ${top name 3} $alignr${top pid 3}   ${top cpu 3}             

   ${top_mem name 1} $alignr ${top_mem pid 1}                ${top_mem mem 1}
   ${top_mem name 2} $alignr ${top_mem pid 2}                ${top_mem mem 2}
   ${top_mem name 3} $alignr ${top_mem pid 3}                ${top_mem mem 3}


${font :size=11}Root: ${alignr}${fs_used /} / ${fs_size /}
${alignr}${fs_bar 10,250 /}

Home: ${alignr}${fs_used /home} / ${fs_size /home}
${alignr}${fs_bar 10,250 /home}
${if_existing /proc/net/route enp9s0}
Down ${downspeed enp9s0}/s ${alignr} Total ${totaldown enp9s0}
${downspeedgraph enp9s0 40,300} ${alignr}

Up ${upspeed enp9s0}/s ${alignr} Total ${totalup enp9s0}
${upspeedgraph enp9s0 40,300} ${alignr}
${else}Network Unavailable${endif}
NET IP ${alignr}${execi 3600 wget http://v4.ipv6-test.com/api/myip.php -q -O -}
NAT ${alignr}${addr enp9s0}

Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 12. June 2013, 16:52:35
finally, i have finished my xfce panel, background, conky combination.

i have fixed some bugs in conky again:
Code: [Select]

#Choose a text color:
default_color 53aedf

#Either window is transparent, or it has a background color:
own_window_transparent yes
#own_window_colour 222222

background no
draw_borders no
draw_shades no

own_window yes
own_window_type override

use_xft yes

update_interval 1
double_buffer yes

alignment top_right
gap_x 18
gap_y 18


TEXT
${font :size=26}$alignr${time %H:%M}$font
${font :size=11}$alignr${time %A, %d.%B %Y}

Uptime:$alignr$uptime
Kernel:$alignr$kernel
OpenGL: ${alignr}${execi 3600 nvidia-settings -q OpenGLVersion -t}
#Processes: ${alignr}$processes ($running_processes running)
#GPU Temp: $alignr ${execi 60 nvidia-settings -query GPUCoreTemp | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'}°C

CPU 1: ${font :size=9}${cpu cpu0}% ${alignr}${cpubar cpu0 10,140} $alignr ${freq_g cpu0} Ghz
${font :size=11}CPU 2: ${font :size=9}${cpu cpu1}% ${alignr}${cpubar cpu1 10,140} $alignr ${freq_g cpu1} Ghz
${font :size=11}CPU 3: ${font :size=9}${cpu cpu2}% ${alignr}${cpubar cpu2 10,140} $alignr ${freq_g cpu2} Ghz
${font :size=11}CPU 4: ${font :size=9}${cpu cpu3}% ${alignr}${cpubar cpu3 10,140} $alignr ${freq_g cpu3} Ghz
${font :size=11}CPU 5: ${font :size=9}${cpu cpu4}% ${alignr}${cpubar cpu4 10,140} $alignr ${freq_g cpu4} Ghz
${font :size=11}CPU 6: ${font :size=9}${cpu cpu5}% ${alignr}${cpubar cpu5 10,140} $alignr ${freq_g cpu5} Ghz
${font :size=11}CPU 7: ${font :size=9}${cpu cpu6}% ${alignr}${cpubar cpu6 10,140} $alignr ${freq_g cpu6} Ghz
${font :size=11}CPU 8: ${font :size=9}${cpu cpu7}% ${alignr}${cpubar cpu7 10,140} $alignr ${freq_g cpu7} Ghz${font :size=11}

RAM: ${memperc}% $alignr${mem} / ${memmax}
#${membar 10,300} $alignr
${memgraph 20,300}
Swap:$alignr${swap} / ${swapmax}

NAME: $alignr   PID    CPU    MEM ${font :size=9}
    ${top name 1} $alignr${top pid 1}    ${top cpu 1}               
    ${top name 2} $alignr${top pid 2}    ${top cpu 2}               
    ${top name 3} $alignr${top pid 3}    ${top cpu 3}               

    ${top_mem name 1} $alignr ${top_mem pid 1}                ${top_mem mem_res 1}
    ${top_mem name 2} $alignr ${top_mem pid 2}                ${top_mem mem_res 2}
    ${top_mem name 3} $alignr ${top_mem pid 3}                ${top_mem mem_res 3}


${font :size=11}Root: ${alignr}${fs_used /} / ${fs_size /}
${fs_bar 10,300 /}

Home: ${alignr}${fs_used /home} / ${fs_size /home}
${fs_bar 10,300 /home}

Read: $alignr${diskio_read}/s
${diskiograph_read 30,300}
Write: $alignr${diskio_write}/s
${diskiograph_write 30,300}

Down: ${downspeed enp9s0}/s ${alignr} Total: ${totaldown enp9s0}
${downspeedgraph enp9s0 30,300 -t}
Up: ${upspeed enp9s0}/s ${alignr} Total: ${totalup enp9s0}
${upspeedgraph enp9s0 30,300 -t}

NET IP: ${alignr}${execi 3600 wget http://v4.ipv6-test.com/api/myip.php -q -O -}
NAT: ${alignr}${addr enp9s0}
Title: Re: Conky thread, show your work!
Post by: NickStone on 18. June 2013, 16:12:40
Can someone teach me how to draw an analogue clock using conky please?
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 18. June 2013, 17:04:52
when you enter ""analogue clock" conky" into google, you find some answers.

i am not really interested in this, but all you have to do is to take a look at the .conkyrc code and try to understand it (it helps when you compare a picture of the conky with the code. when you do not know what a certain word/syntax means, look it up here: http://conky.sourceforge.net/variables.html or here: http://conky.sourceforge.net/config_settings.html

this way you learn the programming language of conky and can start to manipulate the things you see. i saw e.g. that $exec{...} commands are very ressource hungry when i was wondering why my conky uses so much CPU time and understood that all $exec{...} commands get executed usually once a second, so i changed these command into $execi{3600 ... }, which only get executed once every hour.
you have to do the same thing, but for the commands, which are used to create an analogue clock!
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 19. June 2013, 15:25:38
here is my newest version of my conky.
it is less cluttered and has a semi-transparent background. this way, you can use it on non-dark wallpapers as well.
i have put some comments in the code as well (just for myself). when you look for explanations what certain commands do, look at the links i posted in my last post.

conky file:
Code: [Select]

####Text color:
default_color 53aedf

####Choose one of the following: Either window is transparent, or it has a background color:
#own_window_transparent yes
own_window_argb_visual yes

####Background color (only when own_window_argb_visual is active):
own_window_colour 222222

####Background transparency (0..255; only when own_window_argb_visual is active):
own_window_argb_value 220

####Use either MiB or M:
short_units yes


own_window yes
own_window_type desktop
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

draw_shades no
draw_outline no
draw_borders no

use_xft yes

no_buffers yes

update_interval 1

double_buffer yes

alignment top_right
gap_x 18
gap_y 36



TEXT
${font :size=26}$alignr${time %H:%M}$font
${font :size=11}$alignr${time %A, %d.%B %Y}

Uptime:$alignr$uptime
Kernel:$alignr$kernel
OpenGL: ${alignr}${execi 3600 nvidia-settings -q OpenGLVersion -t}
#Processes: ${alignr}$processes ($running_processes running)

CPU 1: ${font :size=9}${cpu cpu1}% ${alignr}${cpubar cpu1 9,135} $alignr ${freq_g cpu1} GHz
${font :size=11}CPU 2: ${font :size=9}${cpu cpu2}% ${alignr}${cpubar cpu2 9,135} $alignr ${freq_g cpu2} GHz
${font :size=11}CPU 3: ${font :size=9}${cpu cpu3}% ${alignr}${cpubar cpu3 9,135} $alignr ${freq_g cpu3} GHz
${font :size=11}CPU 4: ${font :size=9}${cpu cpu4}% ${alignr}${cpubar cpu4 9,135} $alignr ${freq_g cpu4} GHz
${font :size=11}CPU 5: ${font :size=9}${cpu cpu5}% ${alignr}${cpubar cpu5 9,135} $alignr ${freq_g cpu5} GHz
${font :size=11}CPU 6: ${font :size=9}${cpu cpu6}% ${alignr}${cpubar cpu6 9,135} $alignr ${freq_g cpu6} GHz
${font :size=11}CPU 7: ${font :size=9}${cpu cpu7}% ${alignr}${cpubar cpu7 9,135} $alignr ${freq_g cpu7} GHz
${font :size=11}CPU 8: ${font :size=9}${cpu cpu8}% ${alignr}${cpubar cpu8 9,135} $alignr ${freq_g cpu8} GHz


${font :size=11}RAM: ${memperc}% $alignr${mem} / ${memmax}
#${membar 9,300}
${memgraph 25,300}
Swap:$alignr${swap} / ${swapmax}


NAME: $alignr   PID    CPU    MEM ${font :size=9}
    ${top name 1} $alignr${top pid 1}    ${top cpu 1}               
    ${top name 2} $alignr${top pid 2}    ${top cpu 2}               
    ${top name 3} $alignr${top pid 3}    ${top cpu 3}               
    ${top name 4} $alignr${top pid 4}    ${top cpu 4}               

    ${top_mem name 1} $alignr ${top_mem pid 1}                   ${top_mem mem_res 1}
    ${top_mem name 2} $alignr ${top_mem pid 2}                   ${top_mem mem_res 2}
    ${top_mem name 3} $alignr ${top_mem pid 3}                   ${top_mem mem_res 3}
    ${top_mem name 4} $alignr ${top_mem pid 4}                   ${top_mem mem_res 4}${font :size=11}


Root: ${fs_used_perc /}% ${alignr}${fs_used /} / ${fs_size /}
${fs_bar 9,300 /}

Home: ${fs_used_perc /home}% ${alignr}${fs_used /home} / ${fs_size /home}
${fs_bar 9,300 /home}


${if_existing /proc/net/route enp9s0}Down: ${downspeed enp9s0}/s ${alignr} Total: ${totaldown enp9s0}
${downspeedgraph enp9s0 25,300 -t}
Up: ${upspeed enp9s0}/s ${alignr} Total: ${totalup enp9s0}
${upspeedgraph enp9s0 25,300 -t}

NET IP: ${alignr}${execi 3600 wget http://v4.ipv6-test.com/api/myip.php -q -O -}
LAN IP: ${alignr}${addr enp9s0}${else}LAN Unavailable${endif}
Title: Re: Conky thread, show your work!
Post by: poker98face on 21. June 2013, 23:22:59
I downloaded this conky from polish conky site and changed some things  ;) Can someone tell me what can be changed for better  ? If you want use it, tell me because i must remove polish words from .conkyrc  ::)

(http://i.imgur.com/RZDX5pu.png)

Code: [Select]
# Oficjalny plik konfiguracyjny conky.pl
# Wersja 1.0
# 01.07.2011r.

# USTAWIENIA/SETTINGS
alignment bottom_left
background yes
use_xft yes
xftfont Ubuntu:size=8
xftalpha 0.0
update_interval 1.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
minimum_size 250 5
maximum_width 250
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color black
default_outline_color black
alignment top_right
gap_x 10
gap_y 50
no_buffers yes
uppercase no
override_utf8_locale yes
text_buffer_size 2048
default_color white

TEXT
${font Ubuntu:style=Bold:pixelsize=15}${alignc}${time %e %B %G}${font Ubuntu:size=8}
${font Ubuntu:style=Bold:pixelsize=20}${alignc}${time %A}${font Ubuntu:size=8}
${hr 1}
${font StyleBats:size=20}${font Ubuntu:size=8}${voffset -10}${offset 5}${font Ubuntu:size=13}System:${font Ubuntu:size=8}
${voffset 4}Distro:${alignr}${font Ubuntu:size=8}Manjaro
Kernel:${alignr}${font Ubuntu:size=8}$sysname $kernel ($machine)${font Ubuntu:size=8}
DE:${alignr}${font Ubuntu:size=8}Xfce 4.10
${font Ubuntu:size=8}Uruchomiony: $alignr $uptime${font Ubuntu:size=8}
${hr 1}
${font Martin Vogel's Symbols:size=20}${font Ubuntu:size=8}${voffset -10}${offset 5}${font Ubuntu:size=13}Sieć:${font Ubuntu:size=8}
${voffset 4}Zewnętrzny Adres IP: $alignr ${execi 300 wget -O - http://ip.tupeux.com | tail}
Wewnętrzny Adres IP: $alignr${addr wlp2s0}
Brama: $alignr${gw_ip wlp2s0}
Przepustowość: $alignr${wireless_bitrate wlp2s0}
${color #369F53}${wireless_link_bar 12 wlp2s0}${color}
${voffset -13}${goto 6}Siła sygnału
${voffset 1}${color #369F53}${downspeedgraph wlp0s18f2u2 12, 95}${goto 110}${upspeedgraph wlp2s0 12, 95}${color}
${voffset -13}${goto 6}Down${goto 45}${downspeed wlp2s0} ${goto 111}Up ${goto 135}${upspeed wlp2s0}
${voffset -13}
Pobrano${color}${alignr}Wysłano${color}
${voffset 4}${totaldown wlp2s0}${alignr}${totalup wlp2s0}
${hr 1}
${font StyleBats:size=20}${font Ubuntu:size=8}${voffset -10}${offset 5}${font Ubuntu:size=13}Procesor:${font Ubuntu:size=8}
${voffset 4}Intel Core 2 Duo (${freq} MHz)
${color #369F53}${cpubar cpu0 12}${color}
${voffset -13}${goto 6}Obciążenie: ${cpu cpu0}% ${goto 100}Procesy: $processes ${alignr}Akt.: $running_processes
Aplikacje$alignr %
${voffset 4}${top name 1}$alignr${top cpu 1}
${top name 2}$alignr${top cpu 2}
${top name 3}$alignr${top cpu 3}
${hr 1}
${font StyleBats:size=20}${font Ubuntu:size=8}${voffset -10}${offset 5}${font Ubuntu:size=13}Pamięć:${font Ubuntu:size=8}
${voffset 4}Użycie pamięci:
${color #369F53}${membar 12}${color}
${voffset -13}${goto 6}RAM${goto 60}$mem / $memmax ${goto 180}$memperc%
Aplikacje$alignr %
${voffset 4}${top_mem name 1}$alignr${top mem_res 1}
${top_mem name 2}$alignr${top mem_res 2}
${top_mem name 3}$alignr${top mem_res 3}
${hr 1}
${font StyleBats:size=20}${font Ubuntu:size=8}${voffset -10}${offset 5}${font Ubuntu:size=13}Bateria:${font Ubuntu:size=8}
${voffset 4}Bateria: ${battery_percent BAT1}%${color #369F53} ${alignr}${battery_bar 8,60 BAT1}${color}
${hr 1}
${font StyleBats:size=20}${font Ubuntu:size=8}${voffset -10}${offset 5}${font Ubuntu:size=13}Dysk:${font Ubuntu:size=8}
${voffset 4}Home
${voffset 4}${fs_free /home}/${fs_size /home} ${alignr}${color #369F53}${fs_bar 8,60 /home}${color}
Root$alignr
${voffset 4}${fs_free /}/${fs_size /} ${alignr}${color #369F53}${fs_bar 8,60 /}

Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 22. June 2013, 19:20:04
hey your conky looks fine!

it depends on you what you want. i would throw out useless information (like the bitrate of your wireless network, because it usually never changes). i would also enlarge/add useful information (like upload- and download graph; the name of your distribution; the load on both cpus separately; a clock; simple units (not MiB, but M)

just take a look at the other conkys here and if you like something, look in the code and copy the thing you want!
Title: Re: Conky thread, show your work!
Post by: poker98face on 22. June 2013, 22:35:15
Hmm i want to add icons next to tittles, is it possible? And maybe change font to droid.
Title: Re: Conky thread, show your work!
Post by: poker98face on 22. June 2013, 23:50:05
New conky, based on Metro clock conky by ~satya164 http://satya164.deviantart.com/art/Conky-Metro-Clock-245432929 Clean config for clean desktop  :)

(http://i.imgur.com/QhMy92O.jpg)

Code: [Select]
# Conky Metro Clock - http://fav.me/d424h9d

# Conky settings
background no
update_interval 1

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048

# Window specifications
own_window yes
own_window_class conky
own_window_transparent yes
own_window_hints undecorate,below,sticky,skip_taskbar,skip_pager

border_inner_margin 0
border_outer_margin 0

alignment bl
gap_x 100
gap_y 100

# Graphics settings
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings
use_xft yes
xftalpha 0
text_buffer_size 2048

uppercase no

default_color FFFFFF

TEXT
${voffset 10}${font Open Sans Light:size=50}${time %A}${font}${voffset -10}
${voffset 10}${font Open Sans Light:size=50}${time %B} ${time %e}${font}${voffset -10}
${voffset 10}${font Open Sans Light:size=100}${time %I:%M %p}${font}${voffset -10}

Kernel:  ${alignr}${kernel}

CPU $alignr ${cpu cpu0}%
${cpubar cpu0}

MEM $alignc $mem / $memmax $alignr $memperc%
$membar}

Uptime: ${alignr}${uptime}

Procesy: ${alignr}$processes processes ($running_processes running)
   
NAME $alignr PID    CPU  MEM
${top name 1} $alignr ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} $alignr ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} $alignr ${top pid 3} ${top cpu 3} ${top mem 3}

Home:
${fs_free /home}/${fs_size /home}
Root:
${fs_free /root}/${fs_size /root}
Title: Re: Conky thread, show your work!
Post by: LCJr on 23. June 2013, 01:38:00
Hmm i want to add icons next to tittles, is it possible?

Yes.  Have a look at 'image' in the Conky documentation for details: http://conky.sourceforge.net/variables.html
Code: [Select]
image  <path to image> (-p x,y) (-s WxH) (-n) (-f interval)Real example:  ${image ~/.conky/logo.png -p 0,10 -s 75x75}
Image is 'logo.png' in home/.conky.  X, Y position is 0,10 and size is 75x75 pixels.  Size doesn't have be the same as the actual image or to put that another way it can be used to rescale the image.
Title: Re: Conky thread, show your work!
Post by: mips on 24. June 2013, 19:12:33
Quick question,

I'm using the standard conky config that comes with 0.8.6 OB but my battery stays on 0%. I figured this out a few years ago but forgot how I did it.

Code: [Select]
${font sans:bold:size=9}${alignr}${color #006400}CPU ${color #696969}${cpu cpu0}% - ${color #006400}RAM ${color #696969}$mem - ${color #006400}HD ${color #696969}$fs_used - ${color #006400}BAT ${color #696969}$battery_percent% - ${color #006400}UP ${color #696969}$uptime_short
Code: [Select]
[reon@asterix ~]$ acpi -i
Battery 0: Full, 100%
Battery 0: design capacity 709 mAh, last full capacity 709 mAh = 100%

Code: [Select]
[reon@asterix ~]$ ls /sys/class/power_supply/
C172@  C174@

xfce4-power-manager
Device battery_C174
Title: Re: Conky thread, show your work!
Post by: poker98face on 24. June 2013, 19:33:58
Maybe try to change from BAT0 to BAT1?
Title: Re: Conky thread, show your work!
Post by: mips on 24. June 2013, 20:00:15
Maybe try to change from BAT0 to BAT1?

I don't have a bat0 or bat1
Title: Re: Conky thread, show your work!
Post by: poker98face on 24. June 2013, 20:17:51
You have ${color #006400}BAT try to add 1 to BAT  ;)
Title: Re: Conky thread, show your work!
Post by: mips on 24. June 2013, 20:36:30
You have ${color #006400}BAT try to add 1 to BAT  ;)

All that does is change the text from BAT to BAT0 or BAT1. The BAT part is plain text.
Title: Re: Conky thread, show your work!
Post by: poker98face on 24. June 2013, 20:51:45
${battery_percent BAT0} maybe this will work  :)
Title: Re: Conky thread, show your work!
Post by: mips on 25. June 2013, 00:21:08
nope
Title: Re: Conky thread, show your work!
Post by: LCJr on 25. June 2013, 01:19:11
Mips, you already tried this? ${battery_percent BAT1}%  IIRC Arch usually uses BAT1 instead of the Conky default BAT0.

Or do you have the ACPI packages installed?  Maybe this will help:  http://bbs.archbang.org/viewtopic.php?id=1993
Title: Re: Conky thread, show your work!
Post by: dsngjoe on 18. July 2013, 17:38:51
here is my newest version of my conky.
it is less cluttered and has a semi-transparent background. this way, you can use it on non-dark wallpapers as well.
i have put some comments in the code as well (just for myself). when you look for explanations what certain commands do, look at the links i posted in my last post.

conky file:
Code: [Select]

####Text color:
default_color 53aedf

####Choose one of the following: Either window is transparent, or it has a background color:
#own_window_transparent yes
own_window_argb_visual yes

####Background color (only when own_window_argb_visual is active):
own_window_colour 222222

####Background transparency (0..255; only when own_window_argb_visual is active):
own_window_argb_value 220

####Use either MiB or M:
short_units yes


own_window yes
own_window_type desktop
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

draw_shades no
draw_outline no
draw_borders no

use_xft yes

no_buffers yes

update_interval 1

double_buffer yes

alignment top_right
gap_x 18
gap_y 36



TEXT
${font :size=26}$alignr${time %H:%M}$font
${font :size=11}$alignr${time %A, %d.%B %Y}

Uptime:$alignr$uptime
Kernel:$alignr$kernel
OpenGL: ${alignr}${execi 3600 nvidia-settings -q OpenGLVersion -t}
#Processes: ${alignr}$processes ($running_processes running)

CPU 1: ${font :size=9}${cpu cpu1}% ${alignr}${cpubar cpu1 9,135} $alignr ${freq_g cpu1} GHz
${font :size=11}CPU 2: ${font :size=9}${cpu cpu2}% ${alignr}${cpubar cpu2 9,135} $alignr ${freq_g cpu2} GHz
${font :size=11}CPU 3: ${font :size=9}${cpu cpu3}% ${alignr}${cpubar cpu3 9,135} $alignr ${freq_g cpu3} GHz
${font :size=11}CPU 4: ${font :size=9}${cpu cpu4}% ${alignr}${cpubar cpu4 9,135} $alignr ${freq_g cpu4} GHz
${font :size=11}CPU 5: ${font :size=9}${cpu cpu5}% ${alignr}${cpubar cpu5 9,135} $alignr ${freq_g cpu5} GHz
${font :size=11}CPU 6: ${font :size=9}${cpu cpu6}% ${alignr}${cpubar cpu6 9,135} $alignr ${freq_g cpu6} GHz
${font :size=11}CPU 7: ${font :size=9}${cpu cpu7}% ${alignr}${cpubar cpu7 9,135} $alignr ${freq_g cpu7} GHz
${font :size=11}CPU 8: ${font :size=9}${cpu cpu8}% ${alignr}${cpubar cpu8 9,135} $alignr ${freq_g cpu8} GHz


${font :size=11}RAM: ${memperc}% $alignr${mem} / ${memmax}
#${membar 9,300}
${memgraph 25,300}
Swap:$alignr${swap} / ${swapmax}


NAME: $alignr   PID    CPU    MEM ${font :size=9}
    ${top name 1} $alignr${top pid 1}    ${top cpu 1}               
    ${top name 2} $alignr${top pid 2}    ${top cpu 2}               
    ${top name 3} $alignr${top pid 3}    ${top cpu 3}               
    ${top name 4} $alignr${top pid 4}    ${top cpu 4}               

    ${top_mem name 1} $alignr ${top_mem pid 1}                   ${top_mem mem_res 1}
    ${top_mem name 2} $alignr ${top_mem pid 2}                   ${top_mem mem_res 2}
    ${top_mem name 3} $alignr ${top_mem pid 3}                   ${top_mem mem_res 3}
    ${top_mem name 4} $alignr ${top_mem pid 4}                   ${top_mem mem_res 4}${font :size=11}


Root: ${fs_used_perc /}% ${alignr}${fs_used /} / ${fs_size /}
${fs_bar 9,300 /}

Home: ${fs_used_perc /home}% ${alignr}${fs_used /home} / ${fs_size /home}
${fs_bar 9,300 /home}


${if_existing /proc/net/route enp9s0}Down: ${downspeed enp9s0}/s ${alignr} Total: ${totaldown enp9s0}
${downspeedgraph enp9s0 25,300 -t}
Up: ${upspeed enp9s0}/s ${alignr} Total: ${totalup enp9s0}
${upspeedgraph enp9s0 25,300 -t}

NET IP: ${alignr}${execi 3600 wget http://v4.ipv6-test.com/api/myip.php -q -O -}
LAN IP: ${alignr}${addr enp9s0}${else}LAN Unavailable${endif}


This is NEAT could you find a way to ADD CPU and GPU temps?  (Nvidia prop drivers)

Im going to try to this tonight.

I hope I don screw my system up.
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 18. July 2013, 20:17:55
just install conky, copy the content of the .conkyrc file and save it, and start conky. now you should see the conky on your screen.

i already tried to add the cpu temperatures to my conky, but i do not know enough about bash to realize that... you need to read the values from some programs i do not know and you need to run those programs in order to be able to read the temperatures from them. you need to use the command "exec" or "execi 90" in your conky script to do this, but when you run programs periodically (in the first case once a second and in the second case once every 90 seconds) the cpu requirements grow quite a bit and i want to keep my conky light on cpu usage.

adding the gpu temp is not hard, because you can easily read it from the nvidia driver. it is in my conky script, but i do not use it. i am not on my pc right now, but i can post the latest config of my conky soon

you can also use the conky scripts of other people in this thread and other forums (there is a huge ubuntu forum thread about conky configs). just compare the pictures with the conky scripts and you can add what you want to your own conky. this worked very well for me, except for getting weather data and cpu temperatures. you need to use code, which is specific to your pc and i do not understand it.

Title: Re: Conky thread, show your work!
Post by: dsngjoe on 19. July 2013, 05:29:05
It work but my LAN says its Unavailable.  Where do I change my settings at?

Thanks
Title: Re: Conky thread, show your work!
Post by: dsngjoe on 19. July 2013, 05:53:19
It work but my LAN says its Unavailable.  Where do I change my settings at?


I got it working!!!  Take a look...  Now to figure out how to add CPU and GPU temps!

(http://imageshack.com/a/img13/3500/qr3k.png) (http://imageshack.com/i/0dqr3kp/)
Title: Re: Conky thread, show your work!
Post by: diggingman on 19. July 2013, 15:24:20
Quote
I got it working!!!  Take a look...  Now to figure out how to add CPU and GPU temps!

First install lm_sensors

Code: [Select]
sudo pacman -S lm_sensors

Then follow the setup instructions on the Arch Wiki https://wiki.archlinux.org/index.php/Lm_sensors (https://wiki.archlinux.org/index.php/Lm_sensors)

Here are the CPU lines from my conky config, this will produce a bar graph for the CPU with the temp for each core as seen in my conky below
Code: [Select]
${font}Core 0 ${color white}${execi 30 sensors | grep 'Core 0:' | cut -c18-19}°C${color} @ ${cpu cpu1} % $alignc ${cpubar cpu1}${color}
${font}Core 1 ${color white}${execi 30 sensors | grep 'Core 1:' | cut -c18-19}°C${color} @ ${cpu cpu2} % $alignc ${cpubar cpu2}${color}
${font}Core 2 ${color white}${execi 30 sensors | grep 'Core 2:' | cut -c18-19}°C${color} @ ${cpu cpu3} % $alignc ${cpubar cpu3}${color}
${font}Core 3 ${color white}${execi 30 sensors | grep 'Core 3:' | cut -c18-19}°C${color} @ ${cpu cpu4} % $alignc ${cpubar cpu4}${color}

As for the GPU temps, you'll need to have nvidia-settings installed, here is the GPU line from my conky.
Code: [Select]
GPU Temperature $alignr ${execi 60 nvidia-settings -query GPUCoreTemp | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'}°C
However, I don't know how this would work for you since you have an SLI setup, you'll probably have to make some changes if you want all of your GPU's to show up separately, I wouldn't know how to do that.

(http://trevormartin.smugmug.com/photos/i-N4Vqctg/0/S/i-N4Vqctg-S.png) (http://trevormartin.smugmug.com/Photos/manjaro/29888960_tJHHmf#!i=2644139164&k=N4Vqctg&lb=1&s=A)
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 19. July 2013, 20:11:56
@diggingman: thanks a lot. i will try to do display the gpu temps as well when i am on my pc again.

@dsngjoe: you can change the date and time format as well, when you want. just look for the according script commands in the conky wiki (links in reply no. 61).
you only need the display of 8 (hyperthreaded) cpu cores, when you really have them (e.g. i7 cpu). otherwise, delete the unnecessary script lines.
Title: Re: Conky thread, show your work!
Post by: DiscipleOfDante on 19. July 2013, 20:26:20
Okay here is my conky screenshot, I personally like to keep it simple myself, And I will include one of my desktop to kind of help ya'll get a feel for the effect I am going for.

(http://imageshack.us/a/img27/9865/6ed7.th.png) (http://imageshack.us/photo/my-images/27/6ed7.png/)

(http://imageshack.us/a/img844/7527/i30g.th.png) (http://imageshack.us/photo/my-images/844/i30g.png/)
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 19. July 2013, 20:55:38
as promised, here is the latest version of my conky, i improved it even more, fixed all the bugs i found and included an option to display a transparent background or not. i also included some comments and changed it a little.

i have expanded the task manager to include 3 sections: the first shows processes ordered by cpu (%) usage, the second are the 2 processes, which use the hard drive the most (ordered by %) and the last section shows the memory usage of processes.

Code: [Select]

####Text color:
default_color 41bfdf
#default_color 53aedf

####Choose one of the following: Either window is transparent, or it has a background color:
#own_window_transparent yes
own_window_argb_visual yes

####Background color:
own_window_colour 222222

####Background transparency (0..255):
own_window_argb_value 200


own_window yes
own_window_type desktop
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

draw_shades no
draw_outline no
draw_borders no

total_run_times 0

use_xft yes

no_buffers yes

short_units yes

update_interval 1

double_buffer yes

alignment top_right
gap_x 18
gap_y 25



TEXT
${font DejaVuSansCondensed-Bold:size=26}$alignr${time %H:%M}$font
${font DejaVuSansCondensed-Bold:size=11}$alignr${time %A, %d.%B %Y}

Uptime:$alignr$uptime
Kernel:$alignr$kernel
OpenGL: ${alignr}${execi 3600 nvidia-settings -q OpenGLVersion -t}
#Processes: ${alignr}$processes ($running_processes running)

CPU 1: ${font DejaVuSansCondensed-Bold:size=9}${cpu cpu1}% ${alignr}${cpubar cpu1 9,145} $alignr ${freq_g cpu1} GHz
${font DejaVuSansCondensed-Bold:size=11}CPU 2: ${font DejaVuSansCondensed-Bold:size=9}${cpu cpu2}% ${alignr}${cpubar cpu2 9,145} $alignr ${freq_g cpu2} GHz
${font DejaVuSansCondensed-Bold:size=11}CPU 3: ${font DejaVuSansCondensed-Bold:size=9}${cpu cpu3}% ${alignr}${cpubar cpu3 9,145} $alignr ${freq_g cpu3} GHz
${font DejaVuSansCondensed-Bold:size=11}CPU 4: ${font DejaVuSansCondensed-Bold:size=9}${cpu cpu4}% ${alignr}${cpubar cpu4 9,145} $alignr ${freq_g cpu4} GHz
${font DejaVuSansCondensed-Bold:size=11}CPU 5: ${font DejaVuSansCondensed-Bold:size=9}${cpu cpu5}% ${alignr}${cpubar cpu5 9,145} $alignr ${freq_g cpu5} GHz
${font DejaVuSansCondensed-Bold:size=11}CPU 6: ${font DejaVuSansCondensed-Bold:size=9}${cpu cpu6}% ${alignr}${cpubar cpu6 9,145} $alignr ${freq_g cpu6} GHz
${font DejaVuSansCondensed-Bold:size=11}CPU 7: ${font DejaVuSansCondensed-Bold:size=9}${cpu cpu7}% ${alignr}${cpubar cpu7 9,145} $alignr ${freq_g cpu7} GHz
${font DejaVuSansCondensed-Bold:size=11}CPU 8: ${font DejaVuSansCondensed-Bold:size=9}${cpu cpu8}% ${alignr}${cpubar cpu8 9,145} $alignr ${freq_g cpu8} GHz


${font DejaVuSansCondensed-Bold:size=11}RAM: ${memperc}% $alignr${mem} / ${memmax}
#${membar 9,300}
${memgraph 25,300}
Swap:$alignr${swap} / ${swapmax}


NAME: $alignr PID        %      MEM${font DejaVuSansCondensed-Bold:size=9}
     ${top name 1} ${goto 160}${top pid 1} ${goto 218}${top cpu 1}
     ${top name 2} ${goto 160}${top pid 2} ${goto 218}${top cpu 2}
     ${top name 3} ${goto 160}${top pid 3} ${goto 218}${top cpu 3}
     ${top name 4} ${goto 160}${top pid 4} ${goto 218}${top cpu 4}

     ${top_io name 1} ${goto 160}${top_io pid 1} ${goto 218}${top_io io_perc 1}
     ${top_io name 2} ${goto 160}${top_io pid 2} ${goto 218}${top_io io_perc 2}

     ${top_mem name 1} ${goto 160}${top_mem pid 1} ${goto 275}${top_mem mem_res 1}
     ${top_mem name 2} ${goto 160}${top_mem pid 2} ${goto 275}${top_mem mem_res 2}
     ${top_mem name 3} ${goto 160}${top_mem pid 3} ${goto 275}${top_mem mem_res 3}
     ${top_mem name 4} ${goto 160}${top_mem pid 4} ${goto 275}${top_mem mem_res 4}
     ${top_mem name 5} ${goto 160}${top_mem pid 5} ${goto 275}${top_mem mem_res 5}${font DejaVuSansCondensed-Bold:size=11}


Root: ${fs_used_perc /}% ${alignr}${fs_used /}/${fs_size /}
${fs_bar 9,300 /}

Home: ${fs_used_perc /home}% ${alignr}${fs_used /home}/${fs_size /home}
${fs_bar 9,300 /home}


${if_existing /proc/net/route enp9s0}Down: ${downspeed enp9s0}/s ${alignr} Total: ${totaldown enp9s0}
${downspeedgraph enp9s0 25,300 -t}
Up: ${upspeed enp9s0}/s ${alignr} Total: ${totalup enp9s0}
${upspeedgraph enp9s0 25,300 -t}

NET IP: ${alignr}${execi 3601 wget http://v4.ipv6-test.com/api/myip.php -q -O -}
LAN IP: ${alignr}${addr enp9s0}${else}LAN Unavailable${endif}
Title: Re: Conky thread, show your work!
Post by: dsngjoe on 20. July 2013, 03:29:18
Guys I Finally DID IT!!!!  I am so glad I read some scripting books a couple of years ago.  I am going to re-read them again.  Take a look.

(http://imageshack.com/scaled/large/854/1swa.png)

Thanks for all of the help guys.  This is my code, I had to make some changes on mine to make it work. 

Thanks again for everyone who helped me!

 (http://imageshack.com/i/nq1swap/)
Code: [Select]
####Text color:
default_color 41bfdf
#default_color 53aedf

####Choose one of the following: Either window is transparent, or it has a background color:
own_window_transparent yes
#own_window_argb_visual yes

####Background color:
own_window_colour 222222

####Background transparency (0..255):
own_window_argb_value 200


own_window yes
own_window_type desktop
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

draw_shades no
draw_outline no
draw_borders no

total_run_times 0

use_xft yes

no_buffers yes

short_units yes

update_interval 1

double_buffer yes

alignment top_right
gap_x 18
gap_y 25



TEXT
${font DejaVuSansCondensed-Bold:size=26}$alignr${time Time %l:%M %p}$font
${font DejaVuSansCondensed-Bold:size=11}$alignr${time %A, %d.%B %Y}

Uptime:$alignr$uptime
Kernel:$alignr$kernel
OpenGL: ${alignr}${execi 3600  glxinfo | grep "OpenGL version"}
GPU1 Temperature $alignr ${execi 60 nvidia-settings -query GPUCoreTemp | grep gpu:0 | cut -c46-47 }°C  ${font DejaVuSansCondensed-Bold:size=11}
GPU2 Temperature $alignr ${execi 60 nvidia-settings -query GPUCoreTemp | grep gpu:1 | cut -c46-47 }°C  ${font DejaVuSansCondensed-Bold:size=11}

#Processes: ${alignr}$processes ($running_processes running)

${font DejaVuSansCondensed-Bold:size=11}CPU 1: ${execi 30 sensors | grep 'Core 0:' | cut -c16-19}C      ${font DejaVuSansCondensed-Bold:size=11}${cpu cpu1}% ${alignr}${cpubar cpu1 9,145} $alignr ${freq_g cpu1} GHz
${font DejaVuSansCondensed-Bold:size=11}CPU 2: ${execi 30 sensors | grep 'Core 1:' | cut -c16-19}C      ${font DejaVuSansCondensed-Bold:size=11}${cpu cpu2}% ${alignr}${cpubar cpu2 9,145} $alignr ${freq_g cpu2} GHz
${font DejaVuSansCondensed-Bold:size=11}CPU 3: ${execi 30 sensors | grep 'Core 2:' | cut -c16-19}C      ${font DejaVuSansCondensed-Bold:size=11}${cpu cpu3}% ${alignr}${cpubar cpu3 9,145} $alignr ${freq_g cpu3} GHz
${font DejaVuSansCondensed-Bold:size=11}CPU 4: ${execi 30 sensors | grep 'Core 3:' | cut -c16-19}C      ${font DejaVuSansCondensed-Bold:size=11}${cpu cpu4}% ${alignr}${cpubar cpu4 9,145} $alignr ${freq_g cpu4} GHz
${font DejaVuSansCondensed-Bold:size=11}CPU 5: ${execi 30 sensors | grep 'Core 0:' | cut -c16-19}C      ${font DejaVuSansCondensed-Bold:size=11}${cpu cpu5}% ${alignr}${cpubar cpu5 9,145} $alignr ${freq_g cpu5} GHz
${font DejaVuSansCondensed-Bold:size=11}CPU 6: ${execi 30 sensors | grep 'Core 1:' | cut -c16-19}C      ${font DejaVuSansCondensed-Bold:size=11}${cpu cpu6}% ${alignr}${cpubar cpu6 9,145} $alignr ${freq_g cpu6} GHz
${font DejaVuSansCondensed-Bold:size=11}CPU 7: ${execi 30 sensors | grep 'Core 2:' | cut -c16-19}C      ${font DejaVuSansCondensed-Bold:size=11}${cpu cpu7}% ${alignr}${cpubar cpu7 9,145} $alignr ${freq_g cpu7} GHz
${font DejaVuSansCondensed-Bold:size=11}CPU 8: ${execi 30 sensors | grep 'Core 3:' | cut -c16-19}C      ${font DejaVuSansCondensed-Bold:size=11}${cpu cpu8}% ${alignr}${cpubar cpu8 9,145} $alignr ${freq_g cpu8} GHz


${font DejaVuSansCondensed-Bold:size=11}RAM: ${memperc}% $alignr${mem} / ${memmax}
#${membar 9,300}
${memgraph 25,300}
#Swap:$alignr${swap} / ${swapmax}
NAME:                            PID         CPU%  MEM${font DejaVuSansCondensed-Bold:size=9}
     
     ${top name 1} ${goto 160}${top pid 1} ${goto 218}${top cpu 1}
     ${top name 2} ${goto 160}${top pid 2} ${goto 218}${top cpu 2}
     ${top name 3} ${goto 160}${top pid 3} ${goto 218}${top cpu 3}
     ${top name 4} ${goto 160}${top pid 4} ${goto 218}${top cpu 4}

     ${top_io name 1} ${goto 160}${top_io pid 1} ${goto 218}${top_io io_perc 1}
     ${top_io name 2} ${goto 160}${top_io pid 2} ${goto 218}${top_io io_perc 2}

     ${top_mem name 1} ${goto 160}${top_mem pid 1} ${goto 275}${top_mem mem_res 1}
     ${top_mem name 2} ${goto 160}${top_mem pid 2} ${goto 275}${top_mem mem_res 2}
     ${top_mem name 3} ${goto 160}${top_mem pid 3} ${goto 275}${top_mem mem_res 3}
     ${top_mem name 4} ${goto 160}${top_mem pid 4} ${goto 275}${top_mem mem_res 4}
     ${top_mem name 5} ${goto 160}${top_mem pid 5} ${goto 275}${top_mem mem_res 5}${font DejaVuSansCondensed-Bold:size=11}


Root: ${fs_used_perc /}% ${alignr}${fs_used /}/${fs_size /}
${fs_bar 9,300 /}

Home: ${fs_used_perc /home}% ${alignr}${fs_used /home}/${fs_size /home}
${fs_bar 9,300 /home}


${if_existing /proc/net/route enp0s25}Down: ${downspeed enp0s25}/s ${alignr} Total: ${totaldown enp0s25}
${downspeedgraph enp0s25 25,300 -t}
Up: ${upspeed enp0s25}/s ${alignr} Total: ${totalup enp0s25}
${upspeedgraph enp0s25 25,300 -t}

NET IP: ${alignr}${execi 3601 wget http://v4.ipv6-test.com/api/myip.php -q -O -}
LAN IP: ${alignr}${addr enp0s25}${else}LAN Unavailable${endif}
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 21. July 2013, 13:31:50
when you are happy with it, then keep it the way it is.

if you want some more tips, try these things:

- cpu core 5 shows the temperature of core 0
- cpu core 6 shows the temperature of core 1
- cpu core 7 shows the temperature of core 2
- cpu core 8 shows the temperature of core 3
- just adjust the numbers there!

-the width of the conky is defined by the widest element. this is you opengl settings line. copy it from my conky or shorten it another way.

-the width of the cpu1 until cpu8 lines is increased because of the temperatures, try to remove the percentages or decrease the width of the bars: the 145 is the pixel width of these bars, try to decrease this number until you are happy.

overall you did a great job by using the copy and paste method. this shows that getting your own conky is not very hard!
Title: Re: Conky thread, show your work!
Post by: poker98face on 21. July 2013, 13:34:02
He copy and poste your conky excalibur?
Title: Re: Conky thread, show your work!
Post by: poker98face on 21. July 2013, 13:46:35
Elementary conky, clock by sunFlw3r and the rest is made ​​by me  :)

(http://i.imgur.com/ogDEgqz.png)

Code: [Select]
# by sunFlw3r #
#please feel free to mod/hack this code to your hearts content:)#
#if you make anything cool I'd love to see it#

# Conky settings #
background no
update_interval 1
double_buffer yes
no_buffers yes

# Window specifications #
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_title
own_window_colour FFFFFF

minimum_size 600 500
maximum_size 600 500

# Alignment #
alignment tr
gap_x 0
gap_y 86

border_inner_margin 15
border_outer_margin 0

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #
use_xft yes
xftalpha 0
xftfont Open Sans Light:size=18

override_utf8_locale yes

imlib_cache_size 0

# Color scheme #
default_color #FFFFFF


TEXT
${font Raleway:weight=light:size=60}${offset 80}${time %k:%M %P}${font}  ${time %A  |  %B.%d}
${voffset -10}${hr 3}
${font Raleway:weight=light:size=28}${offset 300}Cpu: ${cpu cpu0}%   Ram: ${memperc}%   
${voffset -10}${hr 3}
${font Raleway:weight=light:size=20}Uptime:$alignr$uptime
Kernel:$alignr$kernel
Home: ${alignr}${fs_free /home}${fs_size /home}
Root: ${alignr}${fs_free /}/${fs_size /}
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 21. July 2013, 13:52:34
@poker98face:
yes.
dsngjoe took my latest conky script and added the temperature scripts from diggingman. he also removed my grey semi-transparent background.

but if you want to know, whether i am mad about this: i am not. i published my conky script for everybody to use, because it is based on hammer3344's conky script (look in this thread for it). i just expanded it with all the conkys i saw by using the copy and method myself. when i had trouble with something, i went to the conky documentation and read about the code...

linux is about learning from the community and giving back what you have learned...
Title: Re: Conky thread, show your work!
Post by: dsngjoe on 21. July 2013, 15:34:25
He copy and poste your conky excalibur?

If you look closely to the code, you will see I had to make changes to excalibur code to make it work on my pc. (network/swap/openGL)  Diggimon posted the code for CPU temps and GPU's.  If you look closely I had to make changes on the CPU side of things to make it work on mine.  On the GPU his code did not work at all on mine, I think it's due do me running SLI, but with his code I saw what I had to write in Bash to get the right temperatures on the GPU's.

To repay the favor I re-posted the code with my changes that I hope people can improve on.

So this all comes down on helping each other to improve the community.  I hope with what I did, I will be able help someone else out.

I am very grateful to both excalibur and diggimon for their help. 
Title: Re: Conky thread, show your work!
Post by: dsngjoe on 21. July 2013, 16:01:40
Diggimin GPU code
Code: [Select]
GPU Temperature $alignr ${execi 60 nvidia-settings -query GPUCoreTemp | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'}°C

My SLI Gpu code
Code: [Select]
GPU1 Temperature $alignr ${execi 60 nvidia-settings -query GPUCoreTemp | grep gpu:0 | cut -c46-47 }°C  ${font DejaVuSansCondensed-Bold:size=11}
GPU2 Temperature $alignr ${execi 60 nvidia-settings -query GPUCoreTemp | grep gpu:1 | cut -c46-47 }°C  ${font DejaVuSansCondensed-Bold:size=11}

I am very grateful to both excalibur and diggimon for their help.  With excalibur's script it was perfect for me, so I decided not to change how it looks.  I like it a lot. 
At a previous post I said my code, what I meant to say was my changes but I was so excited I got everything I wanted on it working.  ( In no way did I ever mean to take credit for your work excalibur)

It's been maybe 2 years since I left the Linux scene.  Just came back when I read on Manjaro and got me very interested in the approach they do things.  So here I am.
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 21. July 2013, 17:14:02
here is my latest conky script. i added the gpu and cpu temperatures in a way, which works for me:
Code: [Select]

####Text color:
default_color 41bfdf
#default_color 00ADFF

####Choose one of the following: Either window is transparent, or it has a background color:
#own_window_transparent yes
own_window_argb_visual yes

####Background color:
own_window_colour 222222

####Background transparency (0..255):
own_window_argb_value 200


own_window yes
own_window_type desktop
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

draw_shades no
draw_outline no
draw_borders no

total_run_times 0

use_xft yes

no_buffers yes

short_units yes

update_interval 1

double_buffer yes

alignment top_right
gap_x 18
gap_y 25



TEXT
${font DejaVuSansCondensed-Bold:size=26}$alignr${time %H:%M}$font
${font DejaVuSansCondensed-Bold:size=11}$alignr${time %A, %d.%B %Y}

Uptime:$alignr$uptime
Kernel:$alignr$kernel

GPU:  ${execi 31 nvidia-settings -query GPUCoreTemp -t}°C ${alignr}Driver: ${execi 3603 nvidia-settings -q OpenGLVersion -t | cut -c7-}
#Processes: ${alignr}$processes ($running_processes running)

${font DejaVuSansCondensed-Bold:size=11}Core 1: ${font DejaVuSansCondensed-Bold:size=9}${execi 30 sensors | grep 'Core 0:' | cut -c16-17}°C, ${cpu cpu1}% ${alignr}${cpubar cpu1 9,110} $alignr ${freq_g cpu1} GHz
${font DejaVuSansCondensed-Bold:size=11}Core 2: ${font DejaVuSansCondensed-Bold:size=9}${execi 30 sensors | grep 'Core 0:' | cut -c16-17}°C, ${cpu cpu2}% ${alignr}${cpubar cpu2 9,110} $alignr ${freq_g cpu2} GHz
${font DejaVuSansCondensed-Bold:size=11}Core 3: ${font DejaVuSansCondensed-Bold:size=9}${execi 30 sensors | grep 'Core 1:' | cut -c16-17}°C, ${cpu cpu3}% ${alignr}${cpubar cpu3 9,110} $alignr ${freq_g cpu3} GHz
${font DejaVuSansCondensed-Bold:size=11}Core 4: ${font DejaVuSansCondensed-Bold:size=9}${execi 30 sensors | grep 'Core 1:' | cut -c16-17}°C, ${cpu cpu4}% ${alignr}${cpubar cpu4 9,110} $alignr ${freq_g cpu4} GHz
${font DejaVuSansCondensed-Bold:size=11}Core 5: ${font DejaVuSansCondensed-Bold:size=9}${execi 30 sensors | grep 'Core 2:' | cut -c16-17}°C, ${cpu cpu5}% ${alignr}${cpubar cpu5 9,110} $alignr ${freq_g cpu5} GHz
${font DejaVuSansCondensed-Bold:size=11}Core 6: ${font DejaVuSansCondensed-Bold:size=9}${execi 30 sensors | grep 'Core 2:' | cut -c16-17}°C, ${cpu cpu6}% ${alignr}${cpubar cpu6 9,110} $alignr ${freq_g cpu6} GHz
${font DejaVuSansCondensed-Bold:size=11}Core 7: ${font DejaVuSansCondensed-Bold:size=9}${execi 30 sensors | grep 'Core 3:' | cut -c16-17}°C, ${cpu cpu7}% ${alignr}${cpubar cpu7 9,110} $alignr ${freq_g cpu7} GHz
${font DejaVuSansCondensed-Bold:size=11}Core 8: ${font DejaVuSansCondensed-Bold:size=9}${execi 30 sensors | grep 'Core 3:' | cut -c16-17}°C, ${cpu cpu8}% ${alignr}${cpubar cpu8 9,110} $alignr ${freq_g cpu8} GHz


${font DejaVuSansCondensed-Bold:size=11}RAM: ${memperc}% $alignr${mem} / ${memmax}
#${membar 9,300}
${memgraph 25,300}
Swap:$alignr${swap} / ${swapmax}


NAME: $alignr PID        %      MEM${font DejaVuSansCondensed-Bold:size=9}
     ${top name 1} ${goto 160}${top pid 1} ${goto 218}${top cpu 1}
     ${top name 2} ${goto 160}${top pid 2} ${goto 218}${top cpu 2}
     ${top name 3} ${goto 160}${top pid 3} ${goto 218}${top cpu 3}
     ${top name 4} ${goto 160}${top pid 4} ${goto 218}${top cpu 4}

     ${top_io name 1} ${goto 160}${top_io pid 1} ${goto 218}${top_io io_perc 1}
     ${top_io name 2} ${goto 160}${top_io pid 2} ${goto 218}${top_io io_perc 2}

     ${top_mem name 1} ${goto 160}${top_mem pid 1} $alignr${top_mem mem_res 1}
     ${top_mem name 2} ${goto 160}${top_mem pid 2} $alignr${top_mem mem_res 2}
     ${top_mem name 3} ${goto 160}${top_mem pid 3} $alignr${top_mem mem_res 3}
     ${top_mem name 4} ${goto 160}${top_mem pid 4} $alignr${top_mem mem_res 4}${font DejaVuSansCondensed-Bold:size=11}


Root: ${fs_used_perc /}% ${alignr}${fs_used /}/${fs_size /}
${fs_bar 9,300 /}

Home: ${fs_used_perc /home}% ${alignr}${fs_used /home}/${fs_size /home}
${fs_bar 9,300 /home}


${if_existing /proc/net/route enp9s0}Down: ${downspeed enp9s0}/s ${alignr} Total: ${totaldown enp9s0}
${downspeedgraph enp9s0 25,300 -t}
Up: ${upspeed enp9s0}/s ${alignr} Total: ${totalup enp9s0}
${upspeedgraph enp9s0 25,300 -t}

NET IP: ${alignr}${execi 3605 wget http://v4.ipv6-test.com/api/myip.php -q -O -}
LAN IP: ${alignr}${addr enp9s0}${else}LAN Unavailable${endif}
Title: Re: Conky thread, show your work!
Post by: diggingman on 21. July 2013, 19:36:43
Don't give me credit for the temp settings, my conky has it's ancestry in configs posted by others in the Arch or Crunchbang forums, it was a long time ago so I don't remember where I figured out how to do it.   
Title: Re: Conky thread, show your work!
Post by: dsngjoe on 21. July 2013, 19:37:22
Excaliber I believe you have the wrong temp for CPU 2 though 4. 

Our I7's have 4 core with 4 HT cores.  ( I7-950 @ 3.8Ghz)

On CPU 0 
The first Actual Core is cpu1
The first hyper thread core is Cpu5.

On CPU 1
The first actual Core is cpu 2
The first hyper thread core is cpu 6

On CPU 2
The first actual Core is cpu 3
The first hyper thread core is cpu 7

On CPU 3
The first actual Core is cpu 4
The first hyper thread core is cpu 8

When you do the sensors command, it will only list 4 of the temps because Hyperthreaded cores dont have any sensors for them.  They use the same sensor as the actual core. 

As you wrote your script, you will see the temp of CPU 1 for both CPU 1/2 but you do have the usage setup for the proper CPU. 

You could also re-name core 2 to HT Core 1 and change the second half to {cpubar cpu5 9,110} $alignr ${freq_g cpu5} and that will give you an accurate representation.

I hope what I typed made sense.

Thanks 
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 21. July 2013, 20:42:19
thanks for this tip. i was not aware of that.

but i will do it like you recommended it:
cpu1
cpu5
cpu2
cpu6
.
.
.

this order makes more sense, then.

it makes sense as well that HT cores do not have their own temperature sensor.

btw, i have a i7 720qm processor with 1.6 ghz
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 01. August 2013, 22:17:11
i have adjusted the order of my CPUs, added more colors, added a open ports list (you can only see it, when there are open ports), removed the % values, added the number of active (not sleeping) processes, and simplified the CPU area.
i also improved some other things.

most of the ideas i got from conky manager. i installed it (with an extensive conky pack) and tested all conkys. most did not work for me, but i took a look into the .conkyrc file and the pictures as well.
there are no conkys in conky manager, which contain as many different pieces of information as my conky does. so, i will stick to my conky!

(http://img94.imageshack.us/img94/421/q1vi.jpg)

Code: [Select]

####Text color:
default_color white
color1 0ABFFF
color2 DD4814

####Choose one of the following: Either window is transparent, or it has a background color:
#own_window_transparent yes
own_window_argb_visual yes

####Background color:
own_window_colour black

####Background transparency (0..255):
own_window_argb_value 200


own_window yes
own_window_type desktop
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

draw_shades no
draw_outline no
draw_borders no

total_run_times 0

use_xft yes

no_buffers yes

short_units yes

update_interval 1

double_buffer yes

alignment top_right
gap_x 18
gap_y 20

maximum_width 300



TEXT
${font DejaVuSansCondensed-Bold:size=26}${color1}$alignr${time %H:%M}$font
${font DejaVuSansCondensed-Bold:size=11}${color1}$alignr${time %A, %d.%B %Y}

${voffset 5}${color}Uptime:${color1}$alignr$uptime
${color}Kernel:${color1}$alignr$kernel
${color}GPU:     ${color1}${font DejaVuSansCondensed-Bold:size=9}${execi 31 nvidia-settings -q GPUCoreTemp -t}°C ${font DejaVuSansCondensed-Bold:size=11} ${alignr}${color}Driver:  ${color1}${execi 3603 nvidia-settings -q OpenGLVersion -t | cut -c7-}
#Processes: ${alignr}$processes ($running_processes running)

${voffset 10}${font DejaVuSansCondensed-Bold:size=11}${color}CPU ${goto 38}1:${color1}${font DejaVuSansCondensed-Bold:size=9}  ${execi 30 sensors | grep 'Core 0:' | cut -c16-17}°C ${goto 100}${color2}${cpubar cpu1 9,140}  ${alignr}${color1}${freq_g cpu1} GHz
 ${goto 100}${color2}${cpubar cpu5 9,140}  ${color1}
${font DejaVuSansCondensed-Bold:size=11}${color}CPU ${goto 38}2:${color1}${font DejaVuSansCondensed-Bold:size=9}  ${execi 30 sensors | grep 'Core 1:' | cut -c16-17}°C ${goto 100}${color2}${cpubar cpu2 9,140}  ${alignr}${color1}${freq_g cpu2} GHz
 ${goto 100}${color2}${cpubar cpu6 9,140}  ${color1}
${font DejaVuSansCondensed-Bold:size=11}${color}CPU ${goto 38}3:${color1}${font DejaVuSansCondensed-Bold:size=9}  ${execi 30 sensors | grep 'Core 2:' | cut -c16-17}°C ${goto 100}${color2}${cpubar cpu3 9,140}  ${alignr}${color1}${freq_g cpu3} GHz
 ${goto 100}${color2}${cpubar cpu7 9,140}  ${color1}
${font DejaVuSansCondensed-Bold:size=11}${color}CPU ${goto 38}4:${color1}${font DejaVuSansCondensed-Bold:size=9}  ${execi 30 sensors | grep 'Core 3:' | cut -c16-17}°C ${goto 100}${color2}${cpubar cpu4 9,140}  ${alignr}${color1}${freq_g cpu4} GHz
 ${goto 100}${color2}${cpubar cpu8 9,140}  ${color1} ${font DejaVuSansCondensed-Bold:size=11}

${voffset 10}${color}RAM: ${color1} $alignr${mem} / ${memmax}
${color2}${membar 9,300}${color1}
#${color2}${memgraph 25,300}${color1}
${color}Swap:${color1}$alignr${swap} / ${swapmax}

${voffset 15}${color}PROCESSES ${color1}${font DejaVuSansCondensed-Bold:size=9}($running_processes active): ${font DejaVuSansCondensed-Bold:size=11}${color}$alignr ID           %        MEM${font DejaVuSansCondensed-Bold:size=9}${color1}
    ${top name 1} ${goto 160}${top pid 1} ${goto 218}${top cpu 1}
    ${top name 2} ${goto 160}${top pid 2} ${goto 218}${top cpu 2}
    ${top name 3} ${goto 160}${top pid 3} ${goto 218}${top cpu 3}
    ${top name 4} ${goto 160}${top pid 4} ${goto 218}${top cpu 4}

    ${top_io name 1} ${goto 160}${top_io pid 1} ${goto 218}${top_io io_perc 1}
    ${top_io name 2} ${goto 160}${top_io pid 2} ${goto 218}${top_io io_perc 2}

    ${top_mem name 1} ${goto 160}${top_mem pid 1} $alignr${top_mem mem_res 1}
    ${top_mem name 2} ${goto 160}${top_mem pid 2} $alignr${top_mem mem_res 2}
    ${top_mem name 3} ${goto 160}${top_mem pid 3} $alignr${top_mem mem_res 3}
    ${top_mem name 4} ${goto 160}${top_mem pid 4} $alignr${top_mem mem_res 4}
    ${top_mem name 5} ${goto 160}${top_mem pid 5} $alignr${top_mem mem_res 5}${font DejaVuSansCondensed-Bold:size=11}

${voffset 15}${color}Root: ${color1} ${alignr}${fs_used /} / ${fs_size /}
${color2}${fs_bar 9,300 /}${color1}

${color}Home: ${color1} ${alignr}${fs_used /home} / ${fs_size /home}
${color2}${fs_bar 9,300 /home}${color1}

${voffset 15}${if_existing /proc/net/route enp9s0}${color}Down: ${color1}${downspeed enp9s0}/s ${alignr} ${color}Up: ${color1}${upspeed enp9s0}/s
${color2}${downspeedgraph enp9s0 25,135 -t} ${alignr}${upspeedgraph enp9s0 25,135 -t} ${color1}
Total: ${totaldown enp9s0}  ${alignr} Total: ${totalup enp9s0}

${color}NET IP: ${color1}${alignr}${execi 3605 wget http://v4.ipv6-test.com/api/myip.php -q -O -}
${color}LAN IP: ${color1}${alignr}${addr enp9s0}

${if_match ${tcp_portmon 1 65535 count}>0}${color}URL ${color1}${font DejaVuSansCondensed-Bold:size=9}(${tcp_portmon 1 65535 count} open ports):  ${font DejaVuSansCondensed-Bold:size=11}${color}$alignr PORT${font DejaVuSansCondensed-Bold:size=9}${color1} ${else} ${voffset -170} ${endif}
    ${tcp_portmon 1 65535 rhost 0} $alignr  ${tcp_portmon 1 65535 rport 0}
    ${tcp_portmon 1 65535 rhost 1} $alignr  ${tcp_portmon 1 65535 rport 1}
    ${tcp_portmon 1 65535 rhost 2} $alignr  ${tcp_portmon 1 65535 rport 2}
    ${tcp_portmon 1 65535 rhost 3} $alignr  ${tcp_portmon 1 65535 rport 3}
    ${tcp_portmon 1 65535 rhost 4} $alignr  ${tcp_portmon 1 65535 rport 4}
    ${tcp_portmon 1 65535 rhost 5} $alignr  ${tcp_portmon 1 65535 rport 5}
    ${tcp_portmon 1 65535 rhost 6} $alignr  ${tcp_portmon 1 65535 rport 6}
    ${tcp_portmon 1 65535 rhost 7} $alignr  ${tcp_portmon 1 65535 rport 7}${voffset -10}${else}LAN Unavailable${endif}
Title: Re: Conky thread, show your work!
Post by: diggingman on 02. August 2013, 17:36:39
I decided to revamp mine to a simple unobtrusive bottom bar and a small weather report.

(http://trevormartin.smugmug.com/photos/i-CCFfGnc/0/L/i-CCFfGnc-L.png) (http://trevormartin.smugmug.com/Photos/Manjaro/n-63dn5/i-CCFfGnc/A)

Status Bar:
Code: [Select]
own_window_type desktop
own_window yes
own_window_transparent yes
own_window_class Conky
draw_outline no
draw_borders no

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

#text_buffer_size 512

# fiddle with window
use_spacer none
use_xft yes
# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono:size=6
xftfont Constantia:size=9

# Update interval in seconds
update_interval 3.0

# Minimum size of text area
# minimum_size 250 5

# Draw shades?
draw_shades no

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 2

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color white

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
alignment bottom_center


# Gap between borders of screen and text
gap_x 2
gap_y 2



TEXT
$sysname $kernel $machine | Up $uptime | CPU Use: ${cpu}% | ${font}CPU Temp: ${color white}${execi 30 sensors | grep 'Core 0:' | cut -c18-19}°C${color} | MB Temp: $alignr ${execi 30 sensors | grep 'SYSTIN:' | cut -c18-19}°C | GPU Temp: ${execi 60 nvidia-settings -query GPUCoreTemp | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'}°C | RAM: ${color white}$memperc% $color | SSD: ${color white}${fs_used_perc /}%$color | STORAGE: ${color white}${fs_used_perc /run/media/trevor/Linux_Storage}%$color | NTFS: ${fs_used_perc /run/media/trevor/storage}% | SSID: ${wireless_essid wlp8s0} | Quality: ${wireless_link_qual_perc wlp8s0}% | Public IP: ${font}${execi 3600 wget -O - http://ip.tupeux.com | tail} | Local IP: ${addr wlp8s0} | Down Total ${totaldown wlp8s0} | Email: ${execpi 200 python ~/Scripts/gmail.py}

Weather Box:
Code: [Select]
#  Basic Settings

background no
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 1
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 900
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color white
default_outline_color white
alignment top_left
gap_x 24
 
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
 
TEXT
$color${font Constantia:size=18}${color}${time %a, }${color}${time %B %e }
# weather
${font Constantia:size=12}${color}Weather ${hr 2}$color
${font Constantia:size=10}${execi 1200 /home/trevor/Scripts/weather2.py 45440}

The weather and email scripts are posted on page 2 of this thread.
Title: Re: Conky thread, show your work!
Post by: KuroiLight on 03. August 2013, 08:58:10

same picture as the one in the august thread
(http://s6.postimg.org/84ko4o8e5/screen_Fetch_2013_08_02_21_57_23.jpg) (http://postimg.org/image/84ko4o8e5/)

requires conky 1.9.1 compiled with nvidia and lua flags

3 separate configs
net/top rc file
Code: [Select]
# [Configuration Section]
alignment bottom_left
background no
out_to_console no
double_buffer yes

draw_shades no
draw_outline no
draw_borders no
stippled_borders no

border_width 0
border_inner_margin 0
border_outer_margin 0

max_text_width = 75
minimum_size 380 240   
maximum_width 380

gap_x 0
gap_y 31

own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,skip_taskbar
on_bottom yes
own_window yes

override_utf8_locale yes
use_spacer none
use_xft yes
xftfont Terminus:size=8
xftalpha 1

no_buffers yes
net_avg_samples 1
cpu_avg_samples 1
update_interval 1

lua_load ~/scripts/conky/netRing.lua
lua_draw_hook_pre ring_stats

top_cpu_separate no
format_human_readable yes
pad_percents 1

color1 5A5A5A
color2 989898
# 3600 = 1hour
# 1D1C1B dark grey
# 504C4A light grey
#
# 35BF5C light green
# 3EF740 manjaro green
# [Content Section]
TEXT
${color1}${voffset 6}  network
${color2}${voffset 5}  ${if_up enp6s0}online${else}offline${endif}${color1}${alignr 245}status
${color2}${voffset 3}  ${addr enp6s0}${color1}${alignr 245}addr
${color2}${voffset 3}  ${downspeed enp6s0}${color1}${alignr 245}down
${color2}${voffset 3}  ${upspeed enp6s0}${color1}${alignr 245}up
${color1}${voffset 6}  top
${color2}${voffset 5}  ${top name 1} 
${color2}${voffset 3}  ${top name 2} 
${color2}${voffset 3}  ${top name 3} 
${color2}${voffset 3}  ${top name 4} 
${color2}${voffset 3}  ${top name 5} 
net/top lua file
Code: [Select]
settings_table = {
    { -- download
name='downspeedf',
arg='enp6s0',
max=256.0,
bg_colour=0x3A3A3A,
bg_alpha=0.2,
fg_colour=0x989898,
fg_alpha=0.4,
x=145, y=240,
radius=180,
thickness=10,
start_angle=0,
end_angle=90
},
    { -- upload
name='upspeedf',
arg='enp6s0',
max=124.0,
bg_colour=0x3A3A3A,
bg_alpha=0.3,
fg_colour=0x989898,
fg_alpha=0.4,
x=145, y=240,
radius=165,
thickness=10,
start_angle=0,
end_angle=90
},
    { -- top 1
name='top',
arg='cpu 1',
max=256.0,
bg_colour=0x3A3A3A,
bg_alpha=0.4,
fg_colour=0x989898,
fg_alpha=0.4,
x=145, y=240,
radius=130,
thickness=10,
start_angle=0,
end_angle=90
},
    { -- top 2
name='top',
arg='cpu 2',
max=256.0,
bg_colour=0x3A3A3A,
bg_alpha=0.5,
fg_colour=0x989898,
fg_alpha=0.5,
x=145, y=240,
radius=115,
thickness=10,
start_angle=0,
end_angle=90
},
    { -- top 3
name='top',
arg='cpu 3',
max=256.0,
bg_colour=0x3A3A3A,
bg_alpha=0.6,
fg_colour=0x989898,
fg_alpha=0.6,
x=145, y=240,
radius=100,
thickness=10,
start_angle=0,
end_angle=90
},
    { -- top 4
name='top',
arg='cpu 4',
max=256.0,
bg_colour=0x3A3A3A,
bg_alpha=0.7,
fg_colour=0x989898,
fg_alpha=0.7,
x=145, y=240,
radius=85,
thickness=10,
start_angle=0,
end_angle=90
},
    { -- top 5
name='top',
arg='cpu 5',
max=256.0,
bg_colour=0x3A3A3A,
bg_alpha=0.8,
fg_colour=0x989898,
fg_alpha=0.8,
x=145, y=240,
radius=70,
thickness=10,
start_angle=0,
end_angle=90
},
}

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)
local w,h=conky_window.width,conky_window.height

local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

local angle_0=sa*(2*math.pi/360)-math.pi/2
local angle_f=ea*(2*math.pi/360)-math.pi/2
local t_arc=t*(angle_f-angle_0)

-- Draw background ring

cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
cairo_set_line_width(cr,ring_w)
cairo_stroke(cr)

-- Draw indicator ring

cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
cairo_stroke(cr)
end

function conky_ring_stats()
local function setup_rings(cr,pt)
local str=''
local value=0

str=string.format('${%s %s}',pt['name'],pt['arg'])
str=conky_parse(str)

value=tonumber(str)
if value == nil then value = 0 end
pct=value/pt['max']

draw_ring(cr,pct,pt)
end

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)

local cr=cairo_create(cs)

local updates=conky_parse('${updates}')
update_num=tonumber(updates)

if update_num>5 then
for i in pairs(settings_table) do
setup_rings(cr,settings_table[i])
end
end
end

clock rc file
Code: [Select]
# [Configuration Section]
alignment bottom_middle
background no
out_to_console no
double_buffer yes

draw_shades no
draw_outline no
draw_borders no
stippled_borders no

border_width 0
border_inner_margin 0
border_outer_margin 0

max_text_width = 75
minimum_size 150 75
maximum_width 150

gap_x 0
gap_y 31

own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,skip_taskbar
on_bottom yes
own_window yes

override_utf8_locale yes
use_spacer left
use_xft yes
xftfont Terminus:size=8
xftalpha 1

no_buffers yes
net_avg_samples 1
cpu_avg_samples 1
update_interval 1

lua_load ~/scripts/conky/circular_rings.lua
lua_draw_hook_pre ring_stats

top_cpu_separate no
format_human_readable yes
pad_percents 1

color1 5A5A5A
color2 989898
# 3600 = 1hour
# 1D1C1B dark grey
# 504C4A light grey
#
# 35BF5C light green
# 3EF740 manjaro green
# [Content Section]
TEXT



$alignc${color2}${time %H:%M:%S}
$alignc${color2}${time %a, %d}


clock lua file
Code: [Select]
settings_table = {
    { -- SECCOND CLOCK
name='time',
arg='%S',
max=60,
bg_colour=0x444444,
bg_alpha=0.2,
fg_colour=0x999999,
fg_alpha=0.2,
x=75, y=75,
radius=70,
thickness=8,
start_angle=270,
end_angle=450
},
    { -- MINUTE CLOCK
name='time',
arg='%M',
max=60,
bg_colour=0x444444,
bg_alpha=0.4,
fg_colour=0x999999,
fg_alpha=0.4,
x=75, y=75,
radius=63,
thickness=6,
start_angle=270,
end_angle=450
},
    { -- HOUR CLOCK
name='time',
arg='%H',
max=24,
bg_colour=0x444444,
bg_alpha=0.6,
fg_colour=0x999999,
fg_alpha=0.6,
x=75, y=75,
radius=58,
thickness=4,
start_angle=270,
end_angle=450
},
}

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)
local w,h=conky_window.width,conky_window.height

local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

local angle_0=sa*(2*math.pi/360)-math.pi/2
local angle_f=ea*(2*math.pi/360)-math.pi/2
local t_arc=t*(angle_f-angle_0)

-- Draw background ring

cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
cairo_set_line_width(cr,ring_w)
cairo_stroke(cr)

-- Draw indicator ring

cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
cairo_stroke(cr)
end

function conky_ring_stats()
local function setup_rings(cr,pt)
local str=''
local value=0

str=string.format('${%s %s}',pt['name'],pt['arg'])
str=conky_parse(str)

value=tonumber(str)
if value == nil then value = 0 end
pct=value/pt['max']

draw_ring(cr,pct,pt)
end

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)

local cr=cairo_create(cs)

local updates=conky_parse('${updates}')
update_num=tonumber(updates)

if update_num>5 then
for i in pairs(settings_table) do
setup_rings(cr,settings_table[i])
end
end
end

main rc file
Code: [Select]
# [Configuration Section]
alignment bottom_right
background no
out_to_console no
double_buffer yes

draw_shades no
draw_outline no
draw_borders no
stippled_borders no

border_width 0
border_inner_margin 0
border_outer_margin 0

max_text_width = 75
minimum_size 460 385
maximum_width 460

gap_x 0
gap_y 33

own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,skip_taskbar
on_bottom yes
own_window yes

override_utf8_locale yes
use_spacer right
use_xft yes
xftfont Terminus:size=8
xftalpha 1

no_buffers yes
net_avg_samples 1
cpu_avg_samples 1
update_interval 2

lua_load ~/scripts/conky/mainrings.lua
lua_draw_hook_pre ring_stats

top_cpu_separate no
format_human_readable yes
pad_percents 1

color1 5A5A5A
color2 989898

# [Content Section]
TEXT
${color1}${voffset 15} ${goto 325} system
${color2}${voffset 5} ${goto 325} ${kernel}${color1} 
${color2}${voffset 3} ${goto 325} ${execi 3600 (echo $USER)}@${nodename}${color1} 
${color2}${voffset 6} ${color1} ${goto 325} volumes
${color2}${voffset 5} ${goto 325} ${fs_used_perc /}%${color1}$alignr /     
${color2}${voffset 3} ${goto 325} ${fs_used_perc /home}%${color1}$alignr /home 
${color2}${voffset 6} ${color1} ${goto 325} memory
${color2}${voffset 5} ${goto 325} ${swapperc}%${color1}$alignr swap 
${color2}${voffset 3} ${goto 325} ${memperc}%${color1}$alignr ram 
${color2}${voffset 6} ${color1} ${goto 325} processor
${color2}${voffset 5} ${goto 325} ${freq_g}GHz${color1}$alignr freq 
${color2}${voffset 3} ${goto 325} ${cpu cpu1}%${color1}$alignr core1 
${color2}${voffset 3} ${goto 325} ${cpu cpu2}%${color1}$alignr core2 
${color2}${voffset 3} ${goto 325} ${cpu cpu3}%${color1}$alignr core3 
${color2}${voffset 3} ${goto 325} ${cpu cpu4}%${color1}$alignr core4 
${color2}${voffset 6} ${color1} ${goto 325} temperatures
${color2}${voffset 5} ${goto 325} ${hwmon 1 temp 1}°C${color1}$alignr mb 
${color2}${voffset 3} ${goto 325} ${hwmon 0 temp 1}°C${color1}$alignr cpu 
${color2}${voffset 3} ${goto 325} ${nvidia temp}°C${color1}$alignr gpu 
${color2}${voffset 3} ${goto 325} ${execi 60 hddtemp /dev/sda |cut -c34-35} °C${color1}$alignr /dev/sda 
#${color2}${voffset 6} ${color1} ${goto 325} time
#${color2}${voffset 5} ${goto 325} ${time %H}${color1}$alignr hours 
#${color2}${voffset 3} ${goto 325} ${time %M}${color1}$alignr minutes 
#${color2}${voffset 3} ${goto 325} ${time %S}${color1}$alignr seconds 


main lua file
Code: [Select]
settings_table = { -- sorted by inner most first
    --[[{ -- SECCOND CLOCK
name='time',
arg='%S',
max=60,
bg_colour=0x3A3A3A,
bg_alpha=0.9,
fg_colour=0x989898,
fg_alpha=0.9,
x=320, y=389,
radius=25,
thickness=10,
start_angle=270,
end_angle=360
},
    { -- MINUTE CLOCK
name='time',
arg='%M',
max=60,
bg_colour=0x3A3A3A,
bg_alpha=0.86,
fg_colour=0x989898,
fg_alpha=0.86,
x=320, y=389,
radius=40,
thickness=10,
start_angle=270,
end_angle=360
},
    { -- HOUR CLOCK
name='time',
arg='%H',
max=24,
bg_colour=0x3A3A3A,
bg_alpha=0.82,
fg_colour=0x989898,
fg_alpha=0.82,
x=320, y=389,
radius=55,
thickness=10,
start_angle=270,
end_angle=360
},]]
    { -- /dev/sda temp
name='execi',
arg='60 hddtemp /dev/sda |cut -c34-35',
max=50,
bg_colour=0x3A3A3A,
bg_alpha=0.80,
fg_colour=0x989898,
fg_alpha=0.80,
x=320, y=389,
radius=60,
thickness=10,
start_angle=270,
end_angle=360
},
    { -- gpu temp
name='nvidia',
arg='temp',
max=70,
bg_colour=0x3A3A3A,
bg_alpha=0.75,
fg_colour=0x989898,
fg_alpha=0.75,
x=320, y=389,
radius=75,
thickness=10,
start_angle=270,
end_angle=360
},
    { -- cpu temp
name='hwmon',
arg='0 temp 1',
max=75,
bg_colour=0x3A3A3A,
bg_alpha=0.70,
fg_colour=0x989898,
fg_alpha=0.70,
x=320, y=389,
radius=90,
thickness=10,
start_angle=270,
end_angle=360
},
    { -- mb temp
name='hwmon',
arg='1 temp 1',
max=75,
bg_colour=0x3A3A3A,
bg_alpha=0.65,
fg_colour=0x989898,
fg_alpha=0.65,
x=320, y=389,
radius=105,
thickness=10,
start_angle=270,
end_angle=360
},
    { -- CORE 4
name='cpu',
arg='cpu4',
max=100,
bg_colour=0x3A3A3A,
bg_alpha=0.60,
fg_colour=0x989898,
fg_alpha=0.60,
x=320, y=389,
radius=140,
thickness=10,
start_angle=270,
end_angle=360
},
    { -- CORE 3
name='cpu',
arg='cpu3',
max=100,
bg_colour=0x3A3A3A,
bg_alpha=0.55,
fg_colour=0x989898,
fg_alpha=0.55,
x=320, y=389,
radius=155,
thickness=10,
start_angle=270,
end_angle=360
},
    { -- CORE 2
name='cpu',
arg='cpu2',
max=100,
bg_colour=0x3A3A3A,
bg_alpha=0.50,
fg_colour=0x989898,
fg_alpha=0.50,
x=320, y=389,
radius=170,
thickness=10,
start_angle=270,
end_angle=360
},
    { -- CORE 1
name='cpu',
arg='cpu1',
max=100,
bg_colour=0x3A3A3A,
bg_alpha=0.45,
fg_colour=0x989898,
fg_alpha=0.45,
x=320, y=389,
radius=185,
thickness=10,
start_angle=270,
end_angle=360
},
    { -- CPUFREQ
name='freq',
arg='',
max=3000,
bg_colour=0x3A3A3A,
bg_alpha=0.40,
fg_colour=0x989898,
fg_alpha=0.40,
x=320, y=389,
radius=200,
thickness=10,
start_angle=270,
end_angle=360
},
{ -- mem
name='memperc',
arg='',
max=100,
bg_colour=0x3A3A3A,
bg_alpha=0.35,
fg_colour=0x989898,
fg_alpha=0.35,
x=320, y=389,
radius=235,
thickness=10,
start_angle=270,
end_angle=360
},
    { -- swap
name='swapperc',
arg='',
max=100,
bg_colour=0x3A3A3A,
bg_alpha=0.30,
fg_colour=0x989898,
fg_alpha=0.30,
x=320, y=389,
radius=250,
thickness=10,
start_angle=270,
end_angle=360
},
{ -- home volume
name='fs_used_perc',
arg='/home',
max=100,
bg_colour=0x3A3A3A,
bg_alpha=0.25,
fg_colour=0x989898,
fg_alpha=0.25,
x=320, y=389,
radius=285,
thickness=10,
start_angle=270,
end_angle=360
},
    { -- root volume
name='fs_used_perc',
arg='/',
max=100,
bg_colour=0x3A3A3A,
bg_alpha=0.2,
fg_colour=0x989898,
fg_alpha=0.2,
x=320, y=389,
radius=300,
thickness=10,
start_angle=270,
end_angle=360
},
}

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)
local w,h=conky_window.width,conky_window.height

local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

local angle_0=sa*(2*math.pi/360)-math.pi/2
local angle_f=ea*(2*math.pi/360)-math.pi/2
local t_arc=t*(angle_f-angle_0)

-- Draw background ring

cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
cairo_set_line_width(cr,ring_w)
cairo_stroke(cr)

-- Draw indicator ring

cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
cairo_stroke(cr)
end

function conky_ring_stats()
local function setup_rings(cr,pt)
local str=''
local value=0

str=string.format('${%s %s}',pt['name'],pt['arg'])
str=conky_parse(str)

value=tonumber(str)
if value == nil then value = 0 end
pct=value/pt['max']

draw_ring(cr,pct,pt)
end

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)

local cr=cairo_create(cs)

local updates=conky_parse('${updates}')
update_num=tonumber(updates)

if update_num>5 then
for i in pairs(settings_table) do
setup_rings(cr,settings_table[i])
end
end
end
Title: Re: Conky thread, show your work!
Post by: miguedrive on 06. August 2013, 22:07:45
I decided to revamp mine to a simple unobtrusive bottom bar and a small weather report.

(http://trevormartin.smugmug.com/photos/i-CCFfGnc/0/L/i-CCFfGnc-L.png) (http://trevormartin.smugmug.com/Photos/Manjaro/n-63dn5/i-CCFfGnc/A)

Status Bar:
Code: [Select]
own_window_type desktop
own_window yes
own_window_transparent yes
own_window_class Conky
draw_outline no
draw_borders no

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

#text_buffer_size 512

# fiddle with window
use_spacer none
use_xft yes
# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono:size=6
xftfont Constantia:size=9

# Update interval in seconds
update_interval 3.0

# Minimum size of text area
# minimum_size 250 5

# Draw shades?
draw_shades no

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 2

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color white

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
alignment bottom_center


# Gap between borders of screen and text
gap_x 2
gap_y 2



TEXT
$sysname $kernel $machine | Up $uptime | CPU Use: ${cpu}% | ${font}CPU Temp: ${color white}${execi 30 sensors | grep 'Core 0:' | cut -c18-19}°C${color} | MB Temp: $alignr ${execi 30 sensors | grep 'SYSTIN:' | cut -c18-19}°C | GPU Temp: ${execi 60 nvidia-settings -query GPUCoreTemp | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'}°C | RAM: ${color white}$memperc% $color | SSD: ${color white}${fs_used_perc /}%$color | STORAGE: ${color white}${fs_used_perc /run/media/trevor/Linux_Storage}%$color | NTFS: ${fs_used_perc /run/media/trevor/storage}% | SSID: ${wireless_essid wlp8s0} | Quality: ${wireless_link_qual_perc wlp8s0}% | Public IP: ${font}${execi 3600 wget -O - http://ip.tupeux.com | tail} | Local IP: ${addr wlp8s0} | Down Total ${totaldown wlp8s0} | Email: ${execpi 200 python ~/Scripts/gmail.py}

Weather Box:
Code: [Select]
#  Basic Settings

background no
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 1
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 900
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color white
default_outline_color white
alignment top_left
gap_x 24
 
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
 
TEXT
$color${font Constantia:size=18}${color}${time %a, }${color}${time %B %e }
# weather
${font Constantia:size=12}${color}Weather ${hr 2}$color
${font Constantia:size=10}${execi 1200 /home/trevor/Scripts/weather2.py 45440}

The weather and email scripts are posted on page 2 of this thread.



WOW! Nice one! Will try to emulate it. What DE/WM are you using?
Title: Re: Conky thread, show your work!
Post by: diggingman on 07. August 2013, 00:37:42
Openbox
Title: Re: Conky thread, show your work!
Post by: miguedrive on 07. August 2013, 03:27:01
Openbox

Like God demands.
Title: Re: Conky thread, show your work!
Post by: KuroiLight on 11. August 2013, 03:55:55
I meant to post this 2 days ago but postimage was crapping out on me for some reason, anyways.

changes:
fixed lua related memory leaks, (solid memory usage over 10hours)
added lua semi-transparent background
fixed online status script

(http://s6.postimg.org/501bnb69t/conky.png)

rc
Code: [Select]
# [Configuration Section]
alignment bottom_right
background no
out_to_console no
double_buffer yes

draw_shades no
draw_outline no
draw_borders no
stippled_borders no

border_width 0
border_inner_margin 0
border_outer_margin 0

max_text_width = 75
minimum_size 130 200
maximum_width 130

gap_x 5
gap_y 38

own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,skip_taskbar
own_window yes

override_utf8_locale yes
use_spacer right
use_xft yes
xftfont Terminus:size=8
xftalpha 1

no_buffers yes
net_avg_samples 1
cpu_avg_samples 4
update_interval 2

#lua scripts here
lua_load ~/scripts/conky/clock_rings.lua
lua_draw_hook_pre draw_main

top_cpu_separate no
format_human_readable yes
pad_percents 1

color1 808080
color2 C9C9C9
color3 C73030
color4 3EF740

# [Content Section]
TEXT
${voffset 38}
${alignc }${color2}${time %H:%M:%S}
${alignc }${color2}${time %a, %b %d}
${voffset 44}
${color1}${voffset 6}  system
${color2}${voffset 5}  ${kernel}${color1} 
${color2}${voffset 3}  ${execi 12000 (echo $USER)}${color1}$alignr user 
${color2}${voffset 3}  ${nodename}${color1}$alignr host 
${color1}${voffset 6}  volumes
${color2}${voffset 5}  ${fs_used_perc /}%${goto 35}${fs_bar 8,50 /}${color1}$alignr / 
${color2}${voffset 3}  ${fs_used_perc /home}%${goto 35}${fs_bar 8,50 /home}${color1}$alignr /home 
${color1}${voffset 6}  memory
${color2}${voffset 5}  ${swapperc}%${goto 35}${swapbar 8,50}${color1}$alignr swap 
${color2}${voffset 3}  ${memperc}%${goto 35}${membar 8,50}${color1}$alignr ram 
${color1}${voffset 6}  processor
${color2}${voffset 5}  ${freq_g}GHz${color1}$alignr freq 
${color2}${voffset 3}  ${cpu cpu1}%${goto 35}${cpubar cpu1 8,50}${color1}$alignr core1 
${color2}${voffset 3}  ${cpu cpu2}%${goto 35}${cpubar cpu2 8,50}${color1}$alignr core2 
${color2}${voffset 3}  ${cpu cpu3}%${goto 35}${cpubar cpu3 8,50}${color1}$alignr core3 
${color2}${voffset 3}  ${cpu cpu4}%${goto 35}${cpubar cpu4 8,50}${color1}$alignr core4 
${color1}${voffset 6}  temperatures
${color2}${voffset 5}  ${hwmon 1 temp 1}°C${color1}$alignr mb 
${color2}${voffset 3}  ${hwmon 0 temp 1}°C${color1}$alignr cpu 
${color2}${voffset 3}  ${nvidia temp}°C${color1}$alignr gpu 
${color2}${voffset 3}  ${execi 60 hddtemp -n /dev/sda} °C${color1}$alignr /dev/sda 
${color1}${voffset 6}  network
${color2}${voffset 5}  ${texeci 45 ~/scripts/conky/is_online.pl}${color1}${alignr}status 
${color2}${voffset 3}  ${addr enp6s0}${color1}${alignr}addr 
${color2}${voffset 3}  ${downspeed enp6s0}${color1}${alignr}down 
${color2}${voffset 3}  ${upspeed enp6s0}${color1}${alignr}up 
${color1}${voffset 6}  top
${color1}${voffset 1}  cpu ${alignr}mem 
${color2}${voffset 3}  ${top name 1}
${color2}${voffset 1}  ${top cpu 1}% ${alignr}${top mem_res 1} 
${color2}${voffset 2}  ${top name 2}
${color2}${voffset 1}  ${top cpu 2}% ${alignr}${top mem_res 2} 
${color2}${voffset 2}  ${top name 3}
${color2}${voffset 1}  ${top cpu 3}% ${alignr}${top mem_res 3} 
 #this blank line is necessary

lua
Code: [Select]
--[[
Clock with background
Credits
    rings&background - londonali1010 (2009)

    changes/notes from kuroilight
    -fixed memory leaks
    to call from conky add
        lua_load <path/to/script>/clock_rings.lua
        lua_draw_hook_pre draw_main
    to your conkyrc
]]

local settings_table = {
    { -- SECCOND CLOCK
name='time',
arg='%S',
max=60,
bg_colour=0x444444,
bg_alpha=0.3,
fg_colour=0x999999,
fg_alpha=0.5,
x=65, y=65,
radius=48,
thickness=8,
start_angle=0,
end_angle=360
},
    { -- MINUTE CLOCK
name='time',
arg='%M',
max=60,
bg_colour=0x444444,
bg_alpha=0.5,
fg_colour=0x999999,
fg_alpha=0.7,
x=65, y=65,
radius=55,
thickness=6,
start_angle=0,
end_angle=360
},
    { -- HOUR CLOCK
name='time',
arg='%I',
max=12,
bg_colour=0x444444,
bg_alpha=0.7,
fg_colour=0x999999,
fg_alpha=0.9,
x=65, y=65,
radius=60,
thickness=4,
start_angle=0,
end_angle=360
},
}

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function conky_draw_main()
    conky_draw_bg()
    conky_ring_stats()
end

function conky_draw_bg()
    if conky_window==nil then return end
    local corner_r=35
    local w=conky_window.width
    local h=conky_window.height
    local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
    local cr=cairo_create(cs)

    local bg_alpha = 0.6
    local bg_color = 0x000000
   
    cairo_move_to(cr,corner_r,0)
    cairo_line_to(cr,w-corner_r,0)
    cairo_curve_to(cr,w,0,w,0,w,corner_r)
    cairo_line_to(cr,w,h-corner_r)
    cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
    cairo_line_to(cr,corner_r,h)
    cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
    cairo_line_to(cr,0,corner_r)
    cairo_curve_to(cr,0,0,0,0,corner_r,0)
    cairo_close_path(cr)
   
    cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_color,bg_alpha))
    cairo_fill(cr)

    cairo_destroy(cr)
    cairo_surface_destroy(cs)
end

function draw_ring(cr,t,pt)
local w,h=conky_window.width,conky_window.height

local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

local angle_0=sa*(2*math.pi/360)-math.pi/2
local angle_f=ea*(2*math.pi/360)-math.pi/2
local t_arc=t*(angle_f-angle_0)

-- Draw background ring

cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
cairo_set_line_width(cr,ring_w)
cairo_stroke(cr)

-- Draw indicator ring

cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
cairo_stroke(cr)
end

function conky_ring_stats()
local function setup_rings(cr,pt)
local str=''
local value=0

str=string.format('${%s %s}',pt['name'],pt['arg'])
str=conky_parse(str)

value=tonumber(str)
if value == nil then value = 0 end
pct=value/pt['max']

draw_ring(cr,pct,pt)
end

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)

local cr=cairo_create(cs)

local updates=conky_parse('${updates}')
local update_num=tonumber(updates)

if update_num>5 then
for i in pairs(settings_table) do
setup_rings(cr,settings_table[i])
end
end

    cairo_surface_destroy(cs)
    cairo_destroy(cr)
end

is_online.sh
Code: [Select]
((ping -c 1 -s 24 -n -W 5 www.google.com) > /dev/null && echo -n online || echo -n offline)
or this perl script i wrote to handle internet outages (which i have often)
is_online.pl
Code: [Select]
#!/usr/bin/perl

use Net::Ping;

$pinger = Net::Ping->new("syn");

if( $pinger->ping("www.duckduckgo.com", 5) == 1 ) { # syn ping ddg
    print "online";
} else { # if failed
    if((system("~/scripts/conky/restartnet") >> 8) == 0){ # restart network services (a custom compiled c program with root access, restarts various network services)
        if( $pinger->ping("www.duckduckgo.com", 5) == 1 ) { # and try again
            print "online";
            exit 0;
        }
    }
    print "offline";
}
Title: Re: Conky thread, show your work!
Post by: orphius70 on 17. August 2013, 11:26:45
anyone know how I can show numlock status in conky without lua??
My girlfriends keyboard has no led indicator for it
Title: Re: Conky thread, show your work!
Post by: mips on 17. August 2013, 11:55:08
anyone know how I can show numlock status in conky without lua??
My girlfriends keyboard has no led indicator for it

Code: [Select]
${alignr}${if_match "${exec xset q | grep LED | awk '{ print $10 }'}" == "00000000"}ABC 123${else}${if_match "${exec xset q | grep LED | awk '{ print $10 }'}" == "00000001"}${color CCCCCC}ABC${color} 123${else}${if_match "${exec xset q | grep LED | awk '{ print $10 }'}" == "00000002"}ABC ${color CCCCCC}123${color}${else}${if_match "${exec xset q | grep LED | awk '{ print $10 }'}" == "00000003"}${color CCCCCC}ABC 123${color}${endif}${endif}${endif}${endif}
From http://crunchbang.org/forums/viewtopic.php?pid=132764#p132764
Title: Re: Conky thread, show your work!
Post by: orphius70 on 17. August 2013, 12:03:13
thank you mips!!!!! :D
works perfect!!!!!!
Title: Re: Conky thread, show your work!
Post by: mandog on 17. August 2013, 15:30:07
This is mine I take no credit for the design only the modification
There are 2 main scripts, + the logo, +wallpaper,+ the fonts, its designed to run on a 1920x1080 screen, so I have not bothered to include them that does not mean I will not share, PM me if you want more details.
Title: Re: Conky thread, show your work!
Post by: KuroiLight on 22. August 2013, 07:55:45
Code: [Select]
${alignr}${if_match "${exec xset q | grep LED | awk '{ print $10 }'}" == "00000000"}ABC 123${else}${if_match "${exec xset q | grep LED | awk '{ print $10 }'}" == "00000001"}${color CCCCCC}ABC${color} 123${else}${if_match "${exec xset q | grep LED | awk '{ print $10 }'}" == "00000002"}ABC ${color CCCCCC}123${color}${else}${if_match "${exec xset q | grep LED | awk '{ print $10 }'}" == "00000003"}${color CCCCCC}ABC 123${color}${endif}${endif}${endif}${endif}
From http://crunchbang.org/forums/viewtopic.php?pid=132764#p132764

thats some scary sh, lol.

I dont know what the hex value for scroll lock is because it seems to be disabled on linux by default (didn't notice til now);
 and I'm not that great at perl yet but this is bound to run faster than bash at the very least. (just an option)

Code: [Select]
#! /usr/bin/perl

my $bitmask = (split(' ', `xset q | grep LED`))[-1];
my ($caps, $num) = ('${color red}', '${color red}');

if($bitmask == '000002' || $bitmask == '000003') {
    $num = '${color green}';
}
if($bitmask == '000001' || $bitmask == '000003') {
    $caps = '${color green}';
}

print "$caps CAPS $num NUM";
Title: Re: Conky thread, show your work!
Post by: mandog on 25. August 2013, 02:10:24
This is another conky I have heavily modified 2.4.6.8 core again I am not showing the script as its in 3 parts but as usual I will share just PM me.
Title: Re: Conky thread, show your work!
Post by: tsw on 27. August 2013, 09:08:06
Hello again ppl! Here we have mine (yet not done), it's a base that I found, then modified and add stuff (so the code is messy, will clean it later on).

Music - shows audacious, and Updates - shows what repo, what packages, and even AUR :) Black background so its easier to see. Code below pic.

Note. paconky need python3 and python3-aur

(http://i.imgur.com/7SskvwM.jpg)
http://i.imgur.com/7SskvwM.jpg

Code: [Select]
######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 1
cpu_avg_samples 2

imlib_cache_size 0
double_buffer yes
no_buffers yes

format_human_readable

####
## My colors.
#
color0 White
color1 Ivory
color2 Ivory2
color3 Ivory3
color4 Tan1
color5 Tan2
color6 Gray
color7 AntiqueWhite4
color8 DarkSlateGray
color9 Black

#####################
# - Text settings - #
#####################
use_xft yes
xftfont Sans:size=8
override_utf8_locale yes
text_buffer_size 2048

#############################
# - Window specifications - #
#############################
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
own_window_class conky

alignment top_right
gap_y 25
gap_x 25
border_inner_margin 8

minimum_size 200 500
maximum_width 400
#maximum_height 400
#minimum_height 400

default_bar_size 92 6

#########################
# - Graphics settings - #
#########################
draw_shades yes
default_shade_color 000000
default_color FFFFFF

TEXT
${font Droid Sans:style=Bold:size=8}SYSTEM $stippled_hr${font}
##############
# - SYSTEM - #
##############
${voffset 6}${font OpenLogos:size=18}${color #08C}B${color}${font}${goto 40}${voffset -15}Kernel:  ${alignr}${kernel}
${goto 40}Host: ${alignr}${nodename}
${goto 40}Uptime: ${alignr}${uptime}
${goto 40}CPU: ${alignr}${freq} Mhz
${goto 40}Temp: ${alignr}${acpitemp}°C
#${goto 40}Load: ${alignr}${cpu cpu0}
# |--UPDATES
#${goto 40}Updates: ${alignr}${font Droid Sans:style=Bold:size=8}${execi 10800 pacman -Qu | wc -l}${font} Packages
# |--CPU
${voffset 6}${font Droid Sans:style=Bold:size=8}CPU${font}${offset -20}${voffset 10}${cpubar cpu0 4,18}
${voffset -23}${goto 40}Core 1: ${font Droid Sans:style=Bold:size=8}${cpu cpu1}%${font} ${alignr}${cpubar cpu1 7,70 EEEEEE}
${voffset 1}${goto 40}Core 2: ${font Droid Sans:style=Bold:size=8}${cpu cpu2}%${font} ${alignr}${cpubar cpu2 7,70 EEEEEE}
${voffset 1}${goto 40}Core 3: ${font Droid Sans:style=Bold:size=8}${cpu cpu3}%${font} ${alignr}${cpubar cpu3 7,70 EEEEEE}
${voffset 1}${goto 40}Core 4: ${font Droid Sans:style=Bold:size=8}${cpu cpu4}%${font} ${alignr}${cpubar cpu4 7,70 EEEEEE}
# |--MEM
${voffset 6}${font Droid Sans:style=Bold:size=8}RAM${font}${goto 40}RAM: ${font Droid Sans:style=Bold:size=8}$memperc%${font}
${voffset 6}${offset 1}${voffset -8}${membar 4,18}${voffset 4}${goto 40}${voffset -2}Free: ${font Droid Sans:style=Bold:size=8}${memeasyfree}${font} ${alignr}Used: ${font Droid Sans:style=Bold:size=8}${mem}${font}
# |--SWAP
#${voffset 5}${font Droid Sans:style=Bold:size=8}SWP${font}${goto 40}Swap: ${font Droid Sans:style=Bold:size=8}${swapperc}%${font}
#${voffset 4}${offset 1}${voffset -7}${swapbar 4,18}${voffset 4}${goto 40}Free: ${font Droid Sans:style=Bold:size=8}$swapmax${font} ${goto 110}Used: ${font Droid #Sans:style=Bold:size=8}$swap${font}
# |--PROC
#${voffset 4}${font Droid Sans:style=Bold:size=8}TOP${font}${goto 40}Application${alignr}PID
#${voffset -1}${goto 40}Application $alignr PID
${voffset 4}${font Droid Sans:style=Bold:size=8}TOP $stippled_hr${font}
${voffset -1}${font}${goto 40}Application${alignr}PID
${voffset -1}${goto 40}${top name 1}$alignr${top pid 1}
${voffset -1}${goto 40}${top name 2}$alignr${top pid 2}
${voffset -1}${goto 40}${top name 3}$alignr${top pid 3}
${voffset -1}${goto 40}${top name 4}$alignr${top pid 4}
${voffset -1}${goto 40}${top name 5}$alignr${top pid 5}
${voffset -1}${goto 40}${top name 6}$alignr${top pid 6}
${voffset -1}${goto 40}${top name 7}$alignr${top pid 7}
#############
# - CLOCK - 
#############
${voffset 6}${font Droid Sans:style=Bold:size=8}DATE $stippled_hr${font}
${font Droid Sans:size=20}${alignc}${time %H:%M}${font}
${alignc}${time %d %B %Y}
###############
# - NETWORK - #
###############
${voffset 4}${font Droid Sans:style=Bold:size=8}NETWORK $stippled_hr${font}
${voffset 4}${goto 40}Upload: ${font Droid Sans:style=Bold:size=8}${upspeed wlp4s0}${font} ${alignr}${upspeedgraph wlp4s0 16,55 000000 FF0000}
${voffset -18}${goto 40}Overall: ${font Droid Sans:style=Bold:size=8}${totalup wlp4s0}${font}
${voffset 4}${goto 40}Download: ${font Droid Sans:style=Bold:size=8}${downspeed wlp4s0}${font} ${alignr}${downspeedgraph wlp4s0 16,55 000000 00FF00}
${voffset -18}${goto 40}Overall: ${font Droid Sans:style=Bold:size=8}${totaldown wlp4s0}${font}
#${voffset 4}${goto 20}Local IP: ${alignr}${font Droid Sans:style=Bold:size=8}${addr wlp4s0}${font}
#${goto 20}Public IP: ${alignr}${font Droid Sans:style=Bold:size=8}${execi 10800 ~/.public_ip}${font}
##########
# - HD - # 
##########
${voffset 4}${font Droid Sans:style=Bold:size=8}HD $stippled_hr${font}
# |--HD default
  ${voffset 4}${goto 40}Root: ${font Droid Sans:style=Bold:size=8}${fs_used_perc /}%${font}${goto 100}${alignr}${fs_bar 8,68 /}
  ${goto 40}Free: ${font Droid Sans:style=Bold:size=8}${fs_free /}${font}   ${alignr -6}Used: ${font Droid Sans:style=Bold:size=8}${fs_used /}${font}
  ${voffset 4}${goto 40}Home: ${font Droid Sans:style=Bold:size=8}${fs_used_perc /home}%${font}${goto 100}${alignr}${fs_bar 8,68 /home}
  ${goto 40}Free: ${font Droid Sans:style=Bold:size=8}${fs_free /home}   ${font}${alignr -6}Used: ${font Droid Sans:style=Bold:size=8}${fs_used /home}${font}
# |--HDTEMP1
${voffset 7}${goto 40}${voffset -4}Temp: ${font Droid Sans:style=Bold:size=8}${execi 120 sudo hddtemp /dev/sda -n --unit=C}°C${font}${alignr}/dev/sda
${voffset 4}${font Droid Sans:style=Bold:size=8}MUSIC $stippled_hr${font}
${voffset 4}${goto 40}${if_running audacious}${color}${font}${exec audtool --current-song}
${goto 40}${execibar 0.5  expr 100 \* $(audtool --current-song-output-length-seconds) \/ $(audtool --current-song-length-seconds) }
${goto 40}${execi 0.5 audtool --current-song-output-length}/${exec audtool --current-song-length}
${else}${goto 40}Not playing${endif}
${voffset 4}${font Droid Sans:style=Bold:size=8}UPDATES $stippled_hr${font}
#${voffset 4}${goto 40}${font}${texeci 20 ~/.config/conky/notify.py}
${voffset 4}${font}${execpi 3600 ~/.config/conky/paconky /tmp/paconky}


paconky script
Code: [Select]
#!/usr/bin/env python3
# -*- coding: utf8 -*-

# Author: Xyne

"""Display information about upgradable packages in Conky.

This script is meant to be customized. The default is just an example.

USAGE
  paconky /temporary/database/path [sync command]

EXAMPLES
  A static path:

      paconky ~/.cache/pacman

  Using tmpfs:

      paconky /dev/shm/pacman

  If the XDG_CACHE_HOME variable is set with 1 path:

      paconky "$XDG_CACHE_HOME"/pacman

  ... or with multiple paths:

      paconky "$(echo $XDG_CACHE_HOME | cut -d':' -f1)"/pacman

  The sync command will replace '%d' with the sync database directory and '%r'
  with the database root. This can be used to invoke powerpill for syncing
  the databases:

      paconky /tmp/paconky powerpill -b '%r' -Sy


DEPENDENCIES
  * pyalpm
  * python3-aur


EXAMPLE CONKY CONFIGURATION FILE

  alignment top_left
  gap_x 5
  gap_y 0
  maximum_width 200
  minimum_size 200,1
  own_window yes
  own_window_transparent yes
  own_window_type override
  own_window_hints below

  update_interval 3600
  total_run_times 0
  double_buffer yes

  use_xft yes
  xftfont lime:pixelsize=10
  xftalpha 0.9

  default_color ff0000
  default_outline_color black
  default_shade_color black

  uppercase no
  override_utf8_locale no

  text_buffer_size 4096

  color1 444444
  color2 cccccc
  color3 777777


  TEXT
  ${execp /path/to/paconky /tmp/paconky}



"""

import AUR.RPC as AUR
import errno
import glob
import os
import pyalpm
import shutil
import subprocess
import sys
import urllib.error

from collections import OrderedDict
from pycman import config, action_sync, transaction



def display(upgradable_sync, upgradable_aur):
  """Display the output.

  upgradable_sync: An OrderedDict of sync database names and sets of tuples.
  Each tuple consists of the local package and sync package returned by pyalpm.

  upgradable_aur: A list of tuples. Each tuple consists of the local package
  returned by pyalpm and a dictionary object returned from the AUR.
  """

  # To change the output, edit these formatting strings.
  # You can change anything except the number of "%s" in each.
  # If you need to insert a percent sign, use "%%".
  # The header at the top of each repo list.
  header = '%s ${alignr} %s'
  error = 'update check failed'
  zero = ''
  one = '1 new update'
  many = '%d new updates'
  # Text shown instead of repo when everything is up-to-date.
  zero_text = '${goto 40}System is up to date'

  # The line showing a package and the available version.
  line = '\n${goto 40}%s ${alignr}%s'

  # The footer at the end of the list.
  footer = ''

  # An error occured.
  if upgradable_sync is None or upgradable_aur is None:
    print(header % (zero_text, error) + footer);

  # Nothing to upgrade.
  elif not (upgradable_sync or upgradable_aur):
    print(header % (zero_text, zero) + footer);

  else:
    for repo, pkgs in upgradable_sync.items():
      n = len(pkgs)
      if n > 1:
        msg = many % n
      else:
        msg = one

      print(header % (repo,msg), end='');

      pkgs = sorted(pkgs, key=lambda x: x[0].name)
      for local, sync in pkgs:
        name, version = local.name, sync.version
        print(line % (name, version), end='')

      print(footer)


    if upgradable_aur:
      n = len(upgradable_aur)
      if n > 1:
        msg = many % n
      else:
        msg = one

      print(header % ('AUR',msg), end='');

      upgradable_aur.sort(key=lambda x: x['Name'])
      for pkg in upgradable_aur:
        print(line % (pkg['Name'], pkg['Version']), end='')

      print(footer)



def main(tmp_db_path, sync_cmd=None):
  # Use a temporary database path to avoid issues caused by synchronizing the
  # sync database without a full system upgrade.

  # See the discussion here:
  #   https://bbs.archlinux.org/viewtopic.php?pid=951285#p951285

  # Basically, if you sync the database and then install packages without first
  # upgrading the system (-y), you can do some damage.


  tmp_db_path = os.path.abspath(tmp_db_path)
#   conf = config.PacmanConfig(conf = '/etc/pacman.conf')
  h = config.init_with_config("/etc/pacman.conf")
  db_path = h.dbpath
  if tmp_db_path == db_path:
    print("temporary path cannot be %s" % db_path)
    sys.exit(1)
  local_db_path = os.path.join(db_path, 'local')
  tmp_local_db_path = os.path.join(tmp_db_path, 'local')

  # Set up the temporary database path
  if not os.path.exists(tmp_db_path):
    os.makedirs(tmp_db_path)
    os.symlink(local_db_path, tmp_local_db_path)
  elif not os.path.islink(tmp_local_db_path):
    # Move instead of unlinking just in case.
    if os.path.exists(tmp_local_db_path):
      sys.stderr.write(
        "warning: expected file or directory at %s\n" % tmp_local_db_path
      )
      i = 1
      backup_path = tmp_local_db_path + ('.%d' % i)
      while os.path.exists(backup_path):
        i += 1
        backup_path = tmp_local_db_path + ('.%d' % i)
      sys.stderr.write("attempting to move to %s\n" % backup_path)
      os.rename(tmp_local_db_path, backup_path)
    os.symlink(local_db_path, tmp_local_db_path)

  # Copy in the existing database files. If a repo is offline when paconky is
  # run then no database will be downloaded. If the databases are not copied
  # first then the output will be inconsistent due to missing information. For
  # example, if the Haskell repo is offline then Haskell packages will appear
  # in the [community] and [AUR] sections of the output.
  tmp_sync_db_path = os.path.join(tmp_db_path, 'sync')
  os.makedirs(tmp_sync_db_path, exist_ok=True)
  sync_db_path = os.path.join(db_path, 'sync')

  for db in glob.iglob(os.path.join(sync_db_path,'*.db')):
    tmp_db = os.path.join(tmp_sync_db_path, os.path.basename(db))
    try:
      mtime = os.path.getmtime(tmp_db)
    except OSError as e:
      if e.errno != errno.ENOENT:
        raise e
      else:
        mtime = 0
    if mtime < os.path.getmtime(db):
      shutil.copy2(db, tmp_db)



  # Sync the temporary database.
  # Support external synchronizers such as parisync.
  if sync_cmd:
    for index, item in enumerate(sync_cmd):
      if item == '%d':
        sync_cmd[index] = tmp_sync_db_path
      elif item == '%r':
        sync_cmd[index] = os.path.dirname(tmp_sync_db_path)
    p = subprocess.Popen(sync_cmd, stdout=subprocess.PIPE)
    e = p.wait()
    if e != 0:
      sys.stderr.write("sync command exited with %d\n" % e)
    # Re-initialize with new databases.
    args = action_sync.parse_options(('-b', tmp_db_path))
    h = config.init_with_config_and_options(args)
  else:
    args = action_sync.parse_options(('-b', tmp_db_path, '-y'))
    h = config.init_with_config_and_options(args)
    sys.stdout = sys.__stderr__
    try:
      t = transaction.init_from_options(h, args)
    except pyalpm.error as e:
      sys.stderr.write('%s\n' % (e,))
      eno = e.args[1]
      if eno == 10:
        lckpath = os.path.join(tmp_db_path, 'db.lck')
        sys.stderr.write('  %s\n' % lckpath)
      sys.exit(1)
    for db in h.get_syncdbs():
      try:
        db.update(False)
      except pyalpm.error as e:
        sys.stderr.write('%s: %s\n' % (db.name, e))
    t.release()
    sys.stdout = sys.__stdout__


  installed = set(p for p in h.get_localdb().pkgcache)
  upgradable = OrderedDict()

  syncdbs = h.get_syncdbs()
  for db in syncdbs:
    # Without "list" the set cannot be altered with "remove" below.
    for pkg in list(installed):
      pkgname = pkg.name
      syncpkg = db.get_pkg(pkgname)
      if syncpkg:
        if pyalpm.vercmp(syncpkg.version, pkg.version) > 0:
          try:
            upgradable[db.name].add((pkg, syncpkg))
          except KeyError:
            upgradable[db.name] = set(((pkg, syncpkg),))
        installed.remove(pkg)

  foreign = dict([(p.name,p) for p in installed])

  try:
    aur = AUR.AUR()
    aur_pkgs = aur.info(foreign.keys())
    upgradable_aur = list()
    for aur_pkg in aur_pkgs:
      try:
        installed_pkg = foreign[aur_pkg['Name']]
      except KeyError:
        upgradable_aur.append(aur_pkg)
        continue
      if pyalpm.vercmp(aur_pkg['Version'], installed_pkg.version) > 0:
        upgradable_aur.append(aur_pkg)
      installed.remove(installed_pkg)
  except AUR.AURError as e:
    sys.stderr.write(str(e))
    sys.exit(1)
  except urllib.error.URLError as e:
    sys.stderr.write(
      'error: failed to retrieve information from the AUR (%s)\n' % e.reason
    )
    upgradable_aur = None
  except TypeError:
    upgradable_aur = None


  display(upgradable, upgradable_aur)



if __name__ == "__main__":
  if sys.argv[1:]:
    main(sys.argv[1], sys.argv[2:])
  else:
    print("no temporary path given")
    sys.exit(1)

Title: Re: Conky thread, show your work!
Post by: Pouet on 27. August 2013, 12:01:25
Just for fun, I didn't use conky for many years  :):

(http://img801.imageshack.us/img801/3097/ycxx.png)
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 27. August 2013, 14:05:22
when you want to use tsw's conky including the paconky and update notifications, then you need powerpill as well (it can be installed with yaourt)!
Title: Re: Conky thread, show your work!
Post by: tsw on 28. August 2013, 18:53:22
when you want to use tsw's conky including the paconky and update notifications, then you need powerpill as well (it can be installed with yaourt)!

Thanks..! And now, a pic when updates are avail.  http://imgur.com/TzDhMVi

also some minor changes to it..
Title: Re: Conky thread, show your work!
Post by: diggingman on 31. August 2013, 16:54:08
Code: [Select]
${font Constantia:size=10}${execi 1200 /home/trevor/Scripts/weather2.py 45440}
Did you change the location code in the last line of the weather conky?  In my case I use the US zip code for my city, (45440).  I see in your profile you are located in India, I don't know if it would work the same way in a non-US location. The weather script uses the accuweather rss feed, you could try looking for the accuweather location code for your area.  I didn't actually write the weather script, I think I found it somewhere on the arch forums.  I'll repost the weather script itself below.

Code: [Select]
# !/usr/bin/bash
METRIC=0 #Should be 0 or 1; 0 for F, 1 for C
if [ -z $1 ]; then
    echo "USAGE: weather.sh <locationcode>"
    exit 0;
fi

wget -q http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=$1 -O - | gawk \
'/Currently:/ {CurWeather=$0}
/[0-9][0-9][0-9][0-9] Forecast<\/title>/ {nr=NR+3; split($0,z," "); split(z[1],r,"/|>"); DateIndx[x+1]=mktime(sprintf("%s %s %s 0 0 0",r[4],r[2],r[3]))}
NR==nr   {postIndx[++x]=$0}
# x>2    {exit}
END{
    split(CurWeather,tmp,"Currently: ")
    split(tmp[2],tmp1,"<")
    CurWeather=sprintf("%s",tmp1[1])
    sub(":",",",CurWeather)
   
    for(x in postIndx){
split(postIndx[x],tmp,";|&")
split(tmp[1],tmp,">")
split(tmp[2],statement," F ") # substitute C for F if metric differs
split(tmp[2],temp)
forecast[++y]=sprintf("%s %d-%dF %-15s",strftime("%a",DateIndx[x]),temp[5],temp[2],statement[3])
    }
    printf("Now: %s\nToday: %s\nTomorrow: %s",CurWeather,forecast[1],forecast[2],forcast[3])
}'
Title: Re: Conky thread, show your work!
Post by: mandog on 06. September 2013, 00:31:10
This is a simple conky I am working on for Manjaro on my arch box. I want to make it easy for people with 2/4/6 core drives to edit the file without losing all the other settings it will include support for audacious, A simple weather script updated every hour but no fancy iconsI want to keep it as simple as possible
Title: Re: Conky thread, show your work!
Post by: Daviddotcom on 14. September 2013, 17:04:28
[spoiler](http://www.zimagez.com/full/b307106e5e258c8b329a618ec91320d4801b466e77f0e99c6924c0fb25bf0a9d6b6b3a83e2886cbc6a9aace3a816d3a8667b8594bb4fce93.php)[/spoiler]

This is mine, I installed Manjaro a few hours ago, so I'm not really done yet. Still a lot to customize. ;)
What I do wonder is, why am I not able to see my up/down speed on my conky?

http://pastebin.com/raw.php?i=DQhrtFLu Here's the config.**I take no credit for it as it isnt mine!**
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 14. September 2013, 18:16:43
you have to replace "eth0", "wlan0", and "eth1" with the names of your network and wlan adapters. then, your conky should work!
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 27. September 2013, 22:16:42
i was asked twice how to find the name of your (wireless) network adapter.

here is the answer for everybody to read:
right click on the network icon in your panel (next to the clock). choose "network information" (or similar).
at the top it says (it can say something similar for you) "adapter: ethernet (xxxxxx)" or "adapter: wireless (xxxxxx)"
the xxxxxx is a weird combination of letters and numbers. this is the name of your ethernet adapter. there are other tabs for other networks.
Title: Re: Conky thread, show your work!
Post by: peter_pan on 22. October 2013, 16:42:50
Got an issue on my laptop's conky: my desktop icons are blinking with the update interval.
But its a clean and simple one - and my first made alone. :D

Code: [Select]
update_interval 1.0
alignment top_right

TEXT
$nodename - $sysname $kernel on $machine
$hr
${color #e49c16}CPU: $color$cpu% ${color #ffc11f}${cpubar}
${color #e49c16}RAM: $color$mem/$memmax - $memperc% ${color #ffc11f}${membar}
${color #e49c16}proc: $color$processes ($running_processes)
$hr
${color #e49c16}IP : $color ${addr wlp3s0} ${offset 10} ${color #e49c16}
${color #e49c16}HDD: ${color #FFFFFF}${fs_free /}/${fs_size /} ${color #ffc11f}${fs_bar /}
${color #e49c16}HDD: ${color #FFFFFF}${fs_free /home/}/${fs_size /home/} ${color #ffc11f}${fs_bar /home/}

edit: after restart no icons blink but conky :D
Title: Re: Conky thread, show your work!
Post by: mandog on 22. October 2013, 17:32:02
Got an issue on my laptop's conky: my desktop icons are blinking with the update interval.
But its a clean and simple one - and my first made alone. :D

Code: [Select]
update_interval 1.0
alignment top_right

TEXT
$nodename - $sysname $kernel on $machine
$hr
${color #e49c16}CPU: $color$cpu% ${color #ffc11f}${cpubar}
${color #e49c16}RAM: $color$mem/$memmax - $memperc% ${color #ffc11f}${membar}
${color #e49c16}proc: $color$processes ($running_processes)
$hr
${color #e49c16}IP : $color ${addr wlp3s0} ${offset 10} ${color #e49c16}
${color #e49c16}HDD: ${color #FFFFFF}${fs_free /}/${fs_size /} ${color #ffc11f}${fs_bar /}
${color #e49c16}HDD: ${color #FFFFFF}${fs_free /home/}/${fs_size /home/} ${color #ffc11f}${fs_bar /home/}

edit: after restart no icons blink but conky :D
Thats because you forgot to tell conky want you want to do there are no setup instructions to follow look at other conky configes posted you need to tell conky what to do 1st then your own config under.
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 22. October 2013, 18:55:02
Thats because you forgot to tell conky want you want to do there are no setup instructions to follow look at other conky configes posted you need to tell conky what to do 1st then your own config under.

i want to explain mandog's answer a little more: look at other .conkyrc file content in this thread and take a good look at everything above "TEXT".  this is the part you "setup" your conky. there, you decide how your conky behaves, what properties your conky has and even things like standard colors, etc.

try to copy and paste from other .conkyrc files, restart conky and look what has changed. when you want to know what all these commands stand for, have a look at Reply #61 in this thread and the links it contains.
Title: Re: Conky thread, show your work!
Post by: mandog on 22. October 2013, 19:42:21
i want to explain mandog's answer a little more: look at other .conkyrc file content in this thread and take a good look at everything above "TEXT".  this is the part you "setup" your conky. there, you decide how your conky behaves, what properties your conky has and even things like standard colors, etc.

try to copy and paste from other .conkyrc files, restart conky and look what has changed. when you want to know what all these commands stand for, have a look at Reply #61 in this thread and the links it contains.
Thanks for that as you see I have great trouble at times trying to explain as the words i want to write do not come to me when i try to write.
Title: Re: Conky thread, show your work!
Post by: peter_pan on 23. October 2013, 08:48:01
i want to explain mandog's answer a little more: look at other .conkyrc file content in this thread and take a good look at everything above "TEXT".  this is the part you "setup" your conky. there, you decide how your conky behaves, what properties your conky has and even things like standard colors, etc.

Thanks. Totally forgot, that there is no "default". Now it works. :)
Title: Re: Conky thread, show your work!
Post by: tmallafre on 24. October 2013, 15:35:52
Sorry if it's already posted; I've searched but not found how to solve my little problem:
I've found conky panel on a blog from @yoyo308 user: http://yoyo308.com/2013/10/22/simple-conky-estilo-panel-para-tu-distro-linux/ (http://yoyo308.com/2013/10/22/simple-conky-estilo-panel-para-tu-distro-linux/)
I like the panel format, but some values are moving when they reaches a value that needs more o less digits; ie if download speed reaches 100 KB/s from 99, then all the values on the panel will move a little. Does anyone know how to fix the width for all values to avoid that?
This is my .conkyrc:

Code: [Select]
# Overwrite this file if you want to have a permanent setting
# http://conky.sourceforge.net/variables.html
#avoid flicker
double_buffer yes
     
#own window to run simultanious 2 or more conkys
own_window yes
own_window_type panel
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
     
#borders
draw_borders no
     
#shades
draw_shades no
   
#position
gap_x 0
gap_y 5
alignment top_middle
     
#behaviour
update_interval 1
     
#colour
#default_color  6698FF
default_color  ffffff
default_shade_color ffffff
#own_window_colour 262729
#own_window_colour 2c2c2c
   
#font
use_xft yes
xftfont Source Sans Pro:size=9
     
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes
     
#to prevent window from moving
use_spacer none
minimum_size 5000 0
#maximum_size 5000 0
           
TEXT
${alignc}${color ffffff}${time %d.%m.%y}${color} | ${color ffffff}${time %H:%M}${color} | ${color ffffff}${exec uname -a | cut -b 19-27} ${color} | Uptime: ${color ffffff}${uptime_short}${color} | Sistema: ${color ffffff}${fs_free /}${color} | Home: ${color ffffff}${fs_free /home}${color} | ${color ffffff}${hwmon temp 1}°C${color} | Fan: ${color ffffff}${exec sensors | grep 'RPM' | cut -b 14-18} ${color}    |    RAM: ${color ffffff}${mem} | SWAP: ${color ffffff}${swap}      |      Down:         $color${downspeedf wlan1}   KB     |     Up:         $color${upspeedf wlan1}   KB

Thanks in advance  :)
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 24. October 2013, 16:07:34
this is my idea, but you can look in the official documentation of conky as well for an even better solution:

in front of everything, which should NOT move, write ${goto xxx}
xxx is distance from the left edge of the conky in pixels. you have to guess the distance and fine tune it for a little bit, until you think it looks nice.

does anybody have better ideas?
Title: Re: Conky thread, show your work!
Post by: tmallafre on 24. October 2013, 16:12:55
this is my idea, but you can look in the official documentation of conky as well for an even better solution:

in front of everything, which should NOT move, write ${goto xxx}
xxx is distance from the left edge of the conky in pixels. you have to guess the distance and fine tune it for a little bit, until you think it looks nice.

does anybody have better ideas?

Mmmm... thanks but I think it will only works on conky desktop, not on panel  :-\
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 24. October 2013, 16:35:42
Mmmm... thanks but I think it will only works on conky desktop, not on panel  :-\
so, there are different usage modes of conky.i did not know that.

when you are using panel mode, i cannot help you because i never used it myself.
i think, with some reading of the documentation, you could find another command to reserve some space for your displayed speeds. i think i have read about something similar before...
Title: Re: Conky thread, show your work!
Post by: tmallafre on 24. October 2013, 16:42:32
so, there are different usage modes of conky.i did not know that.

Ok, thanks anyway; I'll keep searching a workaround
Title: Re: Conky thread, show your work!
Post by: Culinax on 24. October 2013, 16:49:42
Where did you get that there are different modes, because there are no modes at all... It's just how you set it up your TEXT (multiple lines or one line).

The ${goto #} works perfectly fine btw, I just tried it.
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 24. October 2013, 16:53:41
Ok, thanks anyway; I'll keep searching a workaround
as i mentioned, try the official documentation here: http://conky.sourceforge.net/documentation.html
all commands in conky are explained there. try to search the whole page for words like "reserve" "space" "goto" "pixel"...

another chance is to look for other conky panels and look what commands they use. then, you can search for those commands in the documentation...
Title: Re: Conky thread, show your work!
Post by: tmallafre on 24. October 2013, 22:21:40
Where did you get that there are different modes, because there are no modes at all... It's just how you set it up your TEXT (multiple lines or one line).

The ${goto #} works perfectly fine btw, I just tried it.

Thanks, but with
Code: [Select]
own_window_type panelline, if I put a ${goto #} variable, the next value just disappears
Title: Re: Conky thread, show your work!
Post by: Culinax on 24. October 2013, 23:01:02
Thanks, but with
Code: [Select]
own_window_type panelline, if I put a ${goto #} variable, the next value just disappears

# = any number. Never blindly copy/paste but try to understand the commands and options you're typing ;) And as excalibur said, the documentation is really extensive and well explained.

For example ${goto 100}. i had to use quite big numbers to put it at the right spot. Just play a bit with it. You'll see that the text will overlap when the number is too small.
Title: Re: Conky thread, show your work!
Post by: tmallafre on 24. October 2013, 23:04:42
# = any number.

Off course. If don't believe me, only change your .conkyrc to own_window_type panel and try it yourself  :P
Title: Re: Conky thread, show your work!
Post by: Culinax on 25. October 2013, 16:24:56
Off course. If don't believe me, only change your .conkyrc to own_window_type panel and try it yourself  :P

It still works for me :/  I've tried it with your .conkyrc as well, and there it works too...
Title: Re: Conky thread, show your work!
Post by: tmallafre on 26. October 2013, 00:13:04
It still works for me :/  I've tried it with your .conkyrc as well, and there it works too...

Ok, then maybe it's due to my eee small screen... or anything else that I don't know, but every time the net speed needs more numbers, all my conky values moves.

Thank you all for your replies, and sorry for my english  :D
Title: Re: Conky thread, show your work!
Post by: ridvan28 on 26. October 2013, 12:20:49
conkyrc

Code: [Select]
#  http://www.NoobsLab.com #
#      Conky settings      #

background no
update_interval 1

cpu_avg_samples 4
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
#imlib_cache_size 0

temperature_unit fahrenheit

# Window specifications #

own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes

border_inner_margin 1
border_outer_margin 0

minimum_size 200 750
maximum_width 200

alignment tr
gap_x 45
gap_y 100

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #

use_xft yes
xftfont Dejavu Sans:size=9
xftalpha 0.2

uppercase no

temperature_unit celsius

default_color FFFFFF

lua_load ~/.conky/clock_rings.lua
lua_draw_hook_pre clock_rings

TEXT
${font FreeSans:size=11}${color FFFFFF}${goto 65}${voffset 80} ANKARA${font}
${font FreeSans:size=11}${color FFFFFF}${alignr}${goto 85}${voffset 10}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ LTAC temperature temperature 30}°C${font}
${color FFFFFF}${goto 25}${voffset -18}${cpu cpu0}%
${color 7ca7c6}${goto 12}${voffset -70}CPU
${color FFFFFF}${goto 160}${voffset 20}${memperc}%
${color 7ca7c6}${goto 165}${voffset 30}RAM
${color FFFFFF}${goto 70}${voffset 60}${font weather:size=28} ${font}CPU ${acpitemp} °C
${color FFFFFF}${goto 12}${voffset 150}${fs_used_perc /}%
${color 7ca7c6}${goto 35}${voffset -40}HDD
${color FFFFFF}${goto 155}${voffset -33}${if_up wlp2s0}${downspeed wlp2s0}${endif}${if_up eth0}${downspeed eth0}
${color 7ca7c6}${goto 135}${voffset 3}DwSp
${color 7ca7c6}${goto 85}${voffset 115}Swap
${color FFFFFF}${goto 67}${voffset 8}${swapperc}%   
${color FFFFFF}${goto 79}${voffset 48} Down.
${color FFFFFF}${goto 74}${voffset 10} ${totaldown wlp2s0}
${color FFFFFF}${goto 89}${voffset 4}${font PizzaDude Bullets:size=16}S${font}

clock_rings.lua

Code: [Select]
--[[
Clock Rings by Linux Mint (2011) reEdited by despot77

This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script. This script is based off a combination of my clock.lua script and my rings.lua script

IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num>5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num>3; conversely if you update Conky every 0.5s, you should use update_num>10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.

To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
    lua_load ~/scripts/clock_rings.lua
    lua_draw_hook_pre clock_rings
   
Changelog:
+ v1.0 -- Original release (30.09.2009)
   v1.1p -- Jpope edit londonali1010 (05.10.2009)
*v 2011mint -- reEdit despot77 (18.02.2011)
]]

settings_table = {
   
    {
        name='fs_used_perc',
        arg='/',
        max=100,
        bg_colour=0xffbf00,
        bg_alpha=0.5,
        fg_colour=0xb31212,
        fg_alpha=0.8,
        x=50, y=380,
        radius=37,
        thickness=4,
        start_angle=-90,
        end_angle=180
    },
    {
        name='downspeedf',
        arg='wlp2s0',
        max=100,
        bg_colour=0x0d558c,
        bg_alpha=0.5,
        fg_colour=0x000000,
        fg_alpha=1,
        x=150, y=380,
        radius=37,
        thickness=4,
        start_angle=90,
        end_angle=360
    },

{
        name='swapperc',
        arg='',
        max=100,
        bg_colour=0x000000,
        bg_alpha=0.8,
        fg_colour=0xb31212,
        fg_alpha=0.8,
        x=100, y=510,
        radius=40,
        thickness=4,
        start_angle=-90,
        end_angle=180
    },
{
        name='cpu',
        arg='cpu0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.3,
        fg_colour=0xb31212,
        fg_alpha=0.8,
        x=100, y=105,
        radius=65,
        thickness=4,
        start_angle=-90,
        end_angle=25
    },
{
        name='memperc',
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.3,
        fg_colour=0xb31212,
        fg_alpha=1,
        x=100, y=105,
        radius=65,
        thickness=4,
        start_angle=90,
        end_angle=205
    },
{
        name='acpitemp',
        arg='',
        max=100,
        bg_colour=0x000000,
        bg_alpha=0.8,
        fg_colour=0xb31212,
        fg_alpha=0.8,
        x=100, y=250,
        radius=42,
        thickness=4,
        start_angle=90,
        end_angle=360
    },
{
        name='cpu',
        arg='',
        max=100,
        bg_colour=0xb31212,
        bg_alpha=0.9,
        fg_colour=0xb31212,
        fg_alpha=0,
        x=100, y=435,
        radius=7,
        thickness=4,
        start_angle=0,
        end_angle=360
    },{
        name='cpu',
        arg='',
        max=100,
        bg_colour=0x7ca7c6,
        bg_alpha=0.9,
        fg_colour=0xb31212,
        fg_alpha=0,
        x=100, y=325,
        radius=7,
        thickness=4,
        start_angle=0,
        end_angle=360
    },
   
    {
    name='cpu',
        arg='',
        max=100,
        bg_colour=0x000000,
        bg_alpha=0.8,
        fg_colour=0xb31212,
        fg_alpha=0,
        x=100, y=620,
        radius=39,
        thickness=4,
        start_angle=-90,
        end_angle=180
    },{
        name='cpu',
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.3,
        fg_colour=0xb31212,
        fg_alpha=0,
        x=100, y=105,
        radius=45,
        thickness=4,
        start_angle=30,
        end_angle=90
    }
    ,{
        name='cpu',
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=1,
        fg_colour=0xb31212,
        fg_alpha=0,
        x=100, y=105,
        radius=45,
        thickness=4,
        start_angle=102,
        end_angle=162
    },{
        name='cpu',
        arg='',
        max=100,
        bg_colour=0xff0000,
        bg_alpha=1,
        fg_colour=0xb31212,
        fg_alpha=0,
        x=100, y=105,
        radius=45,
        thickness=4,
        start_angle=174,
        end_angle=234
    },{
        name='cpu',
        arg='',
        max=100,
        bg_colour=0x000000,
        bg_alpha=0.8,
        fg_colour=0xb31212,
        fg_alpha=0,
        x=100, y=105,
        radius=45,
        thickness=4,
        start_angle=246,
        end_angle=306
    },{
        name='cpu',
        arg='',
        max=100,
        bg_colour=0xffbf00,
        bg_alpha=0.8,
        fg_colour=0xb31212,
        fg_alpha=0,
        x=100, y=105,
        radius=45,
        thickness=4,
        start_angle=318,
        end_angle=18
    }

}

-- Use these settings to define the origin and extent of your clock.



-- "clock_x" and "clock_y" are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.

clock_x=100
clock_y=250

show_seconds=true

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)
    local w,h=conky_window.width,conky_window.height
   
    local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
    local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

    local angle_0=sa*(2*math.pi/360)-math.pi/2
    local angle_f=ea*(2*math.pi/360)-math.pi/2
    local t_arc=t*(angle_f-angle_0)

    -- Draw background ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
    cairo_set_line_width(cr,ring_w)
    cairo_stroke(cr)
   
    -- Draw indicator ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    cairo_stroke(cr)       
end

function draw_clock_hands(cr,xc,yc)
    local secs,mins,hours,secs_arc,mins_arc,hours_arc
    local xh,yh,xm,ym,xs,ys
   
    secs=os.date("%S")   
    mins=os.date("%M")
    hours=os.date("%I")
       
    secs_arc=(2*math.pi/60)*secs
    mins_arc=(2*math.pi/60)*mins+secs_arc/60
    hours_arc=(2*math.pi/12)*hours+mins_arc/12
       
  -- Draw hour hand
   
    --xh=xc+0.7*clock_r*math.sin(hours_arc)
    --yh=yc-0.7*clock_r*math.cos(hours_arc)
    cairo_move_to(cr,xc,yc)
    --cairo_line_to(cr,xh,yh)
   
    cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
    cairo_set_line_width(cr,5)
    cairo_set_source_rgba(cr,1.0,1.0,1.0,1.0)
    cairo_stroke(cr)
   
    -- Draw minute hand
   
    --xm=xc+clock_r*math.sin(mins_arc)
    --ym=yc-clock_r*math.cos(mins_arc)
    cairo_move_to(cr,xc,yc)
    --cairo_line_to(cr,xm,ym)
   
    cairo_set_line_width(cr,3)
    cairo_stroke(cr)
   
    -- Draw seconds hand
   
    if show_seconds then
        --xs=xc+clock_r*math.sin(secs_arc)
        --ys=yc-clock_r*math.cos(secs_arc)
        cairo_move_to(cr,xc,yc)
        --cairo_line_to(cr,xs,ys)
   
        cairo_set_line_width(cr,1)
        cairo_stroke(cr)
    end
end

function conky_clock_rings()
    local function setup_rings(cr,pt)
        local str=''
        local value=0
       
        str=string.format('${%s %s}',pt['name'],pt['arg'])
        str=conky_parse(str)
       
        value=tonumber(str)
        pct=value/pt['max']
       
        draw_ring(cr,pct,pt)
    end
   
    -- Check that Conky has been running for at least 5s

    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)
   
    local cr=cairo_create(cs)   
   
    local updates=conky_parse('${updates}')
    update_num=tonumber(updates)
   
    if update_num>5 then
        for i in pairs(settings_table) do
            setup_rings(cr,settings_table[i])
        end
    end
   
    draw_clock_hands(cr,clock_x,clock_y)
end

(http://i.imgur.com/NBnhHfs.jpg)

(http://i.imgur.com/m7wc62x.png)

I still working on it if you like that give me feedback please.
Title: Re: Conky thread, show your work!
Post by: simgin on 04. November 2013, 00:26:32
@ Ridvan  , I love your dark "red" colour tones , VERY nice indeed. With perfect conky colours on top :)
Title: Re: Conky thread, show your work!
Post by: bigfoottrucker on 04. November 2013, 20:13:55
This is mine by request. Fixed the battery percent in this.

Code: [Select]
#~/.conkyrc1
background no
own_window yes
own_window_class Conky
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager 
own_window_transparent yes

use_xft yes
xftfont Bitstream Vera Sans Mono Roman:size=7
xftalpha 1
update_interval 2.0
total_run_times 0

double_buffer yes
minimum_size 220
maximum_width 220
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
default_color 00BBEE
default_shade_color 000000
default_outline_color 828282
alignment top_right
gap_x 12
gap_y 56
no_buffers yes
uppercase no
cpu_avg_samples 4
override_utf8_locale no

##############################################
#  Output
##############################################
TEXT
${font AvantGarde:pixelsize=65}${alignc}${time %I:%M}${font}

${font avantgarde:pixelsize=11}${alignc}${time  %B %d, %Y}
${alignc}${time %A}${font}

S Y S T E M    I N F O
${hr}
$alignc${exec cat /etc/sabayon-edition}
Kernel:$alignr${exec uname -r}
Uptime:$alignr$uptime
Battery:$alignr$battery_percent%

D I S K
${hr}
Disk used (/home):
${fs_bar /home}
Disk used (/):
${fs_bar /}
Disk read: $alignr${diskio_read}
#${diskiograph_read -l -t}
Disk write: $alignr${diskio_write}
#${diskiograph_write -l -t}

P R O C E S S E S
${hr}
CPU processes: $alignr${running_processes}/${processes}
CPU threads: $alignr[${running_threads}]
CPU usage:$alignr${cpu cpu1}%/${freq cpu1}MHz
${cpugraph cpu1 OOBBEE FFFFFF -t}
CPU usage:$alignr${cpu cpu2}%/${freq cpu1}MHz
${cpugraph cpu2 OOBBEE FFFFFF -t}

By CPU $alignr   PID    CPU
$hr
${top name 1} $alignr ${top pid 1} ${top cpu 1}
${top name 2} $alignr ${top pid 2} ${top cpu 2}
${top name 3} $alignr ${top pid 3} ${top cpu 3}
${top name 4} $alignr ${top pid 4} ${top cpu 4}
${top name 5} $alignr ${top pid 5} ${top cpu 5}

By MEM $alignr   PID   MEM
$hr
${top_mem name 1} $alignr ${top_mem pid 1} ${top_mem mem 1}
${top_mem name 2} $alignr ${top_mem pid 2} ${top_mem mem 2}
${top_mem name 3} $alignr ${top_mem pid 3} ${top_mem mem 3}
${top_mem name 4} $alignr ${top_mem pid 4} ${top_mem mem 4}
${top_mem name 5} $alignr ${top_mem pid 5} ${top_mem mem 5}

MEM free:$alignr$memfree/$memmax
${membar}

D M E S G
$hr
${exec dmesg | tail -5  | fold -w44}
$hr

Second one with psad code commented because useless on latop
Title: Re: Conky thread, show your work!
Post by: peter_pan on 06. December 2013, 09:44:56
Hey there,
anyone knows hoe to add a battery "meter" and a charging state and "time left"?
Title: Re: Conky thread, show your work!
Post by: tmallafre on 06. December 2013, 14:19:40
Hey there,
anyone knows hoe to add a battery "meter" and a charging state and "time left"?

http://conky.sourceforge.net/variables.html  :D
Title: Re: Conky thread, show your work!
Post by: ErwinC on 06. December 2013, 19:15:50
Hey there,
anyone knows hoe to add a battery "meter" and a charging state and "time left"?

This is a part of my conky:

(https://lh6.googleusercontent.com/-n8vzPHMpunU/UqISSpt0ZDI/AAAAAAAAChE/UkmAsTStqR0/w224-h51-no/Schermafdruk+van+2013-12-06+17%253A03%253A26.png)

....and this is the code for it:
Code: [Select]
${font sans:size=10}${offset 130}${color slate grey}POWER:  ${hr 1}
${offset 150}${font sans:size=7}${color1}${battery BAT1}  ${alignr}${battery_bar 4, 110 BAT1}
${font sans:size=8}${ALIGNR}${battery_time BAT1}

Hope this helps. 8)
Title: Re: Conky thread, show your work!
Post by: peter_pan on 06. December 2013, 20:28:20
Idk how to rate you posts here. :-[ Thank you so much. :)

edit: here my actual, small conky
Title: Re: Conky thread, show your work!
Post by: natanvarga on 10. December 2013, 05:25:28
Simple but elegant :D

Code: [Select]
#  Basic Settings

background yes
use_xft yes
xftfont sans:size=11
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type override #desktop
own_window_hints below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 450 1
maximum_width 500
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color Black
default_shade_color f5f5f5
default_outline_color f5f5f5
alignment tl
gap_x 5
gap_y 85
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

# Fancy Conky display

TEXT

${font sans:size=60}${color #f5f5f5}${time %H:%M}${voffset -7}${voffset -45}
${font sans:size=25}${color #f5f5f5}${time %a %d %B %Y}${voffset -15}
${color #f5f5f5}${hr 1}${voffset -15}
${font sans:size=15}${color #f5f5f5}$sysname $kernel on $machine
${font sans:size=10}${color #f5f5f5}Battery ${color #f5f5f5}${battery_percent BATT}% · ${color #f5f5f5}Temp ${color #f5f5f5}$acpitemp°C ${color #f5f5f5}· Uptime ${color #f5f5f5}$uptime_short${voffset 2}
${font sans:size=10}${color #f5f5f5}HD ${color #f5f5f5}$fs_used · ${color #f5f5f5}RAM ${color #f5f5f5}$mem · ${color #f5f5f5}CPU ${color #f5f5f5}${cpu cpu0}%${voffset 2}
Title: Re: Conky thread, show your work!
Post by: Lukimya on 10. December 2013, 09:55:34
Simple but elegant :D

Code: [Select]
#  Basic Settings

background yes
use_xft yes
xftfont sans:size=11
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type override #desktop
own_window_hints below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 450 1
maximum_width 500
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color Black
default_shade_color f5f5f5
default_outline_color f5f5f5
alignment tl
gap_x 5
gap_y 85
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

# Fancy Conky display

TEXT

${font sans:size=60}${color #f5f5f5}${time %H:%M}${voffset -7}${voffset -45}
${font sans:size=25}${color #f5f5f5}${time %a %d %B %Y}${voffset -15}
${color #f5f5f5}${hr 1}${voffset -15}
${font sans:size=15}${color #f5f5f5}$sysname $kernel on $machine
${font sans:size=10}${color #f5f5f5}Battery ${color #f5f5f5}${battery_percent BATT}% · ${color #f5f5f5}Temp ${color #f5f5f5}$acpitemp°C ${color #f5f5f5}· Uptime ${color #f5f5f5}$uptime_short${voffset 2}
${font sans:size=10}${color #f5f5f5}HD ${color #f5f5f5}$fs_used · ${color #f5f5f5}RAM ${color #f5f5f5}$mem · ${color #f5f5f5}CPU ${color #f5f5f5}${cpu cpu0}%${voffset 2}

Wallpaperwise: I have seen much worse :)
Title: Re: Conky thread, show your work!
Post by: natanvarga on 16. December 2013, 03:34:07
updated the wallpaper and the font.
Title: Re: Conky thread, show your work!
Post by: rudylorren on 16. December 2013, 06:10:52
updated the wallpaper and the font.

very clean :)
Title: Re: Conky thread, show your work!
Post by: peter_pan on 16. December 2013, 08:50:11
Nice, which font is this?
Title: Re: Conky thread, show your work!
Post by: natanvarga on 16. December 2013, 15:11:07
Nice, which font is this?

Source Sans Pro
Title: Re: Conky thread, show your work!
Post by: AcidSpoof on 18. December 2013, 16:34:53
(http://i.imgur.com/XyG9uZE.jpg)
Title: Re: Conky thread, show your work!
Post by: AcidSpoof on 18. December 2013, 16:55:15
conkyrc

Code: [Select]
#  http://www.NoobsLab.com #
#      Conky settings      #

background no
update_interval 1

cpu_avg_samples 4
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
#imlib_cache_size 0

temperature_unit fahrenheit

# Window specifications #

own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes

border_inner_margin 1
border_outer_margin 0

minimum_size 200 750
maximum_width 200

alignment tr
gap_x 45
gap_y 100

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #

use_xft yes
xftfont Dejavu Sans:size=9
xftalpha 0.2

uppercase no

temperature_unit celsius

default_color FFFFFF

lua_load ~/.conky/clock_rings.lua
lua_draw_hook_pre clock_rings

TEXT
${font FreeSans:size=11}${color FFFFFF}${goto 65}${voffset 80} ANKARA${font}
${font FreeSans:size=11}${color FFFFFF}${alignr}${goto 85}${voffset 10}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ LTAC temperature temperature 30}°C${font}
${color FFFFFF}${goto 25}${voffset -18}${cpu cpu0}%
${color 7ca7c6}${goto 12}${voffset -70}CPU
${color FFFFFF}${goto 160}${voffset 20}${memperc}%
${color 7ca7c6}${goto 165}${voffset 30}RAM
${color FFFFFF}${goto 70}${voffset 60}${font weather:size=28} ${font}CPU ${acpitemp} °C
${color FFFFFF}${goto 12}${voffset 150}${fs_used_perc /}%
${color 7ca7c6}${goto 35}${voffset -40}HDD
${color FFFFFF}${goto 155}${voffset -33}${if_up wlp2s0}${downspeed wlp2s0}${endif}${if_up eth0}${downspeed eth0}
${color 7ca7c6}${goto 135}${voffset 3}DwSp
${color 7ca7c6}${goto 85}${voffset 115}Swap
${color FFFFFF}${goto 67}${voffset 8}${swapperc}%   
${color FFFFFF}${goto 79}${voffset 48} Down.
${color FFFFFF}${goto 74}${voffset 10} ${totaldown wlp2s0}
${color FFFFFF}${goto 89}${voffset 4}${font PizzaDude Bullets:size=16}S${font}

clock_rings.lua

Code: [Select]
--[[
Clock Rings by Linux Mint (2011) reEdited by despot77

This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script. This script is based off a combination of my clock.lua script and my rings.lua script

IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num>5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num>3; conversely if you update Conky every 0.5s, you should use update_num>10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.

To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
    lua_load ~/scripts/clock_rings.lua
    lua_draw_hook_pre clock_rings
   
Changelog:
+ v1.0 -- Original release (30.09.2009)
   v1.1p -- Jpope edit londonali1010 (05.10.2009)
*v 2011mint -- reEdit despot77 (18.02.2011)
]]

settings_table = {
   
    {
        name='fs_used_perc',
        arg='/',
        max=100,
        bg_colour=0xffbf00,
        bg_alpha=0.5,
        fg_colour=0xb31212,
        fg_alpha=0.8,
        x=50, y=380,
        radius=37,
        thickness=4,
        start_angle=-90,
        end_angle=180
    },
    {
        name='downspeedf',
        arg='wlp2s0',
        max=100,
        bg_colour=0x0d558c,
        bg_alpha=0.5,
        fg_colour=0x000000,
        fg_alpha=1,
        x=150, y=380,
        radius=37,
        thickness=4,
        start_angle=90,
        end_angle=360
    },

{
        name='swapperc',
        arg='',
        max=100,
        bg_colour=0x000000,
        bg_alpha=0.8,
        fg_colour=0xb31212,
        fg_alpha=0.8,
        x=100, y=510,
        radius=40,
        thickness=4,
        start_angle=-90,
        end_angle=180
    },
{
        name='cpu',
        arg='cpu0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.3,
        fg_colour=0xb31212,
        fg_alpha=0.8,
        x=100, y=105,
        radius=65,
        thickness=4,
        start_angle=-90,
        end_angle=25
    },
{
        name='memperc',
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.3,
        fg_colour=0xb31212,
        fg_alpha=1,
        x=100, y=105,
        radius=65,
        thickness=4,
        start_angle=90,
        end_angle=205
    },
{
        name='acpitemp',
        arg='',
        max=100,
        bg_colour=0x000000,
        bg_alpha=0.8,
        fg_colour=0xb31212,
        fg_alpha=0.8,
        x=100, y=250,
        radius=42,
        thickness=4,
        start_angle=90,
        end_angle=360
    },
{
        name='cpu',
        arg='',
        max=100,
        bg_colour=0xb31212,
        bg_alpha=0.9,
        fg_colour=0xb31212,
        fg_alpha=0,
        x=100, y=435,
        radius=7,
        thickness=4,
        start_angle=0,
        end_angle=360
    },{
        name='cpu',
        arg='',
        max=100,
        bg_colour=0x7ca7c6,
        bg_alpha=0.9,
        fg_colour=0xb31212,
        fg_alpha=0,
        x=100, y=325,
        radius=7,
        thickness=4,
        start_angle=0,
        end_angle=360
    },
   
    {
    name='cpu',
        arg='',
        max=100,
        bg_colour=0x000000,
        bg_alpha=0.8,
        fg_colour=0xb31212,
        fg_alpha=0,
        x=100, y=620,
        radius=39,
        thickness=4,
        start_angle=-90,
        end_angle=180
    },{
        name='cpu',
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.3,
        fg_colour=0xb31212,
        fg_alpha=0,
        x=100, y=105,
        radius=45,
        thickness=4,
        start_angle=30,
        end_angle=90
    }
    ,{
        name='cpu',
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=1,
        fg_colour=0xb31212,
        fg_alpha=0,
        x=100, y=105,
        radius=45,
        thickness=4,
        start_angle=102,
        end_angle=162
    },{
        name='cpu',
        arg='',
        max=100,
        bg_colour=0xff0000,
        bg_alpha=1,
        fg_colour=0xb31212,
        fg_alpha=0,
        x=100, y=105,
        radius=45,
        thickness=4,
        start_angle=174,
        end_angle=234
    },{
        name='cpu',
        arg='',
        max=100,
        bg_colour=0x000000,
        bg_alpha=0.8,
        fg_colour=0xb31212,
        fg_alpha=0,
        x=100, y=105,
        radius=45,
        thickness=4,
        start_angle=246,
        end_angle=306
    },{
        name='cpu',
        arg='',
        max=100,
        bg_colour=0xffbf00,
        bg_alpha=0.8,
        fg_colour=0xb31212,
        fg_alpha=0,
        x=100, y=105,
        radius=45,
        thickness=4,
        start_angle=318,
        end_angle=18
    }

}

-- Use these settings to define the origin and extent of your clock.



-- "clock_x" and "clock_y" are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.

clock_x=100
clock_y=250

show_seconds=true

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)
    local w,h=conky_window.width,conky_window.height
   
    local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
    local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

    local angle_0=sa*(2*math.pi/360)-math.pi/2
    local angle_f=ea*(2*math.pi/360)-math.pi/2
    local t_arc=t*(angle_f-angle_0)

    -- Draw background ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
    cairo_set_line_width(cr,ring_w)
    cairo_stroke(cr)
   
    -- Draw indicator ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    cairo_stroke(cr)       
end

function draw_clock_hands(cr,xc,yc)
    local secs,mins,hours,secs_arc,mins_arc,hours_arc
    local xh,yh,xm,ym,xs,ys
   
    secs=os.date("%S")   
    mins=os.date("%M")
    hours=os.date("%I")
       
    secs_arc=(2*math.pi/60)*secs
    mins_arc=(2*math.pi/60)*mins+secs_arc/60
    hours_arc=(2*math.pi/12)*hours+mins_arc/12
       
  -- Draw hour hand
   
    --xh=xc+0.7*clock_r*math.sin(hours_arc)
    --yh=yc-0.7*clock_r*math.cos(hours_arc)
    cairo_move_to(cr,xc,yc)
    --cairo_line_to(cr,xh,yh)
   
    cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
    cairo_set_line_width(cr,5)
    cairo_set_source_rgba(cr,1.0,1.0,1.0,1.0)
    cairo_stroke(cr)
   
    -- Draw minute hand
   
    --xm=xc+clock_r*math.sin(mins_arc)
    --ym=yc-clock_r*math.cos(mins_arc)
    cairo_move_to(cr,xc,yc)
    --cairo_line_to(cr,xm,ym)
   
    cairo_set_line_width(cr,3)
    cairo_stroke(cr)
   
    -- Draw seconds hand
   
    if show_seconds then
        --xs=xc+clock_r*math.sin(secs_arc)
        --ys=yc-clock_r*math.cos(secs_arc)
        cairo_move_to(cr,xc,yc)
        --cairo_line_to(cr,xs,ys)
   
        cairo_set_line_width(cr,1)
        cairo_stroke(cr)
    end
end

function conky_clock_rings()
    local function setup_rings(cr,pt)
        local str=''
        local value=0
       
        str=string.format('${%s %s}',pt['name'],pt['arg'])
        str=conky_parse(str)
       
        value=tonumber(str)
        pct=value/pt['max']
       
        draw_ring(cr,pct,pt)
    end
   
    -- Check that Conky has been running for at least 5s

    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)
   
    local cr=cairo_create(cs)   
   
    local updates=conky_parse('${updates}')
    update_num=tonumber(updates)
   
    if update_num>5 then
        for i in pairs(settings_table) do
            setup_rings(cr,settings_table[i])
        end
    end
   
    draw_clock_hands(cr,clock_x,clock_y)
end

(http://i.imgur.com/NBnhHfs.jpg)

(http://i.imgur.com/m7wc62x.png)

I still working on it if you like that give me feedback please.

I like your icons, where can I get them ?
Title: Re: Conky thread, show your work!
Post by: trzalica on 10. January 2014, 12:54:19
(http://i.imgur.com/XyG9uZE.jpg)

how did you make your panel totaly transparent?
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 10. January 2014, 15:20:56
if it is xfce (which it looks like), do this:

- right click on panel --> panel --> panel settings
- 2. tab: "appearance" --> (solid) color (in the drop down menu)
- set alpha value to 0.

my pc is set to german. i translated everything. this is the reason, some things might be named differently (but with the same meaning) for you.
Title: Re: Conky thread, show your work!
Post by: Otacon on 10. January 2014, 15:36:35
Hello,

(http://pix.toile-libre.org/upload/original/1389364479.png)

Code: [Select]
# Conky #

alignment top_right
gap_x 30
gap_y 60
minimum_size 520

update_interval 3

own_window yes
own_window_class Conky
own_window_transparent yes
own_window_argb_visual yes
own_window_argb_value 255
own_window_type Desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
background no

use_xft yes
xftfont DejaVu Sans Mono:size=11

cpu_avg_samples 2
net_avg_samples 2
default_color white
draw_borders no
draw_outline no
draw_shades no
double_buffer yes
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
stippled_borders 0
uppercase no
use_spacer none

TEXT
$sysname-$kernel ${color grey}$alignc démarré depuis:$color $uptime

${tab 40}${color grey}Frequence CPU (GHz): $alignr$color${freq_g 1}   ${freq_g 2}   ${freq_g 3}   ${freq_g 4}
${tab 60}${color grey}Charge CPU: $color$cpu% ${cpubar 5,150}${color grey}$alignr Temp: $color${execi 300 sensors | grep Physical | cut -c18-24}
${tab 80}${color grey}Charge RAM: $color$memperc% ${membar 5,130}$alignr$mem / $memmax
${tab 100}${color grey}Processus: $color$processes  ${color grey}$alignr En cours: $color$running_processes
${tab 123}$hr
${tab 132}$color Name $alignr PID   CPU%   MEM%
${tab 149}${color lightgrey} ${top name 1}$alignr${top pid 1} ${top cpu 1} ${top mem 1}
${tab 158}${color lightgrey} ${top name 2}$alignr${top pid 2} ${top cpu 2} ${top mem 2}
${tab 165}${color lightgrey} ${top name 3}$alignr${top pid 3} ${top cpu 3} ${top mem 3}
${tab 171}${color lightgrey} ${top name 4}$alignr${top pid 4} ${top cpu 4} ${top mem 4}
${tab 176}${color lightgrey} ${top name 5}$alignr${top pid 5} ${top cpu 5} ${top mem 5}
${tab 195}$hr
${tab 200}${color grey}Espace Utilisé:
${tab 204}${color grey}Racine : $color${fs_used_perc /}% de ${fs_size /} ${fs_bar 5 /}
${tab 206}${color grey}Data   : $color${fs_used_perc /home/data}% de ${fs_size /home/data} ${fs_bar 5 /home/data}
${tab 206}$hr
${tab 206}${color grey}Réseau: $color${addr wlp3s0}
${tab 206}${color grey}Up: $color${upspeed wlp3s0} ${color grey} - Down: $color${downspeed wlp3s0}
${tab 206}$hr
${tab 206}${color lightgrey}${tcp_portmon 1 65535 rip 0}${tab 90}${tcp_portmon 1 65535 rservice 0}${tab 206}$alignr${tcp_portmon 1 65535 rport 0}
${tab 206}${color lightgrey}${tcp_portmon 1 65535 rip 1}${tab 90}${tcp_portmon 1 65535 rservice 1}$alignr${tcp_portmon 1 65535 rport 1}
${tab 206}${color lightgrey}${tcp_portmon 1 65535 rip 2}${tab 90}${tcp_portmon 1 65535 rservice 2}$alignr${tcp_portmon 1 65535 rport 2}
${tab 206}${color lightgrey}${tcp_portmon 1 65535 rip 3}${tab 90}${tcp_portmon 1 65535 rservice 3}$alignr${tcp_portmon 1 65535 rport 3}
${tab 206}${color lightgrey}${tcp_portmon 1 65535 rip 4}${tab 90}${tcp_portmon 1 65535 rservice 4}$alignr${tcp_portmon 1 65535 rport 4}
${tab 206}${color lightgrey}${tcp_portmon 1 65535 rip 5}${tab 90}${tcp_portmon 1 65535 rservice 5}$alignr${tcp_portmon 1 65535 rport 5}
${tab 206}${color lightgrey}${tcp_portmon 1 65535 rip 6}${tab 90}${tcp_portmon 1 65535 rservice 6}$alignr${tcp_portmon 1 65535 rport 6}
Title: Re: Conky thread, show your work!
Post by: rudylorren on 10. January 2014, 19:47:41
@Otacon

Very cool
Title: Re: Conky thread, show your work!
Post by: natanvarga on 11. January 2014, 23:35:14
@Otacon

Very cool

+1
Title: Re: Conky thread, show your work!
Post by: eskaini on 12. January 2014, 00:24:16
Otacon -  cool conky  :)
Title: Re: Conky thread, show your work!
Post by: Lukimya on 13. January 2014, 00:53:48
I like that too. Just the essential stuff and thats it :)
Title: Re: Conky thread, show your work!
Post by: Otacon on 13. January 2014, 10:57:48
Thanks Guys   :D
Title: Re: Conky thread, show your work!
Post by: Egavas on 13. January 2014, 11:38:30
Here is my frankenstein conky, I've made it from 2 or 3 different ones :D

(http://s27.postimg.org/z90yc4v7j/Conky.jpg) (http://postimg.org/image/z90yc4v7j/)


Code: [Select]
#  Basic Settings

background yes
use_xft yes
xftfont sans:size=11
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type override #desktop
own_window_hints below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 450 1
maximum_width 300
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color Black
default_shade_color 000000
default_outline_color d9d7d6
alignment tr
gap_x 5
gap_y 20
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

# Fancy Conky display

TEXT
${font sans:size=70}${alignc}${color gray}${time %H:%M}${voffset -27}${voffset -45}
${font sans:size=18}${alignc}${time %a %d %B %Y}${voffset -10}
${color gray}${voffset 10}${font RsbillsDng:size=15}${font}${font DejaVu Sans Mono:size=12}${execpi 3600 DJS=`date +%_d`; cal -m | sed '1d' | sed '/./!d' | sed 's/$/                   /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color #9BC264}'"$DJS"'${color gray}'" "/}${font}

${voffset -10}${font led:size=10}${color #9BC264}SYSTEM INFO${offset 5}${color #9BC264}${voffset 1}$hr${font 10}
${color gray}${voffset -2}${color gray}System${offset 3}Uptime:${alignr}${uptime_short}${font 10}
${color gray}${voffset -2}${color gray}System${offset 3}Load:${alignr}${loadavg}${font 10}
${color gray}${voffset -1}${color gray}Processor:${alignr}${execi 1000 cat /proc/cpuinfo | awk '/model name/ {gsub(/\([^)]+\)/,""); print $4, $5, $6}' | uniq}${font 10}
${color gray}${voffset -2}${color gray}Video Card:${alignr}${exec lspci | grep 'VGA' | cut -c85-98}

${voffset -10}${color #9BC264}${font led:size=10}CPU ${font 10}$hr
${color gray}Core 1:  ${cpu cpu1}% $alignr ${freq_g (1)} GHz
${color gray}Core 2:  ${cpu cpu2}% $alignr ${freq_g (2)} GHz
${color gray}Core 3:  ${cpu cpu3}% $alignr ${freq_g (3)} GHz
${color gray}Core 4:  ${cpu cpu4}% $alignr ${freq_g (4)} GHz

${voffset -10}${color #9BC264}${font led:size=10}MEMORY / HDD / USB ${font 10}$hr
${color gray}ram:  ${offset 20}${mem} / ${memmax} ${alignr} ${memperc}%
${color gray}swap:  ${offset 13}${swap} / ${swapmax} ${alignr} ${swapperc}%
${color gray}root:  ${offset 21}${fs_used /} / ${fs_size /} ${alignr} ${fs_used_perc /}%
${color gray}home:  ${offset 9}${fs_used /home} / ${fs_size /home} ${alignr} ${fs_used_perc /home}%

${voffset -10}${color #9BC264}${font led:size=10}NETWORK ${font 10}$hr
${color gray}gateway IP: ${alignr}${gw_ip}
${color gray}local IP: $alignr${addr enp5s0}
${color gray}public IP: $alignr${execi 60 ~/.conky/ip.sh}

${voffset -10}${color #9BC264}DownSpeed:${alignr}Total down:${font 10}
${voffset -10}${color gray}${voffset 15}${downspeed enp5s0}${alignr}${totaldown enp5s0}${font 10}
${voffset 10}${color #9BC264}UpSpeed:${alignr}Total up:${font 10}
${voffset 5}${color gray}${upspeed enp5s0}${alignr}${totalup enp5s0}${font 10}

ip.sh

Code: [Select]
#!/bin/bash
# eigene öffentliche ip anzeigen

wget http://checkip.dyndns.org/ -q -O - |
grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 13. January 2014, 17:51:31
if you want to get your external ip, try this command in conky:
Code: [Select]
Public IP: $alignr${execi 3600 wget http://v4.ipv6-test.com/api/myip.php -q -O -}

it is shorter than your ip.sh script.
this command searches for your ip every hour (instead of every minute), which is still sufficient for almost all users.


instead of using different offsets to put the used ram, etc a little back with this command: ${offset 38}
try using ${goto 138} for ram, swap, etc. (138 is the number of pixels from the left edge of your conky).


these are just some tips, which can make your conky a little easier to read. you can keep your conky (because it already works), if you do not want to apply my suggestions.
nice work, btw.
Title: Re: Conky thread, show your work!
Post by: Egavas on 13. January 2014, 18:14:43
Yeah, thanks for suggestions, it could use little bit cleanup in code but im to lazy for that at the moment. As for external IP I use

Code: [Select]
execi 3600 wget -O - http://ip.tupeux.com | tail instead of script at the moment.

Cheers!
Title: Re: Conky thread, show your work!
Post by: natanvarga on 16. January 2014, 01:26:51
(http://www.anony.ws/i/2014/01/16/JrE8u.png)

Code: [Select]
# Manjaro Openbox-Lite Conky Configuration Script
#
# Written by Carl Duff of the Manjaro Team
# Email: carl[at]manjaro[dot]org - Website: www.manjaro.org - Forum: http://forum.manjaro.org/
#
# Feel free to alter, distribute, etc., this config file as you wish.
#

#  Basic Settings

background yes
use_xft yes
xftfont sans:size=11
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type override #desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 450 1
maximum_width 700
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color 050505
default_shade_color 050505
default_outline_color 050505
alignment br
gap_x 250
gap_y -20
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

# Fancy Conky display

TEXT

${font source sans pro:extralight:size=75}${alignc}${time %H:%M}${voffset -80}
${font source sans pro:light:size=37}${alignc}${time %a %d %B %Y}${voffset 15}
${font source sans pro:light:size=15}${alignc}$sysname $kernel on $machine${voffset -5}
${font source sans pro:light:size=12}${alignc}Battery ${battery_percent BATT}%  ·  Temp $acpitemp°C  ·  HD $fs_free  ·  RAM $mem  ·  CPU ${cpu cpu0}%
Title: Re: Conky thread, show your work!
Post by: v3n1n on 27. January 2014, 17:57:52
Hi,
(http://i.imgur.com/uI75BHj.jpg)

Pimped LSD conky from OpenBox Evo 0.8.9
Fonts from conky-colors + some others (I don't remember where i picked them) and Manjaro style letters from (http://forum.manjaro.org/index.php?action=dlattach;topic=2935.0;attach=3303;image) by
excalibur1234 http://forum.manjaro.org/index.php?topic=2935.msg68813#msg68813 (http://forum.manjaro.org/index.php?topic=2935.msg68813#msg68813)


Files + instructions attached

*EDIT* : Small updates
*EDIT2* : Cleaned and few changes (darker)
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 10. February 2014, 12:03:31
in the last couple of months, i have spend some time restructuring the code a little bit and doing some smaller changes (3 columns in my "task manager part" and I/O speeds on my hard drives).
as in older versions of my conky, the network monitor part is different for ethernet and wifi and the URL part will only show, when your computer has an active connection to the internet.

Code: [Select]

####Text color:
default_color white
color1 0ab1ff
color2 DD4814

own_window_transparent yes

own_window_colour black

####Background transparency (0..255):
own_window_argb_value 200

own_window yes
own_window_type desktop
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

draw_shades no
draw_outline no
draw_borders no

use_xft yes
xftalpha 1
xftfont DejaVuSansCondensed:weight=Bold:pixelsize=11

no_buffers yes
double_buffer yes
text_buffer_size 2048

short_units yes

update_interval 1

alignment top_right
gap_x 18
gap_y 20

maximum_width 260



TEXT
${font DejaVuSansCondensed-Bold:size=26}${color1}$alignr${time %H:%M}$font
${font DejaVuSansCondensed-Bold:size=11}${color1}$alignr${time %A, %d.%B %Y}

${voffset 5}${color}Uptime:${color1}$alignr$uptime
${color}Kernel:${color1}$alignr$kernel
${color}GPU: ${color1}${font DejaVuSansCondensed-Bold:size=9} ${goto 59}${execi 29 nvidia-settings -q GPUCoreTemp -t}°C ${font DejaVuSansCondensed-Bold:size=11} ${alignr}${color}Nvidia Driver: ${color1}${execi 7201 nvidia-settings -q NvidiaDriverVersion -t}
#${execi 7201 $ ifconfig -a | grep -A 6  enp9s0 | grep ether | cut -c15-32}
#Processes: ${alignr}$processes ($running_processes running)

${voffset 10}${font DejaVuSansCondensed-Bold:size=11}${color}CPU ${goto 38}1:${color1}${font DejaVuSansCondensed-Bold:size=9}  ${goto 59}${execi 30 sensors | grep 'Core 0:' | cut -c16-17}°C ${goto 100}${color2}${cpubar cpu1 9,105}  ${alignr}${color1}${freq_g cpu1} GHz
 ${goto 100}${color2}${cpubar cpu5 9,105}  ${color1}
${font DejaVuSansCondensed-Bold:size=11}${color}CPU ${goto 38}2:${color1}${font DejaVuSansCondensed-Bold:size=9}  ${goto 59}${execi 31 sensors | grep 'Core 1:' | cut -c16-17}°C ${goto 100}${color2}${cpubar cpu2 9,105}  ${alignr}${color1}${freq_g cpu2} GHz
 ${goto 100}${color2}${cpubar cpu6 9,105}  ${color1}
${font DejaVuSansCondensed-Bold:size=11}${color}CPU ${goto 38}3:${color1}${font DejaVuSansCondensed-Bold:size=9}  ${goto 59}${execi 32 sensors | grep 'Core 2:' | cut -c16-17}°C ${goto 100}${color2}${cpubar cpu3 9,105}  ${alignr}${color1}${freq_g cpu3} GHz
 ${goto 100}${color2}${cpubar cpu7 9,105}  ${color1}
${font DejaVuSansCondensed-Bold:size=11}${color}CPU ${goto 38}4:${color1}${font DejaVuSansCondensed-Bold:size=9}  ${goto 59}${execi 33 sensors | grep 'Core 3:' | cut -c16-17}°C ${goto 100}${color2}${cpubar cpu4 9,105}  ${alignr}${color1}${freq_g cpu4} GHz
 ${goto 100}${color2}${cpubar cpu8 9,105}  ${color1} ${font DejaVuSansCondensed-Bold:size=11}

${voffset 8}${color}PROCESS ${color1}${font DejaVuSansCondensed-Bold:size=9}($running_processes active) ${font DejaVuSansCondensed-Bold:size=11}${color}$alignr CPU     IO     RAM${font DejaVuSansCondensed-Bold:size=9}${color1}
    ${top name 1} ${goto 150}${top cpu 1}
    ${top name 2} ${goto 150}${top cpu 2}
    ${top name 3} ${goto 150}${top cpu 3}
    ${top name 4} ${goto 150}${top cpu 4}

    ${top_io name 1} ${goto 190}${top_io io_perc 1}
    ${top_io name 2} ${goto 190}${top_io io_perc 2}

    ${top_mem name 1} $alignr${top_mem mem_res 1}
    ${top_mem name 2} $alignr${top_mem mem_res 2}
    ${top_mem name 3} $alignr${top_mem mem_res 3}
    ${top_mem name 4} $alignr${top_mem mem_res 4}${font DejaVuSansCondensed-Bold:size=11}

${voffset 12}${color}RAM: ${color1} $alignr${mem} / ${memmax}
${color2}${membar 9,260}${color1}
#${color2}${memgraph 25,260}${color1}
${color}Swap: ${color1} ${goto 55}${diskio sda3}/s $alignr${swap} / ${swapmax}

${voffset 8}${color}Root: ${color1} ${goto 55}${diskio sda1}/s ${alignr}${fs_used /} / ${fs_size /}
${color2}${fs_bar 9,260 /}

${color}Home: ${color1} ${goto 55}${diskio sdb}/s ${alignr}${fs_used /home} / ${fs_size /home}
${color2}${fs_bar 9,260 /home}

${if_existing /proc/net/route enp9s0}${voffset 15}${color}Down: ${color1}${downspeed enp9s0}/s ${alignr} ${color}Up: ${color1}${upspeed enp9s0}/s
${color2}${downspeedgraph enp9s0 25,120 -t} ${alignr}${upspeedgraph enp9s0 25,120 -t} ${color1}
Total: ${totaldown enp9s0}  ${alignr} Total: ${totalup enp9s0}

${color}LAN IP: ${color1}${alignr}${addr enp9s0}
${color}NET IP: ${color1}${alignr}${execi 3602 wget http://v4.ipv6-test.com/api/myip.php -q -O -}${if_match ${tcp_portmon 1 65535 count}>0}

${color}URL ${color1}${font DejaVuSansCondensed-Bold:size=9}(${tcp_portmon 1 65535 count} open ports) ${font DejaVuSansCondensed-Bold:size=11}${color}$alignr PORT${font DejaVuSansCondensed-Bold:size=9}${color1}
    ${tcp_portmon 1 65535 rhost 0} $alignr ${tcp_portmon 1 65535 rport 0}
    ${tcp_portmon 1 65535 rhost 1} $alignr ${tcp_portmon 1 65535 rport 1}
    ${tcp_portmon 1 65535 rhost 2} $alignr ${tcp_portmon 1 65535 rport 2}
    ${tcp_portmon 1 65535 rhost 3} $alignr ${tcp_portmon 1 65535 rport 3}
    ${tcp_portmon 1 65535 rhost 4} $alignr ${tcp_portmon 1 65535 rport 4}
    ${tcp_portmon 1 65535 rhost 5} $alignr ${tcp_portmon 1 65535 rport 5}
    ${tcp_portmon 1 65535 rhost 6} $alignr ${tcp_portmon 1 65535 rport 6}
    ${tcp_portmon 1 65535 rhost 7} $alignr ${tcp_portmon 1 65535 rport 7}
    ${tcp_portmon 1 65535 rhost 8} $alignr ${tcp_portmon 1 65535 rport 8}${endif}${else}${voffset -30}${endif}${if_existing /proc/net/route wlp2s0}${voffset 40}${color}WLAN:${color1}$alignr${wireless_essid wlp2s0}${font DejaVuSansCondensed-Bold:size=9}$alignr(${wireless_bitrate wlp2s0})${font DejaVuSansCondensed-Bold:size=11}
${color2}${wireless_link_bar 9, 260 wlp2s0}

${color}Down: ${color1}${downspeed wlp2s0}/s ${alignr} ${color}Up: ${color1}${upspeed wlp2s0}/s
${color2}${downspeedgraph wlp2s0 25,120 -t} ${alignr}${upspeedgraph wlp2s0 25,120 -t} ${color1}
Total: ${totaldown wlp2s0}  ${alignr} Total: ${totalup wlp2s0}

${color}LAN IP: ${color1}${alignr}${addr wlp2s0}
${color}NET IP: ${color1}${alignr}${execi 3602 wget http://v4.ipv6-test.com/api/myip.php -q -O -}${endif}
Title: Re: Conky thread, show your work!
Post by: trzalica on 10. February 2014, 19:33:26
@excalibur1234 - did you hide public IP (net ip in your conky) or it doesn't work for you?
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 10. February 2014, 21:47:22
@excalibur1234 - did you hide public IP (net ip in your conky) or it doesn't work for you?
it works, but i loaded the screen shot in gimp and painted over my public ip...
when conky loads immediately after manjaro has booted, the public ip does not show in my conky, because i have disabled a startup service to wait for an active network connection in order to speed up my boot time.

when you are searching for a way to display the public ip in your conky: there are multiple different methods of acquiring you public ip available in this thread.
Title: Re: Conky thread, show your work!
Post by: trzalica on 10. February 2014, 21:58:13
I know, I have it activated but i tought if any help is needed... :)
Title: Re: Conky thread, show your work!
Post by: TiberiusT on 11. February 2014, 09:27:57
@Octacon from Post#153

Excellent - I've never seen that curved design b4.

Just a thought...but if yu mirrored the shape on the left hand side as well with some other information, you would have... an "Arch" - which would be kinda cool :)

Anyway, here's my simple effort for a clear uncluttered approach:
(http://en.zimagez.com/avatar/conky4.jpg) (http://en.zimagez.com/zimage/conky4.php)


Code: [Select]
# Use Xft?
use_xft yes
xftfont Trebuchet MS:size=9
xftalpha 0.8
text_buffer_size 2048
background yes
# Update interval in seconds
update_interval 1
xftalpha 0.8
own_window_argb_visual yes
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type desktop
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 180 0

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_margin 5

# border width
border_width 1

# Default colors and also border colors
# default_color white
# own_window_colour white

default_bar_size 100
# 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 none

#borders
draw_borders no
border_margin 4

# Position en bas a droite
alignment bottom_right

# Decalage par rapport aux bordures
gap_x 50
gap_y 20


TEXT
#${color EAEAEA}${font GE Inspira:pixelsize=45}${alignr}${time  %l:%M %P}${font GE Inspira:pixelsize=24}
${color EAEAEA}${font Droid Sans:pixelsize=45}${alignr}${time  %l:%M %P}${font Droid Sans:pixelsize=24}
${voffset 10}${alignr}${color EAEAEA}${time %A} ${color EAEAEA}${time %d} ${color EAEAEA}${time %B}
#${font Ubuntu:pixelsize=10}${alignr}${color D12122}HD  $color${fs_used /} / ${fs_size /}    ${color D12122}RAM  $color$mem / ##33
#$memmax     ${color D12122}CPU  $color${cpu cpu0}%
#system blue is 5787ba

${color EAEAEA}${alignr}Sao Paulo : ${tztime America/Sao_Paulo %l:%M %P}
${color EAEAEA}${alignr}Aldershot : ${tztime Europe/London %l:%M %P}
${color EAEAEA}${alignr}Athens    : ${tztime Europe/Athens %l:%M %P}

${font Droid Sans:pixelsize=22:bold}${alignr}${color 5787ba}RAM : ${font Droid Sans:pixelsize=22}$color$mem / $memmax  ${color 5787ba}$membar
${font Droid Sans:pixelsize=22:bold}${alignr}${color 5787ba}HD    : ${font Droid Sans:pixelsize=22}$color $fs_used / ${fs_size}  ${color 5787ba}$fs_bar
${font Droid Sans:pixelsize=22:bold}${color 5787ba}CPU  : ${font Droid Sans:pixelsize=22}${color EAEAEA}$freq_g GHz

One question abt Conky.....I use the wallpaper changer Variety and wallpaper changes from very dark pictures to very white pictures. My Conky is in white so it disappears on a whiteish wallpaper. Is there any way to have Conky change font colour/hue to use an opposite to the one on the background automatically, making it always legible regardless of background?

T


Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 11. February 2014, 10:29:20
One question abt Conky.....I use the wallpaper changer Variety and wallpaper changes from very dark pictures to very white pictures. My Conky is in white so it disappears on a whiteish wallpaper. Is there any way to have Conky change font colour/hue to use an opposite to the one on the background automatically, making it always legible regardless of background?

i am not aware of an easy solution.

but i have two ideas:
- when you use locally stored wallpaper, sort them into 2 folders: one with dark backgrounds at the place your conky is and one with bright backgrounds. choose only one folder for variety to access and adjust your conky font color accordingly.
- put a background in your conky (either bright or dark). this way, your conky is independent of the wallpaper behind it.
Title: Re: Conky thread, show your work!
Post by: mips on 11. February 2014, 19:36:54
Hi,
(http://i.imgur.com/uI75BHj.jpg)

Where is that?
Title: Re: Conky thread, show your work!
Post by: v3n1n on 11. February 2014, 20:36:25
Where is that?

Files (.conkyrc, fonts and .png) are linked with my post if it's what you asked.
Title: Re: Conky thread, show your work!
Post by: mips on 11. February 2014, 21:18:01
Files (.conkyrc, fonts and .png) are linked with my post if it's what you asked.

I meant the place in the wallpaper?
Title: Re: Conky thread, show your work!
Post by: v3n1n on 11. February 2014, 21:26:49
Oh !
I don't know where it is.
it's a wallpaper from manjarobox evolution called "Mountain Lake".

(http://i.imgur.com/O5BJWQrs.jpg) (http://imgur.com/O5BJWQr)

I would say New Zealand..
Title: Re: Conky thread, show your work!
Post by: poker98face on 25. February 2014, 14:48:41
Simple conky to match wallpaper, colors and some configs take from this config: http://irenegr.deviantart.com/art/Redhead-Xubuntu-376828479 only weather does not work and i don't know why (http://e.deviantart.net/emoticons/h/hmm2.gif) Also i would like to add CPU and GPU temperature.
(http://i.imgur.com/C5ttTHK.png)
http://pastebin.com/Qk1ajcQz
Title: Re: Conky thread, show your work!
Post by: eskaini on 25. February 2014, 14:55:33
Hi,
(http://i.imgur.com/uI75BHj.jpg)

Pimped LSD conky from OpenBox Evo 0.8.9
Fonts from conky-colors + some others (I don't remember where i picked them) and Manjaro style letters from (http://forum.manjaro.org/index.php?action=dlattach;topic=2935.0;attach=3303;image) by
excalibur1234 http://forum.manjaro.org/index.php?topic=2935.msg68813#msg68813 (http://forum.manjaro.org/index.php?topic=2935.msg68813#msg68813)


Files + instructions attached

*EDIT* : Small updates
*EDIT2* : Cleaned and few changes (darker)
That is really cool. I love it  :)
Title: Re: Conky thread, show your work!
Post by: oriolfa on 25. February 2014, 15:01:09
only weather does not work and i don't know why

Hi poker98face,

what wheater script are you using? I'm running conkyForecastWU with wunderground.com service and it's working OK. Just had to split the main template in 3 templates to get it working (still don't know why, but it worked). I'm not at home now, let me know if you want me to share config/templates.
Title: Re: Conky thread, show your work!
Post by: poker98face on 25. February 2014, 15:05:16
This is config i found:
Code: [Select]
${color8}${voffset -5}${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=965867&u=c" -o ~/.cache/weather.xml}${font Bahamas:size=19}${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "city=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} ${alignr}${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "country=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}${color}
 
${color1}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=GRXX0015 --datatype=WF}${font}
${voffset -50}${font Weather:size=40}y${font}  ${voffset -38}${font Bahamas:size=26}${execi 600 conkyForecast --location=GRXX0015 --datatype=HT}${font}${color}
 
 
${color3}${font Bahamas:size=10}${alignc 48}${execpi 600 conkyForecast --location=GRXX0015 --datatype=DW --startday=1 --shortweekday} ${alignc 8}${execpi 600 conkyForecast --location=GRXX0015 --datatype=DW --startday=2 --shortweekday} ${alignc -29}${execpi 600 conkyForecast --location=GRXX0015 --datatype=DW --startday=3 --shortweekday} ${alignc -70}${execpi 600 conkyForecast --location=GRXX0015 --datatype=DW --startday=4 --shortweekday}
${alignc 80}${font ConkyWeather:size=30}${execpi 600 conkyForecast --location=GRXX0015 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
${font Bahamas:size=10}${alignc 48}${execpi 600 conkyForecast --location=GRXX0015 --datatype=HT --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=GRXX0015 --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${alignc -14}${execpi 600 conkyForecast --location=GRXX0015 --datatype=HT --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=GRXX0015 --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc -40}${execpi 600 conkyForecast --location=GRXX0015 --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=GRXX0015 --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${alignr 6}${execpi 600 conkyForecast --location=GRXX0015 --datatype=HT --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=GRXX0015 --datatype=LT --startday=4 --hideunits --centeredwidth=3}${color}
 
${color1}${font Bahamas:size=10}Updated:${color} ${color2}${alignr} ${execi 600 conkyForecast --location=GRXX0015 --hideunits --datatype=LU -m 0 }
${color1}${font Bahamas:size=10}Condition:${color} ${color2}${alignr}${execi 600 conkyForecast --location=GRXX0015 --datatype=CC}
${color1}${font Bahamas:size=10}Wind:${color} ${color2}${alignr}${execi 600 conkyForecast --location=GRXX0015 --datatype=WS } - ${execi 600 conkyForecast --location=GRXX0015 --datatype=WD}
${color1}${font Bahamas:size=10}Humidity:${color} ${color2}${alignr}${execi 600 conkyForecast --location=GRXX0015 --datatype=HM}
${color1}${font Bahamas:size=10}Feels Like:${color} ${color2}${alignr}${execi 600 conkyForecast --location=GRXX0015 --datatype=LT}${color}
${color1}${font Bahamas:size=10}Sunrise:${color} ${color2}${alignr}${execi 600 conkyForecast --location=GRXX0015 --datatype=SR}${color}
${color1}${font Bahamas:size=10}Sunset:${color} ${color2}${alignr}${execi 600 conkyForecast --location=GRXX0015 --datatype=SS}${color}
${color1}${font Bahamas:size=10}Moon:${color} ${color2}${alignr}${execi 600 conkyForecast --location=GRXX0015 --datatype=MP} ${font MoonPhases:size=8:style=Bold}${execi 600 conkyForecast --location=GRXX0015 --datatype=MF}${font} ${color}
${voffset -100}
Title: Re: Conky thread, show your work!
Post by: oriolfa on 25. February 2014, 15:31:28
This is config i found:

I see you are using conkyForecast instead of conkyForecastWU. conkyForecast uses weather.com and it needs a payment account in order to work (or that is what I found when tried to use it). conkyForecastWU uses wunderground.com, wich is also a payment service, but has a developer membership free of charge (limited, but it's OK for desktop. For example, the forecast days are limited to 3 days, or the number of request per minute to 10 requests).

In both scripts you need to copy the original config file in /usr/share to your home folder

Code: [Select]
cp /usr/share/conkyforecastWU/conkyForecastWU.config ~/.conkyForecastWU.config
and then edit your own config file to match your settings. I haven't my config file here, but I remember to change location and the key (from wunderground.com). Important is not to change the lines on the top (the first part of the config file). Everything you must change is in the bottom part.

Then I had to create the templates for the conkyForecastWU calls. I will share this templates tonight

And in my conky.rc
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 25. February 2014, 15:53:20
for a temperature display, install lm_sensors.

type "sensors" in your terminal and it shows you all the temperatures it can find.

e.g. use
Code: [Select]
${execi 30 sensors | grep 'Core 0:' | cut -c16-17}°C
to display the temperature of your first cpu core in your conky. this works for me, but it may not work for you the same way. adjust the
Code: [Select]
sensors | grep 'Core 0:' | cut -c16-17
command and test it in your terminal, until you get the temperature value you are looking for


for the GPU temperature, it depends on your graphics card and your driver. most drivers tell you the temperature. for my nvidia card with the non-free driver i use
Code: [Select]
${execi 29 nvidia-settings -q GPUCoreTemp -t}°C
to get the temperature.
Title: Re: Conky thread, show your work!
Post by: v3n1n on 25. February 2014, 16:18:22
That is really cool. I love it  :)

thank you sensei :)
Title: Re: Conky thread, show your work!
Post by: poker98face on 25. February 2014, 17:11:37
Ok, weather added, all done  :) Thanks for help.
(http://i.imgur.com/nSHyxh5.png)
Title: Re: Conky thread, show your work!
Post by: rudylorren on 25. February 2014, 17:26:41
Ok, weather added, all done  :) Thanks for help.
(http://i.imgur.com/nSHyxh5.png)

Thats pretty :)
Title: Re: Conky thread, show your work!
Post by: poker98face on 25. February 2014, 17:33:38
Thank you  ;) Btw if you want to use my config, be sure to first install ttf-monofur.
Title: Re: Conky thread, show your work!
Post by: oriolfa on 25. February 2014, 17:43:53
Ok, weather added, all done  :) Thanks for help.
(http://i.imgur.com/nSHyxh5.png)

you're welcome! Really nice desktop you have there!  :)
Title: Re: Conky thread, show your work!
Post by: misomosi on 25. February 2014, 21:39:17
Minimal but useful.
(http://berghe.net/shares/conky.png)

In order to get the GPU temp I compiled conky with some --nvidia-enable-or-whatever flag..
Code: [Select]
use_xft yes
xftfont 123:size=8
xftalpha 0.1
update_interval 1
total_run_times 0
own_window no
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 250 5
maximum_width 700
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color red
default_outline_color green
alignment top_left
gap_x 30
gap_y 30
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
use_spacer yes


TEXT
${voffset 12}${color EAEAEA}${font GE Inspira:pixelsize=120}${time %H:%M}${font}${voffset -84}${offset 12}${color FFA300}${font GE Inspira:pixelsize=42}${time %d} ${voffset -15}${color EAEAEA}${font GE Inspira:pixelsize=22}${time %B} ${time %Y}${font}${voffset 24}${font GE Inspira:pixelsize=58}${offset -225}${time %A}${font}
${voffset 12}${offset 12}${font Droid Sans:pixelsize=12}${color FFA300}SSD ${offset 12}$color${fs_bar 5,108 /}${offset 30}${color FFA300}RAM ${offset 12}$color${membar 5,108}${color FFA300}${offset 30}CPU ${offset 12}$color${cpubar 5,108 cpu0}
${voffset 5}${offset 10}${font Droid Sans:pixelsize=12}${color FFA300}HDD ${offset 12}$color${fs_bar 5,108 /home/darius/HDD}${offset 30}${color FFA300}SWP ${offset 12}$color${swapbar 5,108}${offset 30}${color FFA300}CPU ${offset 12}$color${hwmon temp 2}°C${color FFA300}${offset 12}GPU ${offset 12}$color${nvidia temp}°C






Title: Re: Conky thread, show your work!
Post by: FluX on 06. March 2014, 15:48:26
Based on Conky lua: http://gnome-look.org/content/show.php/Conky+lua?content=139024 (http://gnome-look.org/content/show.php/Conky+lua?content=139024)

I just edited the color for manjaro and the rings for my system.

(http://imgur.com/LuwpYcH.jpg)

conkyrc
Code: [Select]
# Conky settings #
background no
update_interval 1

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
#imlib_cache_size 0

temperature_unit celsius

# Window specifications #

own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

border_inner_margin 0
border_outer_margin 0

minimum_size 200 250
maximum_width 200

alignment tr
gap_x 5
gap_y 15

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5

uppercase no

temperature_unit celsius


default_color FFFFFF

# Lua Load  #
lua_load ~/.lua/scripts/clock_rings.lua
lua_draw_hook_pre clock_rings

TEXT
${voffset 8}${color 35bf5c}${font caviar dreams:size=16}${time %A}${font}${voffset -8}${alignr 50}${color FFFFFF}${font caviar dreams:size=38}${time %e}${font}
${color FFFFFF}${voffset -30}${color FFFFFF}${font caviar dreams:size=18}${time %b}${font}${voffset -3} ${color FFFFFF}${font caviar dreams:size=20}${time %Y}${font}${color 35bf5c}${hr}
${voffset 140}${font caviar dreams:size=10}${alignr}KIEL${font}
${font caviar dreams:size=12}${color FFFFFF}${alignr}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ EDHK temperature temperature 30} °C${font}
${image ~/.conky/manjaro_logo.png -p 65,110 -s 65x75}

${color FFFFFF}${goto 25}${voffset 36}${cpu cpu0}%
${color 35bf5c}${goto 25}CPU
${color FFFFFF}${goto 45}${voffset 23}${memperc}%
${color 35bf5c}${goto 45}RAM
${color FFFFFF}${goto 70}${voffset 23}${swapperc}%
${color 35bf5c}${goto 70}Swap
${color FFFFFF}${goto 100}${voffset 23}${fs_used_perc /}%
${color FFFFFF}${goto 100}${fs_used_perc /hddstorage}%
${color 35bf5c}${goto 100}Disk
${color FFFFFF}${goto 125}${voffset 15}${downspeed wlp8s0}
${color FFFFFF}${goto 125}${upspeed wlp8s0}
${color 35bf5c}${goto 125}Net



${color FFFFFF}${goto 15}${font caviar dreams:size=8}Uptime: ${uptime_short}
${color FFFFFF}${goto 15}${font caviar dreams:size=8}Processes: ${processes}
${color FFFFFF}${goto 15}${font caviar dreams:size=8}Running: ${running_processes}


${color 35bf5c}${font caviar dreams:size=8}${alignr}${nodename}
${color 35bf5c}${font caviar dreams:size=8}${alignr}${pre_exec cat /etc/issue.net}  $machine
${color 35bf5c}${font caviar dreams:size=8}${alignr}Kernel: ${kernel}

clock_rings.lua
Code: [Select]
--[[
Clock Rings by Linux Mint (2011) reEdited by despot77

This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script. This script is based off a combination of my clock.lua script and my rings.lua script.

IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num>5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num>3; conversely if you update Conky every 0.5s, you should use update_num>10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.

To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
    lua_load ~/scripts/clock_rings.lua
    lua_draw_hook_pre clock_rings
   
Changelog:
+ v1.0 -- Original release (30.09.2009)
   v1.1p -- Jpope edit londonali1010 (05.10.2009)
*v Mint-lua -- reEdit despot77 (18.02.2011)
]]

settings_table = {
    {
        -- Edit this table to customise your rings.
        -- You can create more rings simply by adding more elements to settings_table.
        -- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
        name='time',
        -- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
        arg='%I.%M',
        -- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
        max=12,
        -- "bg_colour" is the colour of the base ring.
        bg_colour=0xffffff,
        -- "bg_alpha" is the alpha value of the base ring.
        bg_alpha=0.1,
        -- "fg_colour" is the colour of the indicator part of the ring.
        fg_colour=0x339900,
        -- "fg_alpha" is the alpha value of the indicator part of the ring.
        fg_alpha=0.2,
        -- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
        x=100, y=150,
        -- "radius" is the radius of the ring.
        radius=50,
        -- "thickness" is the thickness of the ring, centred around the radius.
        thickness=5,
        -- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
        start_angle=0,
        -- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger than start_angle.
        end_angle=360
    },
    {
        name='time',
        arg='%M.%S',
        max=60,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x35bf5c,
        fg_alpha=0.4,
        x=100, y=150,
        radius=56,
        thickness=5,
        start_angle=0,
        end_angle=360
    },
    {
        name='time',
        arg='%S',
        max=60,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x35bf5c,
        fg_alpha=0.6,
        x=100, y=150,
        radius=62,
        thickness=5,
        start_angle=0,
        end_angle=360
    },
    {
        name='time',
        arg='%d',
        max=31,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x35bf5c,
        fg_alpha=0.8,
        x=100, y=150,
        radius=70,
        thickness=5,
        start_angle=-90,
        end_angle=90
    },
    {
        name='time',
        arg='%m',
        max=12,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x35bf5c,
        fg_alpha=1,
        x=100, y=150,
        radius=76,
        thickness=5,
        start_angle=-90,
        end_angle=90
    },
    {
        name='cpu',
        arg='cpu1',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x35bf5c,
        fg_alpha=0.8,
        x=50, y=300,
        radius=25,
        thickness=3,
        start_angle=-90,
        end_angle=180
    },
    {
        name='cpu',
        arg='cpu2',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x35bf5c,
        fg_alpha=0.5,
        x=50, y=300,
        radius=21,
        thickness=3,
        start_angle=-90,
        end_angle=180
    },
    {
        name='cpu',
        arg='cpu3',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x35bf5c,
        fg_alpha=0.8,
        x=50, y=300,
        radius=17,
        thickness=3,
        start_angle=-90,
        end_angle=180
    },
    {
        name='cpu',
        arg='cpu4',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x35bf5c,
        fg_alpha=0.5,
        x=50, y=300,
        radius=13,
        thickness=3,
        start_angle=-90,
        end_angle=180
    },
    {
        name='memperc',
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x35bf5c,
        fg_alpha=0.8,
        x=75, y=350,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },
    {
        name='swapperc',
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x35bf5c,
        fg_alpha=0.8,
        x=100, y=400,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },
    {
        name='fs_used_perc',
        arg='/',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x35bf5c,
        fg_alpha=0.8,
        x=125, y=450,
        radius=25,
        thickness=4,
        start_angle=-90,
        end_angle=180
    },
    {
        name='fs_used_perc',
        arg='/hddstorage',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x35bf5c,
        fg_alpha=0.8,
        x=125, y=450,
        radius=20,
        thickness=4,
        start_angle=-90,
        end_angle=180
    },
        {
        name='downspeedf',
        arg='wlp8s0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x35bf5c,
        fg_alpha=0.8,
        x=150, y=500,
        radius=25,
        thickness=4,
        start_angle=-90,
        end_angle=180
    },
        {
        name='upspeedf',
        arg='wlp8s0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xbf355c,
        fg_alpha=0.8,
        x=150, y=500,
        radius=20,
        thickness=4,
        start_angle=-90,
        end_angle=180
    },
}

-- Use these settings to define the origin and extent of your clock.

clock_r=65

-- "clock_x" and "clock_y" are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.

clock_x=100
clock_y=150

show_seconds=true

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)
    local w,h=conky_window.width,conky_window.height
   
    local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
    local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

    local angle_0=sa*(2*math.pi/360)-math.pi/2
    local angle_f=ea*(2*math.pi/360)-math.pi/2
    local t_arc=t*(angle_f-angle_0)

    -- Draw background ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
    cairo_set_line_width(cr,ring_w)
    cairo_stroke(cr)
   
    -- Draw indicator ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    cairo_stroke(cr)       
end

function draw_clock_hands(cr,xc,yc)
    local secs,mins,hours,secs_arc,mins_arc,hours_arc
    local xh,yh,xm,ym,xs,ys
   
    secs=os.date("%S")   
    mins=os.date("%M")
    hours=os.date("%I")
       
    secs_arc=(2*math.pi/60)*secs
    mins_arc=(2*math.pi/60)*mins+secs_arc/60
    hours_arc=(2*math.pi/12)*hours+mins_arc/12
       
    -- Draw hour hand
   
    xh=xc+0.7*clock_r*math.sin(hours_arc)
    yh=yc-0.7*clock_r*math.cos(hours_arc)
    cairo_move_to(cr,xc,yc)
    cairo_line_to(cr,xh,yh)
   
    cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
    cairo_set_line_width(cr,5)
    cairo_set_source_rgba(cr,1.0,1.0,1.0,1.0)
    cairo_stroke(cr)
   
    -- Draw minute hand
   
    xm=xc+clock_r*math.sin(mins_arc)
    ym=yc-clock_r*math.cos(mins_arc)
    cairo_move_to(cr,xc,yc)
    cairo_line_to(cr,xm,ym)
   
    cairo_set_line_width(cr,3)
    cairo_stroke(cr)
   
    -- Draw seconds hand
   
    if show_seconds then
        xs=xc+clock_r*math.sin(secs_arc)
        ys=yc-clock_r*math.cos(secs_arc)
        cairo_move_to(cr,xc,yc)
        cairo_line_to(cr,xs,ys)
   
        cairo_set_line_width(cr,1)
        cairo_stroke(cr)
    end
end

function conky_clock_rings()
    local function setup_rings(cr,pt)
        local str=''
        local value=0
       
        str=string.format('${%s %s}',pt['name'],pt['arg'])
        str=conky_parse(str)
       
        value=tonumber(str)
        pct=value/pt['max']
       
        draw_ring(cr,pct,pt)
    end
   
    -- Check that Conky has been running for at least 5s

    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)
   
    local cr=cairo_create(cs)   
   
    local updates=conky_parse('${updates}')
    update_num=tonumber(updates)
   
    if update_num>5 then
        for i in pairs(settings_table) do
            setup_rings(cr,settings_table[i])
        end
    end
   
    draw_clock_hands(cr,clock_x,clock_y)
end

cheers FluX
Title: Re: Conky thread, show your work!
Post by: natanvarga on 06. March 2014, 17:53:21
https://bbs.archlinux.org/viewtopic.php?id=57291
Found this thread a couple days ago. I think it's quite neat how conky displays the number of updates. It replaces octopi-notifier for me perfectly.

(http://en.zimagez.com/miniature/screenshotfrom2014-03-06043144.png) (http://en.zimagez.com/zimage/screenshotfrom2014-03-06043144.php)
Title: Re: Conky thread, show your work!
Post by: Ayceman on 06. March 2014, 20:02:24
Settled with a minimalistic conky:

(http://imageshack.com/a/img534/4143/jne6.png)

The wallpaper is a huge color mosaic of Phoebe that is centred (look around the media archive of the Planetary Society).
Title: Re: Conky thread, show your work!
Post by: apudmahfud on 07. March 2014, 19:02:22
Thanks LCJr for your conky .
i moded to be like this
http://pastebin.com/gjSbbQU2 (http://pastebin.com/gjSbbQU2)
http://pbrd.co/1k0fIVf (http://pbrd.co/1k0fIVf)
Title: Re: Conky thread, show your work!
Post by: trzalica on 08. March 2014, 17:18:06
Just one question - which is the easiest way to run 2 conkys at the same time?
Title: Re: Conky thread, show your work!
Post by: natanvarga on 08. March 2014, 17:22:04
Just one question - which is the easiest way to run 2 conkys at the same time?
I run a this script named conky_start
Code: [Select]
#!/bin/bash

conky -c ~/.conky2/conky_stuff &
conky -c ~/.conky2/conky_graph &
conky -c ~/.conky2/conky_clem &
conky -c ~/.conky2/conky_time &
and add it to the openbox autostart file.
This way I run 4 conkies at the same time.
Title: Re: Conky thread, show your work!
Post by: systemm0 on 13. March 2014, 08:11:12
I really liked KuroiLight's conky, but I added on to it.

changed the colors, removed the nvidia, since I have ati.

the battery and the temperature bars change color depending on temp or charge

added internal ip and external ip

however the internal is only for wifi at the moment, I had issues trying to do an if statement to switch when need be.

statement is still in there, however if the wifi is off it still does not display internal ip.

added a few other tweaks as well.

the weather is http://pabloferz.deviantart.com/art/Flat-Weather-for-Conky-208130863 (http://pabloferz.deviantart.com/art/Flat-Weather-for-Conky-208130863)
(http://s29.postimg.org/m0oiuhl4z/Screenshot_from_2014_03_13_02_53_23.jpg) (http://postimg.org/image/m0oiuhl4z/)


I attached my .conky folder, make sure you remember that when you extract and place.


Alternate Download location ----> http://l.bitcasa.com/fezCCxNH (http://l.bitcasa.com/fezCCxNH)
Title: Re: Conky thread, show your work!
Post by: rudylorren on 13. March 2014, 15:20:35

this whole thing is awesome :)
Title: Re: Conky thread, show your work!
Post by: systemm0 on 19. March 2014, 06:23:53
this whole thing is awesome :)

Thanks, put a lot of work into it. however I will not take full credit.

the base conky like I had stated came from KuroiLight, earlier in this thread.

the lua scripts for temperature color change I found deep in the internets.
then took those scripts and modified it to work with battery charge.

I thought the original color scheme was not as "Manjaro" as I liked, so I added some "Manjaro Green"

in fact, come to think of it, I have a lot of custom "Manjaro" art... hmmmm maybe I should share... hmm
Title: Re: Conky thread, show your work!
Post by: Lullu on 20. March 2014, 14:42:46

http://imgur.com/IU3oU1p
(http://i.imgur.com/IU3oU1p.png)

Conky right:
Code: [Select]
#!/usr/bin/conky -d -c
## .conkyrc configuration
alignment top_right
background yes
border_width 5
color0 555555 #
color1 FCAF3E # zolty
color2 35bf5c
cpu_avg_samples 2
default_color e1e1e1 # szary a7a7a7
default_outline_color 000000 # Black
default_shade_color 000000 # Black
double_buffer yes
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
gap_x 10
gap_y 15
max_specials 1024
max_user_text 10000
maximum_width 400
minimum_size 1033
net_avg_samples 2
no_buffers yes
override_utf8_locale yes
own_window yes
own_window_colour 000000 # Black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type override ## normal
pad_percents 2 # to co nizej, miejsc po przecinku
short_units no # krotka wersja podawania wielkosci dyskow np. 612.21M/3.80G
stippled_borders 3
text_buffer_size 8000
total_run_times 0
update_interval 1.0
uppercase no
use_spacer right
use_xft yes
xftalpha 0.75
xftfont sans:size=12

#lua_load /home/didisoft/.conky/lua.lua

# ${diskiograph /dev/sda 15,180 a7a7a7 a7a7a7} # wskaznik pracy dysku
# ${image /home/didisoft/.conky/didisoft.jpg -p 0,80 -s 26x28} # obrazki w conky


TEXT
${color2}${goto 110}${font DejaVu Sans Mono:size=56}${time %H}${font DejaVu Sans Mono:size=30}${voffset -25}'${time %M}${font DejaVu Sans Mono:size=15}${voffset -12}${time %S}
${color2}${goto 200}${voffset 13}${font :size=15}${time %A}
${color2}${goto 130}${voffset 1}${font :size=15}${time %d %B %Y}

${voffset -30}${color2}${font led:size=16}SYSTEM${font}$hr
${color}Distro: ${alignr}Manjaro 0.8.9
${color}Architecture:${alignr}$machine
${color}Kernel: ${alignr}$kernel
${color}Processes: ${alignr}$running_processes|  $processes
${color}Uptime:${alignr}${uptime}
$alignc${color}Battery is ${battery BAT0}.
${if_match ${battery_percent BAT0} < 100}${color2}${endif}${if_match ${battery_percent BAT0} < 70}${color lightgreen}${endif}${if_match ${battery_percent BAT0} < 50}${color yellow}${endif}${if_match ${battery_percent BAT0} < 35}${color orange}${endif}${if_match ${battery_percent BAT0} < 10}${color red}${blink BATTERY WARNING ${battery_percent BAT0}%}${endif}${battery_bar 4 BAT0}
${voffset -4}$alignc${color}${battery_time BAT0} remaining.

${voffset -25}${color2}${font led:size=16}CPU${font}$hr
${color}Intel Core i7-3517U${alignr}${color}Average: ${cpu cpu0}%
${cpubar}
Core 1 ${goto 150}${cpu cpu1}% / ${freq 1} MHz ${alignr}${exec sensors | grep "Core 0" | cut --bytes=14-21}
${color}${cpugraph cpu1 FFFFFF CC0000 -t}
${voffset -5}${color}Core 2 ${goto 150}${cpu cpu2}% / ${freq 2} MHz${alignr}${exec sensors | grep "Core 1" | cut --bytes=14-21}
${color}${cpugraph cpu2 FFFFFF CC0000 -t}

${voffset -20}${color}${font}NAME ${goto 177}PID${goto 270}CPU% ${alignr}MEM%
${color}${font :size=10}${goto 9}${top name 1}${goto 170}${top pid 1}${goto 271}${top cpu 1}${goto 363}${top mem 1}
${color}${font :size=10}${goto 9}${top name 2}${goto 170}${top pid 2}${goto 271}${top cpu 2}${goto 363}${top mem 2}
${color}${font :size=10}${goto 9}${top name 3}${goto 170}${top pid 3}${goto 271}${top cpu 3}${goto 363}${top mem 3}
${color}${font :size=10}${goto 9}${top name 4}${goto 170}${top pid 4}${goto 271}${top cpu 4}${goto 363}${top mem 4}
${color}${font :size=10}${goto 9}${top name 5}${goto 170}${top pid 5}${goto 271}${top cpu 5}${goto 363}${top mem 5}
${color}${font :size=10}${goto 9}${top name 6}${goto 170}${top pid 6}${goto 271}${top cpu 6}${goto 363}${top mem 6}
${color}${font :size=10}${goto 9}${top name 7}${goto 170}${top pid 7}${goto 271}${top cpu 7}${goto 363}${top mem 7}
${color}${font :size=10}${goto 9}${top name 8}${goto 170}${top pid 7}${goto 271}${top cpu 8}${goto 363}${top mem 8}
${color}${font :size=10}${goto 9}${top name 9}${goto 170}${top pid 7}${goto 271}${top cpu 9}${goto 363}${top mem 9}

${voffset -7}${color2}${font led:size=16}MEMORY${font}$hr
${color}${font :size=12}Ram${goto 152}${mem} / ${memmax}${alignr}${memperc}%
${color}$membar
${color}${font :size=12}Swap${goto 167}${swap} / ${swapmax}${alignr}${swapperc}%
${color}$swapbar

${voffset -20}${color2}${font led:size=16}HDD${font}$hr
${color}${font :size=12}/${goto 100}${fs_type /}${goto 200}${fs_used /} / ${fs_size /} $alignr ${fs_free_perc /}%
${color}${fs_bar /}
${color}${font :size=12}/home${goto 100}${fs_type /home}${goto 200}${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
${color}${fs_bar /home}
${color}${font :size=12}/tmp${goto 100}${fs_type /tmp}${goto 200}${fs_used /tmp} / ${fs_size /tmp} $alignr ${fs_free_perc /tmp}%
${color}${fs_bar /tmp}

${voffset -15}${color2}${font led:size=16}WIFI${font}$hr
${color}Local IP: ${color}${addr wlp3s0} ${alignr}${color}Public IP: ${color}${execi 3600 curl icanhazip.com}
${voffset 3}${color}Down: ${font}${color}${downspeed wlp3s0}/s${color}${alignr}Total: ${color}${totaldown wlp3s0}
${color}${downspeedgraph wlp3s0 20,400 fef7b2 ff0000}
${color}Up: ${font}${color}${upspeed wlp3s0}/s${color}${alignr}Total: ${color}${totalup wlp3s0}
${color}${upspeedgraph wlp3s0 20,400 fef7b2 00ff00}

${voffset -25}${color}${font}${alignc}SSID: ${wireless_essid wlp3s0}

Conky log:
Code: [Select]
#!/usr/bin/conky -d -c
## .conkyrc configuration
alignment top_left
background yes
border_width 5
color0 555555 #
color1 FCAF3E # zolty
color2 35bf5c
default_color e1e1e1 # szary a7a7a7
default_outline_color 000000 # Black
default_shade_color 000000 # Black
double_buffer yes
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
gap_x 10
gap_y 15
max_specials 1024
max_user_text 10000
maximum_width 1400
minimum_size 1033
net_avg_samples 2
no_buffers yes
override_utf8_locale yes
own_window yes
own_window_colour 000000 # Black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type override ## normal
pad_percents 2 # to co nizej, miejsc po przecinku
short_units no # krotka wersja podawania wielkosci dyskow np. 612.21M/3.80G
stippled_borders 3
text_buffer_size 8000
total_run_times 0
update_interval 1.0
uppercase no
use_spacer right
use_xft yes
xftalpha 0.75
xftfont sans:size=9

TEXT
${color2}${font led:size=12}/var/log/everything.log:
${color}${font}${exec tail -n10 /var/log/everything.log}

${color2}${font led:size=12}dmesg:
${color}${font}${exec dmesg | tail -n8}

${color2}${font led:size=12}/var/log/pacman.log:
${color}${font}${exec tail -n10 /var/log/pacman.log}

${color2}${font led:size=12}/var/log/daemon.log:
${color}${font}${exec tail -n10 /var/log/daemon.log}

${color red}${font led:size=12}/var/log/errors.log:
${color}${font}${exec tail -n10 /var/log/errors.log}

${color2}${font led:size=12}/var/log/auth.log:
${color}${font}${exec tail -n10 /var/log/auth.log}

To run conky log config without sudo, simply use this command:
Code: [Select]
sudo usermod -aG log username
Title: Re: Conky thread, show your work!
Post by: Sublime2k on 24. March 2014, 04:00:14
...
Title: Re: Conky thread, show your work!
Post by: Dobbie03 on 24. March 2014, 06:31:03
I really liked KuroiLight's conky, but I added on to it.

changed the colors, removed the nvidia, since I have ati.

the battery and the temperature bars change color depending on temp or charge

added internal ip and external ip

however the internal is only for wifi at the moment, I had issues trying to do an if statement to switch when need be.

statement is still in there, however if the wifi is off it still does not display internal ip.

added a few other tweaks as well.

the weather is http://pabloferz.deviantart.com/art/Flat-Weather-for-Conky-208130863 (http://pabloferz.deviantart.com/art/Flat-Weather-for-Conky-208130863)
(http://s29.postimg.org/m0oiuhl4z/Screenshot_from_2014_03_13_02_53_23.jpg) (http://postimg.org/image/m0oiuhl4z/)


I attached my .conky folder, make sure you remember that when you extract and place.

That looks incredible.
Title: Re: Conky thread, show your work!
Post by: Sublime2k on 25. March 2014, 09:43:59
Here's another one I made yesterday, inspired by misomosi's config.

(http://i.imgur.com/IQ7fA8C.png)

Code: [Select]
# Use Xft?
use_xft yes
xftfont AvantGarde:size=12
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

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

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type override
own_window_class conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
background no

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

# Minimum size of text area
minimum_size 300 300
#maximum_width 200

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_inner_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color black
own_window_colour white
color1 white

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


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

# 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 none

TEXT

${font AvantGarde:size=108}${time %H:%M}${font}
${offset 400}${voffset -120}${color 1AA3C1}${font AvantGarde::size=36}${time %d}${color} ${font AvantGarde::size=18}${time %B} ${color 1AA3C1}${time %Y}${color}
${offset 400}${voffset 10}${font AvantGarde:size=36}${time %A}${font}

${offset 35}CPU${offset 100}RAM${offset 95}SWAP${offset 60}KERNEL
${cpubar cpu1 8,100}${offset 35}${membar 8,100}${offset 35}${swapbar 8,100}${offset 33}${color 1AA3C1}${kernel}${color}
${offset 30}ROOT${offset 88}HOME${offset 90}CPU${offset 67}UPTIME
${fs_bar 8,100 /}${offset 35}${fs_bar 8,100 /home}${offset 62}TEMP.${offset 64}${color 1AA3C1}${uptime}${color}
${offset 20}${color 1AA3C1}${fs_used /}${color}${offset 85}${color 1AA3C1}${fs_used /home}${color}${offset 85}${color 1AA3C1}${hwmon temp 1}°C${color}
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 25. March 2014, 12:41:53
Here's another one I made yesterday, inspired by misomosi's config.
this conky fits really well to your wallpaper and overall simple but elegant desktop. well done!
Title: Re: Conky thread, show your work!
Post by: Sublime2k on 28. March 2014, 17:26:05
this conky fits really well to your wallpaper and overall simple but elegant desktop. well done!
That's what I was going for. :) Cheers.
Title: Re: Conky thread, show your work!
Post by: poker98face on 03. April 2014, 00:44:05
(http://i.imgur.com/qPwtXXR.png)

As you can see, config file is a mess so sorry about that  ::) I need to clean it... someday  ;)
Code: [Select]
use_xft yes
xftalpha 0.8
text_buffer_size 2048

# Czas aktualizacji w sekundach
update_interval 1

total_run_times 0

# Opcje okna
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
own_window_argb_value 0

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

# Minimum size of text area
minimum_size 200 0

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color white
own_window_colour white

# Text alignment, other possible values are commented
alignment bottom_left

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

# 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 none

default_color C12526

TEXT
${font KGALittleSwag:size=100}${time %H:%M %p}
${font KGALittleSwag:size=50}${time %A}
${font KGALittleSwag:size=50}${time %d %B}
${color #09090A}${font KGOneMoreNight:size=17}Kernel: ${kernel}
CPU: ${cpu}%
RAM: $mem / $memmax
Uptime: ${uptime}
Root:${fs_free /root}/${fs_size /root}
Title: Re: Conky thread, show your work!
Post by: schpankme on 05. April 2014, 20:28:00
What's the secret to getting the Week Day to line-up properly, and be highlighted?
Code: [Select]
${color gray}${font Neuropolitical:size=11:bold}${execpi 3600 DJS=`date +%_d`; cal -m | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color green}'"$DJS"'${color gray}'" "/}${font}
Title: Re: Conky thread, show your work!
Post by: LCJr on 05. April 2014, 20:53:34
What's the secret to getting the Week Day to line-up properly, and be highlighted?

See if this helps, option #2:  http://conky.pitstop.free.fr/wiki/index.php5?title=Calendar_%28en%29
Title: Re: Conky thread, show your work!
Post by: schpankme on 05. April 2014, 21:06:15
... See if this helps, option #2

I'm interested in fixing the one-liner.

Option 3 shown has the same issues as my 'current issue'- wrong spaced days of the week.
Code: [Select]
${color 888888}${font LCDMono:bold:size=12}${execpi 60 DJS=`date +%_d`; cal | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color2}'"$DJS"'${color 888888}'" "/}
Here's my current issue:
Code: [Select]
${color gray}${font Neuropolitical:size=11:bold}${execpi 3600 DJS=`date +%_d`; cal -m | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color green}'"$DJS"'${color gray}'" "/}${font}
Title: Re: Conky thread, show your work!
Post by: rinias on 08. April 2014, 15:37:10
Where is that?

This reminds me of Lake Geneva.
Title: Re: Conky thread, show your work!
Post by: schpankme on 08. April 2014, 16:53:53

... wrongly spaced 'days of the week' in Calendar
... I'm interested in fixing the one-liner.

The solution is to use a Mono Spaced font for the Calendar.
Code: [Select]
${color gray}${font Andale Mono:size=11:bold}${execpi 3600 DJS=`date +%_d` ; cal -m | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color green}'"$DJS"'${color gray}'" "/}${font}
Title: Re: Conky thread, show your work!
Post by: poker98face on 08. April 2014, 16:57:14
All done, mess cleaned :D
Code: [Select]
# Conky settings #
update_interval 1
double_buffer yes
no_buffers yes

# Window options #
# Main #
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Options needed by Kwin (KDE)
own_window_argb_visual yes
own_window_argb_value 0
# Conky position #
alignment bottom_left
gap_x 10
gap_y 50
# Minimum size #
minimum_size 200 0

# Text settings #
use_xft yes
xftalpha 0.8
override_utf8_locale yes
text_buffer_size 2048

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no

# Default color of Date & Time, change if you don't like red
default_color C12526

TEXT
# Date & Time
${font KGALittleSwag:size=100}${time %H:%M %p}
${font KGALittleSwag:size=50}${time %A}
${font KGALittleSwag:size=50}${time %d %B}
# System info
${color #09090A}${font KGOneMoreNight:size=17}Kernel: ${kernel}
CPU: ${cpu}%
RAM: $mem / $memmax
Uptime: ${uptime}
Root:${fs_free /root}/${fs_size /root}
Title: Re: Conky thread, show your work!
Post by: mnjahhh on 12. April 2014, 14:31:57
(http://i.imgur.com/p7E7GOZ.jpg) (http://imgur.com/p7E7GOZ)

Question... is there monospace font what looks similar to handwriting? Need it for calendar...i tested some fixed-width fonts but all mess up spacing...tried to edit some handwritten fonts with FontForge, but same spacing problem..( first time using this program so probably my fault:D )
Title: Re: Conky thread, show your work!
Post by: schpankme on 12. April 2014, 16:42:50

... is there monospace font what looks similar to handwriting?

monotype Corsiva font
Title: Re: Conky thread, show your work!
Post by: mnjahhh on 13. April 2014, 11:44:10
monotype Corsiva font
thanks ,but same spacing problem with this font to.
Title: Re: Conky thread, show your work!
Post by: schpankme on 13. April 2014, 17:07:19
... same spacing problem with this font

"hand-picked free monotype corsiva fonts":
http://font.downloadatoz.com/free,1153,free-monotype-corsiva-fonts.html
Title: Re: Conky thread, show your work!
Post by: natanvarga on 14. April 2014, 10:40:53
Changed margins so that panels are always visible. System tray is xfce4-panel. Might start experimenting with dzen once I have time for that.

(http://en.zimagez.com/miniature/screenshotfrom2014-04-13153032.png) (http://en.zimagez.com/zimage/screenshotfrom2014-04-13153032.php)

~/.conky2/conky_graph
Code: [Select]
# Manjaro Openbox-Lite Conky Configuration Script
#
# Written by Carl Duff of the Manjaro Team
# Email: carl[at]manjaro[dot]org - Website: www.manjaro.org - Forum: http://forum.manjaro.org/
#
# Feel free to alter, distribute, etc., this config file as you wish.
#

#  Basic Settings

background yes
use_xft yes
xftfont raleway:size=11
xftalpha 1
update_interval 0.1
total_run_times 0
own_window yes
own_window_transparent no
own_window_argb_visual yes
own_window_colour AAAAAA
own_window_argb_value 100
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 590 1
maximum_width 590
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color FFFFFF
default_shade_color FFFFFF
default_outline_color FFFFFF
alignment tl
gap_x 0
gap_y -3
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

# Fancy Conky display

TEXT
${voffset 3}${color 000000}${font monospace:size=9}\
 ${if_match ${desktop}==1} ${else}1${endif}${offset 10}${if_match ${desktop}==2} ${else}2${endif}${offset 10}${if_match ${desktop}==3} ${else}3${endif}${offset 10}${if_match ${desktop}==4} ${else}4${endif}\
${color 01A1A1} · ${color 000000}\
${texeci 0.1 xdotool getactivewindow getwindowname}${voffset -4}

~/.conky2/conky_graph2
Code: [Select]
# Manjaro Openbox-Lite Conky Configuration Script
#
# Written by Carl Duff of the Manjaro Team
# Email: carl[at]manjaro[dot]org - Website: www.manjaro.org - Forum: http://forum.manjaro.org/
#
# Feel free to alter, distribute, etc., this config file as you wish.
#

#  Basic Settings

background yes
use_xft yes
xftfont raleway:size=11
xftalpha 1
update_interval 0.1
total_run_times 0
own_window yes
own_window_transparent no
own_window_argb_visual yes
own_window_colour AAAAAA
own_window_argb_value 100
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 422 1
maximum_width 422
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color FFFFFF
default_shade_color FFFFFF
default_outline_color FFFFFF
alignment tl
gap_x 600
gap_y -3
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

# Fancy Conky display

TEXT
${voffset 3}${color 000000}${font monospace:size=9}\
$alignr${if_mpd_playing}\
${color 01A1A1}· ${color 000000}\
$mpd_artist - $mpd_title${endif}\
${voffset -4}

~/.conky2/conky_graph3
Code: [Select]
# Manjaro Openbox-Lite Conky Configuration Script
#
# Written by Carl Duff of the Manjaro Team
# Email: carl[at]manjaro[dot]org - Website: www.manjaro.org - Forum: http://forum.manjaro.org/
#
# Feel free to alter, distribute, etc., this config file as you wish.
#

#  Basic Settings

background yes
use_xft yes
xftfont raleway:size=11
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent no
own_window_argb_visual yes
own_window_colour AAAAAA
own_window_argb_value 100
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 334 1
maximum_width 334
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color FFFFFF
default_shade_color FFFFFF
default_outline_color FFFFFF
alignment tr
gap_x 0
gap_y -3
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

# Fancy Conky display

TEXT
${voffset 3}${color 000000}${font monospace:size=9}${execpi 120 ~/.config/executables/random_wallpaper}\
${color 01A1A1}· ${color 000000}\
$alignr${color 01A1A1}· ${color 000000}\
${time %a %d/%m/%y}\
${color 01A1A1} · ${color 000000}\
${time %H:%M} ${voffset -4}

~/.conky2/conky_graph4
Code: [Select]
# Manjaro Openbox-Lite Conky Configuration Script
#
# Written by Carl Duff of the Manjaro Team
# Email: carl[at]manjaro[dot]org - Website: www.manjaro.org - Forum: http://forum.manjaro.org/
#
# Feel free to alter, distribute, etc., this config file as you wish.
#

#  Basic Settings

background yes
use_xft yes
xftfont raleway:size=11
xftalpha 1
update_interval 0.5
total_run_times 0
own_window yes
own_window_transparent no
own_window_argb_visual yes
own_window_colour AAAAAA
own_window_argb_value 100
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 1361 1
maximum_width 1361
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color FFFFFF
default_shade_color FFFFFF
default_outline_color FFFFFF
alignment bl
gap_x 0
gap_y -3
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

# Fancy Conky display

TEXT
${voffset -5}${color 000000}${font monospace:size=9}\
 ${execpi 120 lsb_release -sdrc || cat /etc/*release}\
${color 01A1A1} · ${color 000000}\
${execpi 600 ~/.conky2/updates}\
${color 01A1A1} · ${color 000000}\
Uptime $uptime\
${color 01A1A1} · ${color 000000}\
Net $alignr${downspeed wlp3s0}\
${color 01A1A1} · ${color 000000}\
Load ${loadavg 1}\
${color 01A1A1} · ${color 000000}\
Wifi ${wireless_link_qual_perc wlp3s0}%\
${color 01A1A1} · ${color 000000}\
CPU $cpu%\
${color 01A1A1} · ${color 000000}\
RAM $memperc%\
${color 01A1A1} · ${color 000000}\
SSD $fs_free_perc%\
${color 01A1A1} · ${color 000000}\
Temp $acpitemp°C\
${color 01A1A1} · ${color 000000}\
Vol ${if_mpd_playing}${mpd_vol}${else}${mixer Vol}${endif}%\
${color 01A1A1} · ${color 000000}\
Bat ${battery_percent BATT}%\
${color 01A1A1} · ${color 000000}\
$sysname $kernel-$machine${voffset 2}

~/.config/executables/random_wallpaper
Code: [Select]
#!/bin/bash
## Set the WALLPAPERS variable to the root folder of your images (like the Pictures folder for instance).  This script will automatically look in all subfolders.

WALLPAPERS="/home/giraffe/Pictures/WPs"

## Reformats the path for use with sed

WALLMOD=$(echo $WALLPAPERS | sed -e 's/\//\\\//g')

## Finds all jpg and png files in the current folder and subfolders.  You can add more file types by copying one of the statements below and editing the part after -name.

find $WALLPAPERS -type f -name "*.jpg" | sed -e "s/$WALLMOD//" | sed -e 's/ /\\ /g'> $WALLPAPERS/files.txt
find $WALLPAPERS -type f -name "*.png" | sed -e "s/$WALLMOD//" | sed -e 's/ /\\ /g'>> $WALLPAPERS/files.txt

## ----------------------------------------------------------------- ##

## You should not need to modify anything after this point

RANGE=`wc -l $WALLPAPERS/files.txt | sed -e "s/$WALLMOD\/files.txt//"`
let "range = $RANGE"
let "number = $RANDOM"
let LASTNUM="`cat $WALLPAPERS/.last` + $number"
let "number = $LASTNUM % $RANGE"
echo $number > $WALLPAPERS/.last
FILE=$(sed -n "$number p" $WALLPAPERS/files.txt)
nitrogen --set-zoom-fill --save $WALLPAPERS/$FILE

EDIT: I forgot to include the updates script.

~/.conky2/updates
Code: [Select]
#!/usr/bin/perl
## script by Xyne
## http://bbs.archlinux.org/viewtopic.php?id=57291
use strict;
use warnings;
my $n = (`yaourt -Qu | wc -l`);
chomp ($n);
if ($n == 0)
{
     print "Up to date"
}
elsif($n == 1)
{
     print " 1 Update "
}
else
{
print "$n Updates"
}
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 14. April 2014, 13:59:40
i saw you have the number of updates in your conky. i found this older post of you:
https://bbs.archlinux.org/viewtopic.php?id=57291
Found this thread a couple days ago. I think it's quite neat how conky displays the number of updates. It replaces octopi-notifier for me perfectly.
thanks for inspiring me to include the number of available updates in my conky!


after reading what the links and a bit of tinkering i came up my own solution replacing pamac-tray :

1: use cron to synchronize pacman's and yaourt's package list:
Code: [Select]
cd /etc/cron.daily/
sudo gedit updatedb
(replace "gedit" with the name of your favorite text editor)

1.1: insert this line at the bottom:
Code: [Select]
exec yaourt -Sya

2: use this line in your .conkyrc file to get the number of available updates (from repositories and AUR):
Code: [Select]
${execi 3601 yaourt -Qu | wc -l }


additionally, i have put the code in 2. in an if statement. now, it only shows me, whether i have available updates (in red) or not (standard color).
if somebody is interested, here is the full part:
Code: [Select]
${if_match ${execi 3601 yaourt -Qu | wc -l }==0}${color1}Updated$else${color ff2300}Outdated$endif${color1}
color1 is my standard color. you can also write e.g. ${color white}. i removed the spaces between each command on purpose.
Title: Re: Conky thread, show your work!
Post by: peter_pan on 26. April 2014, 12:22:30
Anyone knows, why my CPU temperature shows an "A" in front of the °C?

Code: [Select]
  CPU1:     ${hwmon temp 1} °C ${alignr}${font OFL Sorts Mill Goudy:style=Bold}${cpu cpu1}%${font} ${alignr}${cpubar cpu1 8,100}
  CPU2:     ${hwmon temp 2} °C ${alignr}${font OFL Sorts Mill Goudy:style=Bold}${cpu cpu2}%${font} ${alignr}${cpubar cpu2 8,100}
Title: Re: Conky thread, show your work!
Post by: schpankme on 26. April 2014, 19:50:18
... why my CPU temperature shows an "A" in front of the °C?

Try Changing the font.
Title: Re: Conky thread, show your work!
Post by: rudylorren on 27. April 2014, 01:51:36
Anyone knows, why my CPU temperature shows an "A" in front of the °C?

Code: [Select]
  CPU1:     ${hwmon temp 1} °C ${alignr}${font OFL Sorts Mill Goudy:style=Bold}${cpu cpu1}%${font} ${alignr}${cpubar cpu1 8,100}
  CPU2:     ${hwmon temp 2} °C ${alignr}${font OFL Sorts Mill Goudy:style=Bold}${cpu cpu2}%${font} ${alignr}${cpubar cpu2 8,100}

add force_utf8 yes (or something similar)  above TEXT
Title: Re: Conky thread, show your work!
Post by: peter_pan on 27. April 2014, 12:05:36
Try Changing the font.

Sadly the same.

add force_utf8 yes (or something similar)  above TEXT

It helped. :) Thanks. :)
Title: Re: Conky thread, show your work!
Post by: KriZo on 01. May 2014, 23:25:54
Hey just learned about Conky and i really like it, i like tweaking my desktop to look how i want it :) I have an idea in my head, but don't know how to make it, or if it is possible but here goes. I would like to use a line to determine the level of my battery:

like this when the battery level is 50%
(http://imageshack.dk/?img=31398979704.png)

When it is 100%
(http://imageshack.dk/?img=261398979444.png)

Furthermore is there a conky for dummies that you can recommend, so far I been using http://conky.sourceforge.net/docs.html and playing around with various config files, to see how they are made.
Title: Re: Conky thread, show your work!
Post by: LCJr on 02. May 2014, 00:03:19
You're so close.  Try http://conky.sourceforge.net/documentation.html  Variables and Config sections.  Have a look at battery_bar in Variables.

Might also look at Conky PitStop for more ideas/examples:  http://conky.pitstop.free.fr/wiki/index.php5?title=Category:English
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 02. May 2014, 00:48:11
good tips from LCJr!


conky for dummies is definitely conky manager:
Code: [Select]
yaourt -S conky-manager
or search it in your package manager (in the AUR section).


if you want to have more, try to read a couple of pages of this thread.
look at screenshots of conkies (in this thread or search for ".conkyrc" on the internet) and the corresponding .conkyrc code. just copy and paste the stuff you want to have in your conky as well. if you are not sure how to do something, read the documentation!

happy customizing!
i certainly had (and sometimes still have) fun with my conky. after a while it feels like your baby...
Title: Re: Conky thread, show your work!
Post by: bobc on 02. May 2014, 07:07:55
Here is mine...   I'm now down to 62.3 mb in use with conky and a background image

Code: [Select]
# Update interval in seconds
update_interval 10

text_buffer_size 6000
max_specials 600

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

short_units yes

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
 font 8x12
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont gentium:size=10

# Create own window instead of using desktop (required in nautilus, pcmanfm and rox desktops)
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,sticky,skip_taskbar

# Text alpha when using Xft
xftalpha 0.8

#on_bottom no

# mail spool
#mail_spool $MAIL

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

# Minimum size of text area
minimum_size 425 800
maximum_width 525

# Gap between borders of screen and text
# x = distance from right edge
# y = distance from top edge
gap_x 28
gap_y 28

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
#border_margin 10

# border width
border_width 2

# color scheme
color0 black
color1 red
color2 green
color3 yellow
color4 blue
color5 magenta
color6 cyan
color7 white
# hot pink
#color8 #FF078B
# flourecent orange
#color9 #FF9C07

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

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

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

# Subtract file system buffers from used memory?
no_buffers yes

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

# boinc (seti) dir
# seti_dir /opt/seti

# Possible variables to be used:
#
#      Variable         Arguments                  Description               
#  acpiacadapter                     ACPI ac adapter state.                   
#  acpifan                           ACPI fan state                           
#  acpitemp                          ACPI temperature.                       
#  adt746xcpu                        CPU temperature from therm_adt746x       
#  adt746xfan                        Fan speed from therm_adt746x             
#  battery           (num)           Remaining capasity 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   
#                                    behaviour 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 favourite         
#                                    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       
#                                    decimal                                 
#  uptime                            Uptime                                   
#  uptime_short                      Uptime in a shorter format               
#
#  seti_prog                         Seti@home current progress
#  seti_progbar      (height)        Seti@home current progress bar
#  seti_credit                       Seti@hoome total user credit


## antiX additives examples. Add below Text##
##Battery examples##
##${color}battery: ${color}$acpiacadapter, ${battery_percent BAT1}%
##${color}battery:${color} ${battery}
#${color}ACPI Battery: ${color}$battery
#${battery_bar 11,0}
##Wireless example##
#${color}Wireless:
#${color}essid: ${wireless_essid wlan0}
#${color}IP:${color} ${addr wlan0}
#${color}speed: ${color} ${wireless_bitrate wlan0}
#${color}link strength: ${color} ${wireless_link_bar 7,50 wlan0}

# stuff after 'TEXT' will be formatted on screen

TEXT
${font gentium:size=14}${color #FF078B}${nodename}    ${font gentium:size=10}${color2}Desktop: ${color}$sysname $kernel
${color2}Cpu: ${color}${freq}mhz ${machine} - ${color}${cpu}%  ${color2}Up: ${color}$uptime  ${color2}Processes: ${color}$processes  ${color2}Running: ${color}$running_processes
    ${color3}${cpubar 11}
${color2}Ram : ${color}$mem${color}/${color}$memmax ${color}- ${color}$memperc%
    ${color3}${membar 11}
${color2}Swap: ${color}$swap${color}/${color}$swapmax ${color}- ${color}$swapperc%
    ${color3}${swapbar 11}
${color2}Root:${color} ${fs_free /} ${color}= ${fs_free_perc /}%
    ${color3}${fs_bar 11}
${color2}FOX News Headlines:
${color}${execi 120 conky-rss.sh http://feeds.foxnews.com/foxnews/latest 7 2}
${color2}NWS Current Weather and Forecast:
${font gentium:size=8}${color}${execi 1200 getweatherf.sh ORD}
${font gentium:size=10}${color2}Date and Time: ${color3}${time %a %d %b %k:%M}
${font LiberationMono-Regular:size=10}${color}${execi 1200 cal}
Title: Re: Conky thread, show your work!
Post by: KriZo on 04. May 2014, 21:15:51
New question, can anybody help me get this up and running? http://londonali1010.deviantart.com/art/quot-Rings-quot-Meters-for-Conky-141961783 in the script it says i have to add
Code: [Select]
lua_load ~/scripts/rings-v1.2.lua
lua_draw_hook_pre ring_stats
into my conky config before TEXT, i've done that but nothing shows up :(
Title: Re: Conky thread, show your work!
Post by: flipper on 04. May 2014, 23:12:53
Having a little situation in my conky.
I'm using this line for reading the GPU temperature::
Code: [Select]
${execi 60 optirun -b none nvidia-settings -c :8 -query GPUCoreTemp | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'}°C
I don't understand why I get double temperature readings; like 5050°C
Code: [Select]
perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'
Title: Re: Conky thread, show your work!
Post by: runpc2deth on 24. May 2014, 22:50:29
Changed margins so that panels are always visible. System tray is xfce4-panel. Might start experimenting with dzen once I have time for that.

(http://en.zimagez.com/miniature/screenshotfrom2014-04-13153032.png) (http://en.zimagez.com/zimage/screenshotfrom2014-04-13153032.php)

how do i just get that bottom panel alone? 
Title: Re: Conky thread, show your work!
Post by: pjhalsli on 24. May 2014, 23:21:51
how do i just get that bottom panel alone?

Looks like it's graph4 config

Title: Re: Conky thread, show your work!
Post by: natanvarga on 25. May 2014, 00:14:46
how do i just get that bottom panel alone?

This is the conky I used:
Code: [Select]
# Manjaro Openbox-Lite Conky Configuration Script
#
# Written by Carl Duff of the Manjaro Team
# Email: carl[at]manjaro[dot]org - Website: www.manjaro.org - Forum: http://forum.manjaro.org/
#
# Feel free to alter, distribute, etc., this config file as you wish.
#

#  Basic Settings

background yes
use_xft yes
xftfont raleway:size=11
xftalpha 1
update_interval 0.5
total_run_times 0
own_window yes
own_window_transparent no
own_window_argb_visual yes
own_window_colour AAAAAA
own_window_argb_value 100
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 1361 1
maximum_width 1361
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color FFFFFF
default_shade_color FFFFFF
default_outline_color FFFFFF
alignment bl
gap_x 0
gap_y -3
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

# Fancy Conky display

TEXT
${voffset -5}${color 000000}${font monospace:size=9}\
 ${execpi 120 lsb_release -sdrc || cat /etc/*release}\
${color 01A1A1} · ${color 000000}\
${execpi 600 ~/.conky2/updates}\
${color 01A1A1} · ${color 000000}\
Uptime $uptime\
${color 01A1A1} · ${color 000000}\
Net $alignr${downspeed wlp3s0}\
${color 01A1A1} · ${color 000000}\
Load ${loadavg 1}\
${color 01A1A1} · ${color 000000}\
Wifi ${wireless_link_qual_perc wlp3s0}%\
${color 01A1A1} · ${color 000000}\
CPU $cpu%\
${color 01A1A1} · ${color 000000}\
RAM $memperc%\
${color 01A1A1} · ${color 000000}\
SSD $fs_free_perc%\
${color 01A1A1} · ${color 000000}\
Temp $acpitemp°C\
${color 01A1A1} · ${color 000000}\
Vol ${if_mpd_playing}${mpd_vol}${else}${mixer Vol}${endif}%\
${color 01A1A1} · ${color 000000}\
Bat ${battery_percent BATT}%\
${color 01A1A1} · ${color 000000}\
$sysname $kernel-$machine${voffset 2}

The updates script is this:
Code: [Select]
#!/usr/bin/perl
## script by Xyne
## http://bbs.archlinux.org/viewtopic.php?id=57291
use strict;
use warnings;
my $n = (`yaourt -Qu | wc -l`);
chomp ($n);
if ($n == 0)
{
     print "Up to date"
}
elsif($n == 1)
{
     print " 1 Update "
}
else
{
print "$n Updates"
}

Also had pacman -Syy in cron-hourly.
Title: Re: Conky thread, show your work!
Post by: runpc2deth on 25. May 2014, 01:48:35
thanks! such a nice simple conky  8)
Title: Re: Conky thread, show your work!
Post by: bad63r on 25. May 2014, 03:20:16
anyone knows how to get my internet working in conky???

code : 
Code: [Select]
######################
# - Conky settings - #
######################
update_interval 2
total_run_times 0
net_avg_samples 1
cpu_avg_samples 2

imlib_cache_size 0
double_buffer yes
no_buffers yes

format_human_readable

#####################
# - Text settings - #
#####################
use_xft yes
xftfont Droid Sans:size=8
override_utf8_locale yes
text_buffer_size 2048

#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type normal
own_window_argb_visual yes
own_window_argb_value 150
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

alignment top_left
gap_y 65
gap_x 1120
border_inner_margin 8

minimum_size 230 500
maximum_width 500
maximum_height 560

default_bar_size 92 8

#########################
# - Graphics settings - #
#########################
draw_shades yes
default_shade_color 000000
default_color FFFFFF

TEXT
${font Droid Sans:style=Bold:size=8}SYSTEM $stippled_hr${font}
##############
# - SYSTEM - #
##############
${voffset 6}${font OpenLogos:size=19}B${font}${goto 40}${voffset -15}Kernel:  ${alignr}${kernel}
${goto 40}Uptime: ${alignr}${uptime}
# |--UPDATES
${goto 40}Updates: ${alignr}${font Droid Sans:style=Bold:size=8}${execi 10800 pacman -Qu | wc -l}${font} Packages
# |--CPU
${voffset 6}${font Droid Sans:style=Bold:size=8}CPU${font}${offset -20}${voffset 10}${cpubar cpu0 4,18}
${voffset -23}${goto 40}Core 1: ${font Droid Sans:style=Bold:size=8}${cpu cpu1}%${font} ${alignr}${cpubar cpu1 7,70 EEEEEE}
${voffset 1}${goto 40}Core 2: ${font Droid Sans:style=Bold:size=8}${cpu cpu2}%${font} ${alignr}${cpubar cpu2 7,70 EEEEEE}
# |--MEM
${voffset 6}${font Droid Sans:style=Bold:size=8}RAM${font}${goto 40}RAM: ${font Droid Sans:style=Bold:size=8}$memperc%${font}
${voffset 6}${offset 1}${voffset -8}${membar 4,18}${voffset 4}${goto 40}${voffset -2}Free: ${font Droid Sans:style=Bold:size=8}${memeasyfree}${font}${goto 130} Used:${font Droid Sans:style=Bold:size=8}${mem}${font}
# |--SWAP
${voffset 5}${font Droid Sans:style=Bold:size=8}SWP${font}${goto 40}Swap: ${font Droid Sans:style=Bold:size=8}${swapperc}%${font}
${voffset 4}${offset 1}${voffset -7}${swapbar 4,18}${voffset 4}${goto 40}Free: ${font Droid Sans:style=Bold:size=8}$swapmax${font} ${goto 134}Used: ${font Droid Sans:style=Bold:size=8}$swap${font}
# |--PROC
${voffset 4}${font Droid Sans:style=Bold:size=8}TOP${font}${voffset 0}${goto 126}CPU${alignr}RAM
${voffset -1}${goto 40}${top name 1}${font Droid Sans:style=Bold:size=8} ${goto 120}${top cpu 1}${alignr }${top mem 1}${font}
${voffset -1}${goto 40}${top name 2}${font Droid Sans:style=Bold:size=8} ${goto 120}${top cpu 2}${alignr }${top mem 2}${font}
${voffset -1}${goto 40}${top name 3}${font Droid Sans:style=Bold:size=8} ${goto 120}${top cpu 3}${alignr }${top mem 3}${font}
${voffset -1}${goto 40}${top name 4}${font Droid Sans:style=Bold:size=8} ${goto 120}${top cpu 4}${alignr }${top mem 4}${font}
${voffset -1}${goto 40}${top name 5}${font Droid Sans:style=Bold:size=8} ${goto 120}${top cpu 5}${alignr }${top mem 5}${font}
${voffset -1}${goto 40}${top name 6}${font Droid Sans:style=Bold:size=8} ${goto 120}${top cpu 6}${alignr }${top mem 6}${font}
${voffset -1}${goto 40}${top name 7}${font Droid Sans:style=Bold:size=8} ${goto 120}${top cpu 7}${alignr }${top mem 7}${font}
${voffset -1}${goto 40}${top name 8}${font Droid Sans:style=Bold:size=8} ${goto 120}${top cpu 8}${alignr }${top mem 8}${font}
${voffset -1}${goto 40}${top name 9}${font Droid Sans:style=Bold:size=8} ${goto 120}${top cpu 9}${alignr }${top mem 9}${font}
${voffset -1}${goto 40}${top name 10}${font Droid Sans:style=Bold:size=8} ${goto 120}${top cpu 10}${alignr }${top mem 10}${font}
#############
# - CLOCK - #
#############
${voffset 6}${font Droid Sans:style=Bold:size=8}DATE $stippled_hr${font}
${font Droid Sans:size=20}${alignc}${time %H:%M}${font}
${alignc}${time %d %B %Y}
###############
# - NETWORK - #
###############
${voffset 4}${font Droid Sans:style=Bold:size=8}NETWORK $stippled_hr${font}
${voffset 4}${goto 20}Upload: ${font Droid Sans:style=Bold:size=8}${upspeed wlan0}${font} ${alignr}${upspeedgraph wlan0 8,50 EEEEEE}
${goto 20}Overall: ${font Droid Sans:style=Bold:size=8}${totalup wlan0}${font}
${voffset 4}${goto 20}Download: ${font Droid Sans:style=Bold:size=8}${downspeed wlan0}${font} ${alignr}${downspeedgraph wlan0 8,50 EEEEEE}
${goto 20}Overall: ${font Droid Sans:style=Bold:size=8}${totaldown wlan0}${font}
${voffset 4}${goto 20}Local IP: ${alignr}${font Droid Sans:style=Bold:size=8}${addr wlan0}${font}
${goto 20}Public IP: ${alignr}${font Droid Sans:style=Bold:size=8}${execi 10800 ~/.public_ip}${font}
##########
# - HD - #
##########
${voffset 4}${font Droid Sans:style=Bold:size=8}HD $stippled_hr${font}
# |--HD default
  ${voffset 4}${goto 20}Root: ${font Droid Sans:style=Bold:size=8}${fs_used_perc /}%${font}${goto 100}${alignr}${fs_bar 6,68 /}
  ${offset 7}Free: ${font Droid Sans:style=Bold:size=8}${fs_free /}${font} ${alignr 1}Used: ${font Droid Sans:style=Bold:size=8}${fs_used /}${font}
  ${voffset 4}${goto 20}Home: ${font Droid Sans:style=Bold:size=8}${fs_used_perc /home}%${font}${goto 100}${alignr}${fs_bar 6,68 /home}
  ${offset 7}Free: ${font Droid Sans:style=Bold:size=8}${fs_free /home}${font} ${alignr 1}Used: ${font Droid Sans:style=Bold:size=8}${fs_used /home}${font}
# |--HDTEMP1
  ${voffset 7}${goto 20}${voffset -4}Temperature: ${font Droid Sans:style=Bold:size=8}${execi 120 sudo hddtemp /dev/sda -n --unit=C}°C${font}${alignr}/dev/sda

picture: http://www.dodaj.rs/f/u/KO/4aNkVyDO/1/asd.png (http://www.dodaj.rs/f/u/KO/4aNkVyDO/1/asd.png)
Title: Re: Conky thread, show your work!
Post by: runpc2deth on 25. May 2014, 03:27:33
check you network connection icon and see what that says but mine says "enp1s0" replace the wlan0 with that and see if it works.
Title: Re: Conky thread, show your work!
Post by: bad63r on 25. May 2014, 04:08:31
Ahhh I solved a problem about conky with little help of local linux guys :)

Here is my conky source:
Code: [Select]
######################
# - Conky settings - #
######################
update_interval 2
total_run_times 0
net_avg_samples 1
cpu_avg_samples 2

imlib_cache_size 0
double_buffer yes
no_buffers yes

format_human_readable

#####################
# - Text settings - #
#####################
use_xft yes
xftfont Droid Sans:size=8
override_utf8_locale yes
text_buffer_size 2048

#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type normal
own_window_argb_visual yes
own_window_argb_value 150
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

alignment top_left
gap_y 65
gap_x 1120
border_inner_margin 8

minimum_size 230 500
maximum_width 500
maximum_height 560

default_bar_size 92 8

#########################
# - Graphics settings - #
#########################
draw_shades yes
default_shade_color 000000
default_color FFFFFF

TEXT
${font Droid Sans:style=Bold:size=8}SYSTEM $stippled_hr${font}
##############
# - SYSTEM - #
##############
${voffset 6}${font OpenLogos:size=19}B${font}${goto 40}${voffset -15}Kernel:  ${alignr}${kernel}
${goto 40}Uptime: ${alignr}${uptime}
# |--UPDATES
${goto 40}Updates: ${alignr}${font Droid Sans:style=Bold:size=8}${execi 10800 pacman -Qu | wc -l}${font} Packages
# |--CPU
${voffset 6}${font Droid Sans:style=Bold:size=8}CPU${font}${offset -20}${voffset 10}${cpubar cpu0 4,18}
${voffset -23}${goto 40}Core 1: ${font Droid Sans:style=Bold:size=8}${cpu cpu1}%${font} ${alignr}${cpubar cpu1 7,70 EEEEEE}
${voffset 1}${goto 40}Core 2: ${font Droid Sans:style=Bold:size=8}${cpu cpu2}%${font} ${alignr}${cpubar cpu2 7,70 EEEEEE}
# |--MEM
${voffset 6}${font Droid Sans:style=Bold:size=8}RAM${font}${goto 40}RAM: ${font Droid Sans:style=Bold:size=8}$memperc%${font}
${voffset 6}${offset 1}${voffset -8}${membar 4,18}${voffset 4}${goto 40}${voffset -2}Free: ${font Droid Sans:style=Bold:size=8}${memeasyfree}${font}${goto 130} Used:${font Droid Sans:style=Bold:size=8}${mem}${font}
# |--SWAP
${voffset 5}${font Droid Sans:style=Bold:size=8}SWP${font}${goto 40}Swap: ${font Droid Sans:style=Bold:size=8}${swapperc}%${font}
${voffset 4}${offset 1}${voffset -7}${swapbar 4,18}${voffset 4}${goto 40}Free: ${font Droid Sans:style=Bold:size=8}$swapmax${font} ${goto 134}Used: ${font Droid Sans:style=Bold:size=8}$swap${font}
# |--PROC
${voffset 4}${font Droid Sans:style=Bold:size=8}TOP${font}${voffset 0}${goto 150}CPU${alignr}RAM
${goto 40}${top_mem name 1} ${goto 141}${top_mem cpu 1}$alignr${top_mem mem 1}
${goto 40}${top_mem name 2} ${goto 141}${top_mem cpu 2}$alignr${top_mem mem 2}
${goto 40}${top_mem name 3} ${goto 141}${top_mem cpu 3}$alignr${top_mem mem 3}
${goto 40}${top_mem name 4} ${goto 141}${top_mem cpu 4}$alignr${top_mem mem 4}
${goto 40}${top_mem name 5} ${goto 141}${top_mem cpu 5}$alignr${top_mem mem 5}
${goto 40}${top_mem name 6} ${goto 141}${top_mem cpu 6}$alignr${top_mem mem 6}
${goto 40}${top_mem name 7} ${goto 141}${top_mem cpu 7}$alignr${top_mem mem 7}
${goto 40}${top_mem name 8} ${goto 141}${top_mem cpu 8}$alignr${top_mem mem 8}
${goto 40}${top_mem name 9} ${goto 141}${top_mem cpu 9}$alignr${top_mem mem 9}
#############
# - CLOCK - #
#############
${voffset 6}${font Droid Sans:style=Bold:size=8}DATE $stippled_hr${font}
${font Droid Sans:size=20}${alignc}${time %H:%M}${font}
${alignc}${time %d %B %Y}
###############
# - NETWORK - #
###############
${voffset 4}${font Droid Sans:style=Bold:size=8}NETWORK $stippled_hr${font}
${voffset 4}${goto 20}Upload: ${font Droid Sans:style=Bold:size=8}${upspeed wlp5s0}${font} ${alignr}${upspeedgraph wlp5s0 8,50 EEEEEE}
${goto 20}Overall: ${font Droid Sans:style=Bold:size=8}${totalup wlp5s0}${font}
${voffset 4}${goto 20}Download: ${font Droid Sans:style=Bold:size=8}${downspeed wlp5s0}${font} ${alignr}${downspeedgraph wlan0 8,50 EEEEEE}
${goto 20}Overall: ${font Droid Sans:style=Bold:size=8}${totaldown wlp5s0}${font}
${voffset 4}${goto 20}Local IP: ${alignr}${font Droid Sans:style=Bold:size=7.85}${addr wlp5s0}${font}
${goto 20}Public IP: ${alignr}${font Droid Sans:style=Bold:size=7.85}${curl ifconfig.me}${font}
##########
# - HD - #
##########
${voffset 4}${font Droid Sans:style=Bold:size=8}HD $stippled_hr${font}
# |--HD default
  ${voffset 4}${goto 20}Root: ${font Droid Sans:style=Bold:size=8}${fs_used_perc /}%${font}${goto 100}${alignr}${fs_bar 6,68 /}
  ${offset 7}Free: ${font Droid Sans:style=Bold:size=8}${fs_free /}${font} ${alignr 1}Used: ${font Droid Sans:style=Bold:size=8}${fs_used /}${font}
  ${voffset 4}${goto 20}Home: ${font Droid Sans:style=Bold:size=8}${fs_used_perc /home}%${font}${goto 100}${alignr}${fs_bar 6,68 /home}
  ${offset 7}Free: ${font Droid Sans:style=Bold:size=8}${fs_free /home}${font} ${alignr 1}Used: ${font Droid Sans:style=Bold:size=8}${fs_used /home}${font}
And here is conky in action  8)
(http://www.dodaj.rs/t/1e/hg/z0d5S2C/asd.jpg) (http://www.dodaj.rs/?1e/hg/z0d5S2C/asd.jpg)

Title: Re: Conky thread, show your work!
Post by: runpc2deth on 25. May 2014, 20:54:52
how do you make conky stay on top of the desktop?  or so it has its own borders like a panel.   so when you max a app it wont cover up the conky.
Title: Re: Conky thread, show your work!
Post by: bad63r on 25. May 2014, 21:08:06
in my case it will, you have conky command for that what you are asking...  my windows type is normal so if you change that to something else  then you will be able to put conky above everything
Title: Re: Conky thread, show your work!
Post by: natanvarga on 25. May 2014, 21:15:34
how do you make conky stay on top of the desktop?  or so it has its own borders like a panel.   so when you max a app it wont cover up the conky.

you can also open obconf aka Openbox Configuration something and change the margin size wherever your panel is.
Title: Re: Conky thread, show your work!
Post by: LCJr on 25. May 2014, 21:22:19
how do you make conky stay on top of the desktop?  or so it has its own borders like a panel.   so when you max a app it wont cover up the conky.

In openbox you can set a margin in rc.xml.  I have mine set so the top line is always visible.  Also gives you plenty of room to open the menu.
(http://thumbnails111.imagebam.com/32880/bf6fc4328794203.jpg) (http://www.imagebam.com/image/bf6fc4328794203) (http://thumbnails111.imagebam.com/32880/7f2f8d328794213.jpg) (http://www.imagebam.com/image/7f2f8d328794213)
Title: Re: Conky thread, show your work!
Post by: runpc2deth on 25. May 2014, 21:38:13
thanks LCjr and natanvarga ill give that a try.  i have my tint2 bar at the top so ill try to set the margin on the bottom for the conky. 
Title: Re: Conky thread, show your work!
Post by: LCJr on 25. May 2014, 21:47:57
You can also try what bad63r suggested.  If I remember right you can set the window type to panel or dock.  I've only tried it with LXQT and it didn't work right but pcmanfm-qt's desktop module doesn't play well with conky atm.  Conky stayed on top but the windows went under conky.  Might work better on openbox.
Title: Re: Conky thread, show your work!
Post by: runpc2deth on 25. May 2014, 22:10:07
i tried playing with the different window types with no luck but setting the margins in the openbox rc worked perfect!  :D  its nice always having the conky showing all the time and with the small bottom bar doesnt take up much space.  now i just need to work on my conky some more. 

Title: Re: Conky thread, show your work!
Post by: pjhalsli on 13. June 2014, 17:57:30
Jesse Avalos have organized a conky comuunit pack and just uploaded it. Check it out guys. 69 new conkys. Pretty good work.
Install with conky manager
http://www.mediafire.com/download/b0eb42x1v7bf8ph/Community_conky_pack..cmtp.7z

Video showing off the conkys:
https://www.youtube.com/watch?v=zVryiXL22Is

I've tested each conky and they all ork as they should. Having probs with spotify conky in Openbox though. Don't know what it is but it don't look as it should
Title: Re: Conky thread, show your work!
Post by: Salinko on 14. June 2014, 00:53:32
This is something I'm working on currently. I still need to add 'now playing' and the colours/layout needs some adjustment.

Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 14. June 2014, 12:39:46
@Salinko: it is a nice conky. i see you put some effort in it creating/designing it. congratulations.
can you share your .conkyrc file (and another screenshot) when you are done?
Title: Re: Conky thread, show your work!
Post by: trzalica on 14. June 2014, 16:06:36
This is something I'm working on currently. I still need to add 'now playing' and the colours/layout needs some adjustment.
How did you configure conky so it can show you temperature of HDD?
Nice conky! :)
Title: Re: Conky thread, show your work!
Post by: Salinko on 15. June 2014, 02:12:42
How did you configure conky so it can show you temperature of HDD?
Nice conky! :)

The hard disk temperature is using Hddtemp (https://wiki.archlinux.org/index.php/Hddtemp) I'll post the config in a day or two, I just want to finish a few things first.
Title: Re: Conky thread, show your work!
Post by: trzalica on 15. June 2014, 11:25:44
The hard disk temperature is using Hddtemp (https://wiki.archlinux.org/index.php/Hddtemp) I'll post the config in a day or two, I just want to finish a few things first.
Ok, thanks! :)
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 17. June 2014, 23:22:55
there is a new version of conky manager: http://www.teejeetech.in/2014/06/conky-manager-v2-released.html
version 2.02 is available in the AUR.

download additional conky theme packs like:
http://www.teejeetech.in/2013/07/deluxe-conky-theme-pack.html
http://www.teejeetech.in/2013/07/super-conky-package.html
http://www.teejeetech.in/2014/06/conky-manager-v2-themes.html


Title: Re: Conky thread, show your work!
Post by: Dobbie03 on 28. June 2014, 23:33:58
This is something I'm working on currently. I still need to add 'now playing' and the colours/layout needs some adjustment.

I really like that! Nice work.
Title: Re: Conky thread, show your work!
Post by: Salinko on 29. June 2014, 04:37:35
I really like that! Nice work.

Thanks :)

I made some changes since the last post...
Title: Re: Conky thread, show your work!
Post by: pjhalsli on 29. June 2014, 06:10:02
@ Salinko
Top Work! Very nice  :)
Title: Re: Conky thread, show your work!
Post by: Dobbie03 on 29. June 2014, 06:46:31
Thanks :)

I made some changes since the last post...

Even better.
Title: Re: Conky thread, show your work!
Post by: schpankme on 29. June 2014, 10:15:48
What font is used for the MANJARO logo (see top left of this screen)?
Title: Re: Conky thread, show your work!
Post by: Salinko on 29. June 2014, 10:28:33
Ignore
Title: Re: Conky thread, show your work!
Post by: dicktater on 29. June 2014, 10:34:47
What font is used for the MANJARO logo (see top left of this screen)?
Comfortaa
http://www.dafont.com/search.php?q=comfortaa&text=manjaro
(http://s3.postimg.org/474xnldgj/Comfortaa.png)
Title: Re: Conky thread, show your work!
Post by: schpankme on 29. June 2014, 18:10:58

Font = Comfortaa

This font needs to be in the repo's   ;D

Thank you
Title: Re: Conky thread, show your work!
Post by: dicktater on 29. June 2014, 21:01:28
Remember this look?  8)
Capture It
(http://s7.postimg.org/zfb81mkgr/Capture_It.png)
http://www.dafont.com/capture-it.font?text=MANJARO
Title: Re: Conky thread, show your work!
Post by: poker98face on 29. June 2014, 22:12:58
This font needs to be in the repo's   ;D
Thank you
aur/ttf-comfortaa 2.004-1 (15)
    A simple, good looking, true type font.
Title: Re: Conky thread, show your work!
Post by: Lukimya on 30. June 2014, 01:29:38
there is a new version of conky manager: http://www.teejeetech.in/2014/06/conky-manager-v2-released.html
version 2.02 is available in the AUR.

Im glad the developer keeps on updating it, but the gui looks worse than in the old one.. what is this? an elementaryOS app now? :(
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 01. July 2014, 16:04:57
Im glad the developer keeps on updating it, but the gui looks worse than in the old one.. what is this? an elementaryOS app now? :(
i agree.
just some large icons. this is touch-friendly. and it makes the program look easy and nowbie-friendly.

do you know the movie "idiocracy" ?
when i look at the current development (iphones, apps, cloud storage for everything, big data), i remember that movie.

but i think it is more important to have support and new conky themes. i do not use conky manager, but it is an easy program for newbies to get a basic conky.
Title: Re: Conky thread, show your work!
Post by: dicktater on 01. July 2014, 20:08:50
do you know the movie "idiocracy" ?
when i look at the current development (iphones, apps, cloud storage for everything, big data), i remember that movie.
It's not just technology. It's everything. Systemic, because all the world's political systems are really just various forms of idiocracy.
Title: Re: Conky thread, show your work!
Post by: marko94 on 03. July 2014, 18:21:37
Hy everyone :)

I am newbie here ,and I stuck with conky config file
Here is config :
Code: [Select]
#==============================================================================
#                               conkyrc_seamod
# Date    : 05/02/2012
# Author  : SeaJey
# Version : v0.1
# License : Distributed under the terms of GNU GPL version 2 or later
#
# This version is a modification of conkyrc_lunatico wich is modification of conkyrc_orange
#
# conkyrc_orange:    http://gnome-look.org/content/show.php?content=137503&forumpage=0
# conkyrc_lunatico:  http://gnome-look.org/content/show.php?content=142884
#==============================================================================

background yes
update_interval 1

cpu_avg_samples 1
net_avg_samples 2
temperature_unit celsius

double_buffer yes
no_buffers yes
text_buffer_size 2048
override_utf8_locale yes
use_xft yes
xftfont caviar dreams:size=10
xftalpha 0.5
uppercase no

gap_x 10
gap_y 70
minimum_size 300 900
maximum_width 350

own_window yes
own_window_type normal
own_window_transparent yes
own_window_argb_visual yes
own_window_argb_visual yes
own_window_colour 000000
own_window_argb_value 0
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

border_inner_margin 0
border_outer_margin 0
alignment top_right

draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Defining colors
default_color FFFFFF
# Shades of Gray
color1 DDDDDD
color2 AAAAAA
color3 888888
# Orange
color4 EF5A29
# Green
color5 77B753

# Loading lua script for drawning rings
lua_load ./seamod_rings.lua
lua_draw_hook_post main

## System information using conky capabilities

TEXT
${font Ubuntu:size=10,weight:bold}${color4}SYSTEM ${hr 2}
${offset 15}${font Ubuntu:size=10,weight:normal}${color1}$sysname $kernel
${offset 15}${font Ubuntu:size=10,weight:normal}${color1}$nodename
${offset 15}${font Ubuntu:size=10,weight:normal}${color1}Uptime: $uptime

# Showing CPU Graph
${voffset 20}
${offset 120}${cpugraph 40,183 666666 666666}${voffset -25}
${offset 90}${font Ubuntu:size=10,weight:bold}${color5}CPU
# Showing TOP 5 CPU-consumers
${offset 105}${font Ubuntu:size=10,weight:normal}${color4}${top name 1}${alignr}${top cpu 1}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color1}${top name 2}${alignr}${top cpu 2}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color2}${top name 3}${alignr}${top cpu 3}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color3}${top name 4}${alignr}${top cpu 4}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color3}${top name 5}${alignr}${top cpu 5}%

#Showing memory part with TOP 5
${voffset 40}
${offset 90}${font Ubuntu:size=10,weight:bold}${color5}MEM
${offset 105}${font Ubuntu:size=10,weight:normal}${color4}${top_mem name 1}${alignr}${top_mem mem 1}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color1}${top_mem name 2}${alignr}${top_mem mem 2}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color2}${top_mem name 3}${alignr}${top_mem mem 3}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 4}${alignr}${top_mem mem 4}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 4}${alignr}${top_mem mem 5}%

# Showing disk partitions: root, home and Data
${voffset 28}
${offset 90}${font Ubuntu:size=10,weight:bold}${color5}DISKS
${offset 120}${diskiograph 33,183 666666 666666}${voffset -30}
${voffset 20}
${offset 15}${font Ubuntu:size=9,weight:bold}${color1}Free: ${font Ubuntu:size=9,weight:normal}${fs_free /}${alignr}${font Ubuntu:size=9,weight:bold}Used: ${font Ubuntu:size=9,weight:normal}${fs_used /}
${offset 15}${font Ubuntu:size=9,weight:bold}${color1}Free: ${font Ubuntu:size=9,weight:normal}${fs_free /home}${alignr}${font Ubuntu:size=9,weight:bold}Used: ${font Ubuntu:size=9,weight:normal}${fs_used /home}
${offset 15}${font Ubuntu:size=9,weight:bold}${color1}Free: ${font Ubuntu:size=9,weight:normal}${fs_free /media/Data}${alignr}${font Ubuntu:size=9,weight:bold}Used: ${font Ubuntu:size=9,weight:normal}${fs_used /media/Data}

# Network data (my desktop have only LAN). ETHERNET ring is mostly useless but looks pretty, main info is in the graphs
${voffset 43}
${offset 90}${font Ubuntu:size=10,weight:bold}${color5}ETHERNET
${voffset 40}             
${offset 15}${color1}${font Ubuntu:size=9,weight:bold}Up: ${alignr}${font Ubuntu:size=9,weight:normal}$color2${upspeed eth0} / ${totalup}
${offset 15}${upspeedgraph eth0 40,285 4B1B0C FF5C2B 100 -l}
${offset 15}${color1}${font Ubuntu:size=9,weight:bold}Down: ${alignr}${font Ubuntu:size=9,weight:normal}$color2${downspeed eth0} / ${totaldown}
${offset 15}${downspeedgraph eth0 40,285 324D23 77B753 100 -l}

${color4}${hr 2}




But I don't know how to make that my wlan show data ? any help ? thanks
Title: Re: Conky thread, show your work!
Post by: Salinko on 04. July 2014, 00:21:40
If it's just up/down speed you're looking for, substitute your eth0 interface for whatever you're wlan interface is called. If you want other data take a look at Conky Objects (http://conky.sourceforge.net/variables.html) specifically:

wireless_ap
wireless_bitrate
wireless_essid
wireless_link_bar
wireless_link_qual
wireless_link_qual_max
wireless_link_qual_perc
wireless_mode

For example:

Code: [Select]
AP: ${wireless_essid wlan0} ${alignr}Bitrate: ${wireless_bitrate wlan0}
Down: ${downspeed wlan0} k/s ${alignr}Up: ${upspeed wlan0} k/s
${downspeedgraph wlan0 20,120} ${alignr}${upspeedgraph wlan0 20,120}
Total: ${totaldown wlan0} ${alignr}Total: ${totalup wlan0}


Title: Re: Conky thread, show your work!
Post by: schpankme on 04. July 2014, 00:24:50
wlan0 scan

watch -n 1 "awk 'NR==3 {print \"WiFi Signal Strength = \" (\$3/70)*100 \" %\"}''' /proc/net/wireless"
Title: Re: Conky thread, show your work!
Post by: pjhalsli on 04. July 2014, 01:38:28
I don't know how much you know about conky. But your conky config can't show wifi as it's configured for ethernet only. But if you follow salinko's example and add that to your config, you should be good to go   ;) Remember to change wlan0 with what is right for you  :)
You will find it if you type "ip link" in terminal


Good Luck  :)
Title: Re: Conky thread, show your work!
Post by: pjhalsli on 04. July 2014, 02:38:15
@ marko94

Here you go - Now it's set up for wifi :)

Code: [Select]
#==============================================================================
#                               conkyrc_seamod
# Date    : 05/02/2012
# Author  : SeaJey
# Version : v0.1
# License : Distributed under the terms of GNU GPL version 2 or later
#
# This version is a modification of conkyrc_lunatico wich is modification of conkyrc_orange
#
# conkyrc_orange:    http://gnome-look.org/content/show.php?content=137503&forumpage=0
# conkyrc_lunatico:  http://gnome-look.org/content/show.php?content=142884
#==============================================================================

background yes
update_interval 1

cpu_avg_samples 1
net_avg_samples 2
temperature_unit celsius

double_buffer yes
no_buffers yes
text_buffer_size 2048

gap_x 40
gap_y 70
minimum_size 300 900
maximum_width 350

own_window yes
own_window_type normal
own_window_transparent yes
own_window_argb_visual yes
own_window_argb_visual no
own_window_colour 000000
own_window_argb_value 0
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

border_inner_margin 0
border_outer_margin 0
alignment top_right


draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

override_utf8_locale yes
use_xft yes
xftfont caviar dreams:size=10
xftalpha 0.5
uppercase no

# Defining colors
default_color FFFFFF
# Shades of Gray
color1 DDDDDD
color2 AAAAAA
color3 888888
# Orange
color4 EF5A29
# Green
color5 77B753

# Loading lua script for drawning rings
lua_load ./seamod_rings.lua
lua_draw_hook_post main

## System information using conky capabilities

# Header with base system info
own_window_argb_value 0
own_window_colour 000000
TEXT
${font Ubuntu:size=10,weight:bold}${color4}SYSTEM ${hr 2}
${offset 15}${font Ubuntu:size=10,weight:normal}${color1}$sysname $kernel
${offset 15}${font Ubuntu:size=10,weight:normal}${color1}$nodename
${offset 15}${font Ubuntu:size=10,weight:normal}${color1}Uptime: $uptime

# Showing CPU Graph
${voffset 20}
${offset 120}${cpugraph 40,183 666666 666666}${voffset -25}
${offset 90}${font Ubuntu:size=10,weight:bold}${color5}CPU
# Showing TOP 5 CPU-consumers
${offset 105}${font Ubuntu:size=10,weight:normal}${color4}${top name 1}${alignr}${top cpu 1}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color1}${top name 2}${alignr}${top cpu 2}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color2}${top name 3}${alignr}${top cpu 3}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color3}${top name 4}${alignr}${top cpu 4}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color3}${top name 5}${alignr}${top cpu 5}%

#Showing memory part with TOP 5
${voffset 40}
${offset 90}${font Ubuntu:size=10,weight:bold}${color5}MEM
${offset 105}${font Ubuntu:size=10,weight:normal}${color4}${top_mem name 1}${alignr}${top_mem mem 1}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color1}${top_mem name 2}${alignr}${top_mem mem 2}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color2}${top_mem name 3}${alignr}${top_mem mem 3}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 4}${alignr}${top_mem mem 4}%
${offset 105}${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 4}${alignr}${top_mem mem 5}%

# Showing disk partitions: root, home and Data
${voffset 28}
${offset 90}${font Ubuntu:size=10,weight:bold}${color5}DISKS
${offset 120}${diskiograph 33,183 666666 666666}${voffset -30}
${voffset 20}
${offset 15}${font Ubuntu:size=9,weight:bold}${color1}Free: ${font Ubuntu:size=9,weight:normal}${fs_free /}${alignr}${font Ubuntu:size=9,weight:bold}Used: ${font Ubuntu:size=9,weight:normal}${fs_used /}
${offset 15}${font Ubuntu:size=9,weight:bold}${color1}Free: ${font Ubuntu:size=9,weight:normal}${fs_free /home}${alignr}${font Ubuntu:size=9,weight:bold}Used: ${font Ubuntu:size=9,weight:normal}${fs_used /home}
${offset 15}${font Ubuntu:size=9,weight:bold}${color1}Free: ${font Ubuntu:size=9,weight:normal}${fs_free /media/Data}${alignr}${font Ubuntu:size=9,weight:bold}Used: ${font Ubuntu:size=9,weight:normal}${fs_used /media/Data}

# Network data (my desktop have only LAN). ETHERNET ring is mostly useless but looks pretty, main info is in the graphs
${voffset 43}
${offset 90}${font Ubuntu:size=10,weight:bold}${color5}WiFi
${voffset 40}             
${offset 15}${color1}${font Ubuntu:size=9,weight:bold}Up: ${alignr}${font Ubuntu:size=9,weight:normal}$color2${upspeed wlp1s0} / ${totalup}
${offset 15}${upspeedgraph eth0 40,285 4B1B0C FF5C2B 100 -l}
${offset 15}${color1}${font Ubuntu:size=9,weight:bold}Down: ${alignr}${font Ubuntu:size=9,weight:normal}$color2${downspeed wlp1s0} / ${totaldown}
${offset 15}${downspeedgraph wlp1s0 40,285 324D23 77B753 100 -l}

${color4}${hr 2}



Just open terminal type "ip link". change your wlan interface with mine
Title: Re: Conky thread, show your work!
Post by: marko94 on 04. July 2014, 11:52:43
Thanks guys, it's working now :) :)

but how configure all this data to fit on my desktop ? witdth ,size etc ..
Title: Re: Conky thread, show your work!
Post by: schpankme on 04. July 2014, 12:17:52
Two monitors   :P
Title: Re: Conky thread, show your work!
Post by: marko94 on 04. July 2014, 12:47:40
Two monitors   :P

:P
Title: Re: Conky thread, show your work!
Post by: poker98face on 04. July 2014, 14:11:25
:P
I think its better and more easy to have 2 conky configs, for example one with weather, second with system info, 3rd with song tittle and cover etc than just one big  O:-) Also its easier to make changes because config file is much more smaller. How to do this: http://crunchbanglinux.org/wiki/howto/howto_setup_multiple_conky_sessions
(http://i.imgur.com/Avlb7vXl.jpg) (http://i.imgur.com/Avlb7vX.jpg)
Title: Re: Conky thread, show your work!
Post by: pjhalsli on 04. July 2014, 14:29:42
@ marko 94
You have to install conky-lua from aur
Then you will get the rings in the conky  :)

It should look like this
(http://i.imgur.com/VQBCA0O.png)

Then you have to tweak the settings to fit to your screen. This conky is set up for a screen with 1920x1080 res.
As you can see in the pic I haven't tweaked it myself yet, but I don't use it so......   ;)

And btw I completely agree with poker98face. I think it's better with specific conky for each task. I'm using one for spotify and time, one for weather forecast and one for sys.info

Take a look
http://imgur.com/56NknyW
Usually I don't use the sys.info on the right but if I'm in the mood well......:P
Title: Re: Conky thread, show your work!
Post by: marko94 on 04. July 2014, 16:01:53
nice, looking good :)

Sure, I'll try with 2 or 3 conky config  ;)
Title: Re: Conky thread, show your work!
Post by: poker98face on 04. July 2014, 16:07:55
nice, looking good :)

Sure, I'll try with 2 or 3 conky config  ;)
If you want i can give you my configs and script to launch them ;)
Title: Re: Conky thread, show your work!
Post by: marko94 on 04. July 2014, 16:11:44
If you want i can give you my configs and script to launch them ;)

Of course :) I am not good with script and config   :-\
Title: Re: Conky thread, show your work!
Post by: poker98face on 04. July 2014, 16:16:11
Just move files with dots to your home folder and after run (click should work) on conky_start. You may want to change weather location and "Arch" to "Manjaro" :D
Title: Re: Conky thread, show your work!
Post by: pjhalsli on 04. July 2014, 16:24:13
I'll take it too. So I can take a closer look at the panel conky. Looks interesting :)
Title: Re: Conky thread, show your work!
Post by: poker98face on 04. July 2014, 16:30:50
Btw weather is Jelly conky http://www.deviantart.com/art/Jelly-Conky-442559003 and panel was made by Taylan Tatli from DA, i just changed some things ;) All credits go to original creators.
Title: Re: Conky thread, show your work!
Post by: pjhalsli on 04. July 2014, 16:45:02
@ poker98face

You should check him out. He use to make cool conkys and he's damn good
http://qaisarnawaz.deviantart.com/gallery/

I follow him on google+
https://plus.google.com/u/0/113899783942904173873/posts
Title: Re: Conky thread, show your work!
Post by: marko94 on 04. July 2014, 16:46:28
Just move files with dots to your home folder and after run (click should work) on conky_start. You may want to change weather location and "Arch" to "Manjaro" :D

Thanks :)
Title: Re: Conky thread, show your work!
Post by: poker98face on 04. July 2014, 16:47:56
@ poker98face

You should check him out. He use to make cool conkys and he's damn good
http://qaisarnawaz.deviantart.com/gallery/

I follow him on google+
https://plus.google.com/u/0/113899783942904173873/posts
Thanks, the only problem is... KDE. Almost all conky with backgrounds looks bad or have black border.
Title: Re: Conky thread, show your work!
Post by: pjhalsli on 04. July 2014, 16:54:31
Thanks, the only problem is... KDE. Almost all conky with backgrounds looks bad or have black border.

That's why I said you should check him out. He makes a lot of his conkys KDE friendly  :)
Title: Re: Conky thread, show your work!
Post by: pjhalsli on 06. July 2014, 22:18:34
I've advertised for this guy before; but here I go again  :)

He just made a custom  conky for me. News ticker bottom panel with BBC news and Manjaro rss feed.
He asked what I wanted so.....  ;)
Pretty Cool stuff

http://myconkys.blogspot.no/2014/06/panel-mode-conky-series.html

If you want manjaro news as a ticker it's a real nice one

(http://i.imgur.com/M4QVO0p.png)

(http://i.imgur.com/mh5E9I4.png)
Title: Re: Conky thread, show your work!
Post by: Xero on 09. July 2014, 15:15:02
Hey guys. I am a newbie when it comes to Linux and so, after spending some hours , i "managed" to show current weather (thx to @poker98face btw for jelly). Here is what my desktop looks like (i know its too empty :P ) : (http://i.imgur.com/wITlNxB.png)

So i have two questions .
1) Should i use conky-manager or just modify the .conkyrc file?
2) If i want to add something, lets say cpu usage and temp, i add the code directly to the existing .conkyrc? Or i should create another one?  I am a little bit confused.
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 09. July 2014, 16:02:13
1) Should i use conky-manager or just modify the .conkyrc file?
2) If i want to add something, lets say cpu usage and temp, i add the code directly to the existing .conkyrc? Or i should create another one?  I am a little bit confused.

1) conky manager is great for relatively simple conkys (regarding the conent) but still nice looking conkys. if you are afraid of config files, it is made for you!

2) if you want to change your conky (and you are not using conky manager), you have to edit your .conkyrc file (with a text editor). if you add something below TEXT, you conky will change. in some manjaro versions, you only need to save the changes to the .conkyrc file and your conky will reload automatically. if this is not the case, kill your conky:
Code: [Select]
killall conky
and restart conky as a background daemon:
Code: [Select]
conky -q -d
search for pictures/screenshots and .conkyrc files in this thread (or the internet - e.g. ubuntu forums) and copy-and-paste the feature you want in your .conkyrc file.
Title: Re: Conky thread, show your work!
Post by: Xero on 09. July 2014, 16:08:03
Thx mate! I am going to experiment with it and i will post the results later. :D
Title: Re: Conky thread, show your work!
Post by: pjhalsli on 09. July 2014, 16:30:52
I can reccomend dA - deviantArt - for conky. There's tons of them there  ;) I use conky manager mostly as a "library" for my conkys. This way it's easy to get a preview of them, but I always open the conky file when there's something I want to edit. In manager 2 you can do this from the manager itself :)

Welcome to the forum btw  :)
Title: Re: Conky thread, show your work!
Post by: Xero on 10. July 2014, 11:45:03
Rather noobish question, but,  i just tried poker89face's configs(adjusted weather,arch to manjaro, etc) and i wanna know if i can have it loaded at boot. Currently, openbox loads the default .conkyrc file. So, can i edit openbox-autostart and "tell" it to load the  conky_start script by default? 
Title: Re: Conky thread, show your work!
Post by: natanvarga on 10. July 2014, 20:29:11
Rather noobish question, but,  i just tried poker89face's configs(adjusted weather,arch to manjaro, etc) and i wanna know if i can have it loaded at boot. Currently, openbox loads the default .conkyrc file. So, can i edit openbox-autostart and "tell" it to load the  conky_start script by default?

I think so. that's what i used to do
Title: Re: Conky thread, show your work!
Post by: mandog on 10. July 2014, 20:44:34
Rather noobish question, but,  i just tried poker89face's configs(adjusted weather,arch to manjaro, etc) and i wanna know if i can have it loaded at boot. Currently, openbox loads the default .conkyrc file. So, can i edit openbox-autostart and "tell" it to load the  conky_start script by default?
Better still install conky-manager from AUR
Title: Re: Conky thread, show your work!
Post by: Xero on 10. July 2014, 21:15:52
Somehow answering my own question, i was able to  start 2 conky sessions by writing 2 times.
Code: [Select]
(sleep 3s && conky -c ~/.'conky_name') &I suppose there is an easier(or more subtle) way, but so far so good :D
Title: Re: Conky thread, show your work!
Post by: schpankme on 11. July 2014, 04:32:53
Question:  Conky is displaying wrong time, 5 hours ahead of "/sbin/hwclock" ?


EDIT:  solution - used "timeset" from the AUR, to set "timezone".
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 21. July 2014, 14:55:36
i just wanted to repost this link from another thread:
http://dotshare.it/category/info/conky/

it is a website with conkys (and screenshots of them). many more than we have in this thread.
i have not known this website until now and i am going to explore it a little.
Title: Re: Conky thread, show your work!
Post by: pjhalsli on 26. July 2014, 03:07:00
I'm trying to make a conky /the one form earlier OB releases) but don't remember everything so have some questions

1 Now it shows my root folder (http://i.imgur.com/EQRaIMT.png)
  I want it to also show my home folder. How do I do that?

2 I'd like to have total up/down weekly and monthly showing in conky. Is that possible? I use mobile broadband sometimes and I only have 200 gb a month to use. It would be cool to have the conky to show how much I used this week and total this month. Maybe get it to work with vnstat in some way
Title: Re: Conky thread, show your work!
Post by: Salinko on 26. July 2014, 05:03:56
Not sure about the OB conky but if you're looking at indicators for HD usage, this could be used as a basis:

Code: [Select]
/root: ${alignr}Free ${fs_free /}
/home: ${alignr}Free ${fs_free /home}

If you wanted a bar you could add:

Code: [Select]
${fs_bar 6,180 /home}
For accumulated network traffic, you'll probably need to install vnstat. Once done take a look at conky code to record internet traffic? (http://ubuntuforums.org/showthread.php?t=1682010)
Title: Re: Conky thread, show your work!
Post by: pjhalsli on 26. July 2014, 05:15:52
Thanks for the help Salinko.  :)

Big thanks for the link - it's great. :)  (already have vnstat installed so will figure this out)
Title: Re: Conky thread, show your work!
Post by: mandog on 27. July 2014, 14:51:29
This is a openbox/gnome3 Spotify Conky that I made as the jess ones did not seem to work correctly it available by pm to me. 8)

 
(http://i.imgur.com/AmY8Tkz.jpg)

(http://i.imgur.com/LW2h7XS.jpg)
Title: Re: Conky thread, show your work!
Post by: poker98face on 27. July 2014, 16:42:47
White version  :) Also i changed some colors because they were not enought visible. If you want to change font use only monospaced: http://www.fontsquirrel.com/fonts/list/classification/monospaced
(http://i.imgur.com/QCVRVrp.png)
Code: [Select]

own_window yes
own_window_colour F8F8F8
own_window_transparent no
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
use_spacer right
use_xft yes
#font snap-7
xftfont Droid Sans Mono:size=7
xftalpha 1
text_buffer_size 2048
alignment bottom
gap_x 5
gap_y 754

# --- Colours, Sizes, Fonts & Margins --- #
update_interval 1.0
stippled_borders 0
minimum_size 1366 3
maximum_width 1366 2
border_margin 3
border_width 0
default_color 5e7175
# --- Text --- #
draw_outline no
draw_borders no
#font -*-profont-*-*-*-11-*-*-*-*-*-*-*
uppercase no
draw_shades no

TEXT
${alignc}${color 739FCF}Arch${color } ${color f92672}Linux${color} | ${color 66AE4A} Machine: ${color 111111}$nodename ${color} | ${color fd971f} Uptime: ${color 111111}$uptime ${color} | ${color ff669d} Kernel: ${color 111111}$kernel ${color} | ${color CD1C30} GPU: ${color 111111}${execi 30 sensors|grep 'temp1'|cut -c16-22} ${color} | ${color 9e6ffe} Cpu: ${color 111111}${cpu}% ${color} | ${color 00CBEE} Ram: ${color 111111}${mem} ${color} | ${color 0C3197} Home: ${color 111111}${font}${fs_free /home} ${color} | ${color F4CB16} Down: ${color 111111} ${downspeed wlp2s0} Kb/s ${color} | ${color F74936} Up: ${color} ${color 111111} ${upspeed wlp2s0} Kb/s
Title: Re: Conky thread, show your work!
Post by: sot on 27. July 2014, 20:28:55
]kernels 314 and 315 don't want to show CPU temp using hwmon temp. Fixed by commenting out original line and changing as follows

Code: [Select]
# CPU Temp:${alignr}${hwmon temp 1}°C
CPU Temp:${alignr}$acpitemp°C
Title: Re: Conky thread, show your work!
Post by: mandog on 27. July 2014, 22:01:57
This part of the reason I don't  stick conky confs on the forum as things are constantly changing, so a old one may not work correctly.
Title: Re: Conky thread, show your work!
Post by: sot on 27. July 2014, 23:08:48
The fun is in the tweaking and making them work. i found my fix in a conky posted by Natanvarga. Other solutions are out there but Nathans' was short and sweet so I tried it first and it worked.

Cheers!
Title: Re: Conky thread, show your work!
Post by: Salinko on 28. July 2014, 00:30:19
]kernels 314 and 315 don't want to show CPU temp using hwmon temp. Fixed by commenting out original line and changing as follows

Code: [Select]
# CPU Temp:${alignr}${hwmon temp 1}°C
CPU Temp:${alignr}$acpitemp°C

Hwmon still works with 314/315. What you may be seeing is a common problem, where the hwmon assignment changes. So, what may have been fine on 'hwmon 1 temp 1' yesterday, shows a zero value after booting today. Take a look at this (http://crunchbang.org/forums/viewtopic.php?pid=136314#p136314) fro a workaround.

I use the following with 3.15:
Code: [Select]
${offset 5}${color2}Temp:${color}${color6}${if_existing /sys/class/hwmon/hwmon0/temp2_input}${alignr}${hwmon 0 temp 1}C${else}${alignr}${hwmon 1 temp 1}°C${endif}${color}
Title: Re: Conky thread, show your work!
Post by: sot on 28. July 2014, 01:23:34
Thanks Salinko!
Title: Re: Conky thread, show your work!
Post by: nixroid on 28. July 2014, 19:40:58
Pretty simple. Green and black is one of my fav colour scheme. I got the conky file from some post(I think in here and thanks to the original poster) and tinkered with it to my liking still a few glitches to fix, like the 'home' bar. Still looking for some suitable icons to match the "theme" of my desktop.
**edit included config

Code: [Select]
## My Conky Configuration
background no
font Goudy Bookletter 1911TT:size=10
#xftfont Goudy Bookletter 1911TT:size=10
use_xft yes
xftalpha 0.9
update_interval 3.0
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 1000
maximum_width 225
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color gray
default_shade_color black
default_outline_color green
alignment top_left
#gap_x 20
#gap_y 20
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
uppercase no
temperature_unit celcius

TEXT
${color green}${font Goudy Bookletter 1911TT:size=10:bold}SYSTEM ${color green} ${hr 2} ${color gray}${font}
 Hostname: $alignr$nodename
 Kernel: $alignr$kernel
 Uptime: $alignr$uptime

${color green}${font Goudy Bookletter 1911TT:size=10:bold}PROCESSOR ${color green} ${hr 2} ${color gray}${font}
 CPU: ${alignr}${freq} MHz
 Processes: ${alignr}$processes ($running_processes running)
 CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 6,140}
 CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 6,140}
 CPU Temp:${alignr}${hwmon temp 1}°C

${color green}${font Goudy Bookletter 1911TT:size=10:bold}MEMORY ${color green} ${hr 2} ${color gray}${font}
 Ram: ${memperc}% ${alignr}${membar 6,140}
 Swap: ${swapperc}% ${alignr}${swapbar 6,140}

${color green}${font Goudy Bookletter 1911TT:size=10:bold}PROCESSES ${color green} ${hr 2} ${color gray}${font}
${font Goudy Bookletter 1911TT:size=8:bold}$alignr PID   CPU   MEM${font Neuropolitical:size=8}
 ${top name 1} $alignr ${top pid 1} ${top cpu 1} ${top mem 1}
 ${top name 2} $alignr ${top pid 2} ${top cpu 2} ${top mem 2}
 ${top name 3} $alignr ${top pid 3} ${top cpu 3} ${top mem 3}
 ${top name 4} $alignr ${top pid 4} ${top cpu 4} ${top mem 4}
 ${top name 5} $alignr ${top pid 5} ${top cpu 5} ${top mem 5}
 ${top name 6} $alignr ${top pid 6} ${top cpu 6} ${top mem 6}

${font Goudy Bookletter 1911TT:bold:size=10}${color green}FILESYSTEM ${color green} ${hr 2} ${color gray}${font}
 Root: ${alignr}${fs_used_perc /}%  ${fs_bar 6, 140}
 ${font Goudy Bookletter 1911TT:size=10}${alignc 48}Size: ${fs_used /root} / ${fs_size /root/}${font}

 Home: ${alignr}${fs_used_perc /home/}%  ${fs_bar 6, 140}
 ${font Goudy Bookletter 1911TT:size=10}${alignc 48}Size: ${fs_used /home/} / ${fs_size /home/}${font}
${color green}${font Goudy Bookletter 1911TT:size=10:bold}NETWORK ${color green} ${hr 2} ${color gray}${font}
 Net IP ${alignr}${execi 3600 wget -O - http://ip.tupeux.com | tail}
 Up: ${upspeed wlo1} ${alignr}  Down: ${downspeed wlo1}

Title: Re: Conky thread, show your work!
Post by: dicktater on 28. July 2014, 20:51:36
This part of the reason I don't  stick conky confs on the forum as things are constantly changing, so a old one may not work correctly.
Does that mean your most recent conky configs will work for everyone? If a config doesn't work for someone then, they should take it upon themselves to make it work, learning how to make even better configs in the process.


I've grown weary of this thread because too many, for whatever reason, fail to post their configs. I may want to use only a portion of a config rather than the whole, or just simply examine how it was structured. But, people shouldn't have to beg. The thread should be: Conky thread, show AND PLEASE SHARE your work!
Title: Re: Conky thread, show your work!
Post by: trzalica on 28. July 2014, 22:08:29
Does anyone know how to make conky to display HDD temperature?
I tried with this code:
Code: [Select]
Disk temp:$alignr${hddtemp /dev/sda}but it wasn't successfully because it needs sudo to make it work (and I don't want to use it for conky). Any idea?
Title: Re: Conky thread, show your work!
Post by: dicktater on 28. July 2014, 22:33:27
Does anyone know how to make conky to display HDD temperature?
I tried with this code:
Code: [Select]
Disk temp:$alignr${hddtemp /dev/sda}but it wasn't successfully because it needs sudo to make it work (and I don't want to use it for conky). Any idea?
To what group (https://wiki.archlinux.org/index.php/users_and_groups) might you add yourself that would give you the right to run w/o sudo?
wheel?
Code: [Select]
# usermod -a -G XXX YYYwhere XXX=user, YYY=group
i.e. adm
I added myself to the adm group. This gives me full use of the journalctl command with no more need to use sudo.
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 11. August 2014, 16:02:54
i found a new and reliable way to display available updates (unfortunately, this displays ONLY pacman updates and NO AUR updates):
the code, which displays the number of available updates is this:
Code: [Select]
checkupdates | wc -l
the code with an if-statement (and displaying "outdated" in red, when updates are available) is:
Code: [Select]
${if_match ${execi 3600 checkupdates | wc -l }==0}${color}Updated$else${color ff2300}Outdated$endif

edit: i found a way to display pacman AND AUR updates: https://forum.manjaro.org/index.php?topic=2991.msg157968#msg157968



furthermore, i updated my conky by removing the kernel, uptime, and nvidia driver version information (because i do not really need it all the time on my desktop). new code for gpu and vram informaiton was added. (edit: the bar behind "VRAM" is video memory bandwidth usage)
here is the .conkyrc file content (i removed the weather information part, because it is really long and complicated. i also removed some nested if-statements.):
Code: [Select]
####Text color:
default_color white
color1 0ab1ff
color2 DD4814

####Background color:
own_window_colour black
#own_window_colour 222222

####Background transparency (0..255) - 0=transparent; 255=solid background
own_window_argb_value 0

own_window_argb_visual yes
own_window yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

draw_shades no
draw_outline no
draw_borders no

use_xft yes
xftalpha 1
xftfont DejaVuSansCondensed:weight=Bold:pixelsize=11

no_buffers yes
double_buffer yes
text_buffer_size 2048

short_units yes

update_interval 1
#update_interval 0.5

alignment top_right
gap_x 18
gap_y 20

maximum_width 260

if_up_strictness 1

default_bar_size 109 9



TEXT
${font DejaVuSansCondensed-Bold:size=26}${color1}$alignr${time %H:%M}$font
${font DejaVuSansCondensed-Bold:size=11}${color1}$alignr${time %A, %d.%B %Y}

### ----------  here is the weather information missing ---------------------

${font DejaVuSansCondensed-Bold:size=11}${color}GPU: ${color1}${goto 58}${font DejaVuSansCondensed-Bold:size=9}${execi 29 nvidia-settings -q GPUCoreTemp -t | grep -m 1 "" }°C ${goto 98}${color2}${execbar nvidia-settings -q GPUUtilization -t | cut -d , -f 1 | cut -d = -f 2 }${alignr}${color1}${execi 3 nvidia-settings -q GPUCurrentProcessorClockFreqs -t | grep -m 1 ""} MHz
${font DejaVuSansCondensed-Bold:size=11}${color}VRAM: ${goto 98}${font DejaVuSansCondensed-Bold:size=9}${color2}${execbar nvidia-settings -q GPUUtilization -t | cut -d , -f 2 | cut -d = -f 2 }${alignr}${color1}${execi 10 nvidia-settings -q UsedDedicatedGPUMemory -t} MB 

${voffset 8}${font DejaVuSansCondensed-Bold:size=11}${color}CPU ${goto 38}1:${color1} ${goto 58}${font DejaVuSansCondensed-Bold:size=9}${execi 30 sensors | grep 'Core 0:' | cut -c16-17}°C ${goto 98}${color2}${cpubar cpu1}  ${alignr}${color1}${freq_g cpu1} GHz
 ${goto 98}${color2}${cpubar cpu5}  ${color1}
${font DejaVuSansCondensed-Bold:size=11}${color}CPU ${goto 38}2:${color1} ${goto 58}${font DejaVuSansCondensed-Bold:size=9}${execi 31 sensors | grep 'Core 1:' | cut -c16-17}°C ${goto 98}${color2}${cpubar cpu2}  ${alignr}${color1}${freq_g cpu2} GHz
 ${goto 98}${color2}${cpubar cpu6}  ${color1}
${font DejaVuSansCondensed-Bold:size=11}${color}CPU ${goto 38}3:${color1} ${goto 58}${font DejaVuSansCondensed-Bold:size=9}${execi 32 sensors | grep 'Core 2:' | cut -c16-17}°C ${goto 98}${color2}${cpubar cpu3}  ${alignr}${color1}${freq_g cpu3} GHz
 ${goto 98}${color2}${cpubar cpu7}  ${color1}
${font DejaVuSansCondensed-Bold:size=11}${color}CPU ${goto 38}4:${color1} ${goto 58}${font DejaVuSansCondensed-Bold:size=9}${execi 33 sensors | grep 'Core 3:' | cut -c16-17}°C ${goto 98}${color2}${cpubar cpu4}  ${alignr}${color1}${freq_g cpu4} GHz
 ${goto 98}${color2}${cpubar cpu8}  ${color1} ${font DejaVuSansCondensed-Bold:size=11}

${voffset 8}${color}PROCESS ${color1}${font DejaVuSansCondensed-Bold:size=9} $running_processes / $processes ${font DejaVuSansCondensed-Bold:size=11}${color}$alignr CPU     IO     RAM${font DejaVuSansCondensed-Bold:size=9}${color1}
    ${voffset 4}${top name 1} ${goto 150}${top cpu 1}
    ${top name 2} ${goto 150}${top cpu 2}
    ${top name 3} ${goto 150}${top cpu 3}
    ${top name 4} ${goto 150}${top cpu 4}

    ${top_io name 1} ${goto 194}${top_io io_read 1}
                     ${goto 194}${top_io io_write 1}

    ${top_mem name 1} $alignr${top_mem mem_res 1}
    ${top_mem name 2} $alignr${top_mem mem_res 2}
    ${top_mem name 3} $alignr${top_mem mem_res 3}
    ${top_mem name 4} $alignr${top_mem mem_res 4}${font DejaVuSansCondensed-Bold:size=11}

${voffset 12}${color}RAM: ${color1} $alignr${mem} / ${memmax}
${color2}${membar 9,260}${color1}
${color}Swap: ${color1} ${goto 58}${diskio sda3}/s $alignr${swap} / ${swapmax}

${voffset 8}${color}Root: ${color1} ${goto 58}${diskio sda1}/s ${alignr}${fs_used /} / ${fs_size /}
${color2}${fs_bar 9,260 /}

${color}Data: ${color1} ${goto 58}${diskio sdb}/s ${alignr}${fs_used /home} / ${fs_size /home}
${color2}${fs_bar 9,260 /home}

${voffset 15}${color}Down: ${color1}${downspeed enp9s0}/s ${alignr} ${color}Up: ${color1}${upspeed enp9s0}/s
${color2}${downspeedgraph enp9s0 25,120 -t} ${alignr}${upspeedgraph enp9s0 25,120 -t} ${color1}
Total: ${totaldown enp9s0}  ${alignr} Total: ${totalup enp9s0}
Title: Re: Conky thread, show your work!
Post by: natanvarga on 20. August 2014, 01:31:30
My most recent conky. Credit goes to some deviantart people for that weather thing. I could never have put that together on my own.

(http://www.zimagez.com/miniature/2014-08-20-0149171366x768scrot.png) (http://www.zimagez.com/zimage/2014-08-20-0149171366x768scrot.php)

Code: [Select]
# Manjaro Openbox-Lite Conky Configuration Script
#
# Written by Carl Duff of the Manjaro Team
# Email: carl[at]manjaro[dot]org - Website: www.manjaro.org - Forum: http://forum.manjaro.org/
#
# Feel free to alter, distribute, etc., this config file as you wish.
#

# Basic Settings

background yes
use_xft yes
xftfont dejavu sans mono:size=8
xftalpha 1
update_interval 0.5
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop #override #desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 240 800
maximum_width 240
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color 1c1c1c
default_shade_color 1c1c1c
default_outline_color 1c1c1c
alignment tl
gap_x 17
gap_y 35
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
imlib_cache_size 0

# Fancy Conky display
#${execi 300 ~/.config/executables/random_picture}
#${image ~/Pictures/WPs/now -s 320x180 -p -10,540}

TEXT
${execpi 300 ~/.config/executables/random_wallpaper}\
$alignc$sysname ${kernel}-$machine
$alignc${exec cat /etc/lsb-release|grep DESCRIPTION|sed s/DISTRIB_DESCRIPTION=//|sed 's/"//'|sed 's/"//'} ${exec cat /etc/lsb-release|grep RELEASE|sed s/DISTRIB_RELEASE=//} ${exec cat /etc/lsb-release|grep CODENAME|sed s/DISTRIB_CODENAME=//}
${alignc}bspwm ${exec bspwm -v}

Battery $alignr${battery_percent BATT}%
Temperature $alignr$acpitemp°C
CPU $alignr$cpu%
SSD $alignr$fs_free
RAM $alignr$mem
Swap $alignr$swap
Uptime $alignr$uptime
Load $alignr$loadavg
Processes $alignr$running_processes/$processes
Threads $alignr$running_threads/$threads
${if_mpd_playing}Volume $alignr$mpd_vol%
$endif
${wireless_essid wlp3s0} $alignr${wireless_link_qual_perc wlp3s0}%
Up $alignr${upspeed wlp3s0} - ${totalup wlp3s0}
Down $alignr${downspeed wlp3s0} - ${totaldown wlp3s0}

GMX $alignr${execi 300 ~/.gmx.imap.pl}
Gmail $alignr${execi 300 ~/.gmail.imap.pl}
GU $alignr${execi 300 ~/.glasgow.imap.pl}
Facebook $alignr${execi 120 fbcmd notify|grep FRIEND|sed s'/FRIEND_REQUESTS  //'} ${execi 120 fbcmd notify|grep MESSAGES|sed s'/MESSAGES_UNREAD  //'} ${execi 120 fbcmd notices|grep "*"|wc -l}

$if_mpd_playing$mpd_elapsed$alignr$mpd_length
$alignc$mpd_title
$alignc$mpd_artist
$alignc$mpd_album $endif
${if_match $updates >= 10}\
${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=805884&u=c" -o ~/.cache/weather.xml}
Location $alignr${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "city=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}, ${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "country=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
Temperature $alignr${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°C
Weather $alignr${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
Wind $alignr${execi 300 grep "yweather:wind" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
Humidity $alignr${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "humidity=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}%

${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'} $alignr${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'} ${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}-${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°C
${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'} $alignr${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'} ${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}-${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°C
${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'} $alignr${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'} ${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}-${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°C
${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'} $alignr${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'} ${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'}-${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'}°C
${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5'} $alignr${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5'} ${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5'}-${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5'}°C
$endif
${rss http://feeds.bbci.co.uk/news/rss.xml 5 item_title}
${rss http://feeds.bbci.co.uk/news/rss.xml 5 item_title 1}
${rss http://feeds.bbci.co.uk/news/rss.xml 5 item_title 2}
${rss http://feeds.bbci.co.uk/news/rss.xml 5 item_title 3}
${rss http://feeds.bbci.co.uk/news/rss.xml 5 item_title 4}

${execpi 60 DJS=`date +%_d`; cal | sed s/"\(^\|[^0-9]\)$DJS"'\b'/'\1${color 048ac7}'"$DJS"'$color'/}
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 24. August 2014, 21:34:05
@natanvarga:
i have taken a closer look at your weather display. this looks great and much more efficient and faster than my weather display. i think about changing my conky code for my weather display according to your code. but i do not want to use yahoo. i have already found a weather site with good weather information for my area.

the only trouble i have is understanding the grep commands in your conky code.
example:
Code: [Select]
grep -o "text=\"[^\"]*\""

my question: what does "\"[^\"]*\"" mean or what kind of code is that? where can i learn how to write that kind of code?
Title: Re: Conky thread, show your work!
Post by: Salinko on 25. August 2014, 00:42:22
@natanvarga:
i have taken a closer look at your weather display. this looks great and much more efficient and faster than my weather display. i think about changing my conky code for my weather display according to your code. but i do not want to use yahoo. i have already found a weather site with good weather information for my area.

the only trouble i have is understanding the grep commands in your conky code.
example:
Code: [Select]
grep -o "text=\"[^\"]*\""

my question: what does "\"[^\"]*\"" mean or what kind of code is that? where can i learn how to write that kind of code?

It's regex. Take a look at this (http://zoooot.com/2002/yahoo-weather-icon-geektool-update) for a simplified version.
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 25. August 2014, 16:43:28
thx @ Salinko.

i rewrote most of my weather code. it is now about one third of it's original size. i used regular expressions in my grep commands. especially using the "curl" command to store a webpage/rss feed in cache saved a lot of commands.

regular expressions (short: regex) are even described in a couple of paragraphs in the man pages of grep. i found further explanations here: http://www.grymoire.com/Unix/Regular.html

Title: Re: Conky thread, show your work!
Post by: dicktater on 25. August 2014, 21:01:17
Anybody know where to find a webcam on a weather rock (http://intellitrends.files.wordpress.com/2012/09/weather-rock.png) or weather string (http://3.bp.blogspot.com/-NJ1RF5jsNgU/T5Rit4OPJ6I/AAAAAAAAAp4/DLKPnM0rugs/s400/mfl0394l.jpg), I'd like to start using gkrellm again with the GKrellKam plugin to keep tabs on the weather.
I wish this guy were on every night. I'd watch!
https://www.youtube.com/watch?v=wzb_CDJ6U-s
Title: Re: Conky thread, show your work!
Post by: Salinko on 26. August 2014, 06:14:30
Anyone know of any way -lua script maybe - to get network speed graphs to display more useful information, relative to one another? Take a look at the image, it shows the speed for up and down in bits/kbits/mbits, whichever is appropriate, but the actual graph bears no relationship to the numbers. 

Edit: I should mention, this is using upspeedgraph and downspeedgraph. I've tried playing with the logarithmic switch but it makes little difference.
Title: Re: Conky thread, show your work!
Post by: Salinko on 26. August 2014, 08:12:00
It seems the 'scale' switch works with the graphs, it's just a question of supplying a realistic value...
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 26. August 2014, 13:58:25
here is my weather display in my conky:
Code: [Select]
${font DejaVuSansCondensed-Bold:size=9}${execi 1800 curl -s "http://www.yr.no/place/Norway/Oslo/Oslo/Oslo/" | grep -A 90 "<strong>Today" | grep -A 7 -m 7 "<tr>" > ~/.cache/weather.xml }
${color}${execi 1800 grep -o "<td> [0-9]*" ~/.cache/weather.xml | cut -c6- | sed -n 1p } ${goto 25}Uhr ${color1}${goto 58}${execi 1800 grep -o "alt=\"[A-Za-z ]*" ~/.cache/weather.xml | cut -d \" -f 2 | sed -n 1p } ${goto 150}${execi 1800 grep -o "Feels like [0-9]*" ~/.cache/weather.xml | cut -c12- | sed -n 1p }°C $alignr${execi 1800 grep "Precipitation:" ~/.cache/weather.xml | grep -o ">[0-9.– ]*mm" | cut -c2- | sed -n 1p }
${color}${execi 1800 grep -o "<td> [0-9]*" ~/.cache/weather.xml | cut -c6- | sed -n 2p } ${goto 25}Uhr ${color1}${goto 58}${execi 1800 grep -o "alt=\"[A-Za-z ]*" ~/.cache/weather.xml | cut -d \" -f 2 | sed -n 2p } ${goto 150}${execi 1800 grep -o "Feels like [0-9]*" ~/.cache/weather.xml | cut -c12- | sed -n 2p }°C $alignr${execi 1800 grep "Precipitation:" ~/.cache/weather.xml | grep -o ">[0-9.– ]*mm" | cut -c2- | sed -n 2p }
${color}${execi 1800 grep -o "<td> [0-9]*" ~/.cache/weather.xml | cut -c6- | sed -n 3p } ${goto 25}Uhr ${color1}${goto 58}${execi 1800 grep -o "alt=\"[A-Za-z ]*" ~/.cache/weather.xml | cut -d \" -f 2 | sed -n 3p } ${goto 150}${execi 1800 grep -o "Feels like [0-9]*" ~/.cache/weather.xml | cut -c12- | sed -n 3p }°C $alignr${execi 1800 grep "Precipitation:" ~/.cache/weather.xml | grep -o ">[0-9.– ]*mm" | cut -c2- | sed -n 3p }
${color}${execi 1800 grep -o "<td> [0-9]*" ~/.cache/weather.xml | cut -c6- | sed -n 4p } ${goto 25}Uhr ${color1}${goto 58}${execi 1800 grep -o "alt=\"[A-Za-z ]*" ~/.cache/weather.xml | cut -d \" -f 2 | sed -n 4p } ${goto 150}${execi 1800 grep -o "Feels like [0-9]*" ~/.cache/weather.xml | cut -c12- | sed -n 4p }°C $alignr${execi 1800 grep "Precipitation:" ~/.cache/weather.xml | grep -o ">[0-9.– ]*mm" | cut -c2- | sed -n 4p }
${color}${execi 1800 grep -o "<td> [0-9]*" ~/.cache/weather.xml | cut -c6- | sed -n 5p } ${goto 25}Uhr ${color1}${goto 58}${execi 1800 grep -o "alt=\"[A-Za-z ]*" ~/.cache/weather.xml | cut -d \" -f 2 | sed -n 5p } ${goto 150}${execi 1800 grep -o "Feels like [0-9]*" ~/.cache/weather.xml | cut -c12- | sed -n 5p }°C $alignr${execi 1800 grep "Precipitation:" ~/.cache/weather.xml | grep -o ">[0-9.– ]*mm" | cut -c2- | sed -n 5p }
("Uhr" is german and means "o'clock")

i extract all information from a norwegian weather site: www.yr.no. it offers a rss feed with the latest weather information (including a nice icon for the current weather situation), but i actually use their webpage's html code to extract all the information i need. i can get more information from it and it is almost as easy as using the rss feed.

because of all the regex code and the trick with storing the webpage in cache, i need much less conky code to accomplish my weather display
thx @ natanvarga again.
Title: Re: Conky thread, show your work!
Post by: ramblgyrl on 31. August 2014, 03:07:53
Here's a variant I run with on my laptop. It's a gotham variant.

(http://i.imgur.com/SPu2bCy.png)

I have this up on deviantART in a zip file that include the .conkyrc, .ttf file, and README.txt for instructions.

You can download it here: http://fav.me/d7azxc1

Code: [Select]
use_xft yes
xftfont 110:size=8
xftalpha 0.1
update_interval 1
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_argb_visual yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 250 5
maximum_width 1200
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
default_color efefef
default_shade_color 333333
default_outline_color green
alignment top_left
gap_x 4
gap_y 0
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
use_spacer yes


TEXT
${voffset 10}${color efefef}${font Antipasto:pixelsize=138}${time %I:%M}${font}${voffset -84}${offset 8}${color acc9dc}${font Antipasto:pixelsize=50}${time %p} ${voffset -18}${color efefef}${font Antipasto:pixelsize=30}${time %B} ${color acc9dc}${time %d} ${color efefef}${time %Y}${font}${voffset 22}${font Antipasto:pixelsize=58}${offset -110}${time %A}${font}
${voffset 2}${offset 3}${font Antipasto:pixelsize=14}${color acc9dc}HD ${offset 2}$color${fs_free /} / ${fs_size /}${offset 10}${color acc9dc}RAM ${offset 2}$color$mem / $memmax${offset 10}${color acc9dc}CPU ${offset 2}$color${cpu}%${offset 10}${color acc9dc}ARCH ${offset 2}$color${machine}

Of course, you can see the placement of it in the attached image.
Title: Re: Conky thread, show your work!
Post by: pjhalsli on 31. August 2014, 05:55:22
I wish this guy were on every night. I'd watch!

That was just too funny. Poor guy   ;D
Title: Re: Conky thread, show your work!
Post by: natanvarga on 11. September 2014, 21:41:49
(http://i.imgur.com/ZaD3Nlp.png?1) (http://imgur.com/ZaD3Nlp)

Code: [Select]
# Manjaro Openbox-Lite Conky Configuration Script
#
# Written by Carl Duff of the Manjaro Team
# Email: carl[at]manjaro[dot]org - Website: www.manjaro.org - Forum: http://forum.manjaro.org/
#
# Feel free to alter, distribute, etc., this config file as you wish.
#

# Basic Settings

background yes
use_xft yes
xftfont dejavu sans mono:size=7
xftalpha 1
update_interval 0.3
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop #override #desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 1355 8
maximum_width 1355
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color 1c1c1c
default_shade_color 1c1c1c
default_outline_color 1c1c1c
alignment tm
gap_x 0
gap_y 1
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
#imlib_cache_size 0

# Fancy Conky display

TEXT
${if_match $desktop == 1}● $else○ $endif\
${if_match $desktop == 2}● $else○ $endif\
${if_match $desktop == 3}● $else○ $endif\
${if_match $desktop == 4}● $else○ $endif\
${if_match $desktop == 5}● $else○ $endif\
${if_match $desktop == 6}●$else○$endif\
$alignr${time %d/%m/%y %H:%M}
$alignc$sysname ${kernel}-$machine
$alignc${exec cat /etc/lsb-release|grep DESCRIPTION|sed s/DISTRIB_DESCRIPTION=//|sed 's/"//'|sed 's/"//'} ${exec cat /etc/lsb-release|grep RELEASE|sed s/DISTRIB_RELEASE=//} ${exec cat /etc/lsb-release|grep CODENAME|sed s/DISTRIB_CODENAME=//}
${alignc}bspwm ${exec bspwm -v}
$alignc${if_match ${execi 120 yaourt -Qua | wc -l } == 1}${execi 120 yaourt -Qua | wc -l } update$else${execi 120 yaourt -Qua | wc -l } updates$endif\
$if_mpd_playing
















































${font dejavu sans mono:size=5}

${font dejavu sans mono:size=7}



$alignc$mpd_elapsed/$mpd_length
$alignc$mpd_title
$alignc$mpd_artist
$alignc$mpd_album $endif

Number of updates in particular:
Code: [Select]
${if_match ${execi 120 yaourt -Qua | wc -l } == 1}${execi 120 yaourt -Qua | wc -l } update$else${execi 120 yaourt -Qua | wc -l } updates$endif
I also have yaourt -Syy in cron hourly.
Title: Re: Conky thread, show your work!
Post by: Tinctorius on 11. September 2014, 22:22:09
^ Classy! Long time no see, natan!
Title: Re: Conky thread, show your work!
Post by: natanvarga on 12. September 2014, 03:21:44
^ Classy! Long time no see, natan!
Thanks. Yeah, I've not been using conky very much in the last couple months. Thought I'd come back to it and replace my panel with it.
Title: Re: Conky thread, show your work!
Post by: grandadruss on 22. September 2014, 05:06:00
Small screenshot, and the codes.


Code: [Select]
# .conkyrc

update_interval 1.0

alignment top_right

background no
border_width 1

cpu_avg_samples 2

# Define other colors
color1 56073D #purple
color2 green
color3 grey30
color4 yellow
color5 grey50
color6 orange
color7 blue
color8 grey20
color9 red

# Default colors and also border colors
default_color black
default_outline_color white
default_shade_color white

double_buffer yes
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no

# font Ubuntu Mono Italic:size=8

gap_x 10
gap_y 20

net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
# own_window_argb_visual yes
# own_window_argb_value 0
own_window_class Conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type normal
stippled_borders 2
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no
short_units yes
top_name_width 9
total_run_times 0

use_xft yes
# xftfont Nimbus Sans L Bold Condensed:size=8
xftfont Garuda Bold:size=8


# Minimum size of text area
minimum_size 200 900
maximum_width 220

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


TEXT
${alignc}${color7}${time %a, } ${color7}${time %e %B %G}
${alignc}${color7}${time %Z,    }${color7}${time %H:%M:%S}
${alignc}$nodename
${alignc}$sysname $kernel on $machine
${color}${stippled_hr 2}
# ${scroll 35 $nodename - $sysname $kernel on $machine | }
# ${color lightgrey}Uptime:$color $uptime ${color lightgrey}Load:$color $loadavg
${color7}CPU1:${color}${font} ${freq cpu1} Mhz ${color7}${alignr}CPU2:${color}${freq cpu2} Mhz
${color7}Usage:${color} ${cpu}% ${if_match ${cpu}>50}${if_match ${cpu}>75}${color red}${else}${color orange}${endif}${else}${color green}${endif} ${cpubar 6}${color}
${color7}RAM Usage:${color}${alignr} $mem - $memmax
${color} ${memperc}% ${if_match ${memperc}>50}${if_match ${memperc}>75}${color red}${else}${color orange}${endif}${else}${color green}${endif} ${membar 6}${color}
${color7}Swap Usage:${color}${alignr} $swap - $swapmax
${color} ${swapperc}% ${if_match ${swapperc}>50}${if_match ${swapperc}>75}${color red}${else}${color orange}${endif}${else}${color green}${endif} ${swapbar 6}${color}
${color7}${alignc}Processor temperature: ${image /home/russell/Conky/tempback.jpg -p 85,156 -s 50x20}
${color}${font URW Bookman L Demi Bold:size=12}${alignc}${if_match ${acpitemp}>55}${if_match ${acpitemp}>65}${color red}${else}${color orange}${endif}${else}${color green}${endif} ${acpitemp}°C${color}
${stippled_hr 2}
# Exp. Copy-paste x dk75 ubuntu forum. Try to adapt for other bars.
#
${font Nimbus SansL Bold Condensed:size=10}${color7}${alignc}Battery :${font}
${color}${battery_percent}%${if_match ${battery_percent}<50}${if_match ${battery_percent}<30}${color red}${else}${color orange}${endif}${else}${color green}${endif} ${battery_bar 4}${color}
#
${stippled_hr 2}
#
${font Nimbus SansL Bold Condensed:size=10}${color7}${alignc}File systems:
${font}${color7}Manj64    ${color}${fs_used /}  ${fs_size /}${if_match ${fs_free_perc /}<25}${if_match ${fs_free_perc /}<10}${color red}${else}${color orange}${endif}${else}${color green}${endif} ${fs_bar 6 /}${color}
${color7}Ddrive     ${color}${fs_used /run/media/russell/Ddrive}  ${fs_size /run/media/russell/Ddrive}${if_match ${fs_free_perc /run/media/russell/Ddrive}<25}${if_match ${fs_free_perc /run/media/russell/Ddrive}<10}${color red}${else}${color orange}${endif}${else}${color green}${endif} ${fs_bar 6 /run/media/russell/Ddrive}${color}
${stippled_hr 2}
#
#${font :size=10}${color7}${alignc}Wi-Fi
${font :size=9}${alignc}${color7}${wireless_essid wlp2s0}
${font}${color7}IP Address:${alignr 15}${color}${gw_ip}
#
${font Nimbus SansL Bold Condensed:size=10}${color7}${alignc}${nodename}
${font}${color7}IP address: ${alignr 15}${color}${addr wlp2s0}
${color7}Wireless signal:  ${color}${wireless_link_qual_perc wlp2s0}%   ${color}${if_match ${wireless_link_qual_perc wlp2s0}<60}${color orange}${else}${color green}${endif} ${wireless_link_bar wlp2s0}

# Exp: Following copied from ./karlos at crunchbang -then changed a bit
${color1}${voffset -6}${font PizzaDude Bullets:size=14}O${font}   Up:${offset 60}${upspeedgraph wlp2s0 8,15 F57900 FCAF3E}${alignr}${upspeedf wlp2s0}K
${voffset 4}${font PizzaDude Bullets:size=14}U${font}   Down: ${offset 40}${downspeedgraph wlp2s0 8,15 F57900 FCAF3E}${alignr}${downspeedf wlp2s0}K
${voffset 4}${font PizzaDude Bullets:size=14}N${font}   Upload: ${alignr}${totalup wlp2s0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font}   Download: ${alignr}${totaldown wlp2s0}
# ${voffset 4}${font PizzaDude Bullets:size=14}a${font}   Local Ip: ${alignr}${addr wlp2s0}
#
# Exp: Copied from Ubuntu forum
#
${color7}${offset 60}${font Dejavu Sans Condensed Bold:size=10}UP:${alignr} DOWN:${font} 
${voffset 2}Today:${goto 60}${execi 300 vnstat -i wlp2s0 | grep "today" | awk '{print $5 $6}'}${alignr}${execi 300 vnstat -i wlp2s0 | grep "today" | awk '{print $2 $3}'}
Total:${color}${font Dejavu Sans Condensed Bold:size=12}${offset 53}${execi 300 vnstat | grep "today" | awk '{print $8 $9}'}
${color7}${font}Month:${goto 60}${execi 300 vnstat -i wlp2s0 -m | tail -n 3 | grep "`date +" '%y"`" | awk '{print $6 $7}'}${alignr}${execi 300 vnstat -i wlp2s0 -m | tail -n 3 | grep "`date +" '%y"`" | awk '{print $3 $4}'}
Monthly Total: 25th to 24th
${alignc}${color}${font Dejavu Sans Condensed Bold:size=12}${execi 300 vnstat -i wlp2s0 -m | tail -n 3 | grep "'" | awk '{print $9 $10}'}${font}
${color}${stippled_hr 2}
${color7}Name             ${alignr}PID   CPU%   MEM%
${color1} ${top name 1} ${alignr}${top pid 1}  ${top cpu 1}  ${top mem 1} 
${color1} ${top name 2} ${alignr}${top pid 2}  ${top cpu 2}  ${top mem 2} 
${color1} ${top name 3} ${alignr}${top pid 3}  ${top cpu 3}  ${top mem 3} 
${color1} ${top name 4} ${alignr}${top pid 4}  ${top cpu 4}  ${top mem 4} 
${color7} ${top name 5} ${alignr}${top pid 5}  ${top cpu 5}  ${top mem 5} 
${color7} ${top name 6} ${alignr}${top pid 6}  ${top cpu 6}  ${top mem 6} 
${color7} ${top name 7} ${alignr}${top pid 7}  ${top cpu 7}  ${top mem 7} 
${color7} ${top name 8} ${alignr}${top pid 8}  ${top cpu 8}  ${top mem 8} 

${image /home/russell/Conky/model1.jpg -p -5,470 -s 220x85} 


Code: [Select]
# .conkyrc_tl

update_interval 10.0

# alignment top_middle

background no
border_width 1

cpu_avg_samples 2

# Define other colors
color1 black
color2 grey20
color3 grey30
color4 grey40
color5 grey50
color6 grey60
color7 grey70
color8 grey80
color9 grey90

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

double_buffer yes
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no

# font Nimbus SansL Bold Condensed:size=8

gap_x 400
gap_y 770
# minimum_size 5 5
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
# own_window_argb_visual yes
# own_window_argb_value 0
own_window_class Conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type normal
stippled_borders 2
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no
short_units yes
top_name_width 9
total_run_times 0

use_xft yes
xftfont Nimbus SansL Bold:size=18

# Minimum size of text area
maximum_width 1000
minimum_size 600 5
default_color white
# own_window_colour black

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


TEXT
${color3}${time %A}${color2} : ${time %e-%m-%G} : ${color1}${time %I:%M %p}
# ${font :size=24}${alignc}${color2}${time %I:%M %p}
# ${font}${alignc}${color3}${time %Z}${font :size=24}${alignc}${color2}${time %I:%M %p}
Title: Re: Conky thread, show your work!
Post by: trzalica on 23. September 2014, 13:00:04
You could put smaller screenshot because this one is just too big ;)  O:-)
Title: Re: Conky thread, show your work!
Post by: grandadruss on 24. September 2014, 05:32:49
Better?  :)   I try.  :)

To see conky better, copy, paste, run.  :D
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 24. September 2014, 12:50:54
thanks a lot, grandadruss.
now, it is possible to recognize most of your conky. the daily and monthly upload/download "counter" looks interesting.

everybody, who thinks this conky looks interesting, please backup your .conkyrc file and try out grandadruss' .conkyrc file.
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 01. October 2014, 00:53:22
i just created a tutorial with basic tips for conky with answers to basic questions i have encountered quite often:
https://forum.manjaro.org/index.php?topic=16844.0
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 05. October 2014, 21:01:13
i want to share a method, how to display the number of available updates (repository AND AUR updates) in your conky:

1. create the following file in your home directory (it is a hidden file in order to keep your home folder clean):
Code: [Select]
~/.crontab
and edit it's content to:
Code: [Select]
* */4 * * * yaourt -Sy
this will check for updates every 4 hours (modify this time, if you want to. 4 hours is the default value for pamac to check for updates).
next, you need to start the cronjob with the following command. you only need to run this command once (NOT at every boot):
Code: [Select]
sudo crontab ~/.crontab -u root
run this command every time you change the content of the ~/.crontab file.

if you have pamac-tray or octopi-notifier installed (these are icons in your panel, which change color when you have available updates), you do not need to do all this. just skip step 1.

2. in your .conkyrc file, use this code to display the number of available updates:
Code: [Select]
${execi 30 yaourt -Qua | wc -l }
this will check for updates every 30 seconds.

i only want to see a red "Outdated" sign next to my displayed time in my conky, when updates are available. else, only the time is displayed. i do it with the following code in my .conkyrc file:
Code: [Select]
${if_match ${execi 301 yaourt -Qua | wc -l }==0} ${color}$alignr${time %H:%M}$font$else${color ff2300}Outdated${color}$alignr ${time %H:%M}$endif




i have talked with natanvarga via PM and he was able to use a different method (which did not work for me) to do the same:

1. create a file (with root privileges) /etc/cron.hourly/update with the content:
Code: [Select]
#! /bin/bash

yaourt -Syy
then, make this file executable:
Code: [Select]
sudo chmod +x /etc/cron.hourly/update

step 2 is the same as mentioned above.
Title: Re: Conky thread, show your work!
Post by: thundersqueak on 06. October 2014, 22:59:38
@ramblgyrl care to share the wallpaper thnx!
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 07. November 2014, 22:15:56
Here is the screen:

(http://i.imgur.com/Cjcomqh.jpg)

And here is the .conkyrc:

Code: [Select]
background yes
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment top_right
minimum_size 140 500
maximum_width 140
gap_x 10
gap_y 10
use_spacer none

update_interval 1
cpu_avg_samples 2
net_avg_samples 2
total_run_times 0

use_xft yes
xftfont Inconsolata:size=10
xftalpha 0.7
text_buffer_size 1024
uppercase no
override_utf8_locale yes

double_buffer yes
no_buffers yes
draw_shades no
draw_outline no
draw_borders no

color1 ffffff
color2 000000

short_units yes

TEXT
${execpi 3600 cal | sed "s/$(date '+%d')/\${font Inconsolata:size=10:weight=bold}\${color #ff0000}&\${color}\${font Inconsolata:size=10}/" | sed "s/$(date '+%B %Y')/\${font Inconsolata:size=10:weight=bold}&\${font Inconsolata:size=10}/"}

/root: ${alignr}Free ${fs_free /}
${fs_bar 6,140 /}
/home: ${alignr}Free ${fs_free /home}
${fs_bar 6,140 /home}

Total:${alignr}${memmax}
Free:${alignr}${memfree}

Up:${alignr}${upspeed enp1s4}
Total:${alignr}${totalup enp1s4}

Down:${alignr}${downspeed enp1s4}
Total:${alignr}${totaldown enp1s4}

${alignc}${kernel}
${alignc}${uptime}

Now, my dilemma is this:
As you can tell from the .conkyrc the current date in calendar is SUPPOSED to be highlighted by being RED text. It is NOT doing this any more.

Can someone who is "very fluent" in Conky please look at my .conkyrc to see maybe something is amiss?

P.S.
It only started NOT doing what is is supposed to do recently, and I have no ideas as to what has changed or been changed to make it misbehave. Say about a week ago or there abouts the current date would have been RED. NOT the "default color".

Thanks.
Title: Re: Conky thread, show your work!
Post by: Salinko on 08. November 2014, 01:10:17
Here is the screen...

Now, my dilemma is this:
As you can tell from the .conkyrc the current date in calendar is SUPPOSED to be highlighted by being RED text. It is NOT doing this any more.

Can someone who is "very fluent" in Conky please look at my .conkyrc to see maybe something is amiss?

P.S.
It only started NOT doing what is is supposed to do recently, and I have no ideas as to what has changed or been changed to make it misbehave. Say about a week ago or there abouts the current date would have been RED. NOT the "default color".

Thanks.

See if:

Code: [Select]
${execpi 3600 cal | sed "s/`date +%e` /\${font Inconsolata:size=10:weight=bold}\${color #ff0000}&\${color}\${font Inconsolata:size=10}/" | sed "s/$(date '+%B %Y')/\${font Inconsolata:size=10}&\${font Inconsolata:size=10}/"}

Is any better.
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 08. November 2014, 03:08:59
See if:

Code: [Select]
${execpi 3600 cal | sed "s/`date +%e` /\${font Inconsolata:size=10:weight=bold}\${color #ff0000}&\${color}\${font Inconsolata:size=10}/" | sed "s/$(date '+%B %Y')/\${font Inconsolata:size=10}&\${font Inconsolata:size=10}/"}

Is any better.

Well, I had already received a "code change" in this thread:
https://forum.manjaro.org/index.php?topic=17735.new#new (https://forum.manjaro.org/index.php?topic=17735.new#new)

BUT, I shall back up that iteration for now and see if the one you have offered is a wee bit better.
One never knows. And Thanks.
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 08. November 2014, 03:18:23
OK, went with your code change Salinko. It worked PERFECTLY.

Now if only I can have the last items I mentioned in this post:
https://forum.manjaro.org/index.php?topic=17735.msg163810#msg163810 (https://forum.manjaro.org/index.php?topic=17735.msg163810#msg163810)

About adding the year and have month and year be bold AND centered over calendar it would be positively perfect.

Thanks.
Title: Re: Conky thread, show your work!
Post by: Salinko on 08. November 2014, 03:41:19
OK, went with your code change Salinko. It worked PERFECTLY.

Now if only I can have the last items I mentioned in this post:
https://forum.manjaro.org/index.php?topic=17735.msg163810#msg163810 (https://forum.manjaro.org/index.php?topic=17735.msg163810#msg163810)

About adding the year and have month and year be bold AND centered over calendar it would be positively perfect.

Thanks.

This?
Code: [Select]
${execpi 3600 cal | sed "s/`date +%e` /\${font Inconsolata:size=10:weight=bold}\${color #ff0000}&\${color}\${font Inconsolata:size=10}/" | sed "s/$(date '+%B %Y')/\${font Inconsolata:size=10:weight=bold}&\${font Inconsolata:size=10}/"}
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 08. November 2014, 05:17:30
This?
Code: [Select]
${execpi 3600 cal | sed "s/`date +%e` /\${font Inconsolata:size=10:weight=bold}\${color #ff0000}&\${color}\${font Inconsolata:size=10}/" | sed "s/$(date '+%B %Y')/\${font Inconsolata:size=10:weight=bold}&\${font Inconsolata:size=10}/"}

OK, made the change you provided, here is the complete .conkyrc:

Code: [Select]
background yes
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment top_right
minimum_size 140 500
maximum_width 150
gap_x 10
gap_y 5
use_spacer none

update_interval 1
cpu_avg_samples 2
net_avg_samples 2
total_run_times 0

use_xft yes
xftfont Inconsolata:size=10
xftalpha 0.7
text_buffer_size 1024
uppercase no
override_utf8_locale yes

double_buffer yes
no_buffers yes
draw_shades no
draw_outline no
draw_borders no

color1 ffffff
color2 000000

short_units yes

TEXT
${execpi 3600 cal | sed "s/`date +%e` /\${font Inconsolata:size=10:weight=bold}\${color #ff0000}&\${color}\${font Inconsolata:size=10}/" | sed "s/$(date '+%B %Y')/\${font Inconsolata:size=10:weight=bold}&\${font Inconsolata:size=10}/"}

/root: ${alignr}Free ${fs_free /}
${fs_bar 6,140 /}
/home: ${alignr}Free ${fs_free /home}
${fs_bar 6,140 /home}

Total:${alignr}${memmax}
Free:${alignr}${memfree}

Up:${alignr}${upspeed enp1s4}
Total:${alignr}${totalup enp1s4}

Down:${alignr}${downspeed enp1s4}
Total:${alignr}${totaldown enp1s4}

${alignc}${kernel}
${alignc}${uptime}

It worked ABSOLUTELY SUPERBLY, exactly what and how I needed it to be!
Here is final product:

(http://i.imgur.com/O0wCQfJ.jpg)

As you can tell, color for todays date is correct, and bold and placement og month/year are exactly what they are supposed to be.

Thank you Salinko!!!!
Title: Re: Conky thread, show your work!
Post by: Linuxkartoffel on 20. November 2014, 15:27:43
My currently only panel:

(https://i.imgur.com/rnJGLrQ.png)

Code: [Select]
# Conkyrc written by Linuxkartoffel (ebicore03@gmail.com)
# You're free to modify and contribute it.


background yes
use_xft yes
xftfont Profont:size=8
xftalpha 0.1

update_interval 1
total_run_times 0
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

maximum_width 1366
minimum_size 1366 0

own_window yes
own_window_type override
own_window_transparent no
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,above
own_window_class conky

double_buffer yes
no_buffers no
default_color 064841
color1 c5c5c5
color2 ff3030
alignment top_middle
imlib_cache_size 0
short_units yes


gap_x 0
gap_y 0

TEXT
${color2}Hostname: ${color1}${exec cat /etc/hostname} ${color2}Kernel: ${color1}${exec uname -r} ${color2}Uptime: ${color1}${uptime_short} ${alignr}${color2}MPD:${color1} ${if_mpd_playing}${mpd_smart 50} ${mpd_elapsed}/${mpd_length}${else}${mpd_status}${endif} ${color2}VOL: ${color1}${exec /home/eric/.conky/vol.sh} ${color2}WIFI: ${color1}${wireless_essid wlp2s0}${color2} Bat: ${color1}${battery_percent BAT0}% ${color2}time: ${color1}${time %H:%M}
Title: Re: Conky thread, show your work!
Post by: Departure on 23. November 2014, 10:51:13
Here is one for the AMD users, Original script was from the corky-manage, but I have changed just about everything so it ended up completely different. You will nonfree drivers installed for the GFX card info as it uses aticonfig

(http://i62.tinypic.com/xqbz0n.png)

Code: [Select]
background yes
double_buffer yes

alignment top_right

border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no

gap_x 10
gap_y 10
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no

own_window yes
own_window_type normal
own_window_transparent no
own_window_colour 000000
own_window_argb_visual yes
own_window_argb_value 51
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

minimum_size 220 240

stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none

show_graph_scale no
show_graph_range no

use_xft yes
xftalpha 0.1
xftfont Ubuntu:size=10
override_utf8_locale yes
color0 white
color1 lightgrey
color2 00AADD
color3 DDAA00

TEXT
${color0}${font Ubuntu:size=12}Radeon HD 6990$font
${color2}Load:      ${alignr}${color1} ${execi 10 aticonfig --odgc --adapter=0 | egrep -i "GPU load" | xargs echo | awk '{print $4}'}
${color2}Temp:      ${alignr}${color1} ${execi 10 aticonfig --odgt --adapter=0 | egrep -i temperature | xargs echo | awk '{print $5}'} °C
${color2}Fan:       ${alignr}${color1} ${execi 10 aticonfig --pplib-cmd "get fanspeed 0"  | egrep -i Result | xargs echo | awk '{print $4}'}
${color2}GPU Clock: ${alignr}${color1} ${execi 10 aticonfig --odgc --adapter=0 | egrep -i "Current Clocks" | xargs echo | awk '{print $4}'} MHz
${color2}Mem Clock: ${alignr}${color1} ${execi 10 aticonfig --odgc --adapter=0 | egrep -i "Current Clocks" | xargs echo | awk '{print $5}'} MHz

${color0}${font Ubuntu:size=12}AMD X6 1100T$font
${color2}Load: ${alignr}${color1} $cpu%
${color2}Temp: ${alignr}${color1} ${execi 10 inxi -s | xargs echo | awk '{print $6}'}
${color2}Fan:  ${alignr}${color1} ${execi 10 inxi -s | xargs echo | awk '{print $19}'} rpm

${color0}${font Ubuntu:size=12}WiFi$font
${color2}${offset 0}Up: ${color lightgrey}${upspeed wlp8s0} ${goto 122}${color2} Down: ${color1}${downspeed wlp8s0}
${color2}${offset 0}Total: ${color1}${totalup wlp8s0}       ${goto 122}${color2} Total: ${color1}${totaldown wlp8s0}
${color1}${upspeedgraph wlp8s0 20,100 00AADD 00AADD}        ${alignr}${downspeedgraph wlp8s0 20,100 00AADD 00AADD}
Title: Re: Conky thread, show your work!
Post by: vaikus84 on 25. November 2014, 16:32:16
Hello Manjaro

So here is what I did:
-----------------------------
sudo pacman -S conky hddtemp lm_sensors

Session and Startup - Applicatino Autostart - +Add - Name: Conky Command: conky


You need to have hddtemp installed and running permanently as a daemon:
------------------------------------------------------------------------------------------------------
Running the daemon allows to access the temperature via TCP/IP, to use for example with scripts.

The daemon is controlled by hddtemp.service.

Note: Arguments to hddtemp are directly given in /usr/lib/systemd/system/hddtemp.service.
This is especially important with multiple disks, as the default configuration only monitors /dev/sda.
Change ExecStart to override hddtemp.service:

    Create a directory in /etc/systemd/system:

sudo mkdir /etc/systemd/system/hddtemp.service.d

    Create customexec.conf inside and add the drives you want to monitor, e.g.:

sudo nano /etc/systemd/system/hddtemp.service.d/customexec.conf

[Service]
ExecStart=
ExecStart=/usr/bin/hddtemp -dF /dev/sda /dev/sdb /dev/sdc

    Reload systemd's unit files:

sudo systemctl --system daemon-reload

Restart the hddtemp service:
---------------------------------------
sudo systemctl restart hddtemp

Add it to start with the system:
-----------------------------------------
sudo systemctl enable hddtemp && sudo hddtemp --daemon start && sudo systemctl start hddtemp

Reboot!


Here is my Conky guts:
--------------------------------
(I couldn't get mounted devices to work - that's why it's commented out)
(UPS is also commented out since I don't have one at the moment)

Code: [Select]
# Overwrite this file if you want to have a permanent setting
######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 2
cpu_avg_samples 2

imlib_cache_size 0
double_buffer yes
no_buffers yes

format_human_readable

#####################
# - Text settings - #
#####################
use_xft yes
xftfont DejaVu Sans:size=8
override_utf8_locale yes
text_buffer_size 2048

#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

alignment top_right
gap_y 30
gap_x 13
border_inner_margin 0

minimum_size 300 300
maximum_width 300
maximum_height 560

default_bar_size 92 6

#########################
# - Graphics settings - #
#########################
draw_shades no
default_shade_color 000000
default_color FFFFFF
###############################
# Set your Distro name manually
###############################
TEXT
${font DejaVu Sans:style=Bold:size=8}MANJARO LINUX $hr${font}
##############
# -   OS       - #
##############
${voffset 3}${goto 65}Host: ${alignr}${offset -1}${nodename}
${goto 65}Kernel: ${alignr}${offset -1}${kernel}
${goto 65}Uptime: ${alignr}${offset -1}${uptime}
${goto 65}Battery: ${alignr}${offset -1}${battery_percent}%
########################
# Current I/O Scheduler
########################
${goto 65}I/O Scheduler:${alignr}${ioscheduler sda}
#############################################################################################
#System load average, 1 is for past 1 minute, 2 for past 5 minutes and 3 for past 15 minutes.
#Without argument, prints all three values separated by whitespace.
###################################################################
${goto 65}Load: ${alignr}${loadavg 1}
###########################################################
# UPS - Uninterruptible power supply - Monitoring
# http://en.wikipedia.org/wiki/Uninterruptible_power_supply
###########################################################
###${font DejaVu Sans:style=Bold:size=8}UPS $hr${font}
###${voffset 3}${goto 60}UPS Name: ${alignr}${apcupsd_model}
###${goto 60}UPS Mode: ${alignr}${apcupsd_upsmode}
###${goto 60}UPS Status: ${alignr}${apcupsd_status}
###${goto 60}UPS Time Left: ${alignr}${apcupsd_timeleft}
#############
# - CLOCK - #
#############
${font DejaVu Sans:style=Bold:size=8}CLOCK $hr${font}
${font DejaVu Sans:size=20}${alignc}${time %H:%M}${font}
${alignc}${time %A %d %B %Y}
##############
# - SYSTEM - #
##############
${voffset 3}${font DejaVu Sans:style=Bold:size=8}SYSTEM $hr${font}
# |--CPU
${voffset 3}${font DejaVu Sans:style=Bold:size=8}FRQ${goto 60}${font DejaVu Sans:size=8}${freq_g} GHz   ${alignr}${offset -1}Temp: ${exec sensors | grep 'Physical id 0:' | awk '{print $4}' | cut -c2-3}°C
${voffset 2}${font DejaVu Sans:style=Bold:size=8}CPU${font}${offset -20}${goto 60}Core I: ${font DejaVu Sans:style=Bold:size=8}${cpu cpu1}%${font} ${alignr}${cpubar cpu2 10,142}
${goto 60}Core II: ${font DejaVu Sans:style=Bold:size=8}${cpu cpu2}%${font} ${alignr}${cpubar cpu2 10,142}
${goto 60}Core III: ${font DejaVu Sans:style=Bold:size=8}${cpu cpu3}%${font} ${alignr}${cpubar cpu3 10,142}
${goto 60}Core IV: ${font DejaVu Sans:style=Bold:size=8}${cpu cpu4}%${font} ${alignr}${cpubar cpu4 10,142}
# |--MEM
${font DejaVu Sans:style=Bold:size=8}RAM${font}${goto 60}RAM: ${font DejaVu Sans:style=Bold:size=8}$memperc%${font} ${alignr}${membar 10,142}
${goto 60}Used: ${font DejaVu Sans:style=Bold:size=8}${mem}${font} ${alignr}${offset -6}Free: ${font DejaVu Sans:style=Bold:size=8}${memeasyfree}${font}
################
#|--MAIN HDD I/O
################
${voffset 3}${font DejaVu Sans:style=Bold:size=8}Main Internald Drive $hr${font}
# |--HDD Temperature
${voffset 3}${goto 60}Temp:${hddtemp /dev/sda}°C
# |--HDD Read/Write
${voffset 3}${goto 60}${font DejaVu Sans:size=8}Read: ${diskio_read sda}${alignr}${offset -5}Write: ${diskio_write sda}
# |--HDD
${voffset 3}${font DejaVu Sans:style=Bold:size=8}SYS${font}${goto 60}root: ${offset 10}${font DejaVu Sans:style=Bold:size=8}${fs_used_perc /}%${font} ${alignr}${fs_bar 10,142 /}
${goto 60}Used: ${font DejaVu Sans:style=Bold:size=8}${fs_used /}${font} ${alignr}${offset -6}Free: ${font DejaVu Sans:style=Bold:size=8}${fs_free /}${font}
${voffset 3}${font DejaVu Sans:style=Bold:size=8}FILES${font}${goto 60}home: ${font DejaVu Sans:style=Bold:size=8}${fs_used_perc /home}%${font} ${alignr}${fs_bar 10,142 /home}
${goto 60}Used: ${font DejaVu Sans:style=Bold:size=8}${fs_used /home}${font} ${alignr}${offset -10}Free: ${font DejaVu Sans:style=Bold:size=8}${fs_free /home}${font}
# |--SWAP
${voffset 3}${font DejaVu Sans:style=Bold:size=8}SWAP${font}${goto 60}Swap: ${font DejaVu Sans:style=Bold:size=8}${swapperc}%${font} ${alignr}${swapbar 10,142}
${goto 60}Used: ${font DejaVu Sans:style=Bold:size=8}$swap${font} ${alignr}${offset -6}Free: ${font DejaVu Sans:style=Bold:size=8}$swapmax${font}
######################
#|--EXTERNAL MEDIA I/O
######################
#${voffset 3}${font DejaVu Sans:style=Bold:size=8}External Media (First drive)$hr${font}
#${voffset 3}${goto 60}${font DejaVu Sans:size=8}Read: ${offset 1}${diskio_read sdb}${alignr}${offset -4}Write: ${diskio_write sdb}
# |--EXTERNAL MEDIA HDD
#${voffset 3}${goto 60}Ext: ${offset 12}${font DejaVu Sans:style=Bold:size=8}${if_mounted sdb}${fs_used_perc sdb}%${font} ${alignr}${fs_bar 10,142 sdb}
#${goto 60}Used: ${font DejaVu Sans:style=Bold:size=8}${if_mounted sdb}${fs_used sdb}${font} ${alignr}${offset -6}Free: ${font DejaVu Sans:style=Bold:size=8}${fs_free sdb}${font}
###############
# - NETWORK - #
###############
# |--Wi-Fi
${font DejaVu Sans:style=Bold:size=8}Wi-Fi ${hr 1}
${font}${if_existing /proc/net/route wlp3s0}
Essid Name:${goto 120}${font DejaVu Sans:style=Bold:size=8}${wireless_essid wlp3s0}${font}
Mode:${goto 120}${font DejaVu Sans:style=Bold:size=8}${wireless_mode wlp3s0}${font}
Signal strenght:${goto 120}${font DejaVu Sans:style=Bold:size=8}${wireless_link_qual wlp3s0}%${font}
Signal speed:${goto 120}${font DejaVu Sans:style=Bold:size=8}${wireless_bitrate wlp3s0}${font}
Local IP address:${goto 120}${font DejaVu Sans:style=Bold:size=8}${addr wlp3s0}${font}
Download speed:${goto 120}${font DejaVu Sans:style=Bold:size=8}${downspeedf wlp3s0}  Kb/sec${font}
${downspeedgraph wlp3s0 10 494949 f3f3f3 0 -l}
Uplaod speed:${goto 120}${font DejaVu Sans:style=Bold:size=8}${upspeedf wlp3s0} Kb/sec${font}
${upspeedgraph wlp3s0 10 494949 f3f3f3 0 -l}
#Downloaded:${goto 80}${font DejaVu Sans:style=Bold:size=8}${totaldown wlp3s0}${font} ${alignr}${offset -13}Uploaded:${offset 3}${font DejaVu Sans:style=Bold:size=8}${totalup wlp3s0}${font}
${else}${alignc}Not Conencted${endif}
# |--LAN
${font DejaVu Sans:style=Bold:size=8}LAN ${hr 1}
${font}${if_existing /proc/net/route eno1}
Local IP address:${goto 120}${font DejaVu Sans:style=Bold:size=8}${addr eno1}${font}
Download speed:${goto 120}${font DejaVu Sans:style=Bold:size=8}${downspeedf eno1}  Kb/sec${font}
${downspeedgraph eno1 10 494949 f3f3f3 0 -l}
Uplaod speed:${goto 120}${font DejaVu Sans:style=Bold:size=8}${upspeedf eno1} Kb/sec${font}
${upspeedgraph eno1 10 494949 f3f3f3 0 -l}
#Downloaded:${goto 80}${font DejaVu Sans:style=Bold:size=8}${totaldown eno1}${font} ${alignr}${offset -13}Uploaded:${offset 3}${font DejaVu Sans:style=Bold:size=8}${totalup eno1}${font}
${else}${alignc}Not Connected${endif}

Here is an image on how it looks like: http://picpaste.com/Manjaro-XFCE-Conky-1-m6Qzb4D4.jpg (http://picpaste.com/Manjaro-XFCE-Conky-1-m6Qzb4D4.jpg)
Title: Re: Conky thread, show your work!
Post by: skeevy420 on 28. November 2014, 02:46:32
I saw vaikus84's config from the post above and I thought to myself "I like that", so I figured I'd tweak it a bit and ended up tweaking it a lot....though you won't think so from the screen shot outside of the colors I picked, the tweaked HDD area, and the missing partition pane.

Required packages are gnu-netcat, lm_sensors, hddtemp, & sysstat.  Install and setup hddtemp exactly as described by vaikus84 in the post above....I don't feel like copy/pasting something from one post up.

Now for some of the interesting features -- 11 color temperature gradient for CPU...GPU and HDD temperature gradients coming, IO scheduler by disk, disk IO stats, detects XFCE Presentation Mode with colored on/off output

Planned features -- multiple themes/color schemes (possibly dynamic based on user selected theme...gotta look into it more), color gradients for all displayed temperatures, more XFCE stats displayed (I'm an XFCE user), OGL/MESA info, dynamic partition info (size, space free, mounted or not, dev location, etc...gonna have fun with lsblk and grep for that)

The conky script itself is pretty simple
Code: [Select]
# Overwrite this file if you want to have a permanent setting
############################
### -- Conky settings -- ###
############################
update_interval 1
total_run_times 0
net_avg_samples 2
cpu_avg_samples 2

imlib_cache_size 0
double_buffer yes
no_buffers yes

format_human_readable

###########################
### -- Text Settings -- ###
###########################
use_xft yes
xftfont DejaVu Serif:size=11
override_utf8_locale yes
text_buffer_size 2048

##########################
### -- Window Specs -- ###
##########################
own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

alignment top_right
gap_y 30
gap_x 13
border_inner_margin 0

minimum_size 300 300
maximum_width 300
maximum_height 560

default_bar_size 92 6

###############################
### -- Graphics Settings -- ###
###############################
draw_shades no
default_shade_color 000000
default_color 00ddff

####################
### -- Colors -- ###
####################
# ICS Blues
color1 0099cc #Holo Blue Dark
color2 00ddff #Holo Blue Bright
color3 33b5e5 #Holo Blue Light
# White
color4 ffffff
# Greens
color5 339933
color6 34be5b

###############################
### -- Conky Start -- ###
###############################
TEXT
${execp ~/.conky/skvycnky.sh}

See, only one line of TEXT.  Told ya it was simple.....

Now for the BASH script
Code: [Select]
#!/bin/bash
# skvycnky.sh

## -- Define Colors

CLR1='${color1}'
CLR2='${color2}'
CLR3='${color3}'
CLR4='${color4}'
CLR5='${color5}'
CLR6='${color6}'
CLR7='${color7}'
CLR8='${color8}'
CLR9='${color9}'
CLR0='${color0}'

## --Green/Orange/Red Gradient for Temperatures
CLR20='${color 34be5b}'
CLR21='${color 4dcb44}'
CLR22='${color 67d92d}'
CLR23='${color 81e716}'
CLR24='${color 9bf500}'
CLR25='${color bcd000}'
CLR26='${color ddaC00}'
CLR27='${color ff8800}'
CLR28='${color e36d13}'
CLR29='${color c75326}'
CLR30='${color ac3939}'
XFIF="$(if [[ $XFPMODE = true ]]; then echo $CLR5 On; else echo $CLR3 Off; fi)"
TEMPGRADCPU="$(if [[ $CPUTEMP -lt 47 ]]; then echo $CLR20; else if [[ $CPUTEMP -ge 47 && $CPUTEMP -lt 51 ]]; then echo $CLR21; else if [[ $CPUTEMP -ge 51 && $CPUTEMP -lt 56 ]]; then echo $CLR22; else if [[ $CPUTEMP -ge 56 && $CPUTEMP -lt 61 ]]; then echo $CLR23; else if [[ $CPUTEMP -ge 61 && $CPUTEMP -lt 66 ]]; then echo $CLR24; else if [[ $CPUTEMP -ge 66 && $CPUTEMP -lt 71 ]]; then echo $CLR25; else if [[ $CPUTEMP -ge 71 && $CPUTEMP -lt 76 ]]; then echo $CLR26; else if [[ $CPUTEMP -ge 76 && $CPUTEMP -lt 81 ]]; then echo $CLR27;  else if [[ $CPUTEMP -ge 81 && $CPUTEMP -lt 86 ]]; then echo $CLR28; else if [[ $CPUTEMP -ge 86 && $CPUTEMP -lt 91 ]]; then echo $CLR29; else if [[ $CPUTEMP -ge 91 ]]; then echo $CLR30; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi)"

## -- Fonts

## -- Serif
FNT1='${font Dejavu Serif:style=Bold:size=11}'
FNT2='${font Dejavu Serif:size=11}'
FNT3='${font Dejavu Serif:style=Bold:size=28}'
FNT4='${font Dejavu Serif:size=28}'

## -- Commands
CPUTEMP="$(exec sensors | grep 'Core 0:'| awk '{print $3}' | cut -c 2-3)"
GPUDEVICE="$(exec lspci | grep 'VGA' | awk '{print $12, $13, $14}' | cut -c 2-15)"
GPUDRIVER="$(exec lspci -v | grep VGA -A12 | grep 'Kernel driver in use' | awk '{print $5}')"
GPUTEMP="$(exec sensors | grep 'radeon' -A2 | grep 'temp' | awk '{print $2}' | cut -c 2-3)"
SDATEMP="$(exec nc localhost 7634 | awk '{print $2}' | cut -c 17-18)"
SDBTEMP="$(exec nc localhost 7634 | awk '{print $3}' | cut -c 17-18)"
SDCTEMP="$(exec nc localhost 7634 | awk '{print $5}' | cut -c 3-4)"
SDDTEMP="$(exec nc localhost 7634 | awk '{print $6}' | cut -c 17-18)"
SDAIOST="$(exec iostat -x | grep 'sda' | awk '{print R,$4,W,$5,U,$14}' R="Read:" W="Write:" U="Util:")"
SDBIOST="$(exec iostat -x | grep 'sdb' | awk '{print R,$4,W,$5,U,$14}' R="Read:" W="Write:" U="Util:")"
SDCIOST="$(exec iostat -x | grep 'sdc' | awk '{print R,$4,W,$5,U,$14}' R="Read:" W="Write:" U="Util:")"
SDDIOST="$(exec iostat -x | grep 'sdd' | awk '{print R,$4,W,$5,U,$14}' R="Read:" W="Write:" U="Util:")"
XFPMODE="$(exec xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode)"
XFIF="$(if [[ $XFPMODE = true ]]; then echo $CLR5 On; else echo $CLR3 Off; fi)"

########################
### -- Conky TEXT -- ###
########################
echo $FNT1$CLR2 'Manjaro Linux $hr${font}${color}'
################
### -- OS -- ###
################
echo $FNT2$CLR3'${voffset 3}${goto 65}Host: ${font}${color}${alignr}${offset -1}${nodename}'
echo $FNT2$CLR3'${goto 65}Kernel: ${font}${color}${alignr}${offset -1}${kernel}'
echo $FNT2$CLR3'${goto 65}Uptime: ${font}${color}${alignr}${offset -1}${uptime}'
#############################################################################################
#System load average, 1 is for past 1 minute, 2 for past 5 minutes and 3 for past 15 minutes.
#Without argument, prints all three values separated by whitespace.
###################################################################
echo $FNT2$CLR3'${goto 65}Load: ${alignr}${loadavg 1}${font}${color}'
###################
### -- CLOCK -- ###
###################
echo $FNT1$CLR2'CLOCK $hr${font}${color}'
echo $FNT3$CLR3'${alignc}${time %H}'$FNT3$CLR4':'$FNT4$CLR1'${time %M}${font}${color}'
echo $CLR1'${alignc}${time %A} '$CLR4'${time %d}'$CLR1' ${time %B} '$CLR3'${time %Y}'
####################
### -- SYSTEM -- ###
####################
echo '${voffset 3}'$FNT1$CLR2'SYSTEM $hr${font}${color}'
# CPU
echo '${voffset 3}'$FNT1$CLR3'FRQ${goto 60}'$FNT2'${freq_g} GHz   ${alignr}${offset -1}Temp: '$TEMPGRADCPU$CPUTEMP'°C'
echo '${voffset 2}'$FNT1$CLR3'CPU${font}${offset -20}${goto 60}Core 1: '$FNT1'${cpu cpu1}%${font} ${alignr}${cpubar cpu1 10,142}${color}'
echo '${voffset 2}'$FNT1$CLR3'${font}${offset -20}${goto 60}Core 2: '$FNT1'${cpu cpu2}%${font} ${alignr}${cpubar cpu2 10,142}${color}'
echo '${voffset 2}'$FNT1$CLR3'${font}${offset -20}${goto 60}Core 3: '$FNT1'${cpu cpu3}%${font} ${alignr}${cpubar cpu3 10,142}${color}'
echo '${voffset 2}'$FNT1$CLR3'${font}${offset -20}${goto 60}Core 4: '$FNT2'${cpu cpu4}%${font} ${alignr}${cpubar cpu4 10,142}${color}'
# MEM
echo $FNT1$CLR3'RAM${font}${goto 60}RAM: '$FNT2'$memperc%${font} ${alignr}${membar 10,142}}'
echo '${goto 60}Used: '$FNT2'${mem} ${alignr}${offset -6}Free: ${memeasyfree}${font}${color}'
# GPU
echo '${voffset 3}'$FNT1$CLR3'GPU${goto 60}'$FNT2'Device: '$GPUDEVICE'${font}${color}'
echo '${goto 60}'$FNT2$CLR3'Driver: '$GPUDRIVER'${font}${color}'
echo '${goto 60}'$FNT2$CLR3'Temp: '$GPUTEMP'°C${font}${color}'
######################
### -- HDD Info -- ###
######################
echo '${voffset 3}'$FNT1$CLR2'Internal Drive Stats $hr${font}${color}'
# HDD Information
# SDA
echo '${voffset 3}'$FNT1$CLR3'sda '$FNT2'Temp: '$SDATEMP'°C ${alignr}${offset -6}I/O Scheduler: ${ioscheduler sda}${font}'
echo '${goto 35}'$FNT2$SDAIOST' ${alignr}${offset -6}'
# SDB
echo '${voffset 3}'$FNT1$CLR3'sdb '$FNT2'Temp: '$SDBTEMP'°C ${alignr}${offset -6}I/O Scheduler: ${ioscheduler sdb}${font}'
echo '${goto 35}'$FNT2$SDBIOST' ${alignr}${offset -6}'
# SDC
echo '${voffset 3}'$FNT1$CLR3'sdc '$FNT2'Temp: '$SDCTEMP'°C ${alignr}${offset -6}I/O Scheduler: ${ioscheduler sdc}${font}'
echo '${goto 35}'$FNT2$SDCIOST' ${alignr}${offset -6}'
# SDD
echo '${voffset 3}'$FNT1$CLR3'sdd '$FNT2'Temp: '$SDDTEMP'°C ${alignr}${offset -6}I/O Scheduler: ${ioscheduler sdd}${font}'
echo '${goto 35}'$FNT2$SDDIOST' ${alignr}${offset -6}'
############################
### -- Partition Info -- ###
############################
# ${voffset 3}${font DejaVu Serif:style=Bold:size=11}${color3}SYS${font}${goto 60}root: ${offset 10}${font DejaVu Serif:style=Bold:size=11}${fs_used_perc /}%${font} ${alignr}${fs_bar 10,142 /}
# ${goto 60}Used: ${font DejaVu Serif:style=Bold:size=11}${fs_used /}${font} ${alignr}${offset -6}Free: ${font DejaVu Serif:style=Bold:size=11}${fs_free /}${font}
# ${voffset 3}${font DejaVu Serif:style=Bold:size=11}${color3}FILES${font}${goto 60}home: ${font DejaVu Serif:style=Bold:size=11}${fs_used_perc /home}%${font} ${alignr}${fs_bar 10,142 /home}
# ${goto 60}Used: ${font DejaVu Serif:style=Bold:size=11}${fs_used /home}${font} ${alignr}${offset -10}Free: ${font DejaVu Serif:style=Bold:size=11}${fs_free /home}${font}
# SWAP
# ${voffset 3}${font DejaVu Serif:style=Bold:size=11}SWAP${font}${goto 60}${color3}Swap: ${font DejaVu Serif:style=Bold:size=11}${swapperc}%${font} ${alignr}${swapbar 10,142}
# ${goto 60}Used: ${font DejaVu Serif:style=Bold:size=11}$swap${font} ${alignr}${offset -6}Free: ${font DejaVu Serif:style=Bold:size=11}$swapmax${font}
# ######################
# #|--EXTERNAL MEDIA I/O
# ######################
# #${voffset 3}${font DejaVu Serif:style=Bold:size=11}External Media (First drive)$hr${font}
# #${voffset 3}${goto 60}${font DejaVu Serif:size=11}Read: ${offset 1}${diskio_read sdd}${alignr}${offset -4}Write: ${diskio_write sdd}
# # |--EXTERNAL MEDIA HDD
# #${voffset 3}${goto 60}Ext: ${offset 12}${font DejaVu Serif:style=Bold:size=11}${if_mounted sdd}${fs_used_perc sdb}%${font} ${alignr}${fs_bar 10,142 sdd}
# #${goto 60}Used: ${font DejaVu Serif:style=Bold:size=11}${if_mounted sdd}${fs_used sdb}${font} ${alignr}${offset -6}Free: ${font DejaVu Serif:style=Bold:size=11}${fs_free sdd}${font}
#####################
### -- NETWORK -- ###
#####################
# Wi-Fi
echo $FNT1$CLR2'Wi-Fi $hr${font}${color}'
echo '${if_existing /proc/net/route wlp3s0}'
echo 'Essid Name:${goto 120}'$FNT1'${wireless_essid wlp3s0}${font}'
echo 'Mode:${goto 120}'$FNT1'${wireless_mode wlp3s0}${font}'
echo 'Signal strength:${goto 120}'$FNT1'${wireless_link_qual wlp3s0}%${font}'
echo 'Signal speed:${goto 120}'$FNT1'${wireless_bitrate wlp3s0}${font}'
echo 'Local IP address:${goto 120}'$FNT1'${addr wlp3s0}${font}'
echo 'Download speed:${goto 120}'$FNT1'${downspeedf wlp3s0}  Kb/sec${font}'
echo '${downspeedgraph wlp3s0 10 494949 f3f3f3 0 -l}'
echo 'Uplaod speed:${goto 120}'$FNT1'${upspeedf wlp3s0} Kb/sec${font}'
echo '${upspeedgraph wlp3s0 10 494949 f3f3f3 0 -l}'
echo 'Downloaded:${goto 80}'$FNT1'${totaldown wlp3s0}${font} ${alignr}${offset -13}Uploaded:${offset 3}'$FNT1'{totalup wlp3s0}${font}'
echo '${else}${alignc}Not Conencted${endif}'
# LAN
echo $FNT1$CLR2'LAN $hr${font}${color}'
echo '${if_existing /proc/net/route enp0s29f7u3}'
echo $FNT1$CLR3'Local IP address:${font} ${addr enp0s29f7u3}${font}${offset 15}'
echo $FNT1$CLR3'Download speed:${font} ${downspeedf enp0s29f7u3} Kb/sec'
echo '${downspeedgraph enp0s29f7u3 10 494949 f3f3f3 0 -l}'
echo $FNT1$CLR3'Upload speed:${font} ${font}${upspeedf enp0s29f7u3} Kb/sec'
echo '${upspeedgraph enp0s29f7u3 10 494949 f3f3f3 0 -l}'
echo $FNT1$CLR3'Down:${font} ${totaldown enp0s29f7u3}'$FNT1'${alignr}Up:${font} ${totalup enp0s29f7u3}'
echo '${else}${alignc}Not Connected${endif}'
##################
### -- XFCE -- ###
##################
# Power Settings
echo $FNT1$CLR2'Power Settings $hr${font}${color}'
echo $FNT1$CLR1'Presentation Mode is '$XFIF'${font}${color}'
#
exit

Install Instructions
Follow the instructions in this post (https://forum.manjaro.org/index.php?topic=2991.msg166687#msg166687) for hddtemp
If necessary, install the packages "gnu-netcat" (or openbsd-netcat), lm_sensors, & sysstat.
Add my BASH script to a file named skvycnky.sh located at  $HOME/.conky/ and make sure it's executable (chmod +x ~/.conky/skvycnky.sh)

EDIT:
Basic Theme Support
Just copy/paste the below overwriting everything from the top of the script to this line "## --Green/Orange/Red Gradient for Temperatures".  No fallback theme added so you have to define one or the other....and yes, the green theme sucks, it's merely a proof of concept.  Just wanted to post in case anybody else wanted to mess around with my bash/conky setup.

Does anybody know the Manjaro green hexcodes that are used in various themes?  I'd like some green themes to match the desktops, old and new.

Code: [Select]
#!/bin/bash
# skvycnky.sh

## -- Themes
## -- Valid Choices are "Blue", "Green"

THEME=Green

if [[ $THEME = BLue ]]
then CLR1='${color1}'
CLR2='${color2}'
CLR3='${color3}'
CLR4='${color4}'
CLR5='${color5}'
CLR6='${color6}'
CLR7='${color7}'
CLR8='${color8}'
CLR9='${color9}'
CLR0='${color0}'
else if [[ $THEME = Green ]]
then CLR1='${color5}'
CLR2='${color4}'
CLR3='${color5}'
CLR4='${color4}'
CLR5='${color5}'
CLR6='${color6}'
CLR7='${color7}'
CLR8='${color8}'
CLR9='${color9}'
CLR0='${color0}'
fi
fi
## --Green/Orange/Red Gradient for Temperatures
Title: Re: Conky thread, show your work!
Post by: vaikus84 on 28. November 2014, 11:20:15
Edited:

When using compiz and want to avoid showing shadows under conky (add those to Window specifications):

own_window_argb_visual yes
own_window_argb_value 255

I saw vaikus84's config from the post above and I thought to myself "I like that", so I figured I'd tweak it a bit and ended up tweaking it a lot....though you won't think so from the screen shot outside of the colors I picked, the tweaked HDD area, and the missing partition pane.

Required packages are gnu-netcat, lm_sensors, hddtemp, & sysstat.  Install and setup hddtemp exactly as described by vaikus84 in the post above....I don't feel like copy/pasting something from one post up.

Now for some of the interesting features -- 11 color temperature gradient for CPU...GPU and HDD temperature gradients coming, IO scheduler by disk, disk IO stats, detects XFCE Presentation Mode with colored on/off output

Planned features -- multiple themes/color schemes (possibly dynamic based on user selected theme...gotta look into it more), color gradients for all displayed temperatures, more XFCE stats displayed (I'm an XFCE user), OGL/MESA info, dynamic partition info (size, space free, mounted or not, dev location, etc...gonna have fun with lsblk and grep for that)

The conky script itself is pretty simple
Code: [Select]
# Overwrite this file if you want to have a permanent setting
############################
### -- Conky settings -- ###
############################
update_interval 1
total_run_times 0
net_avg_samples 2
cpu_avg_samples 2

imlib_cache_size 0
double_buffer yes
no_buffers yes

format_human_readable

###########################
### -- Text Settings -- ###
###########################
use_xft yes
xftfont DejaVu Serif:size=11
override_utf8_locale yes
text_buffer_size 2048

##########################
### -- Window Specs -- ###
##########################
own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

alignment top_right
gap_y 30
gap_x 13
border_inner_margin 0

minimum_size 300 300
maximum_width 300
maximum_height 560

default_bar_size 92 6

###############################
### -- Graphics Settings -- ###
###############################
draw_shades no
default_shade_color 000000
default_color 00ddff

####################
### -- Colors -- ###
####################
# ICS Blues
color1 0099cc #Holo Blue Dark
color2 00ddff #Holo Blue Bright
color3 33b5e5 #Holo Blue Light
# White
color4 ffffff
# Greens
color5 339933
color6 34be5b

###############################
### -- Conky Start -- ###
###############################
TEXT
${execp ~/.conky/skvycnky.sh}

See, only one line of TEXT.  Told ya it was simple.....

Now for the BASH script
Code: [Select]
#!/bin/bash
# skvycnky.sh

## -- Define Colors

CLR1='${color1}'
CLR2='${color2}'
CLR3='${color3}'
CLR4='${color4}'
CLR5='${color5}'
CLR6='${color6}'
CLR7='${color7}'
CLR8='${color8}'
CLR9='${color9}'
CLR0='${color0}'

## --Green/Orange/Red Gradient for Temperatures
CLR20='${color 34be5b}'
CLR21='${color 4dcb44}'
CLR22='${color 67d92d}'
CLR23='${color 81e716}'
CLR24='${color 9bf500}'
CLR25='${color bcd000}'
CLR26='${color ddaC00}'
CLR27='${color ff8800}'
CLR28='${color e36d13}'
CLR29='${color c75326}'
CLR30='${color ac3939}'
XFIF="$(if [[ $XFPMODE = true ]]; then echo $CLR5 On; else echo $CLR3 Off; fi)"
TEMPGRADCPU="$(if [[ $CPUTEMP -lt 47 ]]; then echo $CLR20; else if [[ $CPUTEMP -ge 47 && $CPUTEMP -lt 51 ]]; then echo $CLR21; else if [[ $CPUTEMP -ge 51 && $CPUTEMP -lt 56 ]]; then echo $CLR22; else if [[ $CPUTEMP -ge 56 && $CPUTEMP -lt 61 ]]; then echo $CLR23; else if [[ $CPUTEMP -ge 61 && $CPUTEMP -lt 66 ]]; then echo $CLR24; else if [[ $CPUTEMP -ge 66 && $CPUTEMP -lt 71 ]]; then echo $CLR25; else if [[ $CPUTEMP -ge 71 && $CPUTEMP -lt 76 ]]; then echo $CLR26; else if [[ $CPUTEMP -ge 76 && $CPUTEMP -lt 81 ]]; then echo $CLR27;  else if [[ $CPUTEMP -ge 81 && $CPUTEMP -lt 86 ]]; then echo $CLR28; else if [[ $CPUTEMP -ge 86 && $CPUTEMP -lt 91 ]]; then echo $CLR29; else if [[ $CPUTEMP -ge 91 ]]; then echo $CLR30; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi)"

## -- Fonts

## -- Serif
FNT1='${font Dejavu Serif:style=Bold:size=11}'
FNT2='${font Dejavu Serif:size=11}'
FNT3='${font Dejavu Serif:style=Bold:size=28}'
FNT4='${font Dejavu Serif:size=28}'

## -- Commands
CPUTEMP="$(exec sensors | grep 'Core 0:'| awk '{print $3}' | cut -c 2-3)"
GPUDEVICE="$(exec lspci | grep 'VGA' | awk '{print $12, $13, $14}' | cut -c 2-15)"
GPUDRIVER="$(exec lspci -v | grep VGA -A12 | grep 'Kernel driver in use' | awk '{print $5}')"
GPUTEMP="$(exec sensors | grep 'radeon' -A2 | grep 'temp' | awk '{print $2}' | cut -c 2-3)"
SDATEMP="$(exec nc localhost 7634 | awk '{print $2}' | cut -c 17-18)"
SDBTEMP="$(exec nc localhost 7634 | awk '{print $3}' | cut -c 17-18)"
SDCTEMP="$(exec nc localhost 7634 | awk '{print $5}' | cut -c 3-4)"
SDDTEMP="$(exec nc localhost 7634 | awk '{print $6}' | cut -c 17-18)"
SDAIOST="$(exec iostat -x | grep 'sda' | awk '{print R,$4,W,$5,U,$14}' R="Read:" W="Write:" U="Util:")"
SDBIOST="$(exec iostat -x | grep 'sdb' | awk '{print R,$4,W,$5,U,$14}' R="Read:" W="Write:" U="Util:")"
SDCIOST="$(exec iostat -x | grep 'sdc' | awk '{print R,$4,W,$5,U,$14}' R="Read:" W="Write:" U="Util:")"
SDDIOST="$(exec iostat -x | grep 'sdd' | awk '{print R,$4,W,$5,U,$14}' R="Read:" W="Write:" U="Util:")"
XFPMODE="$(exec xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode)"
XFIF="$(if [[ $XFPMODE = true ]]; then echo $CLR5 On; else echo $CLR3 Off; fi)"

########################
### -- Conky TEXT -- ###
########################
echo $FNT1$CLR2 'Manjaro Linux $hr${font}${color}'
################
### -- OS -- ###
################
echo $FNT2$CLR3'${voffset 3}${goto 65}Host: ${font}${color}${alignr}${offset -1}${nodename}'
echo $FNT2$CLR3'${goto 65}Kernel: ${font}${color}${alignr}${offset -1}${kernel}'
echo $FNT2$CLR3'${goto 65}Uptime: ${font}${color}${alignr}${offset -1}${uptime}'
#############################################################################################
#System load average, 1 is for past 1 minute, 2 for past 5 minutes and 3 for past 15 minutes.
#Without argument, prints all three values separated by whitespace.
###################################################################
echo $FNT2$CLR3'${goto 65}Load: ${alignr}${loadavg 1}${font}${color}'
###################
### -- CLOCK -- ###
###################
echo $FNT1$CLR2'CLOCK $hr${font}${color}'
echo $FNT3$CLR3'${alignc}${time %H}'$FNT3$CLR4':'$FNT4$CLR1'${time %M}${font}${color}'
echo $CLR1'${alignc}${time %A} '$CLR4'${time %d}'$CLR1' ${time %B} '$CLR3'${time %Y}'
####################
### -- SYSTEM -- ###
####################
echo '${voffset 3}'$FNT1$CLR2'SYSTEM $hr${font}${color}'
# CPU
echo '${voffset 3}'$FNT1$CLR3'FRQ${goto 60}'$FNT2'${freq_g} GHz   ${alignr}${offset -1}Temp: '$TEMPGRADCPU$CPUTEMP'°C'
echo '${voffset 2}'$FNT1$CLR3'CPU${font}${offset -20}${goto 60}Core 1: '$FNT1'${cpu cpu1}%${font} ${alignr}${cpubar cpu1 10,142}${color}'
echo '${voffset 2}'$FNT1$CLR3'${font}${offset -20}${goto 60}Core 2: '$FNT1'${cpu cpu2}%${font} ${alignr}${cpubar cpu2 10,142}${color}'
echo '${voffset 2}'$FNT1$CLR3'${font}${offset -20}${goto 60}Core 3: '$FNT1'${cpu cpu3}%${font} ${alignr}${cpubar cpu3 10,142}${color}'
echo '${voffset 2}'$FNT1$CLR3'${font}${offset -20}${goto 60}Core 4: '$FNT2'${cpu cpu4}%${font} ${alignr}${cpubar cpu4 10,142}${color}'
# MEM
echo $FNT1$CLR3'RAM${font}${goto 60}RAM: '$FNT2'$memperc%${font} ${alignr}${membar 10,142}}'
echo '${goto 60}Used: '$FNT2'${mem} ${alignr}${offset -6}Free: ${memeasyfree}${font}${color}'
# GPU
echo '${voffset 3}'$FNT1$CLR3'GPU${goto 60}'$FNT2'Device: '$GPUDEVICE'${font}${color}'
echo '${goto 60}'$FNT2$CLR3'Driver: '$GPUDRIVER'${font}${color}'
echo '${goto 60}'$FNT2$CLR3'Temp: '$GPUTEMP'°C${font}${color}'
######################
### -- HDD Info -- ###
######################
echo '${voffset 3}'$FNT1$CLR2'Internal Drive Stats $hr${font}${color}'
# HDD Information
# SDA
echo '${voffset 3}'$FNT1$CLR3'sda '$FNT2'Temp: '$SDATEMP'°C ${alignr}${offset -6}I/O Scheduler: ${ioscheduler sda}${font}'
echo '${goto 35}'$FNT2$SDAIOST' ${alignr}${offset -6}'
# SDB
echo '${voffset 3}'$FNT1$CLR3'sdb '$FNT2'Temp: '$SDBTEMP'°C ${alignr}${offset -6}I/O Scheduler: ${ioscheduler sdb}${font}'
echo '${goto 35}'$FNT2$SDBIOST' ${alignr}${offset -6}'
# SDC
echo '${voffset 3}'$FNT1$CLR3'sdc '$FNT2'Temp: '$SDCTEMP'°C ${alignr}${offset -6}I/O Scheduler: ${ioscheduler sdc}${font}'
echo '${goto 35}'$FNT2$SDCIOST' ${alignr}${offset -6}'
# SDD
echo '${voffset 3}'$FNT1$CLR3'sdd '$FNT2'Temp: '$SDDTEMP'°C ${alignr}${offset -6}I/O Scheduler: ${ioscheduler sdd}${font}'
echo '${goto 35}'$FNT2$SDDIOST' ${alignr}${offset -6}'
############################
### -- Partition Info -- ###
############################
# ${voffset 3}${font DejaVu Serif:style=Bold:size=11}${color3}SYS${font}${goto 60}root: ${offset 10}${font DejaVu Serif:style=Bold:size=11}${fs_used_perc /}%${font} ${alignr}${fs_bar 10,142 /}
# ${goto 60}Used: ${font DejaVu Serif:style=Bold:size=11}${fs_used /}${font} ${alignr}${offset -6}Free: ${font DejaVu Serif:style=Bold:size=11}${fs_free /}${font}
# ${voffset 3}${font DejaVu Serif:style=Bold:size=11}${color3}FILES${font}${goto 60}home: ${font DejaVu Serif:style=Bold:size=11}${fs_used_perc /home}%${font} ${alignr}${fs_bar 10,142 /home}
# ${goto 60}Used: ${font DejaVu Serif:style=Bold:size=11}${fs_used /home}${font} ${alignr}${offset -10}Free: ${font DejaVu Serif:style=Bold:size=11}${fs_free /home}${font}
# SWAP
# ${voffset 3}${font DejaVu Serif:style=Bold:size=11}SWAP${font}${goto 60}${color3}Swap: ${font DejaVu Serif:style=Bold:size=11}${swapperc}%${font} ${alignr}${swapbar 10,142}
# ${goto 60}Used: ${font DejaVu Serif:style=Bold:size=11}$swap${font} ${alignr}${offset -6}Free: ${font DejaVu Serif:style=Bold:size=11}$swapmax${font}
# ######################
# #|--EXTERNAL MEDIA I/O
# ######################
# #${voffset 3}${font DejaVu Serif:style=Bold:size=11}External Media (First drive)$hr${font}
# #${voffset 3}${goto 60}${font DejaVu Serif:size=11}Read: ${offset 1}${diskio_read sdd}${alignr}${offset -4}Write: ${diskio_write sdd}
# # |--EXTERNAL MEDIA HDD
# #${voffset 3}${goto 60}Ext: ${offset 12}${font DejaVu Serif:style=Bold:size=11}${if_mounted sdd}${fs_used_perc sdb}%${font} ${alignr}${fs_bar 10,142 sdd}
# #${goto 60}Used: ${font DejaVu Serif:style=Bold:size=11}${if_mounted sdd}${fs_used sdb}${font} ${alignr}${offset -6}Free: ${font DejaVu Serif:style=Bold:size=11}${fs_free sdd}${font}
#####################
### -- NETWORK -- ###
#####################
# Wi-Fi
echo $FNT1$CLR2'Wi-Fi $hr${font}${color}'
echo '${if_existing /proc/net/route wlp3s0}'
echo 'Essid Name:${goto 120}'$FNT1'${wireless_essid wlp3s0}${font}'
echo 'Mode:${goto 120}'$FNT1'${wireless_mode wlp3s0}${font}'
echo 'Signal strength:${goto 120}'$FNT1'${wireless_link_qual wlp3s0}%${font}'
echo 'Signal speed:${goto 120}'$FNT1'${wireless_bitrate wlp3s0}${font}'
echo 'Local IP address:${goto 120}'$FNT1'${addr wlp3s0}${font}'
echo 'Download speed:${goto 120}'$FNT1'${downspeedf wlp3s0}  Kb/sec${font}'
echo '${downspeedgraph wlp3s0 10 494949 f3f3f3 0 -l}'
echo 'Uplaod speed:${goto 120}'$FNT1'${upspeedf wlp3s0} Kb/sec${font}'
echo '${upspeedgraph wlp3s0 10 494949 f3f3f3 0 -l}'
echo 'Downloaded:${goto 80}'$FNT1'${totaldown wlp3s0}${font} ${alignr}${offset -13}Uploaded:${offset 3}'$FNT1'{totalup wlp3s0}${font}'
echo '${else}${alignc}Not Conencted${endif}'
# LAN
echo $FNT1$CLR2'LAN $hr${font}${color}'
echo '${if_existing /proc/net/route enp0s29f7u3}'
echo $FNT1$CLR3'Local IP address:${font} ${addr enp0s29f7u3}${font}${offset 15}'
echo $FNT1$CLR3'Download speed:${font} ${downspeedf enp0s29f7u3} Kb/sec'
echo '${downspeedgraph enp0s29f7u3 10 494949 f3f3f3 0 -l}'
echo $FNT1$CLR3'Upload speed:${font} ${font}${upspeedf enp0s29f7u3} Kb/sec'
echo '${upspeedgraph enp0s29f7u3 10 494949 f3f3f3 0 -l}'
echo $FNT1$CLR3'Down:${font} ${totaldown enp0s29f7u3}'$FNT1'${alignr}Up:${font} ${totalup enp0s29f7u3}'
echo '${else}${alignc}Not Connected${endif}'
##################
### -- XFCE -- ###
##################
# Power Settings
echo $FNT1$CLR2'Power Settings $hr${font}${color}'
echo $FNT1$CLR1'Presentation Mode is '$XFIF'${font}${color}'
#
exit

Install Instructions
Follow the instructions in this post (https://forum.manjaro.org/index.php?topic=2991.msg166687#msg166687) for hddtemp
If necessary, install the packages "gnu-netcat" (or openbsd-netcat), lm_sensors, & sysstat.
Add my BASH script to a file named skvycnky.sh located at  $HOME/.conky/ and make sure it's executable (chmod +x ~/.conky/skvycnky.sh)

EDIT:
Basic Theme Support
Just copy/paste the below overwriting everything from the top of the script to this line "## --Green/Orange/Red Gradient for Temperatures".  No fallback theme added so you have to define one or the other....and yes, the green theme sucks, it's merely a proof of concept.  Just wanted to post in case anybody else wanted to mess around with my bash/conky setup.

Does anybody know the Manjaro green hexcodes that are used in various themes?  I'd like some green themes to match the desktops, old and new.

Code: [Select]
#!/bin/bash
# skvycnky.sh

## -- Themes
## -- Valid Choices are "Blue", "Green"

THEME=Green

if [[ $THEME = BLue ]]
then CLR1='${color1}'
CLR2='${color2}'
CLR3='${color3}'
CLR4='${color4}'
CLR5='${color5}'
CLR6='${color6}'
CLR7='${color7}'
CLR8='${color8}'
CLR9='${color9}'
CLR0='${color0}'
else if [[ $THEME = Green ]]
then CLR1='${color5}'
CLR2='${color4}'
CLR3='${color5}'
CLR4='${color4}'
CLR5='${color5}'
CLR6='${color6}'
CLR7='${color7}'
CLR8='${color8}'
CLR9='${color9}'
CLR0='${color0}'
fi
fi
## --Green/Orange/Red Gradient for Temperatures

Man that's awesome. If some final product is ready with possibly a better font usage that matches Manjaro XFCE 0.8.11 theming. Let me know for sure.
I'm very interested what you come up with. Maybe work together on the idea of it? Could be a very cool and very informative conky for Manjaro lightweight DE's ? And maybe post the whole process of it too? How to do the additional scripts and package installs and how to tie all that together?
Also I will post my current conky config. Look at the idea of it. I made it so because I wanted a version that fits also Netbook screens which have only vertical 600 pixels of screen space.

Code: [Select]
# Overwrite this file if you want to have a permanent setting
######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 2
cpu_avg_samples 2

imlib_cache_size 0
double_buffer yes
no_buffers yes

format_human_readable

#####################
# - Text settings - #
#####################
use_xft yes
xftfont DejaVu Sans:size=8
override_utf8_locale yes
text_buffer_size 2048

#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

alignment top_right
gap_y 30
gap_x 13
border_inner_margin 0

minimum_size 300 300
maximum_width 300
maximum_height 560

default_bar_size 92 6

#########################
# - Graphics settings - #
#########################
draw_shades no
default_shade_color 000000
default_color FFFFFF
###############################
# Set your Distro name manually
###############################
TEXT
${font DejaVu Sans:style=Bold:size=8}MANJARO LINUX $hr${font}
##############
# -   OS       - #
##############
${voffset 3}${goto 65}Host: ${alignr}${offset -1}${nodename}
${goto 65}Kernel: ${alignr}${offset -1}${kernel}
${goto 65}Uptime: ${alignr}${offset -1}${uptime}
###############################
# Battery 0| / the main battery
###############################
${goto 65}Battery 1|:${goto 132}${battery_time BAT0}${alignr}${offset -1}${battery_percent BAT0}%
########################################
# Battery 1|2 / second and third battery
########################################
${goto 65}Battery 2|3:${goto 132}${battery_time BAT1} ${battery_time BAT2}${alignr}${offset -1}${battery_percent BAT1}%${offset 1}${battery_percent BAT2}%
########################
# Current I/O Scheduler
########################
${goto 65}I/O Scheduler:${alignr}${ioscheduler sda}
#############################################################################################
#System load average, 1 is for past 1 minute, 2 for past 5 minutes and 3 for past 15 minutes.
#Without argument, prints all three values separated by whitespace.
###################################################################
${goto 65}Load: ${alignr}${loadavg}
###########################################################
# UPS - Uninterruptible power supply - Monitoring
# http://en.wikipedia.org/wiki/Uninterruptible_power_supply
###########################################################
###${font DejaVu Sans:style=Bold:size=8}UPS $hr${font}
###${voffset 3}${goto 60}UPS Name: ${alignr}${offset -1}${apcupsd_model}
###${goto 60}UPS Mode: ${alignr}${offset -1}${apcupsd_upsmode}
###${goto 60}UPS Status: ${alignr}${offset -1}${apcupsd_status}
###${goto 60}UPS Time Left: ${alignr}${offset -1}${apcupsd_timeleft}
#############
# - CLOCK - #
#############
${font DejaVu Sans:style=Bold:size=8}CLOCK $hr${font}
${font DejaVu Sans:size=20}${alignc}${time %H:%M}${font}
${alignc}${time %A %d %B %Y}
##############
# - SYSTEM - #
##############
${voffset 3}${font DejaVu Sans:style=Bold:size=8}SYSTEM $hr${font}
# |--Motherboard Temperature
#${voffset 3}${font DejaVu Sans:style=Bold:size=8}MB${font} ${alignr}${offset -1}Temp: ${hwmon temp 1}°C
# |--CPU FRQ
${voffset 3}${font DejaVu Sans:style=Bold:size=8}CPU${font}${goto 60}${font DejaVu Sans:size=8}${freq}${goto 90}MHz${alignr}${offset -1}Temp: ${exec sensors | grep 'Physical id 0:' | awk '{print $4}' | cut -c2-3}°C
# |--CPU Voltage / Fan RPM
${goto 60}${font DejaVu Sans:size=8}${voltage_v 1} ${alignr}${offset -1}Fan Speed:${hwmon fan 1} RPM
# |--CPU Cores
${voffset 2}${goto 60}Core I:${goto 110}${font DejaVu Sans:style=Bold:size=8}${cpu cpu1}%${font} ${alignr}${cpubar cpu2 10,132}
${goto 60}${goto 60}Core II:${goto 110}${font DejaVu Sans:style=Bold:size=8}${cpu cpu2}%${font} ${alignr}${cpubar cpu2 10,132}
${goto 60}${goto 60}Core III:${goto 110}${font DejaVu Sans:style=Bold:size=8}${cpu cpu3}%${font} ${alignr}${cpubar cpu3 10,132}
${goto 60}${goto 60}Core IV:${goto 110}${font DejaVu Sans:style=Bold:size=8}${cpu cpu4}%${font} ${alignr}${cpubar cpu4 10,132}
# |--MEM
${voffset 3}${font DejaVu Sans:style=Bold:size=8}RAM${font}${goto 60}RAM:${goto 110}${font DejaVu Sans:style=Bold:size=8}$memperc%${font} ${alignr}${membar 10,132}
${goto 60}Used:${goto 110}${font DejaVu Sans:style=Bold:size=8}${mem}${font}${alignr}${offset -6}Free:${font DejaVu Sans:style=Bold:size=8}${memeasyfree}${font}
################
#|--MAIN HDD I/O
################
${voffset 3}${font DejaVu Sans:style=Bold:size=8}Main Internald Drive $hr${font}
# |--HDD Temperature
${voffset 3}${goto 60}${exec sensors | grep 'RPM'}${alignr}${offset -1}Temp:${hddtemp /dev/sda}°C
# |--HDD Read/Write
${voffset 3}${goto 60}${font DejaVu Sans:size=8}Read:${goto 100}${diskio_read sda}${alignr}${offset -1}Write: ${diskio_write sda}
# |--HDD
${voffset 3}${font DejaVu Sans:style=Bold:size=8}SYS${font}${goto 60}root:${goto 100}${font DejaVu Sans:style=Bold:size=8}${fs_used_perc /}%${font}${alignr}${fs_bar 10,132 /}
${goto 60}Used:${goto 100}${font DejaVu Sans:style=Bold:size=8}${fs_used /}${font}${alignr}${offset -6}Free: ${font DejaVu Sans:style=Bold:size=8}${fs_free /}${font}
${voffset 3}${font DejaVu Sans:style=Bold:size=8}FILES${font}${goto 60}home:${goto 100}${font DejaVu Sans:style=Bold:size=8}${fs_used_perc /home}%${font}${alignr}${fs_bar 10,132 /home}
${goto 60}Used:${goto 100}${font DejaVu Sans:style=Bold:size=8}${fs_used /home}${font}${alignr}${offset -6}Free: ${font DejaVu Sans:style=Bold:size=8}${fs_free /home}${font}
# |--SWAP
${voffset 3}${font DejaVu Sans:style=Bold:size=8}SWAP${font}${goto 60}Swap:${goto 100}${font DejaVu Sans:style=Bold:size=8}${swapperc}%${font} ${alignr}${swapbar 10,132}
${goto 60}Used:${goto 100}${font DejaVu Sans:style=Bold:size=8}$swap${font}${alignr}${offset -6}Free: ${font DejaVu Sans:style=Bold:size=8}$swapmax${font}
######################
#|--EXTERNAL MEDIA I/O
######################
#${voffset 3}${font DejaVu Sans:style=Bold:size=8}External Media (First drive)$hr${font}
#${voffset 3}${goto 60}${font DejaVu Sans:size=8}Read:${goto 100}${diskio_read sdb}${alignr}${offset -1}Write: ${diskio_write sdb}
# |--EXTERNAL MEDIA HDD
#${voffset 3}${goto 60}Ext:${goto 110}${font DejaVu Sans:style=Bold:size=8}${if_mounted sdb}${fs_used_perc sdb}%${font}${alignr}${fs_bar 10,132 sdb}
#${goto 60}Used:${goto 110}${font DejaVu Sans:style=Bold:size=8}${if_mounted sdb}${fs_used sdb}${font}${alignr}${offset -1}Free: ${font DejaVu Sans:style=Bold:size=8}${fs_free sdb}${font}
###############
# - NETWORK - #
###############
#Wi-Fi
${font DejaVu Sans:style=Bold:size=8}Wi-Fi ${hr 1}
${font}${if_existing /proc/net/route wlp3s0}${voffset 1}Essid Name:${goto 105}${font DejaVu Sans:style=Bold:size=8}${wireless_essid wlp3s0}${font}
Mode:${goto 105}${font DejaVu Sans:style=Bold:size=8}${wireless_mode wlp3s0}${font}
Signal strenght:${goto 105}${font DejaVu Sans:style=Bold:size=8}${wireless_link_qual wlp3s0}%${font}
Signal speed:${goto 105}${font DejaVu Sans:style=Bold:size=8}${wireless_bitrate wlp3s0}${font}
IP address:${goto 105}${font DejaVu Sans:style=Bold:size=8}${addr wlp3s0}${alignr}${execi 3600 wget -O - http://ip.tupeux.com | tail}${font}
Download speed:${goto 105}${font DejaVu Sans:style=Bold:size=8}${downspeedf wlp3s0}${alignr}${offset -1}Kb/sec${font}
#${downspeedgraph wlp3s0 10 494949 f3f3f3 0 -l}
Uplaod speed:${goto 105}${font DejaVu Sans:style=Bold:size=8}${upspeedf wlp3s0}${alignr}${offset -1}Kb/sec${font}
#${upspeedgraph wlp3s0 10 494949 f3f3f3 0 -l}
#Downloaded:${goto 80}${font DejaVu Sans:style=Bold:size=8}${totaldown wlp3s0}${font} ${alignr}${offset -13}Uploaded:${offset 3}${font DejaVu Sans:style=Bold:size=8}${totalup wlp3s0}${font}
${else}${alignc}Not Conencted${endif}
#LAN
${font DejaVu Sans:style=Bold:size=8}LAN ${hr 1}
${font}${if_existing /proc/net/route eno1}${voffset 1}IP address:${goto 105}${font DejaVu Sans:style=Bold:size=8}${addr eno1}${alignr}${execi 3600 wget -O - http://ip.tupeux.com | tail}${font}
Download speed:${goto 105}${font DejaVu Sans:style=Bold:size=8}${downspeedf eno1}${alignr}${offset -1}Kb/sec${font}
#${downspeedgraph eno1 10 494949 f3f3f3 0 -l}
Uplaod speed:${goto 105}${font DejaVu Sans:style=Bold:size=8}${upspeedf eno1}${alignr}${offset -1}Kb/sec${font}
#${upspeedgraph eno1 10 494949 f3f3f3 0 -l}
#Downloaded:${goto 80}${font DejaVu Sans:style=Bold:size=8}${totaldown eno1}${font}${alignr}${offset -13}Uploaded:${offset 3}${font DejaVu Sans:style=Bold:size=8}${totalup eno1}${font}
${else}${alignc}Not Connected${endif}

Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 28. November 2014, 17:00:54
wow. there have been some cool new conkys in the last week.
very well done, people!


Planned features -- ... OGL/MESA info
i am not sure, whether i will use the mesa/nouveau driver or the proprietary nvidia driver in the future. if i will use the nouveau driver, i have to dig into it, too.
at the moment my conky is made for the nvidia driver.
Title: Re: Conky thread, show your work!
Post by: skeevy420 on 29. November 2014, 20:52:31
Edited:

When using compiz and want to avoid showing shadows under conky (add those to Window specifications):

own_window_argb_visual yes
own_window_argb_value 255

Man that's awesome. If some final product is ready with possibly a better font usage that matches Manjaro XFCE 0.8.11 theming. Let me know for sure.
I'm very interested what you come up with. Maybe work together on the idea of it? Could be a very cool and very informative conky for Manjaro lightweight DE's ? And maybe post the whole process of it too? How to do the additional scripts and package installs and how to tie all that together?
Also I will post my current conky config. Look at the idea of it. I made it so because I wanted a version that fits also Netbook screens which have only vertical 600 pixels of screen space.

For some reason I cannot use the argb commands.  Causes conky to go haywire.  I was on google for a few hours yesterday trying to find anything at all to fix that, but nothing worked.  Only thing I haven't tried is changing my GPU driver from Radeon to Catalyst.  It's either that or I screwed up something when I was messing around with Compiz.  It's weird, everything with compositing works except Conky.

What are the Manjaro default fonts?  The ones in my conky are the same as I use on my desktop and I forgot the ones that were originally there.  That said, it's very easy for me to add in changeable fonts....almost identical to how I did themes for this. 

Because this makes exclusive use of conky's execp command, probably the heaviest conky command to use, it probably won't be the best for people with weaker hardware, but the very cool and informative part, that can be done -- like auto detecting the number of CPU cores and outputting the information without the user tweaking anything, that's something I can do.

As far as posting exactly how I did this, best I can say is that it's nothing more than a bash script that outputs conky TEXT script.  Everything in it is from one or the other and I'm using echo to print the commands to conky (printf could be used but I'm more familiar with echo).  The only reason I did it this way was to be able to use more than 10 defined colors....I could never get commands like ${color12 123456] to work, only color0 through color9, even though I did see examples that used color11.  The secondary reason was to keep everything contained in one bash script.  On my original version & revision of your conkyrc, I was using multiple exec's and execp's and getting Presentation Mode's on/off value was it's own script.  Moving everything to a bash script opened up a lot of possibilities like defining colors, commands, fonts, automating device/driver detection, and more. Done right, this could be a very easy way for anyone to get a very detailed conky output without editing a single line of code (outside of setting the theme or font scheme...).

Thinking about doing if/then statements for every section of this.  You know, like being able to turn displaying wifi, cpu info, or whatever section on and off.  People would have to edit that, but setting USEWIFI= to ON or OFF is about as human readable as it gets, especially since I'd comment in instructions so my stoner ass can remember everything.  Using a method like that, someone could turn on and off stuff to make this fit to their screen.

wow. there have been some cool new conkys in the last week.
very well done, people!

i am not sure, whether i will use the mesa/nouveau driver or the proprietary nvidia driver in the future. if i will use the nouveau driver, i have to dig into it, too.
at the moment my conky is made for the nvidia driver.

I've actually considered that.  Shouldn't need much more than tweaking awk and cut on the GPUDRIVER commands for doing this manually, any gpu/driver.  The GPU commands are just grepping vGA from lspci and lspic -v with awk and cut fine tuning what to print (like almost all the commands I'm using here).  Temp comes from lm-sensors.

While I'd need feedback from experienced users that know a bit of bash, it could probably become automated with enough feedback -- once the script finds the driver in use, it would just need another if/then layer to use specific commands based on the GPU and driver.  With how Manjaro is done, I could just grep & awk mhwd's xorg.conf files driver and/or device lines and use that, combined with a bit of feedback, to make the commands for device, driver, and temp.  I think the hardest part would be a universal way to get the specific device name, like Radeon R7 260x (mine) or NVidia 8400GS (my old one); but universal driver and temperature readouts shouldn't be that difficult.  Once the gpu's driver is known, printing OGL info is just some calls to either glxinfo or a proprietary tool which can be automated easily enough.

Title: Re: Conky thread, show your work!
Post by: vaikus84 on 30. November 2014, 01:39:03
New Default seems to Be Cantarell "size 11" under Appearance in 0.8.11 version.

And I like where your head is at :)
Title: Re: Conky thread, show your work!
Post by: skeevy420 on 30. November 2014, 05:19:46
Updated my conky bash script.

Added Cantrell Font
a way to use any installed font (Currently set to Droid Sans)
tweakable font sizes
enabling and disabling of some of the sections (needs more work but functional)
fixed some theme issues

Code: [Select]
#!/bin/bash
# skvycnky.sh

## -- Theme Selection
## -- Valid Choices are "Blue", "Green"
THEME=BLUE

## -- Font Selection
## -- Valid Choices are "DJSERIF" for Dejavu Serif, "CANTA" Cantarell
FONT=CANTA

## -- User Font
## -- Add any installed system font to 'USERFONT="Name of Font"'.  Will not be used unless USEUSERFONT is set to "YES"
USERFONT="Droid Sans"
USEUSERFONT=NO

## -- Font Size
FNT1SZ=11 #Normal
FNT2SZ=11 #Normal Bold
FNT3SZ=28 #Large (Clock)
FNT4SZ=28 #Larg Bold (Clock)

## -- Section Selection
## -- Enable wtih "YES".  Any other value will disable
USECLOCK=YES
USESYSCPU=YES
USESYSMEM=YES
USESYSGPU=YES
USEHDDINFO=YES
USENETWIFI=YES
USENETLAN=YES
USEPOWERSETTINGS=YES


## -- USER DEFINES END; SCRIPT BEGINS

## -- Themes
if [[ $THEME = BLUE ]]; then CLR1='${color1}'
CLR2='${color2}'
CLR3='${color3}'
CLR4='${color4}'
CLR5='${color5}'
CLR6='${color6}'
CLR7='${color7}'
CLR8='${color8}'
CLR9='${color9}'
CLR0='${color0}'
else if [[ $THEME = GREEN ]]; then CLR1='${color6}'
CLR2='${color5}'
CLR3='${color6}'
CLR4='${color4}'
CLR5='${color5}'
CLR6='${color6}'
CLR7='${color7}'
CLR8='${color8}'
CLR9='${color9}'
CLR0='${color0}'
fi
fi

## -- Color Gradients
## -- Green/Orange/Red Gradient for CPU Temperatures; TEMPGRADCPU
CLR20='${color 34be5b}'
CLR21='${color 4dcb44}'
CLR22='${color 67d92d}'
CLR23='${color 81e716}'
CLR24='${color 9bf500}'
CLR25='${color bcd000}'
CLR26='${color ddaC00}'
CLR27='${color ff8800}'
CLR28='${color e36d13}'
CLR29='${color c75326}'
CLR30='${color ac3939}'

TEMPGRADCPU="$(if [[ $CPUTEMP -lt 47 ]]; then echo $CLR20; else if [[ $CPUTEMP -ge 47 && $CPUTEMP -lt 51 ]]; then echo $CLR21; else if [[ $CPUTEMP -ge 51 && $CPUTEMP -lt 56 ]]; then echo $CLR22; else if [[ $CPUTEMP -ge 56 && $CPUTEMP -lt 61 ]]; then echo $CLR23; else if [[ $CPUTEMP -ge 61 && $CPUTEMP -lt 66 ]]; then echo $CLR24; else if [[ $CPUTEMP -ge 66 && $CPUTEMP -lt 71 ]]; then echo $CLR25; else if [[ $CPUTEMP -ge 71 && $CPUTEMP -lt 76 ]]; then echo $CLR26; else if [[ $CPUTEMP -ge 76 && $CPUTEMP -lt 81 ]]; then echo $CLR27;  else if [[ $CPUTEMP -ge 81 && $CPUTEMP -lt 86 ]]; then echo $CLR28; else if [[ $CPUTEMP -ge 86 && $CPUTEMP -lt 91 ]]; then echo $CLR29; else if [[ $CPUTEMP -ge 91 ]]; then echo $CLR30; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi)"


## -- Fonts
## -- Dejavu Serif
if [[ $FONT = DJSERIF && $USEUSERFONT != YES ]]; then FNT1='${font Dejavu Serif:style=Bold:size='$FNT1SZ'}'
FNT2='${font Dejavu Serif:size='$FNT2SZ'}'
FNT3='${font Dejavu Serif:style=Bold:size='$FNT3SZ'}'
FNT4='${font Dejavu Serif:size='$FNT4SZ'}'
else if [[ $FONT = CANTA && $USEUSERFONT != YES ]]; then FNT1='${font Cantarell:style=Bold:size='$FNT1SZ'}'
FNT2='${font Cantarell:size='$FNT2SZ'}'
FNT3='${font Cantarell:style=Bold:size='$FNT3SZ'}'
FNT4='${font Cantarell:size='$FNT4SZ'}'
fi
fi

## -- User Font
if [[ $USEUSERFONT = YES ]]; then FNT1='${font '$USERFONT':style=Bold:size='$FNT1SZ'}'
FNT2='${font '$USERFONT':size='$FNT2SZ'}'
FNT3='${font '$USERFONT':style=Bold:size='$FNT3SZ'}'
FNT4='${font '$USERFONT':size='$FNT4SZ'}'
fi

## -- Commands
CPUTEMP="$(exec sensors | grep 'Core 0:'| awk '{print $3}' | cut -c 2-3)"
GPUDEVICE="$(exec lspci | grep 'VGA' | awk '{print $12, $13, $14}' | cut -c 2-15)"
GPUDRIVER="$(exec lspci -v | grep VGA -A12 | grep 'Kernel driver in use' | awk '{print $5}')"
GPUTEMP="$(exec sensors | grep 'radeon' -A2 | grep 'temp' | awk '{print $2}' | cut -c 2-3)"
SDATEMP="$(exec nc localhost 7634 | awk '{print $2}' | cut -c 17-18)"
SDBTEMP="$(exec nc localhost 7634 | awk '{print $3}' | cut -c 17-18)"
SDCTEMP="$(exec nc localhost 7634 | awk '{print $5}' | cut -c 3-4)"
SDDTEMP="$(exec nc localhost 7634 | awk '{print $6}' | cut -c 17-18)"
SDAIOST="$(exec iostat -x | grep 'sda' | awk '{print R,$4,W,$5,U,$14}' R="Read:" W="Write:" U="Util:")"
SDBIOST="$(exec iostat -x | grep 'sdb' | awk '{print R,$4,W,$5,U,$14}' R="Read:" W="Write:" U="Util:")"
SDCIOST="$(exec iostat -x | grep 'sdc' | awk '{print R,$4,W,$5,U,$14}' R="Read:" W="Write:" U="Util:")"
SDDIOST="$(exec iostat -x | grep 'sdd' | awk '{print R,$4,W,$5,U,$14}' R="Read:" W="Write:" U="Util:")"
XFPMODE="$(exec xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode)"
XFIF="$(if [[ $XFPMODE = true ]]; then echo $CLR5 On; else echo $CLR3 Off; fi)"

########################
### -- Conky TEXT -- ###
########################
echo $FNT1$CLR2'Manjaro Linux $hr${font}${color}'
################
### -- OS -- ###
################
echo $FNT2$CLR3'${voffset 3}${goto 65}Host: ${alignr}${offset -1}${nodename}${font}${color}'
echo $FNT2$CLR3'${goto 65}Kernel: ${alignr}${offset -1}${kernel}${font}${color}'
echo $FNT2$CLR3'${goto 65}Uptime: ${alignr}${offset -1}${uptime}${font}${color}'
#############################################################################################
#System load average, 1 is for past 1 minute, 2 for past 5 minutes and 3 for past 15 minutes.
#Without argument, prints all three values separated by whitespace.
###################################################################
echo $FNT2$CLR3'${goto 65}Load: ${alignr}${loadavg 1}${font}${color}'
###################
### -- CLOCK -- ###
###################
if [[ $USECLOCK = YES ]]; then echo $FNT1$CLR2'CLOCK $hr${font}${color}'
echo $FNT3$CLR3'${alignc}${time %H}'$FNT3$CLR4':'$FNT4$CLR1'${time %M}${font}${color}'
echo $CLR1'${alignc}${time %A} '$CLR4'${time %d}'$CLR2' ${time %B} '$CLR3'${time %Y}'
fi
####################
### -- SYSTEM -- ###
####################
echo '${voffset 3}'$FNT1$CLR2'SYSTEM $hr${font}${color}'
# CPU
if [[ $USESYSCPU = YES ]]; then echo '${voffset 3}'$FNT1$CLR3'FRQ${goto 60}'$FNT2'${freq_g} GHz   ${alignr}${offset -1}Temp: '$TEMPGRADCPU$CPUTEMP'°C$hr${font}${color}'
echo '${voffset 2}'$FNT1$CLR3'CPU${font}${offset -20}${goto 60}Core 1: '$FNT1'${cpu cpu1}%${font} ${alignr}${cpubar cpu1 10,142}${color}'
echo '${voffset 2}'$FNT1$CLR3'${font}${offset -20}${goto 60}Core 2: '$FNT1'${cpu cpu2}%${font} ${alignr}${cpubar cpu2 10,142}${color}'
echo '${voffset 2}'$FNT1$CLR3'${font}${offset -20}${goto 60}Core 3: '$FNT1'${cpu cpu3}%${font} ${alignr}${cpubar cpu3 10,142}${color}'
echo '${voffset 2}'$FNT1$CLR3'${font}${offset -20}${goto 60}Core 4: '$FNT2'${cpu cpu4}%${font} ${alignr}${cpubar cpu4 10,142}${color}'
fi
# MEM
if [[ $USESYSMEM = YES ]]; then echo $FNT1$CLR3'RAM${font}${goto 60}RAM: '$FNT2'$memperc%${font} ${alignr}${membar 10,142}}'
echo '${goto 60}Used: '$FNT2'${mem} ${alignr}${offset -6}Free: ${memeasyfree}${font}${color}'
fi
# GPU
if [[ $USESYSGPU = YES ]]; then echo '${voffset 3}'$FNT1$CLR3'GPU${goto 60}'$FNT2'Device: '$GPUDEVICE'${font}${color}'
echo '${goto 60}'$FNT2$CLR3'Driver: '$GPUDRIVER'${font}${color}'
echo '${goto 60}'$FNT2$CLR3'Temp: '$GPUTEMP'°C${font}${color}'
fi
######################
### -- HDD Info -- ###
######################
if [[ $USEHDDINFO = YES ]]; then echo '${voffset 3}'$FNT1$CLR2'Internal Drive Stats $hr${font}${color}'
# HDD Information
# SDA
echo '${voffset 3}'$FNT1$CLR3'sda '$FNT2'Temp: '$SDATEMP'°C ${alignr}${offset -6}I/O Scheduler: ${ioscheduler sda}${font}'
echo '${goto 35}'$FNT2$SDAIOST' ${alignr}${offset -6}'
# SDB
echo '${voffset 3}'$FNT1$CLR3'sdb '$FNT2'Temp: '$SDBTEMP'°C ${alignr}${offset -6}I/O Scheduler: ${ioscheduler sdb}${font}'
echo '${goto 35}'$FNT2$SDBIOST' ${alignr}${offset -6}'
# SDC
echo '${voffset 3}'$FNT1$CLR3'sdc '$FNT2'Temp: '$SDCTEMP'°C ${alignr}${offset -6}I/O Scheduler: ${ioscheduler sdc}${font}'
echo '${goto 35}'$FNT2$SDCIOST' ${alignr}${offset -6}'
# SDD
echo '${voffset 3}'$FNT1$CLR3'sdd '$FNT2'Temp: '$SDDTEMP'°C ${alignr}${offset -6}I/O Scheduler: ${ioscheduler sdd}${font}'
echo '${goto 35}'$FNT2$SDDIOST' ${alignr}${offset -6}'
fi
############################
### -- Partition Info -- ###
############################
# ${voffset 3}${font DejaVu Serif:style=Bold:size=11}${color3}SYS${font}${goto 60}root: ${offset 10}${font DejaVu Serif:style=Bold:size=11}${fs_used_perc /}%${font} ${alignr}${fs_bar 10,142 /}
# ${goto 60}Used: ${font DejaVu Serif:style=Bold:size=11}${fs_used /}${font} ${alignr}${offset -6}Free: ${font DejaVu Serif:style=Bold:size=11}${fs_free /}${font}
# ${voffset 3}${font DejaVu Serif:style=Bold:size=11}${color3}FILES${font}${goto 60}home: ${font DejaVu Serif:style=Bold:size=11}${fs_used_perc /home}%${font} ${alignr}${fs_bar 10,142 /home}
# ${goto 60}Used: ${font DejaVu Serif:style=Bold:size=11}${fs_used /home}${font} ${alignr}${offset -10}Free: ${font DejaVu Serif:style=Bold:size=11}${fs_free /home}${font}
# SWAP
# ${voffset 3}${font DejaVu Serif:style=Bold:size=11}SWAP${font}${goto 60}${color3}Swap: ${font DejaVu Serif:style=Bold:size=11}${swapperc}%${font} ${alignr}${swapbar 10,142}
# ${goto 60}Used: ${font DejaVu Serif:style=Bold:size=11}$swap${font} ${alignr}${offset -6}Free: ${font DejaVu Serif:style=Bold:size=11}$swapmax${font}
# ######################
# #|--EXTERNAL MEDIA I/O
# ######################
# #${voffset 3}${font DejaVu Serif:style=Bold:size=11}External Media (First drive)$hr${font}
# #${voffset 3}${goto 60}${font DejaVu Serif:size=11}Read: ${offset 1}${diskio_read sdd}${alignr}${offset -4}Write: ${diskio_write sdd}
# # |--EXTERNAL MEDIA HDD
# #${voffset 3}${goto 60}Ext: ${offset 12}${font DejaVu Serif:style=Bold:size=11}${if_mounted sdd}${fs_used_perc sdb}%${font} ${alignr}${fs_bar 10,142 sdd}
# #${goto 60}Used: ${font DejaVu Serif:style=Bold:size=11}${if_mounted sdd}${fs_used sdb}${font} ${alignr}${offset -6}Free: ${font DejaVu Serif:style=Bold:size=11}${fs_free sdd}${font}
#####################
### -- NETWORK -- ###
#####################
# Wi-Fi
if [[ $USENETWIFI = YES ]]; then echo $FNT1$CLR2'Wi-Fi $hr${font}${color}'
echo '${if_existing /proc/net/route wlp3s0}'
echo 'Essid Name:${goto 120}'$FNT1'${wireless_essid wlp3s0}${font}'
echo 'Mode:${goto 120}'$FNT1'${wireless_mode wlp3s0}${font}'
echo 'Signal strength:${goto 120}'$FNT1'${wireless_link_qual wlp3s0}%${font}'
echo 'Signal speed:${goto 120}'$FNT1'${wireless_bitrate wlp3s0}${font}'
echo 'Local IP address:${goto 120}'$FNT1'${addr wlp3s0}${font}'
echo 'Download speed:${goto 120}'$FNT1'${downspeedf wlp3s0}  Kb/sec${font}'
echo '${downspeedgraph wlp3s0 10 494949 f3f3f3 0 -l}'
echo 'Uplaod speed:${goto 120}'$FNT1'${upspeedf wlp3s0} Kb/sec${font}'
echo '${upspeedgraph wlp3s0 10 494949 f3f3f3 0 -l}'
echo 'Downloaded:${goto 80}'$FNT1'${totaldown wlp3s0}${font} ${alignr}${offset -13}Uploaded:${offset 3}'$FNT1'{totalup wlp3s0}${font}'
echo '${else}${alignc}'$FNT2$CLR3'Not Conencted${endif}'
fi
# LAN
if [[ $USENETLAN = YES ]]; then echo $FNT1$CLR2'LAN $hr${font}${color}'
echo '${if_existing /proc/net/route enp0s29f7u3}'
echo $FNT1$CLR3'Local IP address:${font} ${addr enp0s29f7u3}${font}${offset 15}'
echo $FNT1$CLR3'Download speed:${font} ${downspeedf enp0s29f7u3} Kb/sec'
echo '${downspeedgraph enp0s29f7u3 10 494949 f3f3f3 0 -l}'
echo $FNT1$CLR3'Upload speed:${font} ${font}${upspeedf enp0s29f7u3} Kb/sec'
echo '${upspeedgraph enp0s29f7u3 10 494949 f3f3f3 0 -l}'
echo $FNT1$CLR3'Down:${font} ${totaldown enp0s29f7u3}'$FNT1'${alignr}Up:${font} ${totalup enp0s29f7u3}'
echo '${else}${alignc}'$FNT2$CLR3'Not Conencted${endif}'
fi
##################
### -- XFCE -- ###
##################
# Power Settings
if [[ $USEPOWERSETTINGS = YES ]]; then echo $FNT1$CLR2'Power Settings $hr${font}${color}'
echo $FNT1$CLR1'Presentation Mode is '$XFIF
fi

exit
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 30. November 2014, 16:23:06
Thanks to Salinko and llogg, I learned how to split my one .conkyrc to 3 and then with some online research to execute them at logon. So, here is the finished product.

Whole screenshot:
(http://i.imgur.com/iNi0kCz.png)

Zoom in on Conky:
(http://i.imgur.com/YLVXWpk.png)

Now the coding parts:

.conkyrc_calsys
Code: [Select]
background yes
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment top_right
minimum_size 140
maximum_width 150
gap_x 10
gap_y 10
use_spacer none

update_interval 1
net_avg_samples 2
total_run_times 0

use_xft yes
xftfont Inconsolata:size=10
xftalpha 0.7
text_buffer_size 1024
uppercase no
override_utf8_locale yes

double_buffer yes
no_buffers yes
draw_shades no
draw_outline no
draw_borders yes

color1 ffffff
color2 000000

short_units yes

TEXT
${execpi 3600 cal | sed "s/`date +%e` /\${font Inconsolata:size=10:weight=bold}\${color #ff0000}&\${color}\${font Inconsolata:size=10}/" | sed "s/$(date '+%B %Y')/\${font Inconsolata:size=10:weight=bold}&\${font Inconsolata:size=10}/"}
${color #FFFFFF}${hr}
${font Inconsolata:size=11:weight=bold} KERNEL:${font Inconsolata:size=10}
${font Inconsolata:size=11:weight=bold}${alignr}${color #00FFFF}${kernel}${font Inconsolata:size=10}
${color #FFFFFF}${hr}
${font Inconsolata:size=11:weight=bold}${color #FFD700}${alignc}USERNAME:${font Inconsolata:size=10}${color #FFFFFF}${font Inconsolata:size=11:italic}${color #00FFFF} ${user_names}${font Inconsolata:size=10}
${color #FFFFFF}${hr}
${font Inconsolata:size=11:weight=bold}${color #DA70D6}UPTIME:${color #FFFFFF}${font Inconsolata:size=10} ${alignr}${uptime}

.conkyrc_hdmem
Code: [Select]
background yes
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment top_right
minimum_size 140
maximum_width 150
gap_x 168
gap_y 5
use_spacer none

update_interval 1
net_avg_samples 2
total_run_times 0

use_xft yes
xftfont Inconsolata:size=10
xftalpha 0.7
text_buffer_size 1024
uppercase no
override_utf8_locale yes

double_buffer yes
no_buffers yes
draw_shades no
draw_outline no
draw_borders yes

color1 ffffff
color2 000000

short_units yes

TEXT
${font Inconsolata:size=11:weight=bold}/root:${font Inconsolata:size=10}${alignr}${font Inconsolata:size=11:weight=bold}${color #7FFF00}Free ${font Inconsolata:size=10}${color #FFFFFF} ${fs_free /}
${font Inconsolata:size=11:weight=bold}/home:${font Inconsolata:size=10}${alignr}${font Inconsolata:size=11:weight=bold}${color #DC143C}Used${color #FFFFFF}${font Inconsolata:size=10}  ${execp du -sh /home/username/ | cut -c 1-5}
${color #FFFFFF}${hr}
${font Inconsolata:size=11:weight=bold}${color #7FFF00}TotalMem:${color #FFFFFF}${font Inconsolata:size=10} ${alignr} 1004M
${font Inconsolata:size=11:weight=bold}${color #DC143C}Free Mem:${color #FFFFFF}${font Inconsolata:size=10} ${alignr}${memfree}

.conkyrc_net
Code: [Select]
background yes
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment top_right
minimum_size 140
maximum_width 150
gap_x 168
gap_y 160
use_spacer none

update_interval 1
net_avg_samples 2
total_run_times 0

use_xft yes
xftfont Inconsolata:size=10
xftalpha 0.7
text_buffer_size 1024
uppercase no
override_utf8_locale yes

double_buffer yes
no_buffers yes
draw_shades no
draw_outline no
draw_borders yes

color1 ffffff
color2 000000

short_units yes

TEXT
${font Inconsolata:size=11:weight=bold}${color #DC143C}Up:${color #FFFFFF}${font Inconsolata:size=10} ${alignr}${upspeed enp1s4}
${font Inconsolata:size=11:weight=bold}${color #DC143C}Total:${color #FFFFFF}${font Inconsolata:size=10} ${alignr}${totalup enp1s4}
${color #FFFFFF}${hr}
${font Inconsolata:size=11:weight=bold}${color #7FFF00}Down:${color #FFFFFF}${font Inconsolata:size=10} ${alignr}${downspeed enp1s4}
${font Inconsolata:size=11:weight=bold}${color #7FFF00}Total:${color #FFFFFF}${font Inconsolata:size=10} ${alignr}${totaldown enp1s4}

conky_start
Code: [Select]
#!/bin/bash
conky -c ~/.conky/.conkyrc_calsys &
conky -c ~/.conky/.conkyrc_hdmem &
conky -c ~/.conky/.conkyrc_net

NOTE: Must make the conky_start EXECUTABLE
Open terminal in location where conky_start is located and enter:
Code: [Select]
chmod +x conky_start
Then just go to SETTINGS MANAGER -> Session and Startup -> Application Autostart -> ADD
And add the conky_start to it.

Thanks guys!

EDIT (approx. 1 hr and 10 min later):
Discovered a 2 slight problems 1. Did NOT start automatically in LXDE session. Solved with creating autostart in
Code: [Select]
/home/username/.config/lxsession/LXDE
that looks like this:
Code: [Select]
@ /home/username/.conky/conky_start
And 2.) "slight" misalignment between 2 conkys in LXDE, also quickly solved by changing the gap_y in the .conkyrc_hdmem file to 10 (must have missed that is had been at 5).

ALL works PERFECTLY now!  ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 18. January 2015, 19:38:01
This is my FINALIZED Conky. I have not only edited it completely, but have seriously reduced the "wasted space" in the code taken up by excess code.

Here is the FINAL code for .conkyrc:
Code: [Select]
background yes
own_window yes
own_window_transparent yes
# own_window_transparent no
# own_window_colour #000000
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment top_right
# minimum_size 140
maximum_width 140
gap_x 5
gap_y 5
use_spacer none
update_interval 1
net_avg_samples 2
total_run_times 0
use_xft yes
xftalpha 0.7
text_buffer_size 1024
uppercase no
override_utf8_locale yes
double_buffer yes
no_buffers yes
draw_shades no
draw_outline yes
draw_borders yes
short_units yes
border_width 1

TEXT
${font Nimbus Sans:size=14:weight=bold}${alignc}${color #FF0000}${time %Y}
${font Nimbus Sans:size=10:weight=bold}${alignc}${color #FFFFFF}${time %A}
${font Nimbus Sans:size=12:weight=bold}${alignc}${color #00FF00}${time %B %d}
${color #FFFFFF}${hr}
${font Nimbus Sans:size=10:weight=bold}KERNEL:
${font Nimbus Sans:size=8:weight=bold}${alignr}${color #FFFF00}${kernel}
${font Nimbus Sans:size=10:weight=bold}${color #FFFFFF}UPTIME:
${color #FFFFFF}${font Nimbus Sans:size=9}${uptime}
${color #FFFFFF}${hr}
${font Nimbus Sans:size=10:weight=bold}/root:(Free)
${font Nimbus Sans:size=8}${color #FFFF00}${fs_free /}
${font Nimbus Sans:size=10:weight=bold}/home:(Used)
${color #FFFF00}${font Nimbus Sans:size=10} ${execp du -sh /home/username/ | cut -c 1-5}
${font Nimbus Sans:size=10:weight=bold}${color #FFFFFF}Free Mem:
${color #FFFF00}${font Nimbus Sans:size=8}${memfree}
${color #FFFFFF}${hr}
${font Nimbus Sans:size=10:weight=bold}${color #DC143C}UL_Spd:${alignr}${color #FFFFFF}${font Nimbus Sans:size=8}${upspeed enp1s4}
${font Nimbus Sans:size=10:weight=bold}${color #DC143C}Tot_UL:${alignr}${color #FFFFFF}${font Nimbus Sans:size=8}${totalup enp1s4}
${color #FFFFFF}${hr}
${font Nimbus Sans:size=10:weight=bold}${color #7FFF00}DL_Spd:${alignr}${color #FFFFFF}${font Nimbus Sans:size=8}${downspeed enp1s4}
${font Nimbus Sans:size=10:weight=bold}${color #7FFF00}Tot_DL:${alignr}${color #FFFFFF}${font Nimbus Sans:size=8}${totaldown enp1s4}

And this is what it looks like:
(http://i.imgur.com/HsKaBoZ.jpg)
Title: Re: Conky thread, show your work!
Post by: Cliff on 20. January 2015, 14:44:20
Hello,

I've got a question:
My current conky looks like this:
(http://i.imgur.com/SFJ0eie.png)

conkyrc:
Code: [Select]
background yes
update_interval 1

cpu_avg_samples 1
net_avg_samples 2
temperature_unit celsius

double_buffer yes
no_buffers yes
text_buffer_size 2048

gap_x 20
gap_y 45
minimum_size 200 900
maximum_width 200

own_window yes
own_window_type normal
own_window_argb_visual yes
own_window_argb_value 255
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

border_inner_margin 0
border_outer_margin 0
alignment top_right

draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

override_utf8_locale yes
use_xft yes
xftfont caviar dreams:size=10
xftalpha 0.5
uppercase no

# Defining colors
default_color FFFFFF
# Shades of Gray
color1 DDDDDD
color2 AAAAAA
color3 888888
# Orange
color4 EF5A29
# Green
color5 77B753
# White
color6 FFFFFF

## System information using conky capabilities

# Header with base system info
own_window_argb_value 0
own_window_colour 000000

TEXT
${color1}${font Ubuntu:size=44}$alignr${time %H:%M}${font Ubuntu:size=15}
$alignr${time %a}, ${time %d %b. %Y}

${font Ubuntu:size=10,weight:bold}${color4}SYSTEM ${hr 2}
${offset 15}${font Ubuntu:size=10,weight:normal}${color1}$sysname $kernel
${offset 15}${font Ubuntu:size=10,weight:normal}${color1}$nodename
${offset 15}${font Ubuntu:size=10,weight:normal}${color1}Uptime: $uptime

#CPU Clock und Temp
${font Ubuntu:size=10,weight:bold}${color4}CPU ${hr 2}
${offset 15}${color1}Usage ${alignr}${color2}${cpu} %
${offset 15}${color1}Clock ${alignr}${color2}${freq} MHz
${offset 15}${color1}Temp ${alignr}${color2}${execi 8 sensors | grep 'Physical id 0' | cut -c18-19} °C
#CPU Graph
${offset 15}${color3}${cpubar cpu0}
#${offset 15}${cpugraph 40,183 666666 666666}${voffset -25}
#Top 5 CPU consumers
${offset 15}${font Ubuntu:size=10,weight:normal}${color4}${top name 1}${alignr}${top cpu 1}%
${offset 15}${font Ubuntu:size=10,weight:normal}${color1}${top name 2}${alignr}${top cpu 2}%
${offset 15}${font Ubuntu:size=10,weight:normal}${color2}${top name 3}${alignr}${top cpu 3}%
${offset 15}${font Ubuntu:size=10,weight:normal}${color3}${top name 4}${alignr}${top cpu 4}%
${offset 15}${font Ubuntu:size=10,weight:normal}${color3}${top name 5}${alignr}${top cpu 5}%

#Memory
${font Ubuntu:size=10,weight:bold}${color4}MEMORY ${hr 2}
${offset 15}${font Ubuntu:size=10,weight:normal}${color1}$mem / $memmax $alignr $memperc%
${offset 15}${color3}$membar
#Showing memory part with TOP 5
${offset 15}${font Ubuntu:size=10,weight:normal}${color4}${top_mem name 1}${alignr}${top_mem mem 1}%
${offset 15}${font Ubuntu:size=10,weight:normal}${color1}${top_mem name 2}${alignr}${top_mem mem 2}%
${offset 15}${font Ubuntu:size=10,weight:normal}${color2}${top_mem name 3}${alignr}${top_mem mem 3}%
${offset 15}${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 4}${alignr}${top_mem mem 4}%
${offset 15}${font Ubuntu:size=10,weight:normal}${color3}${top_mem name 4}${alignr}${top_mem mem 5}%

#Swap
${font Ubuntu:size=10,weight:bold}${color4}SWAP ${hr 2}
${offset 15}${font Ubuntu:size=10,weight:normal}${color1}$swap / $swapmax $alignr $swapperc%
${offset 15}${color3}${swapbar}

#GPU Information
${font Ubuntu:size=10,weight:bold}${color4}GPU ${hr 2}
${offset 15}${color1}Temp ${alignr}${color2}${nvidia temp} °C
${offset 15}${color1}Fan${alignr}${color2}${execi 5 nvidia-settings -q [fan:0]/GPUCurrentFanSpeed -t} %
${offset 15}${color1}Clock ${alignr}${color2}${nvidia gpufreq} MHz
${offset 15}${color1}Memory ${alignr}${color2}${execi 5 nvidia-settings -q [gpu:0]/UsedDedicatedGPUMemory -t} / ${exec nvidia-settings -q [gpu:0]/TotalDedicatedGPUMemory -t} MiB

# Disk usage
${font Ubuntu:size=10,weight:bold}${color4}DISKS ${hr 2}
${offset 15}${color1}root${alignr}${color2}${fs_used_perc /} %
${offset 15}${color1}home${alignr}${color2}${fs_used_perc /home} %
#${offset 15}${diskiograph_read /dev/sda EEEEEE FFFFFF -t}
${offset 15}${color1}HDD${alignr}${color2}${fs_used_perc /mnt/HDD} %
#${offset 15}${diskiograph_read /dev/sdb EEEEEE FFFFFF -t}

# Network data
${font Ubuntu:size=10,weight:bold}${color4}NETWORK ${hr 2}
${offset 15}${color1}${font Ubuntu:size=10,weight:bold}Down Speed: ${alignr}${font Ubuntu:size=10,weight:bold}$color2${downspeed enp6s0}
${offset 15}${color1}${font Ubuntu:size=9,weight:bold}Down (Tag): ${alignr}${font Ubuntu:size=9,weight:normal}${color2}${execi 300 vnstat -i enp6s0 -d | grep "`date +"%d.%m.%Y"`" | awk '{print $2 $3}'}
${offset 15}${color1}${font Ubuntu:size=9,weight:bold}Down (7 Tage): ${alignr}${font Ubuntu:size=9,weight:normal}${color2}${execi 300 vnstat -i enp6s0 -w | grep "last 7 days" | awk '{print $4 $5}'}
${offset 15}${color1}${font Ubuntu:size=9,weight:bold}Down (Monat): ${alignr}${font Ubuntu:size=9,weight:normal}${color2}${execi 300 vnstat -i enp6s0 -m | grep "`date +"%b '%y"`" | awk '{print $3 $4}'}
#${offset 15}${downspeedgraph enp6s0 24D23 77B753 -l}

${offset 15}${color1}${font Ubuntu:size=10,weight:bold}Up Speed: ${alignr}${font Ubuntu:size=10,weight:bold}$color2${upspeed enp6s0}
${offset 15}${color1}${font Ubuntu:size=9,weight:bold}Up (Tag): ${alignr}${font Ubuntu:size=9,weight:normal}${color2}${execi 300 vnstat -i enp6s0 -d | grep "`date +"%d.%m.%Y"`" | awk '{print $5 $6}'}
${offset 15}${color1}${font Ubuntu:size=9,weight:bold}Up (7 Tage): ${alignr}${font Ubuntu:size=9,weight:normal}${color2}${execi 300 vnstat -i enp6s0 -w | grep "last 7 days" | awk '{print $7 $8}'}
${offset 15}${color1}${font Ubuntu:size=9,weight:bold}Up (Monat): ${alignr}${font Ubuntu:size=9,weight:normal}${color2}${execi 300 vnstat -i enp6s0 -m | grep "`date +"%b '%y"`" | awk '{print $6 $7}'}

I would like to display the download and upload speed in a bar like the cpu or the memory bar.
In conky I found only the possibility for a graph.
Can someone help me with this?
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 20. January 2015, 15:55:44
first, i want to thank you for sharing your conky with your conkyrc code.
there is some interesting code, especially in the GPU and network section of your conky.


I would like to display the download and upload speed in a bar like the cpu or the memory bar.
Can someone help me with this?

there are 2 different kinds of bars in conky (look in the documentation for commands: http://conky.sourceforge.net/variables.html):
- bar, which have a conky command (e.g. membar, wireless_link_bar, ...). their commands always contain the hight and lengh. they will always have the hight and lengh specified in their command.
- execbar and execibar. these are general bars and their hight and lengh has to be specified before the TEXT variable, e.g.:
Code: [Select]
default_bar_size 110 9

here are some examples of bars (i assume "default_bar_size 110 9" was used before the TEXT variable):

- a 50% bar with 9 pixel height and 110 pixel lengh starting at 40 pixel from the left conky edge (bar gets drawn every 5 seconds):
Code: [Select]
${goto 40}${execibar 5 50}

- you can also use a command instead of a number. this will result in a variable bar e.g. showing nvidia gpu memory bandwidth:
Code: [Select]
${execibar 4 nvidia-settings -q GPUUtilization -t | cut -d , -f 2 | cut -d = -f 2 }

- the "execbar" command only accepts number between 0-100. when you want to display a bar using other numbers, you have to use calculation with a result of 0-100. this example calculates the used percentage of gpu memory. use a similar command to calculate your network statistics:
Code: [Select]
${execibar 5  echo $(( $(nvidia-settings -q UsedDedicatedGPUMemory -t) * 100 / $(nvidia-settings -q TotalDedicatedGPUMemory -t) )) }
Title: Re: Conky thread, show your work!
Post by: Cliff on 20. January 2015, 20:35:53
Thank you for your reply.

execibar would work if there were a program which gives me my current download speed:
(Curr. download speed / maximum download speed) * 100

But I couldn't find such a program.
However, conky offers that functionality directly with ${downspeed enp6s0}. But I don't know how to calculate with this parameter in the conkyrc.
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 20. January 2015, 21:39:00
sorry, i do not know a method to measure your current download speed (with a CLI program), either.

but i can tell you that ${downspeed enp6s0} does NOT work, because the output (in conky) of ${downspeed enp6s0} is e.g.:
160 B
3.5 KiB
23.2 MiB

you need a CLI program with an integer or float number as result (e.g. 160, 3500, 23200000).
Title: Re: Conky thread, show your work!
Post by: Cliff on 20. January 2015, 23:47:28
Finaly I found a solution :)
With inspirations from here (http://askubuntu.com/questions/450604/how-to-get-the-current-upload-and-download-speeds-in-terminal)

I did create 2 scripts:
~/.conky/downbar.sh
Code: [Select]
#!/bin/bash

# Your maximum download speed in MBit/s
maxDownloadSpeed=200

# Needed because with german locale the floating point is a comma (for printf)
LC_NUMERIC=C LC_COLLATE=C

# Get first and second byte value
first=$(grep enp6s0 /proc/net/dev | awk '{print $2}')
sleep 0.1
second=$(grep enp6s0 /proc/net/dev | awk '{print $2}')
# how many bytes where downloaded in 0.1 seconds? Predict a whole second
# we don't want to wait this whole second every time.
bytesPerSecond=$(awk "BEGIN {print ($second - $first) * 10}")

percentage=$(awk "BEGIN {print ($bytesPerSecond / ($maxDownloadSpeed / 8 * 1000000)) * 100}")

# Round the result because if -gt does not work with floating point numbers.
resultRounded=$(printf %.0f $percentage)

# Don't print values greater than 100, because the bar would stay empty
if [ $resultRounded -gt 100 ]
then
    echo 100
else
    echo $percentage
fi

and
~/.conky/upbar.sh
Code: [Select]
#!/bin/bash

# Your maximum upload speed in MBit/s
maxUploadSpeed=10

# Needed because with german locale the floating point is a comma (for printf)
LC_NUMERIC=C LC_COLLATE=C

# Get first and second byte value
first=$(grep enp6s0 /proc/net/dev | awk '{print $10}')
sleep 0.1
second=$(grep enp6s0 /proc/net/dev | awk '{print $10}')
# how many bytes where uploaded in 0.1 seconds? Predict a whole second
# we don't want to wait this whole second every time.
bytesPerSecond=$(awk "BEGIN {print ($second - $first) * 10}")

percentage=$(awk "BEGIN {print ($bytesPerSecond / ($maxUploadSpeed / 8 * 1000000)) * 100}")

# Round the result because if -gt does not work with floating point numbers.
resultRounded=$(printf %.0f $percentage)

# Don't print values greater than 100, because the bar would stay empty
if [ $resultRounded -gt 100 ]
then
    echo 100
else
    echo $percentage
fi

And added this to .conkyrc:
Code: [Select]
${offset 15}${color3}${execibar 1 ~/.conky/downbar.sh}
${offset 15}${color3}${execibar 1 ~/.conky/upbar.sh}

(http://i.imgur.com/aGRI6Kn.png)
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 21. January 2015, 03:53:01
Might I suggest that if others can "confirm" Cliff's solution that this be added to maybe a page in wiki as well as maybe make some sort of conky reference a permanent item here in the forums?
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 21. January 2015, 17:08:19
Might I suggest that if others can "confirm" Cliff's solution that this be added to maybe a page in wiki
i have written this wiki page: https://wiki.manjaro.org/index.php?title=Basic_Tips_for_conky
but it is designed to give conky newbies an overview with simple examples. Cliff's conky code is NOT simple.
a solution would be to create an "advanced conky tips & tricks" wiki page. i can do it, but i have never used bash or lua/python scripts in conky.
when you (or somebody else) can write a "introduction to conky scripting", i will create such a wiki page.


maybe make some sort of conky reference a permanent item here in the forums?
this conky thread is already a sticky thread. there are not enough active people in the "manjaro conky community" (and other reasons) to create a separate subforum.
Title: Re: Conky thread, show your work!
Post by: sot on 21. January 2015, 17:35:03
I have a question involving conky and the system.

I multiboot xfce and openbox. The same conky script runs on both.
xfce needs wlan0 in the script OB requires wlp12s0
xfce will show connection quality with a graph or number. OB shows nothing.
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 21. January 2015, 18:26:41
I have a question involving conky and the system.

I multiboot xfce and openbox. The same conky script runs on both.
xfce needs wlan0 in the script OB requires wlp12s0
xfce will show connection quality with a graph or number. OB shows nothing.
I am using Xfce, and LXDE (which is using OpenBox). My conky script uses the same network reference in both and works in both. (see my .conkyrc below).
Code: [Select]
${color #FFFFFF}${hr}
${font Nimbus Sans:size=10:weight=bold}${color #DC143C}UL_Spd:${alignr}${color #FFFFFF}${font Nimbus Sans:size=8}${upspeed enp1s4}
${font Nimbus Sans:size=10:weight=bold}${color #DC143C}Tot_UL:${alignr}${color #FFFFFF}${font Nimbus Sans:size=8}${totalup enp1s4}
${color #FFFFFF}${hr}
${font Nimbus Sans:size=10:weight=bold}${color #7FFF00}DL_Spd:${alignr}${color #FFFFFF}${font Nimbus Sans:size=8}${downspeed enp1s4}
${font Nimbus Sans:size=10:weight=bold}${color #7FFF00}Tot_DL:${alignr}${color #FFFFFF}${font Nimbus Sans:size=8}${totaldown enp1s4}

As you can see it uses  enp1s4 and as stated, it works wonderfully in both DE's.
Title: Re: Conky thread, show your work!
Post by: sot on 21. January 2015, 18:41:19
Hi CW,
  One of my questions is why udev? renames wlan0 to wlp12s0. Is it the driver or router.
In OB using wlp12s0 all other info will display correctly. ie ssid, local and public ip.

I need to boot into OB and check dmesg again,....iirc it shows udev changing wlan0 to wlp12s0.
It is not a serious issue, just trying to figure out what is going on.

Cheers!
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 23. January 2015, 15:00:37
Just some minor (but to me on a learning level) very important changes/accomplishments.
Had to re-activate compositing in Xfce and install xcompmgr for use in LXDE so I could use semi-transparent backgrounds in conky. And I have enjoyed gettint that right, as well as figuring out how to stop that weird little block at the end of text caused by the new line character.

As to the semi-transparent background, here is the related code:
Code: [Select]
own_window_transparent no
own_window_colour 202020
own_window_argb_visual yes
own_window_argb_value 160
And to get rid of that VERY annoying box character where the new line character is:
Code: [Select]
override_utf8_locale yes
Reason for the line above is I started using different fonts and some of them create that weird box like character. The one I currently use in only one area, is called Arial Black, here is a snippet from that general area of the conky code:
Code: [Select]
${hr 1}
${color #00FF00}${alignc}${font Arial Black:size=11}MANJARO
${font Nimbus Sans:size=11:bold}Linux${alignr}${font Nimbus Sans:size=10:bold}v0.8.11
${color #FFFFFF}${stippled_hr 2}
Oh yeah, I also learned about the dotted line too also known as stippled_hr.
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 15. February 2015, 18:03:37
Well, as I said, IF I had "another milestone" I would post then.
Well, decided to figure out how to get the "excess space" above and below various text areas as well as the dividing lines.
Finally did it and pretty much mastered the the use of the voffset command in conky.

So, here is my current .conkyrc file and attached will be a capture of the conky.

.conkyrc:
Code: [Select]
background yes
own_window yes
own_window_transparent yes
# own_window_transparent no
# own_window_argb_visual yes
# own_window_argb_value 200
# own_window_colour 2F4F4F
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment top_right
gap_x 4
gap_y 4
use_spacer none
update_interval 1
net_avg_samples 2
total_run_times 0
use_xft yes
override_utf8_locale yes
xftalpha 0.95
text_buffer_size 1024
uppercase no
override_utf8_locale yes
double_buffer yes
no_buffers yes
draw_shades no
default_outline_color 000000
draw_outline yes
draw_borders yes
short_units yes
border_width 1
border_inner_margin 1
border_outer_margin 1

TEXT
${color #FFFFFF}${font Inconsolata:size=14:bold}${time %b}${alignr -3}${time %Y}
${color #FF00FF}${font Inconsolata:size=11:bold}${alignc}${voffset -5}${time %A}
${color #FFFFFF}${font Inconsolata:size=18:bold}${alignc}${time %d}
${voffset -11}${hr 1}
${color #00FF00}${font Inconsolata:size=15:bold}${alignc}${voffset -9} Manjaro
${font Inconsolata:size=12:bold}${alignc} Linux v0.8.12
${color #FFFFFF}${voffset -5}${stippled_hr 1}
${font Inconsolata:size=12:bold}${alignc} KERNEL
${color #FFFF00}${font Inconsolata:size=9}${alignc} ${kernel}
${color #FFFFFF}${hr 1}
${font Inconsolata:size=12:bold}${alignc}UPTIME
${color #FFFF00}${font Inconsolata:size=12}${alignc}${uptime}
${color #FFFFFF}${voffset -3}${hr 1}
${color #00FFFF}${font Inconsolata:size=12:bold}${alignc}/ROOT(Free)
${color #FFFF00}${font Inconsolata:size=12}${alignc}${fs_free /}
${color #FFFFFF}${voffset -4}${stippled_hr 1}
${color #FFA500}${font Inconsolata:size=12:bold}${alignc}/HOME(Used)
${color #FFFF00}${alignc}${font Inconsolata:size=12} ${execp du -sh /home/username/ | cut -c 1-5}
${color #FFFFFF}${voffset -4}${stippled_hr 1}
${color #FF00FF}${font Inconsolata:size=12:bold}${alignc}FREE MEM
${color #FFFF00}${alignc}${font Inconsolata:size=12}${memfree}
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}${color #DC143C}${alignc}UL_SPD
${alignc}${color #FFFFFF}${font Inconsolata:size=12}${upspeed enp1s4}
${font Inconsolata:size=12:bold}${color #7FFF00}${alignc}DL_SPD
${alignc}${color #FFFFFF}${font Inconsolata:size=12}${downspeed enp1s4}
${color #FFFFFF}${voffset -4}${stippled_hr 1}
${font Inconsolata:size=12:bold}${color #DC143C}${alignc}TTL_UL
${alignc}${color #FFFFFF}${font Inconsolata:size=12}${totalup enp1s4}
${font Inconsolata:size=12:bold}${color #7FFF00}${alignc}TTL_DL
${alignc}${color #FFFFFF}${font Inconsolata:size=12}${totaldown enp1s4}
Title: Re: Conky thread, show your work!
Post by: oli on 16. February 2015, 07:18:35
My conky has been evolving into a bit of a beast over time so I thought I would share it here. Here is the screenshot:

(https://i.imgur.com/23TgJet.jpg)

It is hacked together from pieces I found on the web. Actually my conky consists of two conkys, the one on the left is the main one. Here is the .conkyrc

Code: [Select]
##############################################
# Settings
##############################################

background yes

# Use Xft?
use_xft yes
xftfont Inconsolata:size=9
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

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type desktop

own_window_argb_visual yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

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

# Minimum size of text area
minimum_size 200 900
maximum_width 200

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# border width
border_width 1

# border margins
border_margin 5

# Stippled borders?
stippled_borders 0

# Default colors and also border colors
default_color 666666
own_window_colour 262524
default_shade_color 000000
default_outline_color 828282

# 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 30
gap_y 20

# 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 yes

default_bar_size 200 3
draw_graph_borders yes

short_units yes
pad_percents 2

#color scheme
color1 a7a7a7
color2 4E7BA6
color3 FFA500
##############################################
#  Output
##############################################
TEXT
# Various images #
${execpi 300 sh ~/.conky-weather/geoloc.sh woeid}
${image ~/.conky-weather/assets/Transparent/God-Mode/separator-v.png -p 66,94 -s 1x50}\
${image ~/.conky-weather/assets/Transparent/God-Mode/separator-v.png -p 133,94 -s 1x50}\
${color1}Kernel:${color}$alignr$kernel
${color1}UpTime:${color}$alignr$uptime
${color1}Updates:${color}${alignr}${if_match ${execi 1800 yaourt -Qua | wc -l }==0} 0$else${color3} ${execi 1800 yaourt -Qua | wc -l }${color}$endif
${color1}LatxLong:${color}${alignr}${execpi 300 sh ~/.conky-weather/geoloc.sh lat}x${execpi 300 sh ~/.conky-weather/geoloc.sh long}
#${color1}CpuTemp:${color}${alignr}${execi 30 sensors | awk '/Core 2:/ {gsub(/\+/,"",$3); gsub(/\..+/,"",$3); print $3}'}°
${hr}
${color1}Today:${color}${alignr}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}° ${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
\
#
\
${font Inconsolata :size=8}${color1}${voffset 6}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1' | tr '[a-z]' '[A-Z]'}:${color2}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}${color}-${color3}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°
${voffset -11}${alignc}${color1}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2' | tr '[a-z]' '[A-Z]'}:${color2}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}${color}-${color3}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°
${voffset -11}${alignr}${color1}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3' | tr '[a-z]' '[A-Z]'}:${color2}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}${color}-${color3}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°${color}${font}
\
#systems
\
${voffset 36}${hr}
${color1}CPU:${color2}${goto 150}${execi 30 sensors | awk '/Core 2:/ {gsub(/\+/,"",$3); gsub(/\..+/,"",$3); print $3}'}° ${color}- ${color3}${goto 186}${cpu cpu0}%${color}
${cpubar cpu0}
${color1}RAM:$alignr${color2}$mem${color} - ${color3}${memperc}%${color}
${membar}
${color1}Root:$alignr${color2}${fs_used /}${color} - ${color3}${fs_used_perc /}%${color}
${fs_bar /}
${color1}Home:$alignr${color2}${fs_used /home}${color}- ${color3}${fs_used_perc /home}%${color}
${fs_bar /home}
${color1}Up:${color} ${upspeed wlo1}${color}
${upspeedgraph eth0 11,85 4E7BA6 FFA500}
${color1}Total:${color} ${totalup wlo1}
${voffset -36}${goto 121}${color1}Down:${color} ${downspeed wlo1}
$alignr${downspeedgraph wlo1 11,85 4E7BA6 FFA500}${color}
$alignr${color1}${goto 121}Total:${color} ${totaldown wlo1}
${hr}
${color1}Process${goto 121}RAM used${color}
${top_mem name 1}${goto 121}${top_mem mem_res 1} -${top_mem mem 1}%
${top_mem name 2}${goto 121}${top_mem mem_res 2} -${top_mem mem 2}%
${top_mem name 3}${goto 121}${top_mem mem_res 3} -${top_mem mem 3}%
${hr}
${color1}Process${goto 121}CPU used${color}
${top name 1}${goto 111}${top cpu 1}%
${top name 2}${goto 111}${top cpu 2}%
${top name 3}${goto 111}${top cpu 3}%
${hr}
\
${font Inconsolata :size=8}${execi 3000 fortune -a -s -n 900| tr '\n' ' ' | tr '\t' ' ' | fold -w 34 -s}
#images
\
${execi 300 cp -f ~/.conky-weather/icons/weather-icons-light4/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1').png ~/.cache/weather-1.png}${image ~/.cache/weather-1.png -p 10,108 -s 32x32}\
${execi 300 cp -f ~/.conky-weather/icons/weather-icons-light4/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2').png ~/.cache/weather-2.png}${image ~/.cache/weather-2.png -p 86,108 -s 32x32}\
${execi 300 cp -f ~/.conky-weather/icons/weather-icons-light4/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3').png ~/.cache/weather-3.png}${image ~/.cache/weather-3.png -p 155,108 -s 32x32}${font}${voffset -120}\
${if_mpd_playing}${execi 10 echo 1 > ~/.cache/conky-stat}${else}${execi 10 echo 0 > ~/.cache/conky-stat}${endif}

If you read that you probably noticed the script geoloc.sh. If this script is run with woeid argument it fetches weather data appropriate for my current location via a curl and copies it to to my .cache folder. If it is run with lat argument it returns current latitude and like wise for longitude. The weather icons and weather part of the script is based of the work found here: http://www.deviantart.com/art/Conky-Harmattan-426662366 (http://www.deviantart.com/art/Conky-Harmattan-426662366). The fortune command returns an interesting anecdote. You can install fortune via pacman. The second conky is controlled from the first it only runs when mpd is playing or paused. Here is the .conky-mpd

Code: [Select]
##############################################
# Settings
##############################################

background yes

# Use Xft?
use_xft yes
xftfont Inconsolata:size=9
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

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_title conky
own_window_class conky-semi

own_window_argb_visual no
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

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

# Minimum size of text area
minimum_size 400 436
maximum_width 400

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# border width
border_width 1

# border margins
border_margin 5

# Stippled borders?
stippled_borders 0

# Default colors and also border colors
default_color 666666
own_window_colour 262524
default_shade_color 000000
default_outline_color 828282

# 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 30
gap_y 20

# 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 yes

default_bar_size 200 3
draw_graph_borders yes

short_units yes
pad_percents 2
imlib_cache_size 0

#color scheme
color1 c9c9c9
color2 2C5984
color3 FFA500

lua_load ~/Manjaro/Scripts/conky-bg.lua
lua_draw_hook_pre draw_bg
##############################################
#  Output
##############################################
TEXT
${voffset -20}
${color1}
 $mpd_artist: ${color3}${mpd_title 100}
 ${color1}$mpd_elapsed${color ededed}/${color3}$mpd_length ${goto 90}${color1}${mpd_bar 8,310}
${execi 10 sh ~/Manjaro/Scripts/mpd-albumart}
${image ~/.cache/mpd.jpg -s 396x396 -p 2,35 }

There are two scripts involved here. One is a lua script responsible for the back ground and the other; mpd-albumart, copies the cover of the currently playing album into my .cache folder.
The first conky detects the state of mpd, if mpd is playing or paused it writes a 1 into a file in my .cache folder and if mpd is stopped it writes a 0 there. I have another script which is launched at start up which reads this file at regular intervals and either launches or kills the second conky as appropriate.

If anyone is interested in the scripts then let me know and I will share them too.
Title: Re: Conky thread, show your work!
Post by: baron on 16. February 2015, 17:58:25
(http://s23.postimg.org/5tnego807/screen01_png.jpg) (http://postimg.org/image/5tnego807/)

Openbox + LXQt
Title: Re: Conky thread, show your work!
Post by: kmartin on 18. February 2015, 06:34:51
Hi all... Just a little moon conky.  c code, conky and .png files @ dropbox: https://www.dropbox.com/s/qzg53fa33z05ngi/moonphase.tar.gz?dl=0 (https://www.dropbox.com/s/qzg53fa33z05ngi/moonphase.tar.gz?dl=0)   

   Some time back in 2014 I was wasting time on conky stuff, what's it called?  Yes- shaving Yaks. Anyway I just wanted to throw up a pic of the moon in phase in conky. I didn't like the weather options .  Some nice person @ voidware had posted relevant c. code.

   Next I modified it to take the phase of the moon today, pick out a picture and feed it to conky. My very limited c. experience dates way back . Anyway, mission accomplished... kind of. I'm not a graphics artist, so I learned some more about Gimp, but basically the pictures suck. The percentages are based on a 0-100 scale sort of... 0=new  50=full  99.99=oldest . The problems with transparency got fixed thanks to this link: http://conky.pitstop.free.fr/wiki/index.php5?title=ARGB_Visual_%28en%29  and note the #-----Window settings in conky example.
  There is a lot to play with for those of you with more knowledge and  talent then this humble Yak shaver.

   Be that as it may I first ran this from two different approaches. 1.) from /home/martim/moonphase (https://forum.manjaro.org/index.php?topic=19282.0 Thanks again aaditya) . This required running from the bash shell, I.e. ./moonphase .  2.) Running from /usr/local/bin/ however did not require the ./ prefix. The 2 autostart examples are below.
   In autostart before conky :
Code: [Select]
## moonphase .png for conky
#(sleep 2s && cd /home/martin/moonphase/ && ./moonphase) &
#(sleep 2s && cd /usr/local/bin/ && moonphase) &

So pick a directory approach and delete the other.
unpac/move the files to some directory, e.g. home/yourusername/moonphase
Compile moonphase.c  see the top of the file for notes.
Code: [Select]
chmod 751 moonphase
  chmod 664 *.png


In .conkyrc .
Code: [Select]
TEXT
#${image /home/martin/moonphase/todaysmoon.png -p 32,14 -s 120x120}
#${image /usr/local/bin/todaysmoon.png -p 32,14 -s 120x120}
Edit path as needed.

   OR don't use autostart and run from conky as Fellow Manjarian (or is it Manjiod???) Sot suggested. Works well too and has the added advantage of updating conky if the phase of the moon transits a file range (i.e. if's in: void renametodaysmoon(int moonphper) ) while logged in. Thanks sot: sorry, I was too focused on the autostart approach to see the merit in your suggestion. I misunderstood the resource penalty that execpi could incur. Now upon reflection I think your idea is superior, and is the way I am running this now. Thank you.
In autostart before conky  nothing is needed :
## moonphase .png for conky
#(sleep 2s && cd /home/yourusername/moonphase/ && ./moonphase) &
#(sleep 2s && cd /usr/local/bin/ && moonphase) &

In .conkyrc
Code: [Select]
TEXT
${execpi 7200 cd /home/yourusername/moonphase/ && ./moonphase}
${image /home/yourusername /moonphase/todaysmoon.png -p 32,14 -s 120x120}

Currently I'm running this with the printf statement : printf("\nconky gets moonpic %s \n", moonpic);   in function: void renametodaysmoon(int moonphper)  . So you get a report in the onscreen conky as to the moonpic that conky is receiving. Comment or delete as you wish and recompile. I'm sure all of you can figure this stuff out if I don't confuses things too much. I'll leave the picture editing and conversion to .jpg to you all.

   Basically I'm tossing this out there to give purpose to anyone  else who needs a new Yak to shave. Those poor souls may download the c source, png's conkyrc_moonphase example and the original phase.c in a tarball from dropbox @           .  Oh and gimptransperantbkgrnd.odt is a  condensed directions for putting a moon or something on a transparent background in Gimp.

Happy trails ...

ps. these are pretty good moon pics to copy and insert as you wish: http://www.webexhibits.org/calendars/moon.html

http://www.moongiant.com/phase/today/
Title: Re: Conky thread, show your work!
Post by: sot on 18. February 2015, 18:10:00
kmartin.  fantastic!!  Thanks for all the details.
Title: Re: Conky thread, show your work!
Post by: ihtiyar on 03. March 2015, 15:41:12
Hi,
I have a problem with conky-lua,
the same conky doesn't work same  in Manjaro and Mint.Mint fits the window but Manjaro fails
pc and the monitor resulation same
Here the screenshots are:
(http://i.imgur.com/KACoxjd.png),(http://i.imgur.com/O7vz91m.png)
the conkyrc file :
Code: [Select]
# Conky settings #
background no
update_interval 1

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
#imlib_cache_size 0

temperature_unit fahrenheit

# Window specifications #

own_window yes
own_window_type underride
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

border_inner_margin 0
border_outer_margin 0

minimum_size 200 250
maximum_width 200

alignment tl
gap_x 35
gap_y 55

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #
use_xft yes
override_utf8_locale yes
xftfont Neuropolitical:size=9
xftalpha 0.8
uppercase no

temperature_unit celsius

default_color FFFFFF

# Lua Load  #
lua_load ~/.lua/scripts/clock_rings.lua
lua_draw_hook_pre clock_rings

TEXT
${font Neuropolitical:size=42}${time %e}
${goto 100}${font Neuropolitical:size=18}${color 339900}${voffset -75}${time %b}
${font Neuropolitical:size=10}${color 339900}${voffset 15}${time %A}${color 339900}${hr}
${goto 100}${font Neuropolitical:size=15}${color FFFFFF}${voffset -35}${time %Y}
${font Neuropolitical:size=30}${voffset 40}${alignc}${time %H}:${time %M}
${goto 175}${voffset -30}${font Neuropolitical:size=10}${time %S}
${voffset 10}${font Neuropolitical:size=11}${color 339900}${alignr}HOME${font}
${font Neuropolitical:size=13}${color FFFFFF}${alignr}temp: ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ LTBA temperature temperature 30} °C${font}
${hr}
${image ~/.lua/logo.png -p 165,10 -s 35x35}
${color FFFFFF}${font Neuropolitical:size=8}Uptime: ${uptime_short}
${color FFFFFF}${font Neuropolitical:size=8}Processes: ${processes}
${color FFFFFF}${font Neuropolitical:size=8}Running: ${running_processes}

${color 339900}${goto 125}${voffset 27}CPU
${color FFFFFF}${goto 125}${cpu cpu0}%
${color 339900}${goto 125}${voffset 55}RAM
${color FFFFFF}${goto 125}${memperc}%
${color 339900}${goto 125}${voffset 56}Swap
${color FFFFFF}${goto 125}${swapperc}%
${color 339900}${goto 125}${voffset 57}Disk
${color FFFFFF}${goto 125}${fs_used_perc /}%
${color 339900}${goto 130}${voffset 55}Net
${color FFFFFF}${goto 130}${downspeed eth0}
${color FFFFFF}${goto 130}${upspeed eth0}

${color 339900}${font Neuropolitical:size=9}${alignr}${nodename}
${color 339900}${font Neuropolitical:size=9}${alignr}${pre_exec cat /etc/issue.net}  $machine
${color 339900}${font Neuropolitical:size=9}${alignr}Kernel: ${kernel}
${hr}


Thanks
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 03. March 2015, 18:52:37
Hi,
I have a problem with conky-lua,
the same conky doesn't work same  in Manjaro and Mint.Mint fits the window but Manjaro fails
pc and the monitor resulation same
Here the screenshots are:
(http://i.imgur.com/KACoxjd.png),(http://i.imgur.com/O7vz91m.png)
the conkyrc file :
Code: [Select]
# Conky settings #
background no
update_interval 1

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
#imlib_cache_size 0

temperature_unit fahrenheit

# Window specifications #

own_window yes
own_window_type underride
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

border_inner_margin 0
border_outer_margin 0

minimum_size 200 250
maximum_width 200

alignment tl
gap_x 35
gap_y 55

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #
use_xft yes
override_utf8_locale yes
xftfont Neuropolitical:size=9
xftalpha 0.8
uppercase no

temperature_unit celsius

default_color FFFFFF

# Lua Load  #
lua_load ~/.lua/scripts/clock_rings.lua
lua_draw_hook_pre clock_rings

TEXT
${font Neuropolitical:size=42}${time %e}
${goto 100}${font Neuropolitical:size=18}${color 339900}${voffset -75}${time %b}
${font Neuropolitical:size=10}${color 339900}${voffset 15}${time %A}${color 339900}${hr}
${goto 100}${font Neuropolitical:size=15}${color FFFFFF}${voffset -35}${time %Y}
${font Neuropolitical:size=30}${voffset 40}${alignc}${time %H}:${time %M}
${goto 175}${voffset -30}${font Neuropolitical:size=10}${time %S}
${voffset 10}${font Neuropolitical:size=11}${color 339900}${alignr}HOME${font}
${font Neuropolitical:size=13}${color FFFFFF}${alignr}temp: ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ LTBA temperature temperature 30} °C${font}
${hr}
${image ~/.lua/logo.png -p 165,10 -s 35x35}
${color FFFFFF}${font Neuropolitical:size=8}Uptime: ${uptime_short}
${color FFFFFF}${font Neuropolitical:size=8}Processes: ${processes}
${color FFFFFF}${font Neuropolitical:size=8}Running: ${running_processes}

${color 339900}${goto 125}${voffset 27}CPU
${color FFFFFF}${goto 125}${cpu cpu0}%
${color 339900}${goto 125}${voffset 55}RAM
${color FFFFFF}${goto 125}${memperc}%
${color 339900}${goto 125}${voffset 56}Swap
${color FFFFFF}${goto 125}${swapperc}%
${color 339900}${goto 125}${voffset 57}Disk
${color FFFFFF}${goto 125}${fs_used_perc /}%
${color 339900}${goto 130}${voffset 55}Net
${color FFFFFF}${goto 130}${downspeed eth0}
${color FFFFFF}${goto 130}${upspeed eth0}

${color 339900}${font Neuropolitical:size=9}${alignr}${nodename}
${color 339900}${font Neuropolitical:size=9}${alignr}${pre_exec cat /etc/issue.net}  $machine
${color 339900}${font Neuropolitical:size=9}${alignr}Kernel: ${kernel}
${hr}


Thanks

From looking at the images, it appears the lua scripting is implemented differently between Manjaro and Mint. Just look at placement for uptime in relation to the CPU lua. There is a noticeable difference there.
As well as placement at bottom lua for NET in relation to the distro/kernel info area.
Title: Re: Conky thread, show your work!
Post by: oberon on 23. March 2015, 23:05:00
I really DO "enjoy the simplicity" :)
Here's my very simple and clean xfce-desktop with two small conkies. One at the top as a workspace-indicator and a second one bottom right with time, date, cpu, temperature, RAM-load, disk-space, kernel (I like to switch sometimes, so its really convenient that I can quickly see which one is currently running there). And a very simple and slim battery load bar.
Some other information I have available at a glance from the top panel: data-transfer, disk-monitor and weather
Like that my desktop on a small 11' screen offers the maximum space and still has everything quickly accessible and visible.
I think its great how xfce-panels and conky together make it possible to have really an awful lot of information in almost no space at all.
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 24. March 2015, 01:21:39
...One at the top as a workspace-indicator...
this sounds (and looks) interesting. could you post the .conkyrc code for it?

btw, nice wallpaper.
Title: Re: Conky thread, show your work!
Post by: oberon on 24. March 2015, 02:02:11
sure! Its actually quite simple.
You define a
Code: [Select]
default_color 444444that fits your wallpaper for the inactive workspaces and a different color for the active workspace:
Code: [Select]
color1 ffffffAs text you use this little script with bullets of the right size as the indicators:
Code: [Select]
${font andale mono:size=18}${if_match ${desktop}==1}${color1}${endif}•${color}${if_match ${desktop}==2}${color1}${endif}•${color}${if_match ${desktop}==3}${color1}${endif}•${color}${if_match ${desktop}==4}${color1}${endif}•${color}${font}The only disadvantage is that the number of workspaces is fixed. So in case you change the number of workspaces you have to adjust the script... I just always use four.
Title: Re: Conky thread, show your work!
Post by: oberon on 24. March 2015, 02:09:43
The wallpaper comes from here: http://wallpaperswide.com/search.html?q=ghost
:)
Title: Re: Conky thread, show your work!
Post by: Neele on 25. March 2015, 21:32:20
Cyberwolf, nice work ;D ! I hope it's okay that I took one of your older .conkyrc's and modified it?

Code: [Select]
background yes
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment top_right
minimum_size 140 500
maximum_width 150
gap_x 10
gap_y 5
use_spacer none

update_interval 1
cpu_avg_samples 2
net_avg_samples 2
total_run_times 0

use_xft yes
xftfont Inconsolata:size=12
xftalpha 0.7
text_buffer_size 1024
uppercase no
override_utf8_locale yes

double_buffer yes
no_buffers yes
draw_shades no
draw_outline no
draw_borders no

color1 ffffff
color2 000000

short_units yes

TEXT
#
#Clock&Date
${font Inconsolata-Bold:size=26}${color1}$alignr${time %H:%M}$font
${font Inconsolata-Bold:size=11}${color1}$alignr${time %A, %d.%B %Y}

#Calendar
${execpi 3600 cal | sed "s/$(date '+%d')/\${font Inconsolata:size=10:weight=bold}\${color #ff0000}&\${color}\${font Inconsolata:size=10}/" | sed "s/$(date '+%B %Y')/\${font Inconsolata:size=10:weight=bold}&\${font Inconsolata:size=10}/"}

Battery: ${alignr} ${battery_percent BAT0}%, ${battery_time BAT0}
${battery_bar 6,150 BAT0}

/root: ${alignr}Free ${fs_free /}
${fs_bar 6,150 /}
/home: ${alignr}Free ${fs_free /home}
${fs_bar 6,150 /home}
#
#Total:${alignr}${memmax}
#Free:${alignr}${memfree}

Temperature: ${alignr}${acpitemp}°C
Processes: $alignr${running_processes}/${processes}
CPU: ${alignr}${cpu}%
#${cpugraph 15,150 cpu OOBBEE FFFFFF -t}
RAM: ${alignr}${memperc}%

SSID: ${alignr}${wireless_essid wlp3s0}
WiFi Signal: ${alignr}${wireless_link_qual_perc wlp3s0}%
${wireless_link_bar 6,150 wlp3s0}
Local IP: ${alignr}${addr wlp3s0}
Public IP: ${alignr}${exec wget -q -O - checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'}

Up:${alignr}${upspeed wlp3s0}
Total:${alignr}${totalup wlp3s0}
#
Down:${alignr}${downspeed wlp3s0}
Total:${alignr}${totaldown wlp3s0}

${if_match ${execi 120 yaourt -Qua | wc -l } == 1}${execi 120 yaourt -Qua | wc -l } update$else${execi 120 yaourt -Qua | wc -l } updates$endif

${rss http://www.tagesschau.de/xml/rss2 5 item_title}
${rss http://www.tagesschau.de/xml/rss2 5 item_title 1}
${rss http://www.tagesschau.de/xml/rss2 5 item_title 2}
${rss http://www.tagesschau.de/xml/rss2 5 item_title 3}
${rss http://www.tagesschau.de/xml/rss2 5 item_title 4}

${alignc}${kernel}
${alignc}${uptime}

But there still is one thing that I'm not quite happy with: I'd like to get the feed lines on the screen one at a time, but in their full length with a line break each 21 characters. And then switch to the next one the next time (or the time after that) conky updates.
Any ideas?
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 25. March 2015, 22:25:50
Cyberwolf, nice work ;D ! I hope it's okay that I took one of your older .conkyrc's and modified it?

Code: [Select]
background yes
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment top_right
minimum_size 140 500
maximum_width 150
gap_x 10
gap_y 5
use_spacer none

update_interval 1
cpu_avg_samples 2
net_avg_samples 2
total_run_times 0

use_xft yes
xftfont Inconsolata:size=12
xftalpha 0.7
text_buffer_size 1024
uppercase no
override_utf8_locale yes

double_buffer yes
no_buffers yes
draw_shades no
draw_outline no
draw_borders no

color1 ffffff
color2 000000

short_units yes

TEXT
#
#Clock&Date
${font Inconsolata-Bold:size=26}${color1}$alignr${time %H:%M}$font
${font Inconsolata-Bold:size=11}${color1}$alignr${time %A, %d.%B %Y}

#Calendar
${execpi 3600 cal | sed "s/$(date '+%d')/\${font Inconsolata:size=10:weight=bold}\${color #ff0000}&\${color}\${font Inconsolata:size=10}/" | sed "s/$(date '+%B %Y')/\${font Inconsolata:size=10:weight=bold}&\${font Inconsolata:size=10}/"}

Battery: ${alignr} ${battery_percent BAT0}%, ${battery_time BAT0}
${battery_bar 6,150 BAT0}

/root: ${alignr}Free ${fs_free /}
${fs_bar 6,150 /}
/home: ${alignr}Free ${fs_free /home}
${fs_bar 6,150 /home}
#
#Total:${alignr}${memmax}
#Free:${alignr}${memfree}

Temperature: ${alignr}${acpitemp}°C
Processes: $alignr${running_processes}/${processes}
CPU: ${alignr}${cpu}%
#${cpugraph 15,150 cpu OOBBEE FFFFFF -t}
RAM: ${alignr}${memperc}%

SSID: ${alignr}${wireless_essid wlp3s0}
WiFi Signal: ${alignr}${wireless_link_qual_perc wlp3s0}%
${wireless_link_bar 6,150 wlp3s0}
Local IP: ${alignr}${addr wlp3s0}
Public IP: ${alignr}${exec wget -q -O - checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'}

Up:${alignr}${upspeed wlp3s0}
Total:${alignr}${totalup wlp3s0}
#
Down:${alignr}${downspeed wlp3s0}
Total:${alignr}${totaldown wlp3s0}

${if_match ${execi 120 yaourt -Qua | wc -l } == 1}${execi 120 yaourt -Qua | wc -l } update$else${execi 120 yaourt -Qua | wc -l } updates$endif

${rss http://www.tagesschau.de/xml/rss2 5 item_title}
${rss http://www.tagesschau.de/xml/rss2 5 item_title 1}
${rss http://www.tagesschau.de/xml/rss2 5 item_title 2}
${rss http://www.tagesschau.de/xml/rss2 5 item_title 3}
${rss http://www.tagesschau.de/xml/rss2 5 item_title 4}

${alignc}${kernel}
${alignc}${uptime}

But there still is one thing that I'm not quite happy with: I'd like to get the feed lines on the screen one at a time, but in their full length with a line break each 21 characters. And then switch to the next one the next time (or the time after that) conky updates.
Any ideas?

Nope, not a problem at all. That is part of the reason to post your .conkyrc files here. To assist others in getting their conky looking the way they want it to.
Just glad I could help as it were.
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 25. March 2015, 22:49:31
Nope, not a problem at all. That is part of the reason to post your .conkyrc files here. To assist others in getting their conky looking the way they want it to.
Just glad I could help as it were.
i agree.

when i first created my conky, i copied and pasted from conkyrc files on this thread. i just included all the parts i wanted from multiple conkys.
after a while i started to understand the conkyrc code and i created my unique conky.
at that point i wanted to give back to this community out of thankfulness. i share my conkyrc code ever since.

take as much as you want and i am happy if you return something. i am still fascinated about the cool conkys appearing in this thread.
Title: Re: Conky thread, show your work!
Post by: terryh on 26. March 2015, 01:57:33

If anyone is interested in the scripts then let me know and I will share them too.

I really like the look of your conky,  I haven't been able to get one with a weather forecast that works for me.  I would appreciate your scripts, in particular the geoloc.sh script.

Thanks in advance.
Title: Re: Conky thread, show your work!
Post by: Dante777 on 29. March 2015, 11:58:54
Goodies For Everybody !!!  :)

Enjoy !!  ;) 


http://www.mediafire.com/download/5yb5ambg6h4jack/Deluxe_Conky_Theme_Pack.cmtp.7z

http://www.mediafire.com/download/9toamc8nkocu5b2/Jesse_Supreme_conkys.cmtp.7z

https://www.mediafire.com/?a4mqdh4jw052tyt

http://www.mediafire.com/download/gzih6asalfhi2w8/super_conky_pack.7z

http://www.mediafire.com/download/icvmpzhlk7vgejt/default-themes-extra-1.cmtp.7z
Title: Re: Conky thread, show your work!
Post by: natanvarga on 06. April 2015, 01:48:30
Got some old configs and created a new one. We'll see how long it stays on my desktop. The DE is cinnamon btw.

(http://i.imgur.com/WoABqbf.jpg)

Code: [Select]
background yes
use_xft yes
xftfont roboto thin:size=20
xftalpha 1
update_interval 1
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop #override #desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 500 800
maximum_width 500
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color 1c1c1c
default_shade_color 1c1c1c
default_outline_color 1c1c1c
alignment tl
gap_x 20
gap_y 0
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
imlib_cache_size 0

TEXT

${voffset -20}${offset -5}${font roboto thin:size=90}${time %H:%M}
${voffset -100}${font roboto thin:size=25}${time %A, %B %e}
${font roboto thin:size=14}Battery ${font roboto light:size=14}${battery_percent BATT}%
${font roboto thin:size=14}RAM ${font roboto light:size=14}$mem
${font roboto thin:size=14}CPU ${font roboto light:size=14}$cpu%
${font roboto thin:size=14}Root ${font roboto light:size=14}${fs_free /}
${font roboto thin:size=14}Home ${font roboto light:size=14}${fs_free /home}

Code: [Select]
background yes
use_xft yes
xftfont roboto thin:size=20
xftalpha 1
update_interval 1
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop #override #desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 500 1
maximum_width 500
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color 1c1c1c
default_shade_color 1c1c1c
default_outline_color 1c1c1c
alignment tl
gap_x 846
gap_y 0
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
imlib_cache_size 0

TEXT
${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?p=UKXX0061&u=c" -o ~/.cache/weather.xml}
${voffset -20}${offset -5}${font roboto thin:size=90}$alignr${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°C
${voffset -100}${font roboto thin:size=25}$alignr${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}, ${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "city=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
${font roboto light:size=14}$alignr${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}-${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°C ${font roboto thin:size=14}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}
${font roboto light:size=14}$alignr${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}-${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°C ${font roboto thin:size=14}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}
${font roboto light:size=14}$alignr${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}-${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°C ${font roboto thin:size=14}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}
${font roboto light:size=14}$alignr${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'}-${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'}°C ${font roboto thin:size=14}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'}
${font roboto light:size=14}$alignr${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5'}-${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5'}°C ${font roboto thin:size=14}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5'}
Title: Re: Conky thread, show your work!
Post by: trzalica on 07. April 2015, 09:02:24
Does anyone have a problem where Conky every few minutes "freezes" itself (become unresponsive)? I remember that I didn't have such problems, for example, (with the same Conky config) before a half year or so... Every constructive help is welcome! :)
Title: Re: Conky thread, show your work!
Post by: oberon on 07. April 2015, 10:48:02
@trzalica: could you post your file?
Are you still running xfce? Were you already using the same wm when that conky was still working?
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 07. April 2015, 15:10:05
trzalica: when my hard drive is really busy, my conky stops working until the hard drive load is medium to low again. i have not figured out what causes the conky to freeze for a second (or up to 30 seconds), maybe it is the CPU load, too.

my conky never freezes completely, though.
Title: Re: Conky thread, show your work!
Post by: Kryoclasm on 15. April 2015, 04:45:08
My Ghost in the Shell theme. It uses a few images off the internet I edited together for the background. Uses Conky Seamod being stripped down. Also uses Gotham for the date and time.

(http://i138.photobucket.com/albums/q244/Kryoclasm/ghost.png)
Title: Re: Conky thread, show your work!
Post by: simgin on 17. April 2015, 20:13:15
^ Nice one mate, I love Ghost in a Shell  8)
Title: Re: Conky thread, show your work!
Post by: Kryoclasm on 20. April 2015, 06:27:48
^ Nice one mate, I love Ghost in a Shell  8)

Thanks, Did you know they are making a live action movie!
(http://i.kinja-img.com/gawker-media/image/upload/s--o21-I9WX--/c_fit,fl_progressive,q_80,w_636/ek7qkioexie6h1ediwb7.jpg)
http://io9.com/scarlett-johansson-will-star-in-ghost-in-the-shell-live-1677533563 (http://io9.com/scarlett-johansson-will-star-in-ghost-in-the-shell-live-1677533563)

Here is a link to my wallpaper if you want to download it...
(http://images3.alphacoders.com/588/thumb-350-588411.png)
http://wall.alphacoders.com/big.php?i=588411 (http://wall.alphacoders.com/big.php?i=588411)
Title: Re: Conky thread, show your work!
Post by: coxmin on 28. April 2015, 22:30:10
Bored of old conky. As many conky rc, a compilation from sources that I don't remember. So, all credits go to conky!

Code: [Select]
background yes
use_xft yes
xftfont sans:size=12
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type override #desktop
own_window_hints below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 500 1
maximum_width 500
draw_shades no
draw_outline no
draw_borders no
stippled_borders 3
border_width 1
draw_graph_borders no
default_color ffffff
default_shade_color 0f0
default_outline_color 000
alignment tr
gap_x 5
gap_y 30
no_buffers no
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
color0 000
color1 08f
color2 f80
color3 f0f
color4 308
color5 f00
color6 390


#lua_load .lua.lua
#lua_draw_hook_post main

TEXT
${font liberation mono:bold:size=15}${color3}${pre_exec cal}${alignr}${voffset -150}${color0}${font capture it:size=60}${time %H}${voffset -30}${font capture it:size=30} : ${time %M}${font liberation serif:size=16}${color4}${offset -60}${voffset 30}${time %A}, ${time %e}
${voffset 40}
${font liberation sans:bold:size=10}${alignr}${color1}RAM ${color4}$memperc % ${color1}$mem / ${color5}$memmax / ${color4}${memfree} ${color6}${membar 6, 150}
${alignr}${color0}SWAP ${color4}$swapperc % ${color1}$swap / ${color5}$swapmax ${color2}${swapbar 6,150}
${voffset 8}${color1}CPU: ${color4}${cpu cpu0}% ${color5}${cpubar 8,100}${alignr}${color1}${cpubar cpu1 6,100} ${cpu cpu1} ${color6}${cpu cpu2} ${cpubar cpu2 6,100}
${voffset 8}${alignr}${color2}$kernel   ${color1}Up: ${color4}$uptime_short   Proc: ${processes}   ${color1}HDD ${color4}$fs_used / ${color5}$fs_size

$alignr${color3}Proces                 CPU   MEM   
${color1}${alignr} ${top_mem name 1}     ${color6}${top cpu 1}    ${color4}${top_mem mem 1}   
${color1}${alignr} ${top_mem name 2}     ${color6}${top cpu 2}    ${color4}${top_mem mem 2}   
${color1}${alignr} ${top_mem name 3}     ${color6}${top cpu 3}    ${color4}${top_mem mem 3}   
${color1}${alignr} ${top_mem name 4}     ${color6}${top cpu 4}    ${color4}${top_mem mem 4}   
${color1}${alignr} ${top_mem name 5}     ${color6}${top cpu 5}    ${color4}${top_mem mem 5}   
${voffset 10}${color2} Proces${goto 110}PID${goto 155}CPU${goto 205}MEM${goto 270}MemRes${goto 360}IO_Read${goto 440}IO_Write
${color6} ${top name 1}${goto 100}${top pid 1}${goto 150}${top cpu 1}${goto 200}${top mem 1}${goto 270}${top mem_res 1}${goto 360}${top io_read 1}${goto 440}${top io_write 1}
${color7} ${top name 2}${goto 100}${top pid 2}${goto 150}${top cpu 2}${goto 200}${top mem 2}${goto 270}${top mem_res 2}${goto 360}${top io_read 2}${goto 440}${top io_write 2}
${color5} ${top name 3}${goto 100}${top pid 3}${goto 150}${top cpu 3}${goto 200}${top mem 3}${goto 270}${top mem_res 3}${goto 360}${top io_read 3}${goto 440}${top io_write 3}
${color4} ${top name 4}${goto 100}${top pid 4}${goto 150}${top cpu 4}${goto 200}${top mem 4}${goto 270}${top mem_res 4}${goto 360}${top io_read 4}${goto 440}${top io_write 4}
${color3} ${top name 5}${goto 100}${top pid 5}${goto 150}${top cpu 5}${goto 200}${top mem 5}${goto 270}${top mem_res 5}${goto 360}${top io_read 5}${goto 440}${top io_write 5}

${voffset 10}$alignr${color2}Proces               Time       
$alignr${color6} ${top_time name 1}   ${top_time time 1}   
$alignr${color5} ${top_time name 2}   ${top_time time 2}   
$alignr${color4} ${top_time name 3}   ${top_time time 3}   
$alignr${color3} ${top_time name 4}   ${top_time time 4}   
$alignr${color1} ${top_time name 5}   ${top_time time 5}   

${font sans:bold:size=16}${color4}⇩: ${totaldown enp4s2}  ${color1}${tab 50}⇒ ${downspeed enp4s2} / s ${voffset -4}${downspeedgraph enp4s2 20, 200 77ff00 ffff00 -l}
${font sans:bold:size=16}${color6}⇧: ${totalup enp4s2}    ${color6}${tab 50}⇒ ${upspeed enp4s2} / s ${voffset -4}${upspeedgraph enp4s2 20,200 ffff00 77ff00 -l}
${#a7acbc}${hr}
${execi 3000 curl -s "http://weather.yahooapis.com/forecastrss?w=868562&u=c&lang=ro" -o ~/.cache/weather.xml}
${color4}${font capture it:size=54}${goto 100}${execi 3000 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font sans:bold:size=54}°${offset -35}${voffset -10}${color3}${font Liberation sans:bold:size=14}${execi 3000 grep "yweather:wind" ~/.cache/weather.xml | grep -o "chill=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°
${font Liberation serif:bold:size=12}${execi 3000 cp -f ~/.conky/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather.png}${image ~/.cache/weather.png -p 0,710 -s 96x96}
${voffset -100}${goto 250}${color1}${alignc}${execi 3000 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
${goto 250}${color2}Vânt: ${color1}${execi 3000 grep "yweather:wind" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} ${color3}${execi 3000 grep "yweather:wind" ~/.cache/weather.xml | grep -o "direction=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°
${goto 250}${color2}Umiditate: ${color1}${alignc}${execi 3000 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "humidity=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}%
${goto 250}${color2}Vizibilitate: ${color1}${execi 3000 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "visibility=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}%

${goto 150}${color2}${font sans:bold:size=24}☀${voffset -6}${font sans:bold:size=12}${color1}${execi 3000 grep "yweather:astronomy" ~/.cache/weather.xml | grep -o "sunrise=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}   ${voffset -8}${color2}${font sans:bold:size=24}☾${voffset -6}${font sans:bold:size=12}${color1}${execi 3000 grep "yweather:astronomy" ~/.cache/weather.xml | grep -o "sunset=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}

${voffset 2}${font sans:bold:size=24}${goto 60}${color0}⇧${color1}${execi 3000 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°${color0}${alignr 60}⇩${color6}${execi 3000 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°
${execi 3000 cp -f ~/.conky/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1').png ~/.cache/weather-1.png}${image ~/.cache/weather-1.png -p 405,710 -s 96x96}
#${execi 3000 ~/.conky/test}

P.S.: the weather icons are from deviantart, conky bauraturia
Title: Re: Conky thread, show your work!
Post by: sot on 28. April 2015, 22:35:02
^^^ Nice work, I like it !
Title: Re: Conky thread, show your work!
Post by: oberon on 30. April 2015, 13:23:59
Just built a little refinement to the tiny pager-conky I have been using for a while in xfce now.
Its now showing available updates by invoking a little script that I found this idea in an old i3-version of manjaro :)
I have configured the update-part of the line to stay invisible as long as the system is up to date.

* edit: Thanks to esclapion's and excalibur's hints I have made the original script a liitle cleaner plus included AUR updates. I will also append an alternative version of the script in case one also wants an output if there are currently no available updates. (Have a look at what excalibur has to say about crontabbing -Sy here (https://forum.manjaro.org/index.php?topic=2991.msg157968#msg157968)!)

Also I have added an automatic addition of workspaces in case I temporarily use more than 4 (which happens only as an exception).
The only detail that could still be improved is that when you do have an additional 5th workspace but are currently on one of the lower workspace-numbers, number 5 is not showing. If anyone knows a way to query the number of active workspaces I'd appreaciate you letting me know! :)

  (http://www.zimagez.com/miniature/screenshot2015-04-3013-31-10.php)
 (http://www.zimagez.com/zimage/screenshot2015-04-3013-31-10.php)(http://www.zimagez.com/avatar/screenshot2015-04-3010-00-44.png) (http://www.zimagez.com/zimage/screenshot2015-04-3010-00-44.php)
Here's the conky-line:
Code: [Select]
${font andale mono:size=16}${if_match ${desktop}==1}${color1}${endif}•${color}${if_match ${desktop}==2}${color1}${endif}•${color}${if_match ${desktop}==3}${color1}${endif}•${color}${if_match ${desktop}==4}${color1}${endif}•${color}${if_match ${desktop}==5}${color1}•${color}${font}${endif}${if_match ${desktop}==6}•${color1}•${color}${endif}${font}${offset 185}${voffset -5}${font cantarell:size=11}${alignc}${execpi 1200 bash ~/scripts/update.sh}${font}
and the script looks like this:
Code: [Select]
#!/bin/bash
UPDATE=$(yaourt -Quaq)
if [[ $UPDATE ]]; then
    echo '${color red}- updates waiting -${color}'
fi
exit 0

or with a status output also when the system is up-to-date, like this:
Code: [Select]
#!/bin/bash
UPDATE=$(yaourt -Quaq)
if [[ -z $UPDATE ]]; then
    echo 'system up-to-date'
else
    echo '${color red}- updates waiting -${color}'
fi
exit 0
cheers
oberon
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 30. April 2015, 13:59:28
it looks like your script can only show manjaro repo updates.
a while ago, i have written a post how to show even AUR updates in conky. i am still using the same method:
https://forum.manjaro.org/index.php?topic=2991.msg157968#msg157968
i am sure you can modify my method to suit your needs.


when i see available updates, i open a terminal and type "U" to update my system.
i have these lines in my ~/.bashrc file. it shows me all the available updates, lets me manually update my system (i do not want to use --noconfirm), and removes all the unused and old packages from my system:
Code: [Select]
U()
{
  yaourt -Syuua
  paccache -ruvk0
  paccache -rvk2
}
alternatively, you can also use an alias in ~/.bashrc:
Code: [Select]
alias I='yaourt -Syuua && paccache -ruvk0 && paccache -rvk2'
Title: Re: Conky thread, show your work!
Post by: Esclapion on 30. April 2015, 14:20:36
(...)
and the script looks like this:
Code: [Select]
#!/bin/bash
# update.sh

UPDATE=$(pacman -Qu)

if [[ -z $UPDATE ]]; then
    echo
else
    echo '${color red}- updates waiting -${color}'
fi

exit 0
cheers
oberon

I never use -Qu, but it's a good finding, thanks.  :) Maybe, for a script -Quq can be sufficient, but it's a detail.

I do now a test, and the return code ($?) is 0 if there is something to do, !=0 else. So, something like $? -ne 0 could be used.
Title: Re: Conky thread, show your work!
Post by: oberon on 30. April 2015, 14:20:58
Ah, yes thank you excalibur1234, I had not seen your post, yet :)
Well if its true that
Code: [Select]
yaourt -Qua checks for pacman-updates aswell one could simply replace
Code: [Select]
UPDATE=$(pacman -Qu)with that. I will try :)

And, quite funny... it looks like we are kind of the same species of tinkerers, I have the impression :D
In my .bashrc you will find these line:
Code: [Select]
alias update='sudo pacman-mirrors -g && sudo pacman -Syyu && yaourt -Syua && sudo pkgcacheclean && sudo pacman-optimize && sync'which is a variation of Handy's almost legendary allservers.sh script of course ;)
I think its great fun to play around with these things  8)
Title: Re: Conky thread, show your work!
Post by: papajoke on 30. April 2015, 14:27:19
I do now a test, and the return code ($?) is 0 if there is something to do, !=0 else. So, something like $? -ne 0 could be used.
in my scripts, i use :
Code: [Select]
number=$(pacman -Qu|wc --lines)
number=$(yaourt -Qua|wc --lines)
echo ${number}
Title: Re: Conky thread, show your work!
Post by: oberon on 30. April 2015, 14:41:48
Great input, everyone, thank you!
Would anyone know about how to query the number of active workspaces in xfce by script?
Also I'm still wondering if
Code: [Select]
yaourt -Syua includes the manjaro-repositories, too, as excalibur's obviously functional script would suggest?
I remember to have read just recently exactly about that but now I can't recall where i found that - toooo much information!!  :o :o :o ;)  ;D
Title: Re: Conky thread, show your work!
Post by: Esclapion on 30. April 2015, 14:54:07
Quote
...includes the manjaro-repositories...

Sure, it does. It's more general than pacman.
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 30. April 2015, 14:55:55
Code: [Select]
yaourt -Syu
is the same as
Code: [Select]
pacman -Syu

Code: [Select]
yaourt -Syua
is the same as
Code: [Select]
yaourt -Syu --aur
it installs udpates from the manjaro repos AND the AUR.
Title: Re: Conky thread, show your work!
Post by: oberon on 30. April 2015, 15:01:50
Ah, great! Thank you for the clarification :)
My misunderstanding always was that the AUR is like a pool outside the manjaro-reps, but really the manjaro-reps seem to be inside the AUR and a part of it, correct?
Title: Re: Conky thread, show your work!
Post by: Esclapion on 30. April 2015, 15:04:50
Quote
Would anyone know about how to query the number of active workspaces in xfce by script?

I would begin with :

Code: [Select]
grep workspace_count ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml
after, a pipe with sed or awk.

(edit)

Code: [Select]
grep workspace_count ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml | awk -F\" '{print $6}'
Title: Re: Conky thread, show your work!
Post by: Esclapion on 30. April 2015, 15:06:29
Ah, great! Thank you for the clarification :)
My misunderstanding always was that the AUR is like a pool outside the manjaro-reps, but really the manjaro-reps seem to be inside the AUR and a part of it, correct?

yaourt is a wrapper of pacman. It studies AUR, and after call pacman.

(edit)

yaourt is only a very good written shell script. You can look at the content.
Title: Re: Conky thread, show your work!
Post by: oberon on 30. April 2015, 15:18:29
Code: [Select]
grep workspace_count ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml | awk -F\" '{print $6}'

Cool!  8) You're an artist, Esclapion! :)
Thank you! I have enough material now to tinker more with my conky... :D
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 30. April 2015, 17:26:20
after some useful suggestions in this thread, i have expanded my conky setup a little. it now contains 3 separate conkys. here is a step by step guide how i did it:

i created a new folder ( ~/.conky ) with the following 4 files: conky, conkyrc, conkyrc_desktops, conkyrc_updates


conky:
Code: [Select]
#!/bin/bash
sleep 2 && conky -q -d -c ~/.conky/conkyrc
conky -q -d -c ~/.conky/conkyrc_desktops
sleep 10 && conky -q -d -c ~/.conky/conkyrc_updates

i made this file executable with
Code: [Select]
cd ~/.conky/
chmod +x conky

i also created an autostart element/enty in my DE with
Code: [Select]
~/.conky/conky

i followed this guide: https://forum.manjaro.org/index.php?topic=2991.msg167806#msg167806


conkyrc:
Code: [Select]

####Text color:
default_color white
color1 0ab1ff
color2 DD4814

####Background color:
own_window_colour black

####Background transparency (0..255) - 0=transparent; 255=solid background
own_window_argb_value 0

own_window_argb_visual yes
own_window yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

draw_shades no
draw_outline no
draw_borders no

use_xft yes
xftalpha 1
xftfont DejaVuSansCondensed:weight=Bold:pixelsize=11

no_buffers yes
double_buffer yes
text_buffer_size 2048

short_units yes

update_interval 1

alignment bottom_right
gap_x 18
gap_y 4

maximum_width 260

default_bar_size 110 9
draw_graph_borders no



TEXT
${font DejaVuSansCondensed-Bold:size=26}${color1}$alignr ${time %H:%M}$font
${font DejaVuSansCondensed-Bold:size=11}${color1}$alignr${time %A, %d.%B %Y}

${font DejaVuSansCondensed-Bold:size=9}${execi 1800 curl -s "www.yr.no/place/Norway/Oslo/Oslo/Oslo/" | grep -A 90 "<strong>Today" | grep -A 7 -m 7 "<tr>" > ~/.cache/weather.xml }${color}${execi 1800 grep -o "<td> [0-9]*" ~/.cache/weather.xml | cut -c6- | sed -n 1p } ${goto 25}Uhr: ${color1}${goto 57}${execi 1800 grep -o "alt=\"[A-Za-z ]*" ~/.cache/weather.xml | cut -d \" -f 2 | sed -n 1p } ${goto 180}${execi 1800 grep -o "Feels like [0-9-]*" ~/.cache/weather.xml | cut -c12- | sed -n 1p }°C $alignr${execi 1800 grep "Precipitation:" ~/.cache/weather.xml | grep -o ">[0-9.– ]*mm" | grep -o "[0-9.]* mm" | sed -n 1p }
${color}${execi 1800 grep -o "<td> [0-9]*" ~/.cache/weather.xml | cut -c6- | sed -n 2p } ${goto 25}Uhr: ${color1}${goto 57}${execi 1800 grep -o "alt=\"[A-Za-z ]*" ~/.cache/weather.xml | cut -d \" -f 2 | sed -n 2p } ${goto 180}${execi 1800 grep -o "Feels like [0-9-]*" ~/.cache/weather.xml | cut -c12- | sed -n 2p }°C $alignr${execi 1800 grep "Precipitation:" ~/.cache/weather.xml | grep -o ">[0-9.– ]*mm" | grep -o "[0-9.]* mm" | sed -n 2p }
${color}${execi 1800 grep -o "<td> [0-9]*" ~/.cache/weather.xml | cut -c6- | sed -n 3p } ${goto 25}Uhr: ${color1}${goto 57}${execi 1800 grep -o "alt=\"[A-Za-z ]*" ~/.cache/weather.xml | cut -d \" -f 2 | sed -n 3p } ${goto 180}${execi 1800 grep -o "Feels like [0-9-]*" ~/.cache/weather.xml | cut -c12- | sed -n 3p }°C $alignr${execi 1800 grep "Precipitation:" ~/.cache/weather.xml | grep -o ">[0-9.– ]*mm" | grep -o "[0-9.]* mm" | sed -n 3p }
${color}${execi 1800 grep -o "<td> [0-9]*" ~/.cache/weather.xml | cut -c6- | sed -n 4p } ${goto 25}Uhr: ${color1}${goto 57}${execi 1800 grep -o "alt=\"[A-Za-z ]*" ~/.cache/weather.xml | cut -d \" -f 2 | sed -n 4p } ${goto 180}${execi 1800 grep -o "Feels like [0-9-]*" ~/.cache/weather.xml | cut -c12- | sed -n 4p }°C $alignr${execi 1800 grep "Precipitation:" ~/.cache/weather.xml | grep -o ">[0-9.– ]*mm" | grep -o "[0-9.]* mm" | sed -n 4p }
${color}${execi 1800 grep -o "<td> [0-9]*" ~/.cache/weather.xml | cut -c6- | sed -n 5p } ${goto 25}Uhr: ${color1}${goto 57}${execi 1800 grep -o "alt=\"[A-Za-z ]*" ~/.cache/weather.xml | cut -d \" -f 2 | sed -n 5p } ${goto 180}${execi 1800 grep -o "Feels like [0-9-]*" ~/.cache/weather.xml | cut -c12- | sed -n 5p }°C $alignr${execi 1800 grep "Precipitation:" ~/.cache/weather.xml | grep -o ">[0-9.– ]*mm" | grep -o "[0-9.]* mm" | sed -n 5p }


${font DejaVuSansCondensed-Bold:size=11}${color}GPU: ${color1}${goto 57}${font DejaVuSansCondensed-Bold:size=9}${execi 29 nvidia-settings -q GPUCoreTemp -t | grep -m 1 "" }°C ${goto 96}${color2}${execbar nvidia-settings -q GPUUtilization -t | cut -d , -f 1 | cut -d = -f 2 }${alignr}${color1}${execi 2 nvidia-settings -q GPUCurrentProcessorClockFreqs -t | grep -m 1 ""} MHz

${font DejaVuSansCondensed-Bold:size=11}${color}CPU ${goto 38}1:${color1} ${goto 57}${font DejaVuSansCondensed-Bold:size=9}${execi 30 sensors | grep 'Core 0:' | cut -c16-17}°C ${goto 96}${color2}${cpubar cpu1}  ${alignr}${color1}${freq_g cpu1} GHz
 ${goto 96}${color2}${cpubar cpu5}  ${color1}
${font DejaVuSansCondensed-Bold:size=11}${color}CPU ${goto 38}2:${color1} ${goto 57}${font DejaVuSansCondensed-Bold:size=9}${execi 31 sensors | grep 'Core 1:' | cut -c16-17}°C ${goto 96}${color2}${cpubar cpu2}  ${alignr}${color1}${freq_g cpu2} GHz
 ${goto 96}${color2}${cpubar cpu6}  ${color1}
${font DejaVuSansCondensed-Bold:size=11}${color}CPU ${goto 38}3:${color1} ${goto 57}${font DejaVuSansCondensed-Bold:size=9}${execi 32 sensors | grep 'Core 2:' | cut -c16-17}°C ${goto 96}${color2}${cpubar cpu3}  ${alignr}${color1}${freq_g cpu3} GHz
 ${goto 96}${color2}${cpubar cpu7}  ${color1}
${font DejaVuSansCondensed-Bold:size=11}${color}CPU ${goto 38}4:${color1} ${goto 57}${font DejaVuSansCondensed-Bold:size=9}${execi 33 sensors | grep 'Core 3:' | cut -c16-17}°C ${goto 96}${color2}${cpubar cpu4}  ${alignr}${color1}${freq_g cpu4} GHz
 ${goto 96}${color2}${cpubar cpu8}  ${color1} ${font DejaVuSansCondensed-Bold:size=11}

${voffset 10}${color}PROCESS ${color1}${font DejaVuSansCondensed-Bold:size=9} $running_processes / $processes ${font DejaVuSansCondensed-Bold:size=11}${color}$alignr CPU       IO      RAM${font DejaVuSansCondensed-Bold:size=9}${color1}
    ${voffset 4}${top name 1} ${goto 136}${top cpu 1}%
    ${top name 2} ${goto 136}${top cpu 2}%
    ${top name 3} ${goto 136}${top cpu 3}%
    ${top name 4} ${goto 136}${top cpu 4}%

    ${top_io name 1} ${goto 190}${top_io io_read 1}/s
                     ${goto 190}${top_io io_write 1}/s

    ${top_mem name 1} $alignr${top_mem mem_res 1}
    ${top_mem name 2} $alignr${top_mem mem_res 2}
    ${top_mem name 3} $alignr${top_mem mem_res 3}
    ${top_mem name 4} $alignr${top_mem mem_res 4}${font DejaVuSansCondensed-Bold:size=11}

${voffset 15}${color}RAM: ${color1} $alignr${mem} ${color 143342}+ ${cached}${color1} / ${memmax}
${color2}${membar 9,260}
${color}Swap: ${color1} ${goto 57}${diskio swap}/s $alignr${swap} / ${swapmax}

${voffset 8}${color}Root: ${color1} ${goto 57}${diskio sda2}/s ${alignr}${fs_used /} / ${fs_size /}
${color2}${fs_bar 9,260 /}${goto 5}${color}${diskiograph sda2 9,52 }

${color}Home: ${color1} ${goto 57}${diskio sda3}/s ${alignr}${fs_used /home} / ${fs_size /home}
${color2}${fs_bar 9,260 /home}${goto 5}${color}${diskiograph sda3 9,52 }

${color}Data: ${color1} ${goto 57}${diskio sdb1}/s ${alignr}${fs_used /run/media/ex/Daten} / ${fs_size /run/media/ex/Daten}
${color2}${fs_bar 9,260 /run/media/ex/Daten}${goto 5}${color}${diskiograph sdb1 9,52 }

${if_existing /proc/net/route enp9s0}${voffset 20}${color}Down: ${color1}${goto 57}${downspeed enp9s0}/s ${alignr} ${color}Up: ${color1}${upspeed enp9s0}/s
${color2}${downspeedgraph enp9s0 24,110 -t} ${alignr}${upspeedgraph enp9s0 24,110 -t} ${color1}
Total: ${totaldown enp9s0}  ${alignr} Total: ${totalup enp9s0}${else}${voffset 25}${color}WLAN:${color1}$alignr${wireless_essid wlp2s0}${font DejaVuSansCondensed-Bold:size=9}$alignr(${wireless_bitrate wlp2s0})${font DejaVuSansCondensed-Bold:size=11}
${color2}${wireless_link_bar 9, 260 wlp2s0}

${color}Down: ${color1}${downspeed wlp2s0}/s ${alignr} ${color}Up: ${color1}${upspeed wlp2s0}/s
${color2}${downspeedgraph wlp2s0 24,110 -t} ${alignr}${upspeedgraph wlp2s0 24,110 -t} ${color1}
Total: ${totaldown wlp2s0}  ${alignr} Total: ${totalup wlp2s0}${endif}

this is my main conky on the right screen edge. this file is almost identical to the last time i have published it in this thread. i have just removed the "Outdated" message next to my clock and i have added a "cached RAM" info.


conkyrc_desktops:
Code: [Select]

####Text color:
default_color 143342
color1 0ab1ff

####Background color:
#own_window_colour 1A1A1A
own_window_colour black

####Background transparency (0..255) - 0=transparent; 255=solid background
own_window_argb_value 0

own_window_argb_visual yes
own_window yes
own_window_type override
own_window_hints undecorate,sticky,skip_pager, skip_taskbar, below

draw_shades no
draw_outline no
draw_borders no

use_xft yes
xftalpha 1
xftfont DejaVuSansCondensed:weight=Bold:pixelsize=23

no_buffers yes
double_buffer yes

update_interval 0.2

alignment bottom_left
gap_x 0
gap_y 210


TEXT
${if_match ${desktop}==1}${color1}${endif}•${color}${if_match ${desktop}==2}${color1}${endif}•${color}${if_match ${desktop}==3}${color1}${endif}•${color}${font}

this file displays the virtual desktop i am using at the moment. look at the bottom left of my screen (the 3 blue dots). i followed this tutorial:
https://forum.manjaro.org/index.php?topic=2991.msg192224#msg192224
please note the 2 lines "own_window_type override" and "update_interval 0.2".


conkyrc_updates:
Code: [Select]

####Text color:
default_color ff2300

####Background color:
#own_window_colour 1A1A1A
own_window_colour black

####Background transparency (0..255) - 0=transparent; 255=solid background
own_window_argb_value 0

own_window_argb_visual yes
own_window yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

draw_shades no
draw_outline no
draw_borders no

use_xft yes
xftalpha 1
xftfont DejaVuSansCondensed:weight=Bold:pixelsize=18

no_buffers yes
double_buffer yes
text_buffer_size 2048

update_interval 11

alignment bottom_right
gap_x 314
gap_y 4

maximum_width 260


TEXT
$alignr ${execi 22 yaourt -Quaq}${voffset 13}

this conky is at the bottom right of my screen next to my main conky. it displays all the available packages, which need to get updated (in a bold red font). please follow step 1 of this tutorial, otherwise it will not work: https://forum.manjaro.org/index.php?topic=2991.msg157968#msg157968
Title: Re: Conky thread, show your work!
Post by: oberon on 30. April 2015, 17:45:22
Great work, excalibur1234! What a beautiful, clean and efficient desktop! That weather forecast is great, too - I mean the conky, not the weather!  ;D ;)
And, oh, I'm really proud to have contributed three dots to your project!  ::)  :D
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 30. April 2015, 19:27:34
thanks.

That weather forecast is great, too - I mean the conky, not the weather!  ;D ;)
if you want to copy the weather part of my conky, go ahead.

you would just need to replace:
Code: [Select]
http://www.yr.no/place/Norway/Oslo/Oslo/Oslo/
with the website address for your town. go to "www.yr.no/" and search for your town (choose "english" in the top right corner of the website).

also replace "Uhr" with "o'clock" in the conky code

also you might have to replace a couple of ${goto XXX} commands to suit your conky.
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 10. May 2015, 22:36:09
if somebody is looking for inspiration about conky styles and features:
https://www.reddit.com/r/conky
https://www.reddit.com/r/Conkyporn
Title: Re: Conky thread, show your work!
Post by: Citroen on 07. June 2015, 19:45:24
I've always been a humble man...
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 18. June 2015, 03:19:32
Per my posts here:
https://forum.manjaro.org/index.php?topic=3066.msg206297#msg206297 (https://forum.manjaro.org/index.php?topic=3066.msg206297#msg206297)
an here:
https://forum.manjaro.org/index.php?topic=23243.msg206312#msg206312 (https://forum.manjaro.org/index.php?topic=23243.msg206312#msg206312)

I am now posting the code for the NEW and MUCH revised conky on my glorious new machine. Also attached is a screen shot as well.

First the code:

Code: [Select]
background yes
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment top_right
gap_x 5
gap_y 5
use_spacer none
update_interval 1
net_avg_samples 2
total_run_times 0
use_xft yes
override_utf8_locale yes
xftalpha 0.95
text_buffer_size 1024
uppercase no
override_utf8_locale yes
double_buffer yes
no_buffers yes
draw_shades no
# default_outline_color 000000
# draw_outline yes
# draw_borders yes
short_units yes
# border_width 1
# border_inner_margin 1
# border_outer_margin 1

TEXT
${color #FFFFFF}${font Inconsolata:size=18:bold}${time %a} ${alignr}${time %B} ${time %d} ${alignr}${time %Y}
${color #FFFFFF}${voffset -3}${hr 1}
${color #00FF00}${font Inconsolata:size=14:bold}${alignc}Manjaro Linux v0.8.13
${color #FFFFFF}${voffset -3}${hr 1}
${color #FFFFFF}${font Inconsolata:size=12:bold}KERNEL${font Inconsolata:size=11:bold}${alignr}${kernel}
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}UPTIME${alignr}${uptime}
${color #FFFFFF}${voffset -3}${hr 1}
${color #00FFFF}${font Inconsolata:size=12:bold}/ROOT(Free)${color #FFFFFF}${alignr}${fs_free /}
${color #FFFFFF}${voffset -4}${stippled_hr 1}
${color #FFA500}${font Inconsolata:size=12:bold}/HOME(Free)${color #FFFFFF}${alignr}${fs_free /home}
${color #FFFFFF}${voffset -4}${stippled_hr 1}
${color #FF00FF}${font Inconsolata:size=12:bold}FREE MEM${alignr}${color #FFFF00}${memfree}
${color #FFFFFF}${voffset -3}${hr 1}
${alignc}Core 0 ${color white}${execi 30 sensors | grep 'Core 0:' | cut -c18-19}°C${color} @ ${cpu cpu1} %
${alignc}Core 1 ${color white}${execi 30 sensors | grep 'Core 1:' | cut -c18-19}°C${color} @ ${cpu cpu2} %
${alignc}Core 2 ${color white}${execi 30 sensors | grep 'Core 2:' | cut -c18-19}°C${color} @ ${cpu cpu3} %
${alignc}Core 3 ${color white}${execi 30 sensors | grep 'Core 3:' | cut -c18-19}°C${color} @ ${cpu cpu4} %
${color #FFFFFF}${voffset -3}${hr 1}
GPU Temp $alignr ${execi 60 nvidia-settings -query GPUCoreTemp | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'}°C
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}${color #FF00FF}UL_SPD${font Inconsolata:size=12:bold}${color #DC143C}${alignr}TTL_UL
${color #FFFFFF}${font Inconsolata:size=12}${upspeed enp3s0}${alignr}${color #FFFFFF}${font Inconsolata:size=12}${totalup enp3s0}
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}${color #00FF00}DL_SPD${font Inconsolata:size=12:bold}${color #00FF00}${alignr}TTL_DL
${color #FFFFFF}${font Inconsolata:size=12}${downspeed enp3s0}${alignr}${color #FFFFFF}${font Inconsolata:size=12}${totaldown enp3s0}

And then see attached image for what it looks like.

NOTE:
The section:
Code: [Select]
${alignc}Core 0 ${color white}${execi 30 sensors | grep 'Core 0:' | cut -c18-19}°C${color} @ ${cpu cpu1} %
${alignc}Core 1 ${color white}${execi 30 sensors | grep 'Core 1:' | cut -c18-19}°C${color} @ ${cpu cpu2} %
${alignc}Core 2 ${color white}${execi 30 sensors | grep 'Core 2:' | cut -c18-19}°C${color} @ ${cpu cpu3} %
${alignc}Core 3 ${color white}${execi 30 sensors | grep 'Core 3:' | cut -c18-19}°C${color} @ ${cpu cpu4} %
came from code posted by diggingman here:
https://forum.manjaro.org/index.php?topic=2991.msg50080#msg50080 (https://forum.manjaro.org/index.php?topic=2991.msg50080#msg50080)
I just modified it a VERY LITTLE bit.
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 18. June 2015, 17:15:07
OK, after previous post did more research and work and revised the conky more.
Here is the very revised code:
Code: [Select]
background yes
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment top_right
gap_x 5
gap_y 5
use_spacer none
update_interval 1
net_avg_samples 2
total_run_times 0
use_xft yes
override_utf8_locale yes
xftalpha 0.95
text_buffer_size 1024
uppercase no
override_utf8_locale yes
double_buffer yes
no_buffers yes
draw_shades no
# default_outline_color 000000
# draw_outline yes
# draw_borders yes
short_units yes
# border_width 1
# border_inner_margin 1
# border_outer_margin 1

TEXT
${color #FFFFFF}${font Inconsolata:size=18:bold}${time %a} ${alignr}${time %B} ${time %d} ${alignr}${time %Y}
${color #FFFFFF}${voffset -3}${hr 1}
${color #00FF00}${font Inconsolata:size=14:bold}${alignc}Manjaro Linux v0.8.13
${color #FFFFFF}${voffset -3}${hr 1}
${color #FFFFFF}${font Inconsolata:size=12:bold}KERNEL${font Inconsolata:size=11:bold}${alignr}${kernel}
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}UPTIME${alignr}${uptime}
${color #FFFFFF}${voffset -3}${hr 1}
${color #00FFFF}${font Inconsolata:size=12:bold}/ROOT(Free)${color #FFFFFF}${alignr}${fs_free /}
${color #FFFFFF}${voffset -4}${stippled_hr 1}
${color #FFA500}${font Inconsolata:size=12:bold}/HOME(Free)${color #FFFFFF}${alignr}${fs_free /home}
${color #FFFFFF}${voffset -4}${stippled_hr 1}
${color #FF00FF}${font Inconsolata:size=12:bold}FREE MEM${alignr}${color #FFFF00}${memfree}
${color #FFFFFF}${voffset -3}${hr 1}
${color #FFFFFF}${font Inconsolata:size=12:bold}SYS TEMP:${font Inconsolata:size=12:bold}${alignr} ${hwmon temp 1} °C
${color #FFFFFF}${voffset -3}${hr 1}
${alignc}Core 0 ${color white}${execi 30 sensors | grep 'Core 0:' | cut -c18-19}°C${color} @ ${cpu cpu1} %
${alignc}Core 1 ${color white}${execi 30 sensors | grep 'Core 1:' | cut -c18-19}°C${color} @ ${cpu cpu2} %
${alignc}Core 2 ${color white}${execi 30 sensors | grep 'Core 2:' | cut -c18-19}°C${color} @ ${cpu cpu3} %
${alignc}Core 3 ${color white}${execi 30 sensors | grep 'Core 3:' | cut -c18-19}°C${color} @ ${cpu cpu4} %
${color #FFFFFF}${voffset -3}${hr 1}
${color #FFFFFF}${font Inconsolata:size=12:bold}GPU TEMP:${alignr}${execi 60 nvidia-settings -query GPUCoreTemp | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'} °C
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}${color #FF00FF}UL_SPD${font Inconsolata:size=12:bold}${color #DC143C}${alignr}TTL_UL
${color #FFFFFF}${font Inconsolata:size=12}${upspeed enp3s0}${alignr}${color #FFFFFF}${font Inconsolata:size=12}${totalup enp3s0}
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}${color #00FF00}DL_SPD${font Inconsolata:size=12:bold}${color #00FF00}${alignr}TTL_DL
${color #FFFFFF}${font Inconsolata:size=12}${downspeed enp3s0}${alignr}${color #FFFFFF}${font Inconsolata:size=12}${totaldown enp3s0}

The section for the Overall System Temp:
Code: [Select]
${color #FFFFFF}${font Inconsolata:size=12:bold}SYS TEMP:${font Inconsolata:size=12:bold}${alignr} ${hwmon temp 1} °Cis using the code hwmon temp 1 because of something I read in this:
http://ubuntuforums.org/showthread.php?t=1744012 (http://ubuntuforums.org/showthread.php?t=1744012)
Where apparently there are "issues" with the acpitemp variable, and instead users should use what I have.

As before, see attached screenshot of my revised conky.

Thanks.
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 18. June 2015, 20:17:04
OK, I know, I keep doing this, but bear with me..It is a learning thing.
In my previous post the are for GPU Temp:
Code: [Select]
${color #FFFFFF}${font Inconsolata:size=12:bold}GPU TEMP:${alignr}${execi 60 nvidia-settings -query GPUCoreTemp | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'} °Cwas displaying the temp number component twice. SO, I kept researching the issue on the net and came  across this item:
https://wiki.archlinux.org/index.php/NVIDIA#Displaying_GPU_temperature_in_the_shell (https://wiki.archlinux.org/index.php/NVIDIA#Displaying_GPU_temperature_in_the_shell)
And found the 1st technique mentioned DI NOT WORK for me, BUT the 2nd one worked flawlessly.
Here is the revised code:
Code: [Select]
${color #FFFFFF}${font Inconsolata:size=12:bold}GPU TEMP:${alignr}${execi 10 nvidia-smi -q -d TEMPERATURE | awk '/GPU Current Temp/ {print $5}'} °CI just love this. The learning that is.  ;D
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 18. June 2015, 20:32:43
i have the same problem that some values from the nvidia driver get displayed twice.
i just use a
Code: [Select]
... | grep -m 1 ""
at the end of the command to get rid of the double value.
i use this command to get the temperature of my gpu:
Code: [Select]
nvidia-settings -q GPUCoreTemp -t | grep -m 1 ""                                                         

your solution works, too.
i would use it the following way:
Code: [Select]
nvidia-smi -q -d TEMPERATURE | grep Current | cut -d : -f 2
or
Code: [Select]
nvidia-smi -q -d TEMPERATURE | grep Current | cut -d : -f 2 | cut -c2-
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 19. June 2015, 00:36:38
i have the same problem that some values from the nvidia driver get displayed twice.
i just use a
Code: [Select]
... | grep -m 1 ""
at the end of the command to get rid of the double value.
i use this command to get the temperature of my gpu:
Code: [Select]
nvidia-settings -q GPUCoreTemp -t | grep -m 1 ""                                                         

your solution works, too.
i would use it the following way:
Code: [Select]
nvidia-smi -q -d TEMPERATURE | grep Current | cut -d : -f 2

Thanks excalibur, when I get back into Manjaro I shall try this code
Code: [Select]
nvidia-smi -q -d TEMPERATURE | grep Current | cut -d : -f 2
and see how it goes. I will let ya know the results.
Title: Re: Conky thread, show your work!
Post by: mandog on 19. June 2015, 01:21:57
This is my conky lines for Nvidia and this works perfect for a year.

${goto 0}${font Pf Tempesta Five:bold:size=6}GPU   Temp:  ${alignc}${nvidia temp} C
${goto 0}Fan  Speed:  ${alignc}${execi 5 nvidia-settings -q [fan:0]/GPUCurrentFanSpeedRPM -t}
${goto 0}GPU  Clock: ${alignc} ${nvidia gpufreq} MHz
${goto 0}Mem Clock: ${alignc} ${nvidia memfreq} MHz
${color2}Mem  Used:  ${alignc}${color0}${execi 5 nvidia-settings -q [gpu:0]/UsedDedicatedGPUMemory -t} / ${exec nvidia-settings -q [gpu:0]/TotalDedicatedGPUMemory -t} 
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 19. June 2015, 14:13:16
mandog, do you use "conky" or "conky-nvidia"?

all your "nvidia ..." commands do not work on my system.
if you use "conky-nvidia", how did you find out that "nvidia temp" gives you the temperature of your gpu? is there documentation available?
Title: Re: Conky thread, show your work!
Post by: mandog on 19. June 2015, 15:07:48
mandog, do you use "conky" or "conky-nvidia"?

all your "nvidia ..." commands do not work on my system.
if you use "conky-nvidia", how did you find out that "nvidia temp" gives you the temperature of your gpu? is there documentation available?
I use  conky-lua-nv from AUR  I spent a long time googling and trial and error Most info is for older nvidia, users are not sharing the same way as they did and most complex conky scripts are out of date and need modifying
I also have a working daily/weekly/monthly internet stats that took a while as well they 0000 on the 1st of the month
And a audacious working script  again It took me a long time to get the codes right on that as the old codes do not always work.

(http://i.imgur.com/Xst4EUVl.png) (http://imgur.com/Xst4EUV)

This is my conky the audacious conky is separate and only shows when playing and the arch sign is a flashing neon in conky, the bars are a conky lua script that I Built from a old Circles script that was not working the top of the bars change to red when 80% of the range is reached so they are functional not just for show.
Title: Re: Conky thread, show your work!
Post by: bardo on 23. June 2015, 17:28:21
Hello

I have conky manager installed , and the scripts of hours . I wonder how I add the weather forecast from the conky manager .
thank you
Title: Re: Conky thread, show your work!
Post by: bardo on 27. June 2015, 13:09:32
I don't know hou to add forecaste to conky manager, can anyone  tell me?
thanks.
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 28. June 2015, 00:23:40
I don't know hou to add forecaste to conky manager, can anyone  tell me?
thanks.

You can find a large collection of conky's here:
http://crunchbang.org/forums/viewforum.php?id=8 (http://crunchbang.org/forums/viewforum.php?id=8)
It is a very good resource for conky configs. And, yes, I have seen a number of weather ones in there.
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 28. June 2015, 04:13:53
Well, after my escapades here:
https://forum.manjaro.org/index.php?topic=23855.msg207657#msg207657 (https://forum.manjaro.org/index.php?topic=23855.msg207657#msg207657)
And now that I have a fresh new install of Manjaro, I have also made a couple of changes to my conky.
I have attached a screen shot to this post of what it now looks like.

And, here is the current code:

Code: [Select]
background yes
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
alignment top_right
gap_x 5
gap_y 5
use_spacer none
update_interval 1
net_avg_samples 2
total_run_times 0
use_xft yes
override_utf8_locale yes
xftalpha 0.95
text_buffer_size 1024
uppercase no
override_utf8_locale yes
double_buffer yes
no_buffers yes
draw_shades no
# default_outline_color 000000
# draw_outline yes
# draw_borders yes
short_units yes
# border_width 1
# border_inner_margin 1
# border_outer_margin 1

TEXT
${color #FFFFFF}${font Inconsolata:size=18:bold}${time %a} ${alignr}${time %B} ${time %d} ${alignr}${time %Y}
${color #FFFFFF}${voffset -5}${hr 1}
${color #00FF00}${voffset -8}${font Inconsolata:size=14:bold}${alignc}Manjaro Linux v0.8.13
${color #FFFFFF}${voffset -8}${hr 1}
${color #FFFFFF}${font Inconsolata:size=12:bold}KERNEL${font Inconsolata:size=11:bold}${alignr}${kernel}
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}UPTIME${alignr}${uptime}
${color #FFFFFF}${voffset -3}${hr 1}
${color #00FFFF}${font Inconsolata:size=12:bold}/ROOT(Free)${color #FFFFFF}${alignr}${fs_free /}
${color #FFFFFF}${voffset -4}${stippled_hr 1}
${color #FFA500}${font Inconsolata:size=12:bold}/HOME(Free)${color #FFFFFF}${alignr}${fs_free /home}
${color #FFFFFF}${voffset -4}${stippled_hr 1}
${color #FF00FF}${font Inconsolata:size=12:bold}FREE MEM${alignr}${color #FFFF00}${memfree}
${color #FFFFFF}${voffset -3}${hr 1}
${color #FFFFFF}${font Inconsolata:size=12:bold}SYS TEMP:${font Inconsolata:size=12:bold}${alignr} ${hwmon temp 1} °C
${color #FFFFFF}${voffset -3}${hr 1}
${alignc}Core 0 ${color white}${execi 30 sensors | grep 'Core 0:' | cut -c18-19}°C${color} @ ${cpu cpu1} %
${alignc}Core 1 ${color white}${execi 30 sensors | grep 'Core 1:' | cut -c18-19}°C${color} @ ${cpu cpu2} %
${alignc}Core 2 ${color white}${execi 30 sensors | grep 'Core 2:' | cut -c18-19}°C${color} @ ${cpu cpu3} %
${alignc}Core 3 ${color white}${execi 30 sensors | grep 'Core 3:' | cut -c18-19}°C${color} @ ${cpu cpu4} %
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}Core 0 Freq. (MHZ):${font Inconsolata:size=12:bold}${alignr}${freq 1}
${font Inconsolata:size=12:bold}Core 1 Freq. (MHZ):${font Inconsolata:size=12:bold}${alignr}${freq 2}
${font Inconsolata:size=12:bold}Core 2 Freq. (MHZ):${font Inconsolata:size=12:bold}${alignr}${freq 3}
${font Inconsolata:size=12:bold}Core 3 Freq. (MHZ):${font Inconsolata:size=12:bold}${alignr}${freq 4}
${color #FFFFFF}${voffset -3}${hr 1}
${color #FFFFFF}${font Inconsolata:size=12:bold}GPU TEMP:${alignr}${execi 10 nvidia-smi -q -d TEMPERATURE | awk '/GPU Current Temp/ {print $5}'} °C
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}${color #FF00FF}UL_SPD${font Inconsolata:size=12:bold}${color #DC143C}${alignr}TTL_UL
${color #FFFFFF}${font Inconsolata:size=12}${upspeed enp3s0}${alignr}${color #FFFFFF}${font Inconsolata:size=12}${totalup enp3s0}
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}${color #00FF00}DL_SPD${font Inconsolata:size=12:bold}${color #00FF00}${alignr}TTL_DL
${color #FFFFFF}${font Inconsolata:size=12}${downspeed enp3s0}${alignr}${color #FFFFFF}${font Inconsolata:size=12}${totaldown enp3s0}
Title: Re: Conky thread, show your work!
Post by: bardo on 28. June 2015, 11:52:01
You can find a large collection of conky's here:
http://crunchbang.org/forums/viewforum.php?id=8 (http://crunchbang.org/forums/viewforum.php?id=8)
It is a very good resource for conky configs. And, yes, I have seen a number of weather ones in there.

i have download : 1b1_accuweather_images_12-2-14.tar.gz.
So, What i must do?
Sorry, but iḿ new in conkyes.
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 28. June 2015, 14:58:33
i have download : 1b1_accuweather_images_12-2-14.tar.gz.
So, What i must do?
Sorry, but iḿ new in conkyes.
As I told you in my response to the PM you sent me, I have not yet tried to add weather to my conky. It is
the last area I will be getting into. But I do look forward to trying it out soon tho.
Title: Re: Conky thread, show your work!
Post by: oberon on 05. July 2015, 10:23:01
If you have Conky 1.10 installed and you are wondering why suddenly your Conky behaves funny or doesn't start at all, have a look at the new syntax: https://forum.manjaro.org/index.php?topic=24054.0
 :P  8)
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 05. July 2015, 12:07:40
Of course, lets just make it disgustingly complicated. I may block conky from updates.
I just semi-learned the "old" conky syntax. I hate change sometimes.
Title: Re: Conky thread, show your work!
Post by: bardo on 05. July 2015, 13:23:22
Code: [Select]
#put your Accuweather address here
#address=http://www.accuweather.com/en/pt/portimao/273194/weather-forecast/273194
address=http://www.accuweather.com/en/pt/portimao/273194/weather-forecast/273194
#address=http://www.accuweather.com/en/pt/portimao/273194/weather-forecast/273194
is not working...
How I do?

Thanks
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 05. July 2015, 13:42:40
Code: [Select]
#put your Accuweather address here
#address=http://www.accuweather.com/en/pt/portimao/273194/weather-forecast/273194
address=http://www.accuweather.com/en/pt/portimao/273194/weather-forecast/273194
#address=http://www.accuweather.com/en/pt/portimao/273194/weather-forecast/273194
is not working...
How I do?

Thanks
Well, if the code provided is exactly what is in your conky, then you can start by removing the #'s from the beginning of each line. As those render each line as being commented out.
Title: Re: Conky thread, show your work!
Post by: bardo on 05. July 2015, 13:57:55
Well, if the code provided is exactly what is in your conky, then you can start by removing the #'s from the beginning of each line. As those render each line as being commented out.

Code: [Select]
#!/bin/bash

#put your Accuweather address here
address=http://www.accuweather.com/en/pt/portimao/273194/weather-forecast/273194
address=http://www.accuweather.com/en/pt/portimao/273194/weather-forecast/273194
address=http://www.accuweather.com/en/pt/portimao/273194/weather-forecast/273194
(http://i.imgur.com/15Aeu9T.png)

is not working.

Title: Re: Conky thread, show your work!
Post by: papajoke on 05. July 2015, 14:53:27
your conky ?
http://crunchbang.org/forums/viewtopic.php?pid=409561#p409561

have you copy the folder  "1b1_accuweather_images" in your home ? and make the script executable ?

when i exec in console the script ~/1b1_accuweather_images/1b1 work well

conky load this script by:
Code: [Select]
${texeci 1500 bash $HOME/1b1_accuweather_images/1b1}\
ps: dont uncomment 3 adress ! only one that's enough
Title: Re: Conky thread, show your work!
Post by: bardo on 05. July 2015, 16:25:43
your conky ?
http://crunchbang.org/forums/viewtopic.php?pid=409561#p409561

have you copy the folder  "1b1_accuweather_images" in your home ? and make the script executable ?

when i exec in console the script ~/1b1_accuweather_images/1b1 work well

conky load this script by:
Code: [Select]
${texeci 1500 bash $HOME/1b1_accuweather_images/1b1}\
ps: dont uncomment 3 adress ! only one that's enough
my 1b1_accuweather_images is on /home/bardo/.conky/
/home/bardo/.conky/1b1_accuweather_images/

Code: [Select]
{texeci 1500 bash $HOME/1b1_accuweather_images/1b1}\This don't work,
Ia m using conky manager.

Code: [Select]
[bardo@bardo ~]$  sudo {texeci 1500 bash $HOME/1b1_accuweather_images/1b1}\
>
sudo: {texeci: command not found
Title: Re: Conky thread, show your work!
Post by: papajoke on 05. July 2015, 17:06:07
Quote
my 1b1_accuweather_images is on /home/bardo/.conky/1b1_accuweather_images/
but normal install is : /home/bardo/1b1_accuweather_images

you can, if you want absolutely your structure, modify ALL path in conky file AND script 1b1
replace all
$HOME/1b1_accuweather_images/
by
Code: [Select]
$HOME/.conky/1b1_accuweather_images/
Title: Re: Conky thread, show your work!
Post by: bardo on 05. July 2015, 17:24:28
but normal install is : /home/bardo/1b1_accuweather_images

you can, if you want absolutely your structure, modify ALL path in conky file AND script 1b1
replace all
$HOME/1b1_accuweather_images/
by
Code: [Select]
$HOME/.conky/1b1_accuweather_images/
but. conky was installed by comky ,manager on home/bardo/.conky... if i put weather on home/ how conky manager will find this comky?
i'm sorry. i have make those modifications amd conky manager didn+ t find them.
Title: Re: Conky thread, show your work!
Post by: oberon on 06. July 2015, 00:03:59
I just realized that with Conky 1.10 and the new syntax my .conkyrc altogether can be quite a lot shorter :) ... well maybe this was just the perfect opportunity to remove all the leftovers and unnecessary lines ;)
Code: [Select]
conky.config = {
alignment = 'top_right',
background = true,
color2 = '888888',
cpu_avg_samples = 2,
default_color = 'FFFFFF',
double_buffer = true,
font = 'Caviar Dreams:size=8',
gap_x = 25,
gap_y = 13,
minimum_width = 200,
no_buffers = true,
own_window = true,
own_window_type = 'override',
own_window_transparent = true,
update_interval = 1.0,
use_xft = true,
}
conky.text = [[
${voffset 8}$color2${font Caviar Dreams:size=16}${time %A}$font${voffset -8}$alignr$color${font Caviar Dreams:size=38}${time %e}$font
$color${voffset -30}$color${font Caviar Dreams:size=18}${time %b}$font${voffset -3} $color${font Caviar Dreams:size=20}${time %Y}$font$color2$hr
#
${voffset 20}${goto 40}${color}CPU${font Caviar Dreams:bold:size=8}$alignr$cpu%
${voffset 5}${goto 40}$font$color2${top name 1}$alignr$color${top cpu 1}%
${goto 40}$color2${top name 2}$alignr$color${top cpu 2}%
${goto 40}$color2${top name 3}$alignr$color${top cpu 3}%
${goto 40}$color2${top name 4}$alignr$color${top cpu 4}%
${goto 40}$color2${top name 5}$alignr$color${top cpu 5}%
#
${voffset 10}${goto 40}${color}RAM${font Caviar Dreams:bold:size=8}$alignr$mem$font
${goto 40}${voffset 5}$color2${top_mem name 1}$alignr$color${top_mem mem_res 1}
${goto 40}$color2${top_mem name 2}$alignr$color${top_mem mem_res 2}
${goto 40}$color2${top_mem name 3}$alignr$color${top_mem mem_res 3}
${goto 40}$color2${top_mem name 4}$alignr$color${top_mem mem_res 4}
${goto 40}$color2${top_mem name 5}$alignr$color${top_mem mem_res 5}
#
${voffset 20}$alignr$color${execi 5000 awk -F= '/ID=/{printf $2" "} /RELEASE=/{printf $2" "} /NAME=/{print $2}' /etc/lsb-release}
${voffset 5}${color2}${alignr}${execi 1200 whoami}@${nodename}
${alignr}${color2}${font Caviar Dreams:size=8}uptime: ${color}${uptime_short}
${voffset 5}${color2}${font Caviar Dreams:size=8}${alignr}kernel: ${color}${kernel}
]]

(http://i.imgur.com/QqQTG0S.png)
Title: Re: Conky thread, show your work!
Post by: bardo on 06. July 2015, 01:54:27
your conky ?
http://crunchbang.org/forums/viewtopic.php?pid=409561#p409561

have you copy the folder  "1b1_accuweather_images" in your home ? and make the script executable ?

when i exec in console the script ~/1b1_accuweather_images/1b1 work well

conky load this script by:
Code: [Select]
${texeci 1500 bash $HOME/1b1_accuweather_images/1b1}\
ps: dont uncomment 3 adress ! only one that's enough

Well, i decided to do what you tolde me and i put the file in home. After i have try the command in terminal:

Code: [Select]
[bardo@bardo ~]$ {texeci 1500 bash $HOME/1b1_accuweather_images/1b1}\
>
bash: {texeci: command not found
[bardo@bardo ~]$ sudo {texeci 1500 bash $HOME/1b1_accuweather_images/1b1}\
>
[sudo] password for bardo:
sudo: {texeci: command not found
[bardo@bardo ~]$
Title: Re: Conky thread, show your work!
Post by: Egavas on 06. July 2015, 17:38:21
Hi folks, I need little bit help with new conky syntax, while my old conky works just fine, when written in new syntax it gives me error, and I can't figure what is the problem.

Here is my conky:
Code: [Select]
conky.config = {
        use_xft = true,
        update_interval = 1.0,
        total_run_times = 0,
        own_window = true,
        own_window_transparent = true,
        own_window_type = 'normal',
        own_window_class = 'Conky',
        own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager',
        own_window_argb_visual = true,
        background = false,
        double_buffer = true,
        minimum_size = 300 0,
        draw_shades = true,
        draw-outline = true,
        draw_borders = false,
        stippled_borders = 0,
        border_inner_margin = 5,
        border_width = 1,
        default_color = 'gray',
        default_shade_color = 'black',
        default_outline_color = 'black',
        alignment = 'top_right',
        gap_x = 5,
        gap_y = 15,
        no_buffers = true,
        cpu_avg_samples = 2,
        net_avg_samples =2,
        use_spacer = 'none',
        uppercase = false,
}

conky.text = [[
${font sans:size=36}${alignc}${time %H:%M}
${font sans:size=18}${alignc}${time %a %d %B %Y}
${font RsbillsDng:size=15}${font DejaVu Sans Mono:size=12}${execpi 60 DJS=`date +%_d`; cal -m | sed '1d' | sed '/./!d' | sed 's/$/                   /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color #3daee9}'"$DJS"'${color gray}'" "/}${font}

${font Sans:style=Bold}SYSTEM${font} ${hr 2}
${font Sans:size=16}${font}   Kernel:  ${alignr}${kernel}
${font Sans:size=16}${font}   Processor:${alignr}${execi 1000 cat /proc/cpuinfo | awk '/model name/ {gsub(/\([^)]+\)/,""); print $4, $5, $6}' | uniq}
${font Sans:size=16}${font}   Video Card:${alignr}${exec lspci | grep 'VGA' | cut -c87-100}
${font Sans:size=16}${font}   Uptime: ${alignr}${uptime}
${font Sans:size=16}${font}   CPU1: ${freq_g (1)} GHz ${alignr}${cpu cpu1}% ${cpubar cpu1 10,60}
${font Sans:size=16}${font}   CPU2: ${freq_g (2)} GHz ${alignr}${cpu cpu2}% ${cpubar cpu2 10,60}
${font Sans:size=16}${font}   CPU2: ${freq_g (3)} GHz ${alignr}${cpu cpu3}% ${cpubar cpu3 10,60}
${font Sans:size=16}${font}   CPU2: ${freq_g (4)} GHz ${alignr}${cpu cpu4}% ${cpubar cpu4 10,60}
${font Sans:size=16}${font}   RAM:  ${mem} / ${memmax}${alignr}$memperc% ${membar 10,60}

${font Sans:style=Bold}HD${font} ${hr 2}
${font Sans:size=16}${font}   Root: ${offset 6}${fs_used /} / ${fs_size /}${alignr}${fs_used_perc /}% ${fs_bar 10,60 /}
${font Sans:size=16}${font}   Home: ${fs_used /home} / ${fs_size /home} ${alignr}${fs_used_perc /home}% ${fs_bar 10,60 /home}
${font Sans:size=16}${font}   Swap: ${offset 6}${swap}/ ${swapmax}${alignr}$swapperc% ${swapbar 10,60}

${font Sans:style=Bold}NETWORK${font} ${hr 2}
${voffset 4}   Down: ${alignr}${downspeed enp5s0} ${downspeedgraph enp5s0 10,60}
${voffset 4}   Up: ${alignr}${upspeed enp5s0} ${upspeedgraph enp5s0 10,60}
${voffset 4}   Downloaded: ${alignr}${totaldown enp5s0}
${voffset 4}   Uploaded: ${alignr}${totalup enp5s0}
${voffset 4}   Gateway IP: ${alignr}${gw_ip}
${voffset 4}   Local IP: ${alignr}${addr enp5s0}
${voffset 4}   Public IP: ${alignr}${execi 180 wget -O - http://ip.tupeux.com | tail}
]]


And here is the error:
Code: [Select]
conky: Can't set the specified locale!
Check LANG, LC_CTYPE, LC_ALL.
conky: Syntax error (/home/bojan/.conkyrc:13: '}' expected (to close '{' at line 1) near '0') while reading config file.
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:138: attempt to index a nil value (local 'settings')
Title: Re: Conky thread, show your work!
Post by: bardo on 06. July 2015, 19:16:37
Some help.
I just download a superpack of themes for conky manager. The problem is my forecast don't have any images.
(http://i.imgur.com/uzLsdkL.png)

Anyone knows how to fix it?
Thanks

OK, The images are fine now, i hav change de directory of the images.
Now the problem is the network disconnected.
How I change?
Title: Re: Conky thread, show your work!
Post by: papajoke on 06. July 2015, 20:23:12
hi
Code: [Select]
conky: Syntax error (/home/bojan/.conkyrc:13: '}' expected (to close '{' at line 1) near '0') while reading config file.
"error /home/bojan/.conkyrc:13" : read error line 13 
minimum_size = 300 0, is bad (is a string without quote) replace by
Code: [Select]
minimum_width= 300,
minimum_height= 0,
ps: for the last item (uppercase = false,) dont use comma
Code: [Select]
    uppercase = false
}


----------------------------
OK, The images are fine now, i hav change de directory of the images.
Now the problem is the network disconnected.
How I change?
bad name interface ?
ou have to replace "eth0", "wlan0", and "eth1"  ? with the names of your network and wlan adapters. then, your conky should work!
Title: Re: Conky thread, show your work!
Post by: Holmes on 06. July 2015, 20:56:50
hi guys, i'm having problems with the new conky format. i made the adjustments, see

Code: [Select]
conky.config = {
use_xft = yes,
xftfont = Coda: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_argb_visual = yes,
own_window_hints = undecorated,below,sticky,skip_taskbar,skip_pager,
double_buffer = yes,
minimum_height = 200 200,
maximum_width = 200,
draw_shades = no,
draw_outline = no,
draw_borders = no,
border_width = 1,
border_margin = 5,
stippled_borders = 0,
default_color = 666666,
own_window_colour = 262524,
default_shade_color = 000000,
default_outline_color = 828282,
alignment = top_left,
gap_x = 15,
gap_y = 130,
no_buffers = yes,
uppercase = no,
cpu_avg_samples = 2,
net_avg_samples = 2,
override_utf8_locale = yes,
use_spacer = yes,
default_bar_size = 200 3,
draw_graph_borders = yes,
}
conky.text = [[
TEXT
${color a7a7a7}${font Coda:size=40}${time %H:%M}${font}${color}
${voffset -44}$alignr${time %a}
$alignr${time %D}
#
${color a7a7a7}Kernel:${color}$alignr$kernel
${color a7a7a7}UpTime:${color}$alignr$uptime 
#
P R O C E S S O R
${hr}
${color a7a7a7}Cpu1:${color} ${offset 13}${cpu cpu1}%${color}${goto 120}${color a7a7a7}Cpu2:${color} ${offset 13}${cpu cpu2}%${color}
${cpugraph cpu1 20,85 556B2F 9ACD32}${alignr}${cpugraph cpu2 20,85 556B2F 9ACD32}
${color a7a7a7}Cpu3:${color} ${offset 13}${cpu cpu2}%${color}${goto 120}${color a7a7a7}Cpu4:${color} ${offset 13}${cpu cpu3}%${color}
${cpugraph cpu3 20,85 556B2F 9ACD32}${alignr}${cpugraph cpu4 20,85 556B2F 9ACD32}
#
M E M O R Y
${hr}
${color a7a7a7}Ram:$alignr${color FEA63C}$mem${color}/${color B7CE42}$memmax${color}
${membar}
${color a7a7a7}Swap:$alignr${color FEA63C}$swap${color}/${color B7CE42}$swapfree${color}
${swapbar}
#
HDD
${hr}
${color a7a7a7}Root:$alignr${color FEA63C}${fs_used /}${color}/${color B7CE42}${fs_free /}${color}
${fs_bar /}
${color a7a7a7}Home:$alignr${color FEA63C}${fs_used /home}${color}/${color B7CE42}${fs_free /home}${color}
${fs_bar /home}
#
NETWORK
${hr}
${color a7a7a7}Up: ${color}${upspeed eth0}${goto 120}${color a7a7a7}Down: ${color}${downspeed eth0}
${color a7a7a7}Total: ${color}${totalup eth0}${goto 120}${color a7a7a7}Total: ${color}${totaldown eth0}
${upspeedgraph eth0 20,85 556B2F 9ACD32}$alignr${downspeedgraph eth0 20,85 556B2F 9ACD32}
]]

but the error, see

Code: [Select]
[holmes@manjaroxfce Desktop]$ conky
conky: Syntax error (/home/holmes/.conkyrc:3: function arguments expected near '=') while reading config file.
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:79: attempt to concatenate a nil value (local 'x')
[holmes@manjaroxfce Desktop]$

my issue is whether what i did is correct!

vlw fwi, Holmes :)
Title: Re: Conky thread, show your work!
Post by: papajoke on 06. July 2015, 21:03:22
Code: [Select]
conky: Syntax error (/home/holmes/.conkyrc:3: function arguments expected near '=') while reading config file.
you too  :'(
Syntax error (/home/holmes/.conkyrc:3:
read one error line 3 in file /home/holmes/.conkyrc

-quote all values except numbers and: true false
-replace all yes no by true false (without quotes)
-replace minimum_size by minimum_width and minimum_height

Code: [Select]
xftfont = 'Coda:size=9',
use_xft = true,

one exemple:
Code: [Select]
-- view my desktop
conky.config = {
       --  configuration conky
   use_xft= true,
   xftalpha= 0.1,
   update_interval= 1,
   total_run_times= 0,

   background= true,

   own_window= true,
   own_window_type= 'normal',
   own_window_transparent= true,
   own_window_hints= 'undecorated,below,sticky,skip_taskbar,skip_pager',
   own_window_colour= '000000',
   own_window_argb_visual= true,
   own_window_argb_value= 0,

   double_buffer= true,
   minimum_width= 100,
   minimum_height= 8,
   maximum_width= 399,

   draw_shades= true,
   draw_outline= false,
   draw_borders= false,
   draw_graph_borders= false,
   default_color= 'white',
   default_shade_color= 'grey',
   default_outline_color= '1c1c1c',
   alignment= 'top_left',
   gap_x= 4,
   gap_y= 1,
   no_buffers= true,
   uppercase= false,
   cpu_avg_samples= 2,
   override_utf8_locale= true
}

conky.text = [[
${if_match $desktop == 1}● $else○ $endif\
${if_match $desktop == 2}● $else○ $endif\
${if_match $desktop == 3}● $else○ $endif\
#text comment
]]
Title: Re: Conky thread, show your work!
Post by: Egavas on 06. July 2015, 21:16:30
Thanks Papajoke, it works now! I had one more error, but solved it myself.

Cheers!
Title: Re: Conky thread, show your work!
Post by: Holmes on 06. July 2015, 21:26:37
thank you @papajoke, i will try here...

vlw fwi, Holmes :)
Title: Re: Conky thread, show your work!
Post by: Holmes on 06. July 2015, 22:43:32
now has other errors!

Code: [Select]
[holmes@manjaroxfce Desktop]$ conky
conky: Invalid value of type 'boolean' for setting 'use_spacer'. Expected value of type 'string'.
conky: desktop window (1800003) is subwindow of root window (2b7)
conky: window type - override
conky: drawing to created window (0x4a00002)
conky: drawing to double buffer
conky: Unknown setting 'default_bar_size'
conky: Unknown setting 'border_margin'
conky: obj->data.i 3 info.cpu_count 2
conky: attempting to use more CPUs than you have!
[holmes@manjaroxfce Desktop]$

have some manual of this new configuration conky? i entered the conky site, but i found!

vlw fwi, Holmes :)
Title: Re: Conky thread, show your work!
Post by: bardo on 06. July 2015, 22:44:52
[quote author=


----------------------------bad name interface ?
ou have to replace "eth0", "wlan0", and "eth1"  ? with the names of your network and wlan adapters. then, your conky should work!
[/quote]

my connection is named wired connection 1. Are you saying that i must  put what?

Code: [Select]
${if_existing /proc/net/route wlan0}
${color1}Up:${color} ${color3}${upspeed wlan0}${color}${alignr}${color1}Down:${color} ${color3}${downspeed wlan0}${color}
${upspeedgraph wlan0 50,120 FF8800 FF8800}${alignr}${downspeedgraph wlan0 50,120 FF8800 FF8800}
${color1}Sent:${color} ${color2}${totalup wlan0}${color}${alignr}${color1}Received:${color} ${color2}${totaldown wlan0}${color}
${else}${if_existing /proc/net/route wlan1}
${color1}Up:${color} ${color3}${upspeed wlan1}${color}${alignr}${color1}Down:${color} ${color3}${downspeed wlan1}${color}
${upspeedgraph wlan1 50,120 FF8800 FF8800}${alignr}${downspeedgraph wlan1 50,120 FF8800 FF8800}
${color1}Sent:${color} ${color2}${totalup wlan1}${color}${alignr}${color1}Received:${color} ${color2}${totaldown wlan1}${color}
${else}${if_existing /proc/net/route eth0}
${color1}Up:${color} ${color3}${upspeed eth0}${color}${alignr}${color1}Down:${color} ${color3}${downspeed eth0}${color}
${upspeedgraph eth0 50,120 FF8800 FF8800}${alignr}${downspeedgraph eth0 50,120 FF8800 FF8800}
${color1}Sent:${color} ${color2}${totalup eth0}${color}${alignr}${color1}Received:${color} ${color2}${totaldown eth0}${color}
${else}${if_existing /proc/net/route eth1}
${color1}Up:${color} ${color3}${upspeed eth1}${color}${alignr}${color1}Down:${color} ${color3}${downspeed eth1}${color}
${upspeedgraph eth1 50,120 FF8800 FF8800}${alignr}${downspeedgraph eth1 50,120 FF8800 FF8800}
${color1}Sent:${color} ${color2}${totalup eth1}${color}${alignr}${color1}Received:${color} ${color2}${totaldown eth1}${color}
${else}${if_existing /proc/net/route ppp0}
${color1}Up:${color} ${color3}${upspeed ppp0}${color}${alignr}${color1}Down:${color} ${color3}${downspeed ppp0}${color}
${upspeedgraph ppp0 50,120 FF8800 FF8800}${alignr}${downspeedgraph ppp0 50,120 FF8800 FF8800}
${color1}Sent:${color} ${color2}${totalup ppp0}${color}${alignr}${color1}Received:${color} ${color2}${totaldown ppp0}${color}
${else}${if_existing /proc/net/route ppp1}
${color1}Up:${color} ${color3}${upspeed ppp1}${color}${alignr}${color1}Down:${color} ${color3}${downspeed ppp1}${color}
${upspeedgraph ppp1 50,120 FF8800 FF8800}${alignr}${downspeedgraph ppp1 50,120 FF8800 FF8800}
${color1}Sent:${color} ${color2}${totalup ppp1}${color}${alignr}${color1}Received:${color} ${color2}${totaldown ppp1}${color}
${else}
Network disconnected
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 07. July 2015, 00:33:32
[quote author=


----------------------------bad name interface ?
ou have to replace "eth0", "wlan0", and "eth1"  ? with the names of your network and wlan adapters. then, your conky should work!


my connection is named wired connection 1. Are you saying that i must  put what?

Code: [Select]
${if_existing /proc/net/route wlan0}
${color1}Up:${color} ${color3}${upspeed wlan0}${color}${alignr}${color1}Down:${color} ${color3}${downspeed wlan0}${color}
${upspeedgraph wlan0 50,120 FF8800 FF8800}${alignr}${downspeedgraph wlan0 50,120 FF8800 FF8800}
${color1}Sent:${color} ${color2}${totalup wlan0}${color}${alignr}${color1}Received:${color} ${color2}${totaldown wlan0}${color}
${else}${if_existing /proc/net/route wlan1}
${color1}Up:${color} ${color3}${upspeed wlan1}${color}${alignr}${color1}Down:${color} ${color3}${downspeed wlan1}${color}
${upspeedgraph wlan1 50,120 FF8800 FF8800}${alignr}${downspeedgraph wlan1 50,120 FF8800 FF8800}
${color1}Sent:${color} ${color2}${totalup wlan1}${color}${alignr}${color1}Received:${color} ${color2}${totaldown wlan1}${color}
${else}${if_existing /proc/net/route eth0}
${color1}Up:${color} ${color3}${upspeed eth0}${color}${alignr}${color1}Down:${color} ${color3}${downspeed eth0}${color}
${upspeedgraph eth0 50,120 FF8800 FF8800}${alignr}${downspeedgraph eth0 50,120 FF8800 FF8800}
${color1}Sent:${color} ${color2}${totalup eth0}${color}${alignr}${color1}Received:${color} ${color2}${totaldown eth0}${color}
${else}${if_existing /proc/net/route eth1}
${color1}Up:${color} ${color3}${upspeed eth1}${color}${alignr}${color1}Down:${color} ${color3}${downspeed eth1}${color}
${upspeedgraph eth1 50,120 FF8800 FF8800}${alignr}${downspeedgraph eth1 50,120 FF8800 FF8800}
${color1}Sent:${color} ${color2}${totalup eth1}${color}${alignr}${color1}Received:${color} ${color2}${totaldown eth1}${color}
${else}${if_existing /proc/net/route ppp0}
${color1}Up:${color} ${color3}${upspeed ppp0}${color}${alignr}${color1}Down:${color} ${color3}${downspeed ppp0}${color}
${upspeedgraph ppp0 50,120 FF8800 FF8800}${alignr}${downspeedgraph ppp0 50,120 FF8800 FF8800}
${color1}Sent:${color} ${color2}${totalup ppp0}${color}${alignr}${color1}Received:${color} ${color2}${totaldown ppp0}${color}
${else}${if_existing /proc/net/route ppp1}
${color1}Up:${color} ${color3}${upspeed ppp1}${color}${alignr}${color1}Down:${color} ${color3}${downspeed ppp1}${color}
${upspeedgraph ppp1 50,120 FF8800 FF8800}${alignr}${downspeedgraph ppp1 50,120 FF8800 FF8800}
${color1}Sent:${color} ${color2}${totalup ppp1}${color}${alignr}${color1}Received:${color} ${color2}${totaldown ppp1}${color}
${else}
Network disconnected

No, what you do is right click on network manager and select I believe something with connection information.
At the top you should see in parenthesis a couple letters and numbers, THAT is what you use. See my conky here:
https://forum.manjaro.org/index.php?topic=2991.msg206381#msg206381 (https://forum.manjaro.org/index.php?topic=2991.msg206381#msg206381)
The important area is this:
Code: [Select]
${font Inconsolata:size=12:bold}${color #FF00FF}UL_SPD${font Inconsolata:size=12:bold}${color #DC143C}${alignr}TTL_UL
${color #FFFFFF}${font Inconsolata:size=12}${upspeed enp3s0}${alignr}${color #FFFFFF}${font Inconsolata:size=12}${totalup enp3s0}
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}${color #00FF00}DL_SPD${font Inconsolata:size=12:bold}${color #00FF00}${alignr}TTL_DL
${color #FFFFFF}${font Inconsolata:size=12}${downspeed enp3s0}${alignr}${color #FFFFFF}${font Inconsolata:size=12}${totaldown enp3s0}
You see the area where it has enp3s0? THAT is what you need in all references in conky for which network interface you wish displayed.
Title: Re: Conky thread, show your work!
Post by: bardo on 07. July 2015, 02:01:58
The important area is this:
Code: [Select]
${font Inconsolata:size=12:bold}${color #FF00FF}UL_SPD${font Inconsolata:size=12:bold}${color #DC143C}${alignr}TTL_UL
${color #FFFFFF}${font Inconsolata:size=12}${upspeed enp3s0}${alignr}${color #FFFFFF}${font Inconsolata:size=12}${totalup enp3s0}
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}${color #00FF00}DL_SPD${font Inconsolata:size=12:bold}${color #00FF00}${alignr}TTL_DL
${color #FFFFFF}${font Inconsolata:size=12}${downspeed enp3s0}${alignr}${color #FFFFFF}${font Inconsolata:size=12}${totaldown enp3s0}
You see the area where it has enp3s0? THAT is what you need in all references in conky for which network interface you wish displayed.


Is the same result, don't work My interface : Ethernet (enp4s0)


Code: [Select]
${else}${if_existing /proc/net/route eth0}
${color1}Up:${color} ${color3}${upspeed enp4s0}${color}${alignr}${color1}Down:${color} ${color3}${downspeed enp4s0}${color}
${upspeedgraph enp4s0 75,135 FF8800 FF8800}${alignr}${downspeedgraph enp4s0 75,135 FF8800 FF8800}
${color1}Sent:${color} ${color2}${totalup enp4s0}${color}${alignr}${color1}Received:${color} ${color2}${totaldown enp4s0}${color}
${else}${if_existing /proc/net/route eth1}
${color1}Up:${color} ${color3}${upspeed enp4s0}${color}${alignr}${color1}Down:${color} ${color3}${downspeed enp4s0}${color}
${upspeedgraph enp4s0 75,135 FF8800 FF8800}${alignr}${downspeedgraph enp4s0 75,135 FF8800 FF8800}
${color1}Sent:${color} ${color2}${totalup enp4s0}${color}${alignr}${color1}Received:${color} ${color2}${totaldown enp4s0}${color}
${else}${if_existing /proc/net/route ppp0}
${color1}Up:${color} ${color3}${upspeed enp4s0}${color}${alignr}${color1}Down:${color} ${color3}${downspeed enp4s0}${color}
${upspeedgraph enp4s0 75,135 FF8800 FF8800}${alignr}${downspeedgraph enp4s0 75,135 FF8800 FF8800}
${color1}Sent:${color} ${color2}${totalup enp4s0}${color}${alignr}${color1}Received:${color} ${color2}${totaldown enp4s0}${color}
${else}${if_existing /proc/net/route ppp1}
${color1}Up:${color} ${color3}${upspeed enp4s0}${color}${alignr}${color1}Down:${color} ${color3}${downspeed enp4s0}${color}
${upspeedgraph enp4s0 75,135 FF8800 FF8800}${alignr}${downspeedgraph enp4s0 75,135 FF8800 FF8800}
${color1}Sent:${color} ${color2}${totalup enp4s0}${color}${alignr}${color1}Received:${color} ${color2}${totaldown enp4s0}${color}
${else}
Network disconnected
${color6}Connect to a network to see statistics${color}
${voffset 75}
${endif}${endif}${endif}${endif}${endif}${endif}${voffset -30}
Title: Re: Conky thread, show your work!
Post by: oberon on 07. July 2015, 09:47:34
Hi Holmes! :)
now has other errors!
Valid values for 'use_spacer' are now 'left/right/none', so stings, not booleans (true/false) anymore ::)

;) I finally found quite a good source for instructions:
Code: [Select]
man conky
!! :D
Title: Re: Conky thread, show your work!
Post by: bardo on 07. July 2015, 10:46:48
Hi Holmes! :)Valid values for 'use_spacer' are now 'left/right/none', so stings, not booleans (true/false) anymore ::)

;) I finally found quite a good source for instructions:
Code: [Select]
man conky
!! :D

I'm sorry, but i'm new on conky anda there ar things like that i don 't understand.
I use conky manager, so is dificult for me to modify lines on the script.
Title: Re: Conky thread, show your work!
Post by: papajoke on 07. July 2015, 11:55:21
Is the same result, don't work My interface : Ethernet (enp4s0)

old code :
Code: [Select]
${if_existing /proc/net/route wlan0}
${color1}Up:${color} ${color3}${upspeed wlan0}
...
${else}
Network disconnected

now, your code :
Code: [Select]
${if_existing /proc/net/route eth0}
${color1}Up:${color} ${color3}${upspeed enp4s0}${color}${alignr}${color1}Down:${color} ${color3}${downspeed enp4s0}${color}
...
${else}
Network disconnected

if exist interface xxxx0 echo "up" of xxxx0 interface else echo disconnected
Title: Re: Conky thread, show your work!
Post by: bardo on 07. July 2015, 12:13:33
old code :
Code: [Select]
${if_existing /proc/net/route wlan0}
${color1}Up:${color} ${color3}${upspeed wlan0}
...
${else}
Network disconnected

now, your code :
Code: [Select]
${if_existing /proc/net/route eth0}
${color1}Up:${color} ${color3}${upspeed enp4s0}${color}${alignr}${color1}Down:${color} ${color3}${downspeed enp4s0}${color}
...
${else}
Network disconnected

if exist interface xxxx0 echo "up" of xxxx0 interface else echo disconnected

So, this code is wrong?
Code: [Select]
${else}${if_existing /proc/net/route eth0}
${color1}Up:${color} ${color3}${upspeed enp4s0}${color}${alignr}${color1}Down:${color} ${color3}${downspeed enp4s0}${color}
${upspeedgraph enp4s0 75,135 FF8800 FF8800}${alignr}${downspeedgraph enp4s0 75,135 FF8800 FF8800}
Title: Re: Conky thread, show your work!
Post by: papajoke on 07. July 2015, 13:13:52
So, this code is wrong?
I had marked in bold the problem  :o

if exist interface eth0
       echo "up" of enp4s0 interface
else
      echo disconnected
Title: Re: Conky thread, show your work!
Post by: oberon on 07. July 2015, 13:25:27
@bardo, my last post was a direct reply to Holmes' post! Sorry for the misunderstanding but this has nothing to do with your problem being discussed in this thread at the same time! :-)
Title: Re: Conky thread, show your work!
Post by: Holmes on 07. July 2015, 13:34:20
Hi Holmes! :)Valid values for 'use_spacer' are now 'left/right/none', so stings, not booleans (true/false) anymore ::)

;) I finally found quite a good source for instructions:
Code: [Select]
man conky
!! :D

hello @oberon, thank you by the orientation and i will see if ican. otherwise i will change conky, for something simpler!

vlw fwi, Holmes :)
Title: Re: Conky thread, show your work!
Post by: excalibur1234 on 07. July 2015, 13:56:10
;) I finally found quite a good source for instructions:
Code: [Select]
man conky
!! :D

reading in the terminal can be hard to navigate. i recommend to use
Code: [Select]
man -H conky
this will display the man page in your default browser.
you can also use CTRL+F to find text in your browser. just search for the conky command you are having trouble with.
Title: Re: Conky thread, show your work!
Post by: bardo on 07. July 2015, 15:17:35
I had marked in bold the problem  :o

if exist interface eth0
       echo "up" of enp4s0 interface
else
      echo disconnected

So i understand i must change something. But  i am not a sepecialized person on this matter - sorry for may bad english.
So can you post  the right code?
Thnaks in advance.
Title: Re: Conky thread, show your work!
Post by: Holmes on 07. July 2015, 15:24:07
thx @excalibur1234...

vlw fwi, Holmes :)
Title: Re: Conky thread, show your work!
Post by: oberon on 07. July 2015, 15:26:16
Code: [Select]
man -H conky

Very helpful, indeed! Thank you very much!
Title: Re: Conky thread, show your work!
Post by: Holmes on 07. July 2015, 18:23:11
hi guys, i made the change, but it does not work! my code is:

Code: [Select]
conky.config = {
alignment = 'top_left',
border_inner_margin = 5,
border_width = 1,
cpu_avg_samples = 2,
default_bar_height = 200,
default_color = '666666',
default_outline_color = '828282',
default_shade_color = '000000',
double_buffer = true,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
font = 'Sans:size=9',
gap_x = 15,
gap_y = 130,
maximum_width = 200,
minimum_height = 200,
minimum_width = 200,
net_avg_samples = 2,
no_buffers = true,
override_utf8_locale = true,
own_window = true,
own_window_argb_visual = true,
own_window_colour = '262524',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager'
own_window_transparent = true,
own_window_type = 'override',
stippled_borders = 0,
total_run_times = 0,
update_interval seconds = 1.0,
uppercase = false,
use_spacer = none,
use_xft = true,
xftalpha = 1,
}
conky.text = [[
TEXT
${color a7a7a7}${font Coda:size=40}${time %H:%M}${font}${color}
${voffset -44}$alignr${time %a}
$alignr${time %D}
#
${color a7a7a7}Kernel:${color}$alignr$kernel
${color a7a7a7}UpTime:${color}$alignr$uptime 
#
P R O C E S S O R
${hr}
${color a7a7a7}Cpu1:${color} ${offset 13}${cpu cpu1}%${color}${goto 120}${color a7a7a7}Cpu2:${color} ${offset 13}${cpu cpu2}%${color}
${cpugraph cpu1 20,85 556B2F 9ACD32}${alignr}${cpugraph cpu2 20,85 556B2F 9ACD32}
${color a7a7a7}Cpu3:${color} ${offset 13}${cpu cpu2}%${color}${goto 120}${color a7a7a7}Cpu4:${color} ${offset 13}${cpu cpu3}%${color}
${cpugraph cpu3 20,85 556B2F 9ACD32}${alignr}${cpugraph cpu4 20,85 556B2F 9ACD32}
#
M E M O R Y
${hr}
${color a7a7a7}Ram:$alignr${color FEA63C}$mem${color}/${color B7CE42}$memmax${color}
${membar}
${color a7a7a7}Swap:$alignr${color FEA63C}$swap${color}/${color B7CE42}$swapfree${color}
${swapbar}
#
HDD
${hr}
${color a7a7a7}Root:$alignr${color FEA63C}${fs_used /}${color}/${color B7CE42}${fs_free /}${color}
${fs_bar /}
${color a7a7a7}Home:$alignr${color FEA63C}${fs_used /home}${color}/${color B7CE42}${fs_free /home}${color}
${fs_bar /home}
#
NETWORK
${hr}
${color a7a7a7}Up: ${color}${upspeed eth0}${goto 120}${color a7a7a7}Down: ${color}${downspeed eth0}
${color a7a7a7}Total: ${color}${totalup eth0}${goto 120}${color a7a7a7}Total: ${color}${totaldown eth0}
${upspeedgraph eth0 20,85 556B2F 9ACD32}$alignr${downspeedgraph eth0 20,85 556B2F 9ACD32}
]]

i do not know i'm doing the right things... ???! gives error, see

Code: [Select]
[holmes@manjaroxfce ~]$ conky
conky: Syntax error (/home/holmes/.conkyrc:28: '}' expected (to close '{' at line 1) near 'own_window_transparent') while reading config file.
conky: Assuming it's in old syntax and attempting conversion.
conky: [string "..."]:150: [string "converted config"]:2: '}' expected (to close '{' at line 1) near '='
[holmes@manjaroxfce ~]$

vlw fwi, Holmes :)
Title: Re: Conky thread, show your work!
Post by: papajoke on 07. July 2015, 19:34:48
hi @Holmes
good read the error : Syntax error (/home/holmes/.conkyrc:28:
error line 28 in file /home/holmes/.conkyrc

and line 27 you have :
Code: [Select]
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager' ,,,  ;)

ps: line 39 "TEXT" is the old syntax ?
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 07. July 2015, 21:02:29
All these issues with the NEW syntax is why I am glad I did NOT have the "normal" conky package installed. I had conky-lua package which is still at v1.9.
I tried the the conky 1.10 and found it to be basically a GIANT P.I.T.A.
Hopefully someday (soon I hope) someone will create an actual executable package which will be kind enough to convert my current conky to the new syntax.
That, or if all else fails, I shall print the blood man pages (all of them) for the new version in the hopes I can figure it out on my own.  :( ::) :-\ :o
Title: Re: Conky thread, show your work!
Post by: Holmes on 07. July 2015, 22:01:10
hi @Holmes
good read the error : Syntax error (/home/holmes/.conkyrc:28:
error line 28 in file /home/holmes/.conkyrc

and line 27 you have :
Code: [Select]
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager' ,,,  ;)

ps: line 39 "TEXT" is the old syntax ?

hello @papajoke, i did not work on the line 27, but the result looks:

Code: [Select]
[holmes@manjaroxfce ~]$ conky
conky: desktop window (1800003) is subwindow of root window (2b7)
conky: window type - override
conky: drawing to created window (0x4a00002)
conky: drawing to double buffer
conky: obj->data.i 3 info.cpu_count 2
conky: attempting to use more CPUs than you have!
[holmes@manjaroxfce ~]$

vlw fwi, Holmes :)
Title: Re: Conky thread, show your work!
Post by: oberon on 07. July 2015, 22:38:49
Hopefully someday (soon I hope) someone will create an actual executable package which will be kind enough to convert my current conky to the new syntax.
Here you are. Let me know if it works! ;)
Code: [Select]
conky.config = {
background = true,
own_window = true,
own_window_transparent = true,
own_window_type = 'normal',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
alignment = 'top_right',
gap_x = 5,
gap_y = 5,
use_spacer = 'none',
update_interval = 1,
net_avg_samples = 2,
total_run_times = 0,
use_xft = true,
override_utf8_locale = true,
xftalpha = 0.95,
text_buffer_size = 1024,
uppercase = false,
double_buffer = true,
no_buffers = true,
draw_shades = false,
short_units = true,
}
conky.text = [[
${color #FFFFFF}${font Inconsolata:size=18:bold}${time %a} ${alignr}${time %B} ${time %d} ${alignr}${time %Y}
${color #FFFFFF}${voffset -5}${hr 1}
${color #00FF00}${voffset -8}${font Inconsolata:size=14:bold}${alignc}Manjaro Linux v0.8.13
${color #FFFFFF}${voffset -8}${hr 1}
${color #FFFFFF}${font Inconsolata:size=12:bold}KERNEL${font Inconsolata:size=11:bold}${alignr}${kernel}
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}UPTIME${alignr}${uptime}
${color #FFFFFF}${voffset -3}${hr 1}
${color #00FFFF}${font Inconsolata:size=12:bold}/ROOT(Free)${color #FFFFFF}${alignr}${fs_free /}
${color #FFFFFF}${voffset -4}${stippled_hr 1}
${color #FFA500}${font Inconsolata:size=12:bold}/HOME(Free)${color #FFFFFF}${alignr}${fs_free /home}
${color #FFFFFF}${voffset -4}${stippled_hr 1}
${color #FF00FF}${font Inconsolata:size=12:bold}FREE MEM${alignr}${color #FFFF00}${memfree}
${color #FFFFFF}${voffset -3}${hr 1}
${color #FFFFFF}${font Inconsolata:size=12:bold}SYS TEMP:${font Inconsolata:size=12:bold}${alignr} ${hwmon temp 1} °C
${color #FFFFFF}${voffset -3}${hr 1}
${alignc}Core 0 ${color white}${execi 30 sensors | grep 'Core 0:' | cut -c18-19}°C${color} @ ${cpu cpu1} %
${alignc}Core 1 ${color white}${execi 30 sensors | grep 'Core 1:' | cut -c18-19}°C${color} @ ${cpu cpu2} %
${alignc}Core 2 ${color white}${execi 30 sensors | grep 'Core 2:' | cut -c18-19}°C${color} @ ${cpu cpu3} %
${alignc}Core 3 ${color white}${execi 30 sensors | grep 'Core 3:' | cut -c18-19}°C${color} @ ${cpu cpu4} %
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}Core 0 Freq. (MHZ):${font Inconsolata:size=12:bold}${alignr}${freq 1}
${font Inconsolata:size=12:bold}Core 1 Freq. (MHZ):${font Inconsolata:size=12:bold}${alignr}${freq 2}
${font Inconsolata:size=12:bold}Core 2 Freq. (MHZ):${font Inconsolata:size=12:bold}${alignr}${freq 3}
${font Inconsolata:size=12:bold}Core 3 Freq. (MHZ):${font Inconsolata:size=12:bold}${alignr}${freq 4}
${color #FFFFFF}${voffset -3}${hr 1}
${color #FFFFFF}${font Inconsolata:size=12:bold}GPU TEMP:${alignr}${execi 10 nvidia-smi -q -d TEMPERATURE | awk '/GPU Current Temp/ {print $5}'} °C
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}${color #FF00FF}UL_SPD${font Inconsolata:size=12:bold}${color #DC143C}${alignr}TTL_UL
${color #FFFFFF}${font Inconsolata:size=12}${upspeed enp3s0}${alignr}${color #FFFFFF}${font Inconsolata:size=12}${totalup enp3s0}
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}${color #00FF00}DL_SPD${font Inconsolata:size=12:bold}${color #00FF00}${alignr}TTL_DL
${color #FFFFFF}${font Inconsolata:size=12}${downspeed enp3s0}${alignr}${color #FFFFFF}${font Inconsolata:size=12}${totaldown enp3s0}
]]

yep, looking good :D

  (http://www.zimagez.com/miniature/screenshot2015-07-0723-41-18.php)
 (http://www.zimagez.com/zimage/screenshot2015-07-0723-41-18.php)
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 07. July 2015, 23:05:41
Here you are. Let me know if it works! ;)
Code: [Select]
conky.config = {
background = true,
own_window = true,
own_window_transparent = true,
own_window_type = 'normal',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
alignment = 'top_right',
gap_x = 5,
gap_y = 5,
use_spacer = 'none',
update_interval = 1,
net_avg_samples = 2,
total_run_times = 0,
use_xft = true,
override_utf8_locale = true,
xftalpha = 0.95,
text_buffer_size = 1024,
uppercase = false,
double_buffer = true,
no_buffers = true,
draw_shades = false,
short_units = true,
}
conky.text = [[
${color #FFFFFF}${font Inconsolata:size=18:bold}${time %a} ${alignr}${time %B} ${time %d} ${alignr}${time %Y}
${color #FFFFFF}${voffset -5}${hr 1}
${color #00FF00}${voffset -8}${font Inconsolata:size=14:bold}${alignc}Manjaro Linux v0.8.13
${color #FFFFFF}${voffset -8}${hr 1}
${color #FFFFFF}${font Inconsolata:size=12:bold}KERNEL${font Inconsolata:size=11:bold}${alignr}${kernel}
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}UPTIME${alignr}${uptime}
${color #FFFFFF}${voffset -3}${hr 1}
${color #00FFFF}${font Inconsolata:size=12:bold}/ROOT(Free)${color #FFFFFF}${alignr}${fs_free /}
${color #FFFFFF}${voffset -4}${stippled_hr 1}
${color #FFA500}${font Inconsolata:size=12:bold}/HOME(Free)${color #FFFFFF}${alignr}${fs_free /home}
${color #FFFFFF}${voffset -4}${stippled_hr 1}
${color #FF00FF}${font Inconsolata:size=12:bold}FREE MEM${alignr}${color #FFFF00}${memfree}
${color #FFFFFF}${voffset -3}${hr 1}
${color #FFFFFF}${font Inconsolata:size=12:bold}SYS TEMP:${font Inconsolata:size=12:bold}${alignr} ${hwmon temp 1} °C
${color #FFFFFF}${voffset -3}${hr 1}
${alignc}Core 0 ${color white}${execi 30 sensors | grep 'Core 0:' | cut -c18-19}°C${color} @ ${cpu cpu1} %
${alignc}Core 1 ${color white}${execi 30 sensors | grep 'Core 1:' | cut -c18-19}°C${color} @ ${cpu cpu2} %
${alignc}Core 2 ${color white}${execi 30 sensors | grep 'Core 2:' | cut -c18-19}°C${color} @ ${cpu cpu3} %
${alignc}Core 3 ${color white}${execi 30 sensors | grep 'Core 3:' | cut -c18-19}°C${color} @ ${cpu cpu4} %
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}Core 0 Freq. (MHZ):${font Inconsolata:size=12:bold}${alignr}${freq 1}
${font Inconsolata:size=12:bold}Core 1 Freq. (MHZ):${font Inconsolata:size=12:bold}${alignr}${freq 2}
${font Inconsolata:size=12:bold}Core 2 Freq. (MHZ):${font Inconsolata:size=12:bold}${alignr}${freq 3}
${font Inconsolata:size=12:bold}Core 3 Freq. (MHZ):${font Inconsolata:size=12:bold}${alignr}${freq 4}
${color #FFFFFF}${voffset -3}${hr 1}
${color #FFFFFF}${font Inconsolata:size=12:bold}GPU TEMP:${alignr}${execi 10 nvidia-smi -q -d TEMPERATURE | awk '/GPU Current Temp/ {print $5}'} °C
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}${color #FF00FF}UL_SPD${font Inconsolata:size=12:bold}${color #DC143C}${alignr}TTL_UL
${color #FFFFFF}${font Inconsolata:size=12}${upspeed enp3s0}${alignr}${color #FFFFFF}${font Inconsolata:size=12}${totalup enp3s0}
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}${color #00FF00}DL_SPD${font Inconsolata:size=12:bold}${color #00FF00}${alignr}TTL_DL
${color #FFFFFF}${font Inconsolata:size=12}${downspeed enp3s0}${alignr}${color #FFFFFF}${font Inconsolata:size=12}${totaldown enp3s0}
]]

yep, looking good :D

  (http://www.zimagez.com/miniature/screenshot2015-07-0723-41-18.php)
 (http://www.zimagez.com/zimage/screenshot2015-07-0723-41-18.php)

Thanks! oberon. I shall try it out once I get back to Manjaro, and will keep you advised.
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 07. July 2015, 23:28:10
@oberon:
A couple of items (trivial actually).

1. I quickly found that short units had to be changed from :
Code: [Select]
short_units = true,to
Code: [Select]
short_units = false,to get conky to actually show short units.

And second item the degree symbol causes NEITYHER the degree symbol or the C to appear at all, so shortened to just the C and has that corrected.
Oh, and also caused the lines for the core temps and such to NOT be aligned center.
My next post will show what I have.
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 07. July 2015, 23:30:48
OK, revised conky code:

Code: [Select]
conky.config = {
background = true,
own_window = true,
own_window_transparent = true,
own_window_type = 'normal',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
alignment = 'top_right',
gap_x = 5,
gap_y = 5,
use_spacer = 'none',
update_interval = 1,
net_avg_samples = 2,
total_run_times = 0,
use_xft = true,
override_utf8_locale = true,
xftalpha = 0.95,
text_buffer_size = 1024,
uppercase = false,
double_buffer = true,
no_buffers = true,
draw_shades = false,
short_units = false,
}
conky.text = [[
${color #FFFFFF}${font Inconsolata:size=18:bold}${time %a} ${alignr}${time %B} ${time %d} ${alignr}${time %Y}
${color #FFFFFF}${voffset -5}${hr 1}
${color #00FF00}${voffset -8}${font Inconsolata:size=14:bold}${alignc}Manjaro Linux v0.8.13
${color #FFFFFF}${voffset -8}${hr 1}
${color #FFFFFF}${font Inconsolata:size=12:bold}KERNEL${font Inconsolata:size=11:bold}${alignr}${kernel}
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}UPTIME${alignr}${uptime}
${color #FFFFFF}${voffset -3}${hr 1}
${color #00FFFF}${font Inconsolata:size=12:bold}/ROOT(Free)${color #FFFFFF}${alignr}${fs_free /}
${color #FFFFFF}${voffset -4}${stippled_hr 1}
${color #FFA500}${font Inconsolata:size=12:bold}/HOME(Free)${color #FFFFFF}${alignr}${fs_free /home}
${color #FFFFFF}${voffset -4}${stippled_hr 1}
${color #FF00FF}${font Inconsolata:size=12:bold}FREE MEM${alignr}${color #FFFF00}${memfree}
${color #FFFFFF}${voffset -3}${hr 1}
${color #FFFFFF}${font Inconsolata:size=12:bold}SYS TEMP:${font Inconsolata:size=12:bold}${alignr} ${hwmon temp 1} °C
${color #FFFFFF}${voffset -3}${hr 1}
${alignc}Core 0 ${color white}${execi 30 sensors | grep 'Core 0:' | cut -c18-19} C ${color} @ ${cpu cpu1} %
${alignc}Core 1 ${color white}${execi 30 sensors | grep 'Core 1:' | cut -c18-19} C ${color} @ ${cpu cpu2} %
${alignc}Core 2 ${color white}${execi 30 sensors | grep 'Core 2:' | cut -c18-19} C ${color} @ ${cpu cpu3} %
${alignc}Core 3 ${color white}${execi 30 sensors | grep 'Core 3:' | cut -c18-19} C ${color} @ ${cpu cpu4} %
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}Core 0 Freq. (MHZ):${font Inconsolata:size=12:bold}${alignr}${freq 1}
${font Inconsolata:size=12:bold}Core 1 Freq. (MHZ):${font Inconsolata:size=12:bold}${alignr}${freq 2}
${font Inconsolata:size=12:bold}Core 2 Freq. (MHZ):${font Inconsolata:size=12:bold}${alignr}${freq 3}
${font Inconsolata:size=12:bold}Core 3 Freq. (MHZ):${font Inconsolata:size=12:bold}${alignr}${freq 4}
${color #FFFFFF}${voffset -3}${hr 1}
${color #FFFFFF}${font Inconsolata:size=12:bold}GPU TEMP:${alignr}${execi 10 nvidia-smi -q -d TEMPERATURE | awk '/GPU Current Temp/ {print $5}'} C
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}${color #FF00FF}UL_SPD${font Inconsolata:size=12:bold}${color #DC143C}${alignr}TTL_UL
${color #FFFFFF}${font Inconsolata:size=12}${upspeed enp3s0}${alignr}${color #FFFFFF}${font Inconsolata:size=12}${totalup enp3s0}
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}${color #00FF00}DL_SPD${font Inconsolata:size=12:bold}${color #00FF00}${alignr}TTL_DL
${color #FFFFFF}${font Inconsolata:size=12}${downspeed enp3s0}${alignr}${color #FFFFFF}${font Inconsolata:size=12}${totaldown enp3s0}
]]

And see attached for conky image.
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 07. July 2015, 23:40:00
@oberon:
Please ignore previous 2 posts (except the part about the short units).

Here is revised AGAIN:

CODE:

Code: [Select]
conky.config = {
background = true,
own_window = true,
own_window_transparent = true,
own_window_type = 'normal',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
alignment = 'top_right',
gap_x = 5,
gap_y = 5,
use_spacer = 'none',
update_interval = 1,
net_avg_samples = 2,
total_run_times = 0,
use_xft = true,
override_utf8_locale = true,
xftalpha = 0.95,
text_buffer_size = 1024,
uppercase = false,
double_buffer = true,
no_buffers = true,
draw_shades = false,
short_units = false,
}
conky.text = [[
${color #FFFFFF}${font Inconsolata:size=18:bold}${time %a} ${alignr}${time %B} ${time %d} ${alignr}${time %Y}
${color #FFFFFF}${voffset -5}${hr 1}
${color #00FF00}${voffset -8}${font Inconsolata:size=14:bold}${alignc}Manjaro Linux v0.8.13
${color #FFFFFF}${voffset -8}${hr 1}
${color #FFFFFF}${font Inconsolata:size=12:bold}KERNEL${font Inconsolata:size=11:bold}${alignr}${kernel}
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}UPTIME${alignr}${uptime}
${color #FFFFFF}${voffset -3}${hr 1}
${color #00FFFF}${font Inconsolata:size=12:bold}/ROOT(Free)${color #FFFFFF}${alignr}${fs_free /}
${color #FFFFFF}${voffset -4}${stippled_hr 1}
${color #FFA500}${font Inconsolata:size=12:bold}/HOME(Free)${color #FFFFFF}${alignr}${fs_free /home}
${color #FFFFFF}${voffset -4}${stippled_hr 1}
${color #FF00FF}${font Inconsolata:size=12:bold}FREE MEM${alignr}${color #FFFF00}${memfree}
${color #FFFFFF}${voffset -3}${hr 1}
${color #FFFFFF}${font Inconsolata:size=12:bold}SYS TEMP:${font Inconsolata:size=12:bold}${alignr} ${hwmon temp 1} °C
${color #FFFFFF}${voffset -3}${hr 1}
${alignc}Core 0 ${color white}${execi 30 sensors | grep 'Core 0:' | cut -c18-19} °C ${color} @ ${cpu cpu1} %
${alignc}Core 1 ${color white}${execi 30 sensors | grep 'Core 1:' | cut -c18-19} °C ${color} @ ${cpu cpu2} %
${alignc}Core 2 ${color white}${execi 30 sensors | grep 'Core 2:' | cut -c18-19} °C ${color} @ ${cpu cpu3} %
${alignc}Core 3 ${color white}${execi 30 sensors | grep 'Core 3:' | cut -c18-19} °C ${color} @ ${cpu cpu4} %
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}Core 0 Freq. (MHZ):${font Inconsolata:size=12:bold}${alignr}${freq 1}
${font Inconsolata:size=12:bold}Core 1 Freq. (MHZ):${font Inconsolata:size=12:bold}${alignr}${freq 2}
${font Inconsolata:size=12:bold}Core 2 Freq. (MHZ):${font Inconsolata:size=12:bold}${alignr}${freq 3}
${font Inconsolata:size=12:bold}Core 3 Freq. (MHZ):${font Inconsolata:size=12:bold}${alignr}${freq 4}
${color #FFFFFF}${voffset -3}${hr 1}
${color #FFFFFF}${font Inconsolata:size=12:bold}GPU TEMP:${alignr}${execi 10 nvidia-smi -q -d TEMPERATURE | awk '/GPU Current Temp/ {print $5}'} °C
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}${color #FF00FF}UL_SPD${font Inconsolata:size=12:bold}${color #DC143C}${alignr}TTL_UL
${color #FFFFFF}${font Inconsolata:size=12}${upspeed enp3s0}${alignr}${color #FFFFFF}${font Inconsolata:size=12}${totalup enp3s0}
${color #FFFFFF}${voffset -3}${hr 1}
${font Inconsolata:size=12:bold}${color #00FF00}DL_SPD${font Inconsolata:size=12:bold}${color #00FF00}${alignr}TTL_DL
${color #FFFFFF}${font Inconsolata:size=12}${downspeed enp3s0}${alignr}${color #FFFFFF}${font Inconsolata:size=12}${totaldown enp3s0}
]]

REASON the degree symbols were failing, was WRONG file encoding (was NOT UTF-8).

See attached for conky.
Title: Re: Conky thread, show your work!
Post by: papajoke on 08. July 2015, 01:04:55
@oberon

Code: [Select]
${color #00FF00}${voffset -8}${font Inconsolata:size=14:bold}${alignc}Manjaro Linux v0.8.13

you can replace static text  by dynamic text
for exemple :
Code: [Select]
${exec awk -F'=' '/DESCRIPTION/ {print $2}' /etc/lsb-release}   
${exec awk -F'=' '/RELEASE/ {print $2}' /etc/lsb-release}
#or ${exec lsb-release -ds }
Title: Re: Conky thread, show your work!
Post by: bardo on 08. July 2015, 01:52:35
I found a new conky - hartman, if i'm not mistake.
The network is fine now, beacause there is  new optios for the network:
Code: [Select]
${if_existing /proc/net/route enp4s0}
${voffset -331}${goto 40}${color2}Up: ${color1}${upspeed enp4s0}${color2}${goto 150}Down: ${color1}${downspeed enp4s0}
${voffset 10}${goto 40}${upspeedgraph enp4s0 26,80 948787 948787}${goto 150}${downspeedgraph enp4s0 26,80 948787 948787}
${voffset 9}${goto 40}${color2}Sent: ${color1}${totalup enp4s0}${color2}${goto 150}Received: ${color1}${totaldown enp4s0}
${else}

Now I have two things i don't know how:
1- this conky is a window:

(http://i.imgur.com/4fBTMJQ.png)
(http://i.imgur.com/Uw7fdXW.png)

It is possible to change this conky to stop being a window ? how?
Is it possible and how to put the name of my town in order to appear in this conky ?
Thanks
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 08. July 2015, 02:55:50
I found a new conky - hartman, if i'm not mistake.
The network is fine now, beacause there is  new optios for the network:
Code: [Select]
${if_existing /proc/net/route enp4s0}
${voffset -331}${goto 40}${color2}Up: ${color1}${upspeed enp4s0}${color2}${goto 150}Down: ${color1}${downspeed enp4s0}
${voffset 10}${goto 40}${upspeedgraph enp4s0 26,80 948787 948787}${goto 150}${downspeedgraph enp4s0 26,80 948787 948787}
${voffset 9}${goto 40}${color2}Sent: ${color1}${totalup enp4s0}${color2}${goto 150}Received: ${color1}${totaldown enp4s0}
${else}

Now I have two things i don't know how:
1- this conky is a window:

(http://i.imgur.com/4fBTMJQ.png)
(http://i.imgur.com/Uw7fdXW.png)

It is possible to change this conky to stop being a window ? how?
Is it possible and how to put the name of my town in order to appear in this conky ?
Thanks
@bardo:
For those questions, first we would need the ENTIRE conky code. Not just the network part.
Thanks.
Title: Re: Conky thread, show your work!
Post by: bardo on 08. July 2015, 06:02:14
Here is de code:
Code: [Select]
# Conky settings #
background yes
update_interval 1
double_buffer yes
no_buffers yes
imlib_cache_size 10

# Window specifications #
gap_x 50
gap_y 100
minimum_size 268 620
maximum_width 268
own_window yes
own_window_type normal  # other options are: override/dock/desktop/panel
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
#alignment middle_middle
#own_window_argb_visual yes
#own_window_argb_value 0

# Graphics settings #
draw_shades no
default_shade_color AAAAAA
draw_outline no
default_outline_color AAAAAA
draw_borders no
draw_graph_borders no
default_graph_size 26 80
show_graph_scale no
show_graph_range no

# Text settings #
use_xft yes
xftalpha 0
xftfont Droid Sans:size=8
text_buffer_size 256
override_utf8_locale yes

# Useful shortenings #
short_units yes
pad_percents 2
top_name_width 7

# Color scheme #
default_color e5ded0
color1 e5ded0
color2 948787
color3 668694
color4 FFFFFF
color5 DCDCDC
color6 FFFFFF
color7 FFFFFF
color8 FFFFFF

alignment top_right
own_window_argb_value 0
own_window_argb_visual yes
own_window_colour 000000
TEXT
# Various images #
${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=746194&u=c" -o ~/.cache/weather.xml}
${image ~/.harmattan-assets/misc/Brown-Card/God-Mode/bg.png -p 10,20 -s 248x582}\
${execi 300 cp -f ~/.harmattan-assets/photos/big-0px/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather.png}${image ~/.cache/weather.png -p 20,91 -s 228x229}\
${image ~/.harmattan-assets/misc/Brown-Card/God-Mode/bg-2.png -p 20,372/ -s 228x214}\
${image ~/.harmattan-assets/misc/Brown-Card/God-Mode/bg-3.png -p 20,91/ -s 228x179}\
${image ~/.harmattan-assets/misc/Brown-Card/God-Mode/bg-4.png -p 20,270/ -s 228x52}\
${image ~/.harmattan-assets/misc/Brown-Card/God-Mode/photo-filter.png -p 20,91/ -s 228x179}\
${image ~/.harmattan-assets/misc/Brown-Card/God-Mode/separator-v-2.png -p 95,185 -s 1x76}\
${image ~/.harmattan-assets/misc/Brown-Card/God-Mode/separator-v-2.png -p 172,185 -s 1x76}\
${image ~/.harmattan-assets/misc/Brown-Card/God-Mode/separator-h-2.png -p 33,175 -s 202x1}\
${image ~/.harmattan-assets/misc/Brown-Card/God-Mode/separator-h.png -p 33,496 -s 202x2}\
\
# The days of the forecast #
\
${color1}${voffset 172}${alignc 77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1' | tr '[a-z]' '[A-Z]'}${color}
${color1}${voffset -13}${alignc}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2' | tr '[a-z]' '[A-Z]'}${color}
${color1}${voffset -13}${alignc -77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3' | tr '[a-z]' '[A-Z]'}${color}
\
# The temperatures of the forecast #
\
${color1}${voffset 51}${alignc 77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°${color}
${color1}${voffset -13}${alignc}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°${color}
${color1}${voffset -13}${alignc -77}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°/${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°${color}
\
# The "conditions" section of the conky #
\
${goto 36}${voffset -172}${font Droid Sans :size=36}${color1}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}${color}
${goto 46}${voffset 14}${font Droid Sans :size=12}${color1}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}${color}
${color1}${alignr 52}${voffset -73}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "pressure=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} ${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "pressure=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
${color1}${alignr 52}${voffset 7}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "humidity=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} %${color}
${color1}${alignr 52}${voffset 7}${execi 300 grep "yweather:wind" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} ${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${color}
\
# Clock + calendar #
\
${voffset -117}${font Droid Sans Mono :size=22}${alignc}${color1}${time %H:%M}${font}${color}
${voffset 4}${font Droid Sans :size=10}${alignc}${color2}${time %A, %B %d}${font}${color}
\
# Cpu, memory, uptime, and load graph #
\
${voffset 294}${goto 40}${color1}Cpu:${color}
${voffset 4}${goto 40}${color1}Mem:${color}
${voffset 4}${goto 40}${color1}Uptime:${color}
${voffset -47}${alignr 39}${color1}${cpu cpu0}%${color}
${voffset 4}${alignr 39}${color1}${memperc}%${color}
${voffset 4}${alignr 39}${color1}${uptime_short}${color}
${voffset -47}${alignc}${color2}${cpubar 5,36}${color}
${voffset 4}${alignc}${color2}${membar 5,36}${color}
${voffset 29}${goto 40}${loadgraph 26,190 948787 948787 -l}
\
# The processes section #
\
${voffset 26}${goto 40}${color1}${top_mem name 1}${color}
${voffset 4}${goto 40}${color1}${top_mem name 2}${color}
${voffset 4}${goto 40}${color1}${top_mem name 3}${color}
${voffset 4}${goto 40}${color1}${top_mem name 4}${color}
${voffset 4}${goto 40}${color1}${top_mem name 5}${color}
${voffset -81}${alignc}${color2}${top_mem mem 1}%${color}
${voffset 4}${alignc}${color2}${top_mem mem 2}%${color}
${voffset 4}${alignc}${color2}${top_mem mem 3}%${color}
${voffset 4}${alignc}${color2}${top_mem mem 4}%${color}
${voffset 4}${alignc}${color2}${top_mem mem 5}%${color}
${voffset -81}${alignr 39}${color1}${top_mem mem_res 1}${color}
${voffset 4}${alignr 39}${color1}${top_mem mem_res 2}${color}
${voffset 4}${alignr 39}${color1}${top_mem mem_res 3}${color}
${voffset 4}${alignr 39}${color1}${top_mem mem_res 4}${color}
${voffset 4}${alignr 39}${color1}${top_mem mem_res 5}${color}
${voffset -104}${goto 40}${color1}Proc${color}
${voffset -13}${alignc}${color1}Mem%${color}
${voffset -13}${alignr 39}${color1}Mem${color}
\
# The network section #
\
${if_existing /proc/net/route ppp0}
${voffset -227}${goto 40}${color2}Up: ${color1}${upspeed ppp0}${color2}${goto 150}Down: ${color1}${downspeed ppp0}
${voffset 10}${goto 40}${upspeedgraph ppp0 26,80 948787 948787}${goto 150}${downspeedgraph ppp0 26,80 948787 948787}
${voffset 9}${goto 40}${color2}Sent: ${color1}${totalup ppp0}${color2}${goto 150}Received: ${color1}${totaldown ppp0}
${else}
${if_existing /proc/net/route ppp1}
${voffset -240}${goto 40}${color2}Up: ${color1}${upspeed ppp0}${color2}${goto 150}Down: ${color1}${downspeed ppp0}
${voffset 10}${goto 40}${upspeedgraph ppp0 26,80 948787 948787}${goto 150}${downspeedgraph ppp0 26,80 948787 948787}
${voffset 9}${goto 40}${color2}Sent: ${color1}${totalup ppp0}${color2}${goto 150}Received: ${color1}${totaldown ppp0}
${else}
${if_existing /proc/net/route wlp2s1}
${voffset -253}${goto 40}${color2}Up: ${color1}${upspeed ppp0}${color2}${goto 150}Down: ${color1}${downspeed ppp0}
${voffset 10}${goto 40}${upspeedgraph ppp0 26,80 948787 948787}${goto 150}${downspeedgraph ppp0 26,80 948787 948787}
${voffset 9}${goto 40}${color2}Sent: ${color1}${totalup ppp0}${color2}${goto 150}Received: ${color1}${totaldown ppp0}
${else}
${if_existing /proc/net/route wlp2s0}
${voffset -266}${goto 40}${color2}Up: ${color1}${upspeed ppp0}${color2}${goto 150}Down: ${color1}${downspeed ppp0}
${voffset 10}${goto 40}${upspeedgraph ppp0 26,80 948787 948787}${goto 150}${downspeedgraph ppp0 26,80 948787 948787}
${voffset 9}${goto 40}${color2}Sent: ${color1}${totalup ppp0}${color2}${goto 150}Received: ${color1}${totaldown ppp0}
${else}
${if_existing /proc/net/route wlan0}
${voffset -279}${goto 40}${color2}Up: ${color1}${upspeed ppp0}${color2}${goto 150}Down: ${color1}${downspeed ppp0}
${voffset 8}${goto 40}${upspeedgraph ppp0 26,80 948787 948787}${goto 150}${downspeedgraph ppp0 26,80 948787 948787}
${voffset 9}${goto 40}${color2}Sent: ${color1}${totalup ppp0}${color2}${goto 150}Received: ${color1}${totaldown ppp0}
${else}
${if_existing /proc/net/route wlan1}
${voffset -292}${goto 40}${color2}Up: ${color1}${upspeed ppp0}${color2}${goto 150}Down: ${color1}${downspeed ppp0}
${voffset 10}${goto 40}${upspeedgraph ppp0 26,80 948787 948787}${goto 150}${downspeedgraph ppp0 26,80 948787 948787}
${voffset 9}${goto 40}${color2}Sent: ${color1}${totalup ppp0}${color2}${goto 150}Received: ${color1}${totaldown ppp0}
${else}
${if_existing /proc/net/route eth1}
${voffset -305}${goto 40}${color2}Up: ${color1}${upspeed ppp0}${color2}${goto 150}Down: ${color1}${downspeed ppp0}
${voffset 10}${goto 40}${upspeedgraph ppp0 26,80 948787 948787}${goto 150}${downspeedgraph ppp0 26,80 948787 948787}
${voffset 9}${goto 40}${color2}Sent: ${color1}${totalup ppp0}${color2}${goto 150}Received: ${color1}${totaldown ppp0}
${else}
${if_existing /proc/net/route eth0}
${voffset -318}${goto 40}${color2}Up: ${color1}${upspeed ppp0}${color2}${goto 150}Down: ${color1}${downspeed ppp0}
${voffset 10}${goto 40}${upspeedgraph ppp0 26,80 948787 948787}${goto 150}${downspeedgraph ppp0 26,80 948787 948787}
${voffset 9}${goto 40}${color2}Sent: ${color1}${totalup ppp0}${color2}${goto 150}Received: ${color1}${totaldown ppp0}
${else}
${if_existing /proc/net/route enp4s0}
${voffset -331}${goto 40}${color2}Up: ${color1}${upspeed enp4s0}${color2}${goto 150}Down: ${color1}${downspeed enp4s0}
${voffset 10}${goto 40}${upspeedgraph enp4s0 26,80 948787 948787}${goto 150}${downspeedgraph enp4s0 26,80 948787 948787}
${voffset 9}${goto 40}${color2}Sent: ${color1}${totalup enp4s0}${color2}${goto 150}Received: ${color1}${totaldown enp4s0}
${else}
${if_existing /proc/net/route enp0s1}
${voffset -344}${goto 40}${color2}Up: ${color1}${upspeed ppp0}${color2}${goto 150}Down: ${color1}${downspeed ppp0}
${voffset 10}${goto 40}${upspeedgraph ppp0 26,80 948787 948787}${goto 150}${downspeedgraph ppp0 26,80 948787 948787}
${voffset 9}${goto 40}${color2}Sent: ${color1}${totalup ppp0}${color2}${goto 150}Received: ${color1}${totaldown ppp0}
${else}
${voffset -311}${goto 40}${color1}Network disconnected${color}
${image ~/.harmattan-assets/misc/Brown-Card/God-Mode/offline.png -p 44,284 -s 16x16}
${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}
\
# Various images including the icons of the forecast #
\
${image ~/.harmattan-assets/misc/Brown-Card/God-Mode/pressure.png -p 224,95 -s 16x16}\
${image ~/.harmattan-assets/misc/Brown-Card/God-Mode/humidity.png -p 224,115 -s 16x16}\
${image ~/.harmattan-assets/misc/Brown-Card/God-Mode/wind-2.png -p 224,136 -s 16x16}\
${execi 300 cp -f ~/.harmattan-assets/icons/small-#e5ded0/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1').png ~/.cache/weather-1.png}${image ~/.cache/weather-1.png -p 41,207 -s 32x32}\
${execi 300 cp -f ~/.harmattan-assets/icons/small-#e5ded0/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2').png ~/.cache/weather-2.png}${image ~/.cache/weather-2.png -p 119,207 -s 32x32}\
${execi 300 cp -f ~/.harmattan-assets/icons/small-#e5ded0/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3').png ~/.cache/weather-3.png}${image ~/.cache/weather-3.png -p 195,207 -s 32x32}${font}${voffset -120}\
Title: Re: Conky thread, show your work!
Post by: Egavas on 08. July 2015, 06:46:00
Change

Code: [Select]
own_window_type normal
to

Code: [Select]
own_window_type override

or desktop and see if it helps.

and uncomment
Code: [Select]
#own_window_argb_visual yes
Title: Re: Conky thread, show your work!
Post by: oberon on 08. July 2015, 07:43:50
@oberon
you can replace static text  by dynamic text
Thank you, papajoke, I know. I have something like that in my conky, too.
This here was simply an attempt to help Cyberwolf2k14 translate his existing Conky :) I didn't interfere with the content.
Title: Re: Conky thread, show your work!
Post by: bardo on 08. July 2015, 11:45:34
Change

Code: [Select]
own_window_type normal
to

Code: [Select]
own_window_type override

or desktop and see if it helps.




and uncomment
Code: [Select]
#own_window_argb_visual yes
Both, override or desktop do the same, the Window disappears.
Thanks
Question:

How i uncomment I I delete the code?
Code: [Select]
#own_window_argb_visual yesAnd how i  to put the name of my town in order to appear in this conky ?
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 08. July 2015, 14:07:28
@bardo:
Quote
How i uncomment I I delete the code?
Code: [Select]

#own_window_argb_visual yes

And how i  to put the name of my town in order to appear in this conky ?
Any line that STARTS with a # is commented out. Remove the # to re-activate that line, and add it again to basically turn it off. Keeps from having to re-add and delete lines.
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 08. July 2015, 14:22:06
@bardo:
Also see oberons post here:
https://forum.manjaro.org/index.php?topic=24054.msg208804#msg208804 (https://forum.manjaro.org/index.php?topic=24054.msg208804#msg208804)
I have looked in the conky.conf mentioned and yes the syntax has indeed changed quite a bit for window type.
Please check it out, may prove helpful.
Title: Re: Conky thread, show your work!
Post by: bardo on 08. July 2015, 14:41:47
@bardo:Any line that STARTS with a # is commented out. Remove the # to re-activate that line, and add it again to basically turn it off. Keeps from having to re-add and delete lines.
Ok. removed.
Title: Re: Conky thread, show your work!
Post by: Holmes on 08. July 2015, 16:20:21
hi guys, i'm still having problems with conky and i can not solve, does anyone have any orientation to help? see what appears when i type conky:

Code: [Select]
[holmes@manjaroxfce ~]$ conky
conky: desktop window (1800003) is subwindow of root window (2b7)
conky: window type - desktop
conky: drawing to created window (0x3c00002)
conky: drawing to double buffer
conky: obj->data.i 3 info.cpu_count 2
conky: attempting to use more CPUs than you have!
[holmes@manjaroxfce ~]$

my configuration is:

Code: [Select]
conky.config = {
alignment = 'top_left',
border_inner_margin = 5,
border_width = 1,
cpu_avg_samples = 2,
default_bar_height = 200,
default_color = '666666',
default_outline_color = '828282',
default_shade_color = '000000',
double_buffer = true,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
font = 'Sans:size=9',
gap_x = 15,
gap_y = 130,
maximum_width = 200,
minimum_height = 200,
minimum_width = 200,
net_avg_samples = 2,
no_buffers = true,
override_utf8_locale = true,
own_window = true,
own_window_argb_visual = true,
own_window_colour = '262524',
own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below',
own_window_transparent = true,
own_window_type = 'desktop',
stippled_borders = 0,
total_run_times = 0,
update_interval = 1,
uppercase = false,
use_spacer = 'none',
use_xft = true,
xftalpha = 1,
}
conky.text = [[
${color a7a7a7}${font Coda:size=40}${time %H:%M}${font}${color}
${voffset -44}$alignr${time %a}
$alignr${time %D}
#
${color a7a7a7}Kernel:${color}$alignr$kernel
${color a7a7a7}UpTime:${color}$alignr$uptime 
#
${color a7a7a7}P R O C E S S O R${color}${hr}
#
${color a7a7a7}Cpu1:${color} ${offset 13}${cpu cpu1}%${color}${goto 120}${color a7a7a7}Cpu2:${color} ${offset 13}${cpu cpu2}%${color}
${cpugraph cpu1 20,85 556B2F 9ACD32}${alignr}${cpugraph cpu2 20,85 556B2F 9ACD32}
${color a7a7a7}Cpu3:${color} ${offset 13}${cpu cpu2}%${color}${goto 120}${color a7a7a7}Cpu4:${color} ${offset 13}${cpu cpu3}%${color}
${cpugraph cpu3 20,85 556B2F 9ACD32}${alignr}${cpugraph cpu4 20,85 556B2F 9ACD32}
#
${color a7a7a7}M E M O R Y${color}${hr}
#
${color a7a7a7}Ram:$alignr${color FEA63C}$mem${color}/${color B7CE42}$memmax${color}
${membar}
${color a7a7a7}Swap:$alignr${color FEA63C}$swap${color}/${color B7CE42}$swapfree${color}
${swapbar}
#
${color a7a7a7}HDD${color}${hr}
#
${color a7a7a7}Root:$alignr${color FEA63C}${fs_used /}${color}/${color B7CE42}${fs_free /}${color}
${fs_bar /}
${color a7a7a7}Home:$alignr${color FEA63C}${fs_used /home}${color}/${color B7CE42}${fs_free /home}${color}
${fs_bar /home}
#
${color a7a7a7}NETWORK${color}${hr}
#
${color a7a7a7}Up: ${color}${upspeed eth0}${goto 120}${color a7a7a7}Down: ${color}${downspeed eth0}
${color a7a7a7}Total: ${color}${totalup eth0}${goto 120}${color a7a7a7}Total: ${color}${totaldown eth0}
${upspeedgraph eth0 20,85 556B2F 9ACD32}$alignr${downspeedgraph eth0 20,85 556B2F 9ACD32}
]]

vlw fwi, Holmes :)
Title: Re: Conky thread, show your work!
Post by: Egavas on 08. July 2015, 16:43:00
@Holmes

Do you use dual core cpu or quad core one? You have listed cpu2 twice, and cpu4 in cpu3.

${color a7a7a7}Cpu1:${color} ${offset 13}${cpu cpu1}%${color}${goto 120}${color a7a7a7}Cpu2:${color} ${offset 13}${cpu cpu2}%${color}
${cpugraph cpu1 20,85 556B2F 9ACD32}${alignr}${cpugraph cpu2 20,85 556B2F 9ACD32}
${color a7a7a7}Cpu3:${color} ${offset 13}${cpu cpu2}%${color}${goto 120}${color a7a7a7}Cpu4:${color} ${offset 13}${cpu cpu3}%${color}


it should look like:

Code: [Select]
${color a7a7a7}Cpu1:${color} ${offset 13}${cpu cpu1}%${color}${goto 120}${color a7a7a7}Cpu2:${color} ${offset 13}${cpu cpu2}%${color}
${cpugraph cpu1 20,85 556B2F 9ACD32}${alignr}${cpugraph cpu2 20,85 556B2F 9ACD32}
${color a7a7a7}Cpu3:${color} ${offset 13}${cpu cpu3}%${color}${goto 120}${color a7a7a7}Cpu4:${color} ${offset 13}${cpu cpu4}%${color}
${cpugraph cpu3 20,85 556B2F 9ACD32}${alignr}${cpugraph cpu4 20,85 556B2F 9ACD32}
Title: Re: Conky thread, show your work!
Post by: papajoke on 08. July 2015, 17:01:47
@Egavas
yes error is the number of cpu
Code: [Select]
cpu1 ${cpu cpu1}% and  Freq is ${freq 1}Mgh
cpu2 ${cpu cpu2}% and  Freq is ${freq 2}Mgh \
${if_match "${exec grep -c ^processor /proc/cpuinfo}">"2"}
cpu3 ${cpu cpu3}% and  Freq is ${freq 3}Mgh
cpu4 ${cpu cpu4}% and  Freq is ${freq 4}Mgh ${$endif} \ ${$endif} \
${if_match "${exec grep -c ^processor /proc/cpuinfo}">"4"}
cpu4 ${cpu cpu5}% and  Freq is ${freq 5}Mgh
cpu4 ${cpu cpu6}% and  Freq is ${freq 6}Mgh ${$endif} \

Title: Re: Conky thread, show your work!
Post by: bardo on 08. July 2015, 18:17:05
(http://i.imgur.com/KFc9s60.png)

hello

I do not know anything about scripts, but I already put the name of the city, just like to change the font color, but whatever is reasonable. Thanks for the support.
Title: Re: Conky thread, show your work!
Post by: Holmes on 08. July 2015, 19:08:48
@Holmes

Do you use dual core cpu or quad core one? You have listed cpu2 twice, and cpu4 in cpu3.

${color a7a7a7}Cpu1:${color} ${offset 13}${cpu cpu1}%${color}${goto 120}${color a7a7a7}Cpu2:${color} ${offset 13}${cpu cpu2}%${color}
${cpugraph cpu1 20,85 556B2F 9ACD32}${alignr}${cpugraph cpu2 20,85 556B2F 9ACD32}
${color a7a7a7}Cpu3:${color} ${offset 13}${cpu cpu2}%${color}${goto 120}${color a7a7a7}Cpu4:${color} ${offset 13}${cpu cpu3}%${color}


it should look like:

Code: [Select]
${color a7a7a7}Cpu1:${color} ${offset 13}${cpu cpu1}%${color}${goto 120}${color a7a7a7}Cpu2:${color} ${offset 13}${cpu cpu2}%${color}
${cpugraph cpu1 20,85 556B2F 9ACD32}${alignr}${cpugraph cpu2 20,85 556B2F 9ACD32}
${color a7a7a7}Cpu3:${color} ${offset 13}${cpu cpu3}%${color}${goto 120}${color a7a7a7}Cpu4:${color} ${offset 13}${cpu cpu4}%${color}
${cpugraph cpu3 20,85 556B2F 9ACD32}${alignr}${cpugraph cpu4 20,85 556B2F 9ACD32}

hi @Egavas,

conky this part of cathexis theme and the official setting of the processor is:

Code: [Select]
P R O C E S S O R
${hr}
${color a7a7a7}Cpu1:${color}${offset 30}${cpu cpu1}%${color}
${cpugraph cpu1 20,85 556B2F 9ACD32}
${voffset -54}${offset 112}${color a7a7a7}Cpu2:${color}${offset 30}${cpu cpu2}% ${color}
$alignr${cpugraph cpu2 20,85 556B2F 9ACD32}
${color a7a7a7}Cpu3:${color}${offset 30}${cpu cpu2}%${color}
${cpugraph cpu2 20,85 556B2F 9ACD32}
${voffset -54}${offset 112}${color a7a7a7}Cpu4:${color}${offset 30}${cpu cpu3}%${color}
$alignr${cpugraph cpu3 20,85 556B2F 9ACD32}${color}

we can see that is also duplicated. It used to work with version 1.9, but 1.10 is having problems.

vlw fwi, Holmes :)
Title: Re: Conky thread, show your work!
Post by: Egavas on 08. July 2015, 19:23:46
I don't know then what is the problem, everything else looks fine.  :-\
Title: Re: Conky thread, show your work!
Post by: Holmes on 08. July 2015, 19:38:15
the setting is problematic, maybe remove the Manjaro Openbox Edition...

vlw fwi, Holmes :)
Title: Re: Conky thread, show your work!
Post by: Holmes on 08. July 2015, 21:47:19
hi guys, i will replace the conky Manjaro Openbox Edition and found one that worked. this conky it was the Manjaro Pekwm Edition...

Code: [Select]
conky.config = {
alignment = 'bottom_right',
background = true,
border_margin = 5,
border_width = 5,
default_color = 'E9EAEB',
double_buffer = true,
draw_borders = false,
draw_outline = false,
draw_shades = false,
gap_x = 20,
gap_y = 400,
maximum_width = 240,
minimum_width = 175,
no_buffers = true,
override_utf8_locale = true,
own_window = yes,
own_window_title = 'conky',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_transparent = yes,
own_window_type = 'desktop',
text_buffer_size = '8000',
total_run_times = 0,
update_interval = 1,
uppercase = false,
use_xft = true,
xftalpha = 1,
}
conky.text = [[
${font Cantarell:pixelsize=45}${alignc}${time %H:%M}${font}
#
${font Cantarell:pixelsize=13}${alignc}${time  %d %B, %Y}
${alignc}${time %A}${font}

${font Cantarell:pixelsize=13}${alignc}Host: $nodename
${font Cantarell:pixelsize=13}${alignc}Uptime: $uptime

${font Cantarell:pixelsize=13}${alignc}Kernel: ${kernel}
${font Cantarell:pixelsize=13}${alignc}${exec cat /etc/lsb-release|grep DESCRIPTION|sed s/DISTRIB_DESCRIPTION=//|sed 's/"//'|sed 's/"//'} ${exec cat /etc/lsb-release|grep RELEASE|sed s/DISTRIB_RELEASE=//} ${exec cat /etc/lsb-release|grep CODENAME|sed s/DISTRIB_CODENAME=//}
${font Cantarell:pixelsize=13}${alignc}Architecture: ${machine}
${font Cantarell:pixelsize=13}${alignc}HD: ${fs_used /} - ${fs_size /}
${font Cantarell:pixelsize=13}${alignc}RAM: $mem - $memmax
${font Cantarell:pixelsize=13}${alignc}Top RAM: ${top_mem mem_res 1} ${top_mem name 1}
${font Cantarell:pixelsize=13}${alignc}Swap: $swap - $swapmax
${font Cantarell:pixelsize=13}${alignc}Process: ${processes} - Running: ${running_processes}
${font Cantarell:pixelsize=13}${alignc}CPU: ${cpu cpu0}%
]]

the problem is that the TOP RAM is not centered, see

(http://www.auplod.com/u/opalud5b0fe.png)

anyone have any idea how to center (already using the alignc)?

vlw fwi, Holmes :)
Title: Re: Conky thread, show your work!
Post by: bardo on 08. July 2015, 23:24:06
My Conky from Harmmattan:

(http://i.imgur.com/Z2EQCai.png)
Title: Re: Conky thread, show your work!
Post by: papajoke on 08. July 2015, 23:41:40
@Holmes

too many error for show a result !
own_window = yes,text_buffer_size = '8000' : true and no quote for 8000

for "top ram", is centered for me but for me minimum_width is too small
Code: [Select]
minimum_width = 245,
also :

${exec cat /etc/lsb-release|grep DESCRIPTION|sed s/DISTRIB_DESCRIPTION=//|sed 's/"//'|sed 's/"//'}
4 thread is big ! you can reduce to only 2
Code: [Select]
awk -F'=' '/DESCRIPTION/ {print $2}' /etc/lsb-release |sed 's/"//g'
${exec cat /etc/lsb-release|grep RELEASE|sed s/DISTRIB_RELEASE=//}
${exec cat /etc/lsb-release|grep CODENAME|sed s/DISTRIB_CODENAME=//}
3 to one :
Code: [Select]
awk -F'=' '/RELEASE/ {print $2}' /etc/lsb-release
Title: Re: Conky thread, show your work!
Post by: Holmes on 09. July 2015, 05:58:15
@Holmes

too many error for show a result !
own_window = yes,text_buffer_size = '8000' : true and no quote for 8000

for "top ram", is centered for me but for me minimum_width is too small
Code: [Select]
minimum_width = 245,
also :

${exec cat /etc/lsb-release|grep DESCRIPTION|sed s/DISTRIB_DESCRIPTION=//|sed 's/"//'|sed 's/"//'}
4 thread is big ! you can reduce to only 2
Code: [Select]
awk -F'=' '/DESCRIPTION/ {print $2}' /etc/lsb-release |sed 's/"//g'
${exec cat /etc/lsb-release|grep RELEASE|sed s/DISTRIB_RELEASE=//}
${exec cat /etc/lsb-release|grep CODENAME|sed s/DISTRIB_CODENAME=//}
3 to one :
Code: [Select]
awk -F'=' '/RELEASE/ {print $2}' /etc/lsb-release

hi @papajoke, i do not understand it: ...true and no quote for 8000. centralization only works with {alignc -16}.

Code: [Select]
${font Coda:pixelsize=13}${alignc -16}Top RAM: ${color FEA63C}${top_mem mem_res 1}${color} ${color B7CE42}${top_mem name 1}${color}
vlw fwi, Holmes :)
Title: Re: Conky thread, show your work!
Post by: papajoke on 09. July 2015, 14:55:56
hi Holmes

work well for me with :
Code: [Select]
conky.config = {
alignment = 'bottom_right',
background = true,
--border_margin = 5,
--border_width = 5,
border_inner_margin= 5,
default_color = 'E9EAEB',
double_buffer = true,
draw_borders = false,
draw_outline = false,
draw_shades = false,
gap_x = 20,
gap_y = 400,
maximum_width = 300,
minimum_width = 245,
no_buffers = true,
override_utf8_locale = true,
own_window = true,
own_window_title = 'conky',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_transparent = true,
own_window_type = 'desktop',
text_buffer_size = 8000,
total_run_times = 0,
update_interval = 1,
uppercase = false,
use_xft = true,
xftalpha = 1
}

conky.text = [[
${font Cantarell:pixelsize=45}${alignc}${time %H:%M}${font}
#
${font Cantarell:pixelsize=13}${alignc}${time  %d %B, %Y}
${alignc}${time %A}${font}

${font Cantarell:pixelsize=13}${alignc}Host: $nodename
${font Cantarell:pixelsize=13}${alignc}Uptime: $uptime

${font Cantarell:pixelsize=13}${alignc}Kernel: ${kernel}
${font Cantarell:pixelsize=13}${alignc}${exec cat /etc/lsb-release|grep DESCRIPTION|sed s/DISTRIB_DESCRIPTION=//|sed 's/"//'|sed 's/"//'} ${exec cat /etc/lsb-release|grep RELEASE|sed s/DISTRIB_RELEASE=//} ${exec cat /etc/lsb-release|grep CODENAME|sed s/DISTRIB_CODENAME=//}
${font Cantarell:pixelsize=13}${alignc}Architecture: ${machine}
${font Cantarell:pixelsize=13}${alignc}HD: ${fs_used /} - ${fs_size /}
${font Cantarell:pixelsize=13}${alignc}RAM: $mem - $memmax
${font Cantarell:pixelsize=13}${alignc}Top RAM: ${top_mem mem_res 1} ${top_mem name 1}
${font Cantarell:pixelsize=13}${alignc}Swap: $swap - $swapmax
${font Cantarell:pixelsize=13}${alignc}Process: ${processes} - Running: ${running_processes}
${font Cantarell:pixelsize=13}${alignc}CPU: ${cpu cpu0}%
]]
add border_inner_margin, del border_margin and border_width
modify :  text_buffer_size = '8000' to text_buffer_size = 8000,
mofify  own_window = yes :( by own_window = true,
and extend minimum_width for dont view an elastic box at each top process change

alignment = 'bottom_right', gap_y = 400  >:D
why not alignment = 'top_right' ? gap-y=40 ?

-------------------
function "top_mem" ?
if i load my browser web from console its not recognized by this function :( if i load from menu is ok ...

(https://lut.im/XXzJfggM/dvGJRmV1)
ps: {alignc -16} not good : top process change
Title: Re: Conky thread, show your work!
Post by: Holmes on 09. July 2015, 16:17:29
hi @papajoke, used his code, but top ram is not centered, see

(http://www.auplod.com/u/ludpao5b21a.png)

weird...

the problem is with top_mem?

vlw fwi, Holmes :)
Title: Re: Conky thread, show your work!
Post by: Holmes on 09. July 2015, 16:51:23
i realized that occurs only with firefox, see other process...

(http://www.auplod.com/u/aopldu5b242.png)

is centered!

problem only with firefox process...

vlw fwi, Holmes :)
Title: Re: Conky thread, show your work!
Post by: tsaber on 12. July 2015, 22:23:31
here's mine :)

Code: [Select]
background yes
border_width 1
cpu_avg_samples 2
default_bar_size 10 50
default_color white
default_outline_color white
default_shade_color red
double_buffer yes
own_window yes
own_window_class Conky
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
use_xft yes
xftfont Ubuntu Mono:size=13
xftalpha 1
alignment top_middle
gap_x 30
gap_y 10
minimum_size 400 0
net_avg_samples 1
no_buffers no
override_utf8_locale yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_argb_visual yes
pad_percents 0
text_buffer_size 256
total_run_times 0
stippled_borders 0
update_interval 0.5
uppercase no
use_spacer yes
TEXT
${color #297050}
${alignc}${exec ~/.conkyc/countdown.py} days til
${alignc}${exec ~/.conkyc/countup.py} days since
${alignc}it is fucking ${time %A}

${alignc}k: ${kernel}
${alignc}u: ${execpi 12000 checkupdates | wc -l}
${alignc}r: $mem - $memmax
${alignc}l: ${fs_used /home} / ${fs_size /home}
${alignc}s: ${fs_used /mnt/sambat} / ${fs_size /mnt/sambat}

${alignc}m:
${alignc}${execi 10 deadbeef --nowplaying '%a'}
${alignc}${execi 10 deadbeef --nowplaying '%t'}



(http://i.imgur.com/varZPWI.png) (http://i.imgur.com/As3JeUQ.jpg)


click picture for full desktop
Title: Re: Conky thread, show your work!
Post by: oberon on 12. July 2015, 23:02:15
super cool!  8)
Title: Re: Conky thread, show your work!
Post by: CyberWolf2k14 on 18. July 2015, 00:55:44
Thanks to some inspiration from Ivanwah, here is my VERY seriously modified conky code:

Code: [Select]
conky.config = {
background = true,
own_window = true,
own_window_transparent = true,
own_window_type = 'normal',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
alignment = 'top_right',
gap_x = 5,
gap_y = 5,
use_spacer = 'none',
update_interval = 1,
net_avg_samples = 2,
total_run_times = 0,