Page 2206 of 2314 FirstFirst ... 1206170621062156219622042205220622072208221622562306 ... LastLast
Results 22,051 to 22,060 of 23132

Thread: Post your .conkyrc files w/ screenshots

  1. #22051
    Join Date
    Jun 2013
    Beans
    20

    Re: Post your .conkyrc files w/ screenshots

    Here's my conky.conf (In german):
    update_interval 1total_run_times 0
    net_avg_samples 1
    cpu_avg_samples 2
    imlib_cache_size 0
    double_buffer yes
    no_buffers yes
    format_human_readable
    use_xft yes
    xftfont Droid Sans:size=8
    override_utf8_locale yes
    text_buffer_size 2048
    own_window_class Conky
    own_window yes
    own_window_type normal
    own_window_argb_visual yes
    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
    use_xft yes
    xftfont Droid Sans:size=8
    override_utf8_locale yes
    text_buffer_size 2048
    own_window_class Conky
    own_window yes
    own_window_type normal
    own_window_argb_visual yes
    own_window_argb_value 0
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    alignment top_right
    gap_y 25
    gap_x 25
    border_inner_margin 8
    minimum_size 180 600
    maximum_width 230
    maximum_height 700
    default_bar_size 92 6
    draw_shades yes
    default_shade_color 000000
    default_color FFFFFF
    TEXT
    # |--${font Droid Sans:style=Bold:size=10}ZEIT${font}
    ${font arial black:size=10}${color green}ZEIT / ${color}${font arial black:size=9}DATUM${color green} ${hr 2}$color$font
    ${font :size=25}$alignc${time %l:%M %p}$font
    $alignc${time %A, %B %d, %Y}


    # |--${font Droid Sans:style=Bold:size=10}UPTIME${font}
    ${font arial black:size=10}${color green}EIN-ZEIT ${color}${font arial black:size=9}DES COMPUTERS${color green} ${hr 2}$color$font


    ${goto 100}${uptime}


    # |--${font Droid Sans:style=Bold:size=10}SYSTEM${font}
    ${font arial black:size=10}${color green}SYSTEM${color}${font arial black:size=9}INFOS${color green} ${hr 2}$color$font
    ${color white}Prozessor:${alignr}AMD-FX 6300 Six-Core
    Max. Frequenz:${alignr}4000MHz
    Max. Turbo-Frequenz:${alignr}4300MHz
    Max. Nutzbarer Ram:${alignr}$memmax
    Max. Nutzbarer Speicher:${alignr}${fs_size /home}
    Kernel:${alignr}$kernel on $machine
    Distibution:${alignr}${pre_exec cat /etc/issue | grep Ubuntu | cut -c1-13} $machine
    # |--${font Droid Sans:style=Bold:size=10}CPU${font}
    ${font arial black:size=10}${color green}CPU${color}${font arial black:size=9}AUSLASTUNG${color green} ${hr 2}$color$font
    ${voffset 1}Kern ${color green}${font arial black:size=8}1$font: ${font Droid Sans:style=Bold:size=8}$color${cpu cpu1}%${goto 135}${color ffffff}${voffset 1}Kern ${color green}${font arial black:size=8}2$color$font: ${font Droid Sans:style=Bold:size=8}${cpu cpu2}%
    ${color forestgreen}${cpugraph cpu1 24,105 00ff00 00FFCC -l}${alignr}${color forestgreen}${cpugraph cpu2 24,105 00FFCC 00ff00 -l}
    ${voffset 1}${color white}Kern $color${color green}${font arial black:size=8}3$color$font: ${font Droid Sans:style=Bold:size=8}${cpu cpu3}%${font}${voffset 1}${goto 135}Kern ${color green}${font arial black:size=8}4$color$font: ${font Droid Sans:style=Bold:size=8}${cpu cpu4}%
    ${color forestgreen}${cpugraph cpu3 24,105 00ff00 003EFF -l}${alignr}${color forestgreen}${cpugraph cpu4 24,105 003EFF 00ff00 -l}
    ${voffset 1}${color white}Kern $color${color green}${font arial black:size=8}5$color$font: ${font Droid Sans:style=Bold:size=8}${cpu cpu5}%${font}${voffset 1}${goto 135}Kern ${color green}${font arial black:size=8}6$color$font: ${font Droid Sans:style=Bold:size=8}${cpu cpu6}%
    ${color forestgreen}${cpugraph cpu5 24,105 00ff00 CC00FF -l}${alignr}${color forestgreen}${cpugraph cpu6 24,105 CC00FF 00FF00 -l}
    ${goto 83}${color ffffff}${voffset 1}Gesamte ${color green}${font arial black:size=8}CPU$color$font: ${font Droid Sans:style=Bold:size=8}${cpu}%${font}${goto 160}
    ${color forestgreen}${cpugraph 24,230 00FFCC 00ff00 -l}
    # |--${font Droid Sans:style=Bold:size=10}RAM${font}
    ${font arial black:size=10}${color green}RAM${color}${font arial black:size=9}AUSLASTUNG${color green} ${hr 2}$color$font
    ${voffset 6}${offset 1}${voffset -8}${voffset 4}${voffset -2}${color green}${font arial black:size=7}FREI$color$font: ${font Droid Sans:style=Bold:size=8}${memeasyfree}${font}${goto 140}${color green}${font arial black:size=7}BENUTZT$color$font: ${font Droid Sans:style=Bold:size=8}${mem}${font}
    $memperc% ${color 003EFF}${alignr}${membar 10,200}


    # |--${font Droid Sans:style=Bold:size=10}SPEICHER${font}
    ${font arial black:size=10}${color green}SPEICHER${color}${font arial black:size=9}AUSLASTUNG${color green} ${hr 2}$color$font
    ${voffset 2}${font arial black:size=10}${color2}${voffset -2}${font}${color6} ${color green}${font arial black:size=7}HOME$color$font ${goto 140}${fs_used /home} / ${fs_size /home}
    ${fs_used_perc /home}%${color CC00FF}${alignr}${fs_bar 12,200 /home}


    # |--${font Droid Sans:style=Bold:size=10}Prozesse${font}
    ${font arial black:size=10}${color green}PROZESS${color}${font arial black:size=9}LISTE${color green} ${hr 2}$color$font
    ${color white}Prozesse:$color $processes ${goto 177}${color white}Laufende:${color red} $running_processes $color
    ${goto 60}${color green}${font arial black:size=7}CPU-LASTIGSTE PROZESSE:$font$color
    ${font arial black:size=7}NAME${goto 100}PID${goto 150}CPU%${alignr}%MEM $font
    ${color red}${lua_parse top cpu 1}${color green}${font arial black:size=7}1$color$font. ${color red}${top name 1}${alignr 80}${top pid 1}$color${alignr 35}${color red}${font arial black:size=7}${top cpu 1}$color$font${alignr}${color red}${top mem 1}$color
    ${lua_parse top cpu 2}${color green}${font arial black:size=7}2$color$font. ${top name 2}${alignr 80}${top pid 2}${alignr 35}${color green}${font arial black:size=7}${top cpu 2}$color$font${alignr}${top mem 2}
    ${lua_parse top cpu 3}${color green}${font arial black:size=7}3$color$font. ${top name 3}${alignr 80}${top pid 3}${alignr 35}${color green}${font arial black:size=7}${top cpu 3}$color$font${alignr}${top mem 3}
    ${lua_parse top cpu 4}${color green}${font arial black:size=7}4$color$font. ${top name 4}${alignr 80}${top pid 4}${alignr 35}${color green}${font arial black:size=7}${top cpu 4}$color$font${alignr}${top mem 4}
    ${lua_parse top cpu 5}${color green}${font arial black:size=7}5$color$font. ${top name 5}${alignr 80}${top pid 5}${alignr 35}${color green}${font arial black:size=7}${top cpu 5}$color$font${alignr}${top mem 5}
    ${goto 60}${color green}${font arial black:size=7}RAM-LASTIGSTE PROZESSE:$font$color
    ${font arial black:size=7}NAME${goto 100}PID${goto 150}CPU%${alignr}%MEM $font
    ${color red}${lua_parse top mem 1}${color green}${font arial black:size=7}1$color$font. ${color red}${top_mem name 1}${alignr 80}${top_mem pid 1}${alignr 35}${top_mem cpu 1}$color${alignr}${color red}${font arial black:size=7}${top_mem mem 1}$color$font
    ${lua_parse top mem 2}${color green}${font arial black:size=7}2$color$font. ${top_mem name 2}${alignr 80}${top_mem pid 2}${alignr 35}${top_mem cpu 2}$color${alignr}${color green}${font arial black:size=7}${top_mem mem 2}
    ${lua_parse top mem 3}${color green}${font arial black:size=7}3$color$font. ${top_mem name 3}${alignr 80}${top_mem pid 3}${alignr 35}${top_mem cpu 3}${alignr}${color green}${font arial black:size=7}${top_mem mem 3}$color$font
    ${lua_parse top mem 4}${color green}${font arial black:size=7}4$color$font. ${top_mem name 4}${alignr 80}${top_mem pid 4}${alignr 35}${top_mem cpu 4}${alignr}${color green}${font arial black:size=7}${top_mem mem 4}$color$font
    ${lua_parse top mem 5}${color green}${font arial black:size=7}5$color$font. ${top_mem name 5}${alignr 80}${top_mem pid 5}${alignr 35}${top_mem cpu 5}${alignr}${color green}${font arial black:size=7}${top_mem mem 5}$color$font


    # |--${font Droid Sans:style=Bold:size=10}NETZWERK${font}
    ${font arial black:size=10}${color green}NETZWERK${color}${font arial black:size=9}AUSLASTUNG${color green} ${hr 2}$color$font


    ${font arial black:size=7}${color green}DOWNLOAD: $font$color${downspeed eth0} k/s ${alignr}
    ${color forestgreen}${downspeedgraph eth0 27,135 00ff00 CC00FF -l} ${color ffffff}${voffset 1}${goto 150}Gesamt: ${font Droid Sans:style=Bold:size=8}${totaldown eth0}${font} ${color #42AE4A}
    ${color ffffff}${font arial black:size=7}${color green}UPLOAD: $font$color${upspeed eth0} k/s ${alignr}$color
    ${color forestgreen}${upspeedgraph eth0 27,135 00ff00 003EFF -l} ${color ffffff}${voffset 1}${goto 150}Gesamt: ${font Droid Sans:style=Bold:size=8}${totalup eth0}${font}${color #42AE4A}
    ${font arial black:size=4}${color green}KONFIGURATIONSDATEI--$color${color white}FÜR--CONKY--IST--ZU--FINDEN--IN--$color${color green}/ETC/CONKY/CONKY:CONF$font$color
    Here's a screenshot of my conky:
    Attached Images Attached Images
    Last edited by LinuxWillWin; June 6th, 2013 at 01:19 PM.

  2. #22052
    Join Date
    Dec 2009
    Beans
    263

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by bartos View Post
    Found on Deviantart by SeaJey



    Code:
    #==============================================================================
    #                               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 1300
    gap_y 20
    minimum_size 300 900
    maximum_width 350
    own_window yes
    own_window_type desktop
    own_window_transparent yes
    own_window_argb_visual yes
    own_window_argb_value 0
    own_window_class conky
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
    border_inner_margin 0
    border_outer_margin 0
    alignment tr
    
    
    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 ~/.conky/seamod_rings.lua
    lua_draw_hook_post main
    
    ## System information using conky capabilities
    
    # Header with base system info
    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          ${time %B} ${time %d}, ${time %Y} ${alignr}${time %I:%M} 
    ${offset 15}${font Ubuntu:size=10,weight:normal}${color1}Uptime: $uptime
    ${offset 140}CPU 1 - ${alignc}${cpu cpu1}%${alignr}${freq_g 1} GHz
    ${offset 140}CPU 2 - ${alignc}${cpu cpu2}%${alignr}${freq_g 2} GHz
    ${offset 140}CPU 3 - ${alignc}${cpu cpu3}%${alignr}${freq_g 3} GHz
    ${offset 140}CPU 4 - ${alignc}${cpu cpu4}%${alignr}${freq_g 4} GHz
    # Showing CPU Graph
    ${voffset -36}
    ${offset 120}${cpugraph 30,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    $mem of $memmax$alignr$memperc%
    ${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 42}
    ${offset 90}${font Ubuntu:size=10,weight:bold}${color5}DISKS
    ${offset 120}${diskiograph 33,183 666666 666666}${voffset -30}
    ${voffset 20}
    ${offset 115}${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 115}${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 115}${font Ubuntu:size=9,weight:bold}${color1}Free: ${font Ubuntu:size=9,weight:normal}${fs_free /var}${alignr}${font Ubuntu:size=9,weight:bold}Used: ${font Ubuntu:size=9,weight:normal}${fs_used /var}
    
    # Network data (my desktop have only LAN). ETHERNET ring is mostly useless but looks pretty, main info is in the graphs
    ${voffset 46}
    ${offset 90}${font Ubuntu:size=10,weight:bold}${color5}ETHERNET
    ${offset 140}${color1}${font Ubuntu:size=10}LAN-  ${addr eth0}  
    ${offset 140}${color1}WAN-  ${pre_exec wget -O - http://ip.tupeux.com | tail} $font
    ${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 30,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 30,285 324D23 77B753 100 -l}
    ${color4}${hr 2}
    ${alignc}${exec ~/.conky/./mail.sh} Gmails Waiting
    ${alignc}${font Ubuntu:size=10}CPU temp ${execi 1 cat /sys/module/k10temp/drivers/pci:k10temp/0000:00:18.3/temp1_input|cut -c  1,2} °C 
    ${alignc}${font Ubuntu:size=10}Mobo Temp:${exec sensors | grep 'temp2' | cut -c15-20}°C 
    ${alignc}NVidia Temp: ${execi 60 nvidia-settings -query GPUCoreTemp | perl -ne 'print $1 if /GPUCoreTemp.*?: (\d+)./;'} °C
    and lua
    Code:
    -==============================================================================
    --                            seamod_rings.lua
    --
    --  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 lunatico_rings.lua wich is modification of conky_orange.lua 
    --
    --  conky_orange.lua:    http://gnome-look.org/content/show.php?content=137503&forumpage=0
    --  lunatico_rings.lua:  http://gnome-look.org/content/show.php?content=142884
    --==============================================================================
    
    require 'cairo'
    
    
    --------------------------------------------------------------------------------
    --                                                                    gauge DATA
    gauge = {
    {
        name='cpu',                    arg='cpu0',                  max_value=100,
        x=70,                          y=130,
        graph_radius=52,
        graph_thickness=8,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
        hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
        txt_radius=64,
        txt_weight=0,                  txt_size=0,
        txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
        graduation_radius=28,
        graduation_thickness=0,        graduation_mark_thickness=1,
        graduation_unit_angle=27,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=1,              caption_size=9.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
    },
    {
        name='cpu',                    arg='cpu1',                  max_value=100,
        x=70,                          y=130, 
        graph_radius=40,
        graph_thickness=8,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
        hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
        txt_radius=40,
        txt_weight=0,                  txt_size=0,
        txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
        graduation_radius=28,
        graduation_thickness=0,        graduation_mark_thickness=1,
        graduation_unit_angle=27,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=1,              caption_size=9.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
    },
    {
        name='cpu',                    arg='cpu2',                  max_value=100,
        x=70,                          y=130,
        graph_radius=28,
        graph_thickness=8,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
        hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
        txt_radius=30,
        txt_weight=0,                  txt_size=0,
        txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
        graduation_radius=28,
        graduation_thickness=0,        graduation_mark_thickness=1,
        graduation_unit_angle=27,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=1,              caption_size=9.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
    },
    {
        name='cpu',                    arg='cpu3',                  max_value=100,
        x=70,                          y=130,
        graph_radius=16,
        graph_thickness=8,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
        hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
        txt_radius=4,
        txt_weight=0,                  txt_size=0,
        txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
        graduation_radius=28,
        graduation_thickness=0,        graduation_mark_thickness=1,
        graduation_unit_angle=27,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=1,              caption_size=9.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
    },
    {
        name='memperc',                arg='',                      max_value=100,
        x=70,                          y=300,
        graph_radius=44,
        graph_thickness=20,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
        hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
        txt_radius=42,
        txt_weight=0,                  txt_size=9.0,
        txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
        graduation_radius=23,
        graduation_thickness=0,        graduation_mark_thickness=2,
        graduation_unit_angle=27,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.5,
        caption='',
        caption_weight=1,              caption_size=10.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
    },
    {
        name='fs_used_perc',           arg='/var',                     max_value=100,
        x=70,                          y=470,
        graph_radius=50,
        graph_thickness=8,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
        hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
        txt_radius=64,
        txt_weight=0,                  txt_size=0,
        txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
        graduation_radius=23,
        graduation_thickness=0,        graduation_mark_thickness=2,
        graduation_unit_angle=27,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
        caption='Var',
        caption_weight=1,              caption_size=12.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
    },
    {
        name='fs_used_perc',           arg='/home/',                     max_value=100,
        x=70,                          y=470,
        graph_radius=38,
        graph_thickness=8,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
        hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
        txt_radius=32,
        txt_weight=0,                  txt_size=0,
        txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
        graduation_radius=23,
        graduation_thickness=0,        graduation_mark_thickness=2,
        graduation_unit_angle=27,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
        caption='Home',
        caption_weight=1,              caption_size=12.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
    },
    {
        name='fs_used_perc',           arg='/',                     max_value=100,
        x=70,                          y=470,
        graph_radius=26,
        graph_thickness=8,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
        hand_fg_colour=0xEF5A29,       hand_fg_alpha=1.0,
        txt_radius=22,
        txt_weight=0,                  txt_size=0,
        txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
        graduation_radius=23,
        graduation_thickness=0,        graduation_mark_thickness=2,
        graduation_unit_angle=27,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
        caption='Root',
        caption_weight=1,              caption_size=12.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
    },
    {
        name='downspeedf',           arg='eth0',                     max_value=100,
        x=70,                          y=660,
        graph_radius=54,
        graph_thickness=10,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
        hand_fg_colour=0xEF5A29,       hand_fg_alpha=0,
        txt_radius=64,
        txt_weight=0,                  txt_size=0,
        txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
        graduation_radius=28,
        graduation_thickness=0,        graduation_mark_thickness=1,
        graduation_unit_angle=27,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
        caption='Down',
        caption_weight=1,              caption_size=12.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
    },
    {
        name='upspeedf',           arg='eth0',                     max_value=100,
        x=70,                          y=660,
        graph_radius=40,
        graph_thickness=10,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xFFFFFF,      graph_fg_alpha=0.3,
        hand_fg_colour=0xEF5A29,       hand_fg_alpha=0,
        txt_radius=30,
        txt_weight=0,                  txt_size=0,
        txt_fg_colour=0xEF5A29,        txt_fg_alpha=1.0,
        graduation_radius=28,
        graduation_thickness=0,        graduation_mark_thickness=1,
        graduation_unit_angle=27,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
        caption='Up',
        caption_weight=1,              caption_size=12.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
    },
    }
    
    -------------------------------------------------------------------------------
    --                                                                 rgb_to_r_g_b
    -- converts color in hexa to decimal
    --
    function rgb_to_r_g_b(colour, alpha)
        return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
    end
    
    -------------------------------------------------------------------------------
    --                                                            angle_to_position
    -- convert degree to rad and rotate (0 degree is top/north)
    --
    function angle_to_position(start_angle, current_angle)
        local pos = current_angle + start_angle
        return ( ( pos * (2 * math.pi / 360) ) - (math.pi / 2) )
    end
    
    
    -------------------------------------------------------------------------------
    --                                                              draw_gauge_ring
    -- displays gauges
    --
    function draw_gauge_ring(display, data, value)
        local max_value = data['max_value']
        local x, y = data['x'], data['y']
        local graph_radius = data['graph_radius']
        local graph_thickness, graph_unit_thickness = data['graph_thickness'], data['graph_unit_thickness']
        local graph_start_angle = data['graph_start_angle']
        local graph_unit_angle = data['graph_unit_angle']
        local graph_bg_colour, graph_bg_alpha = data['graph_bg_colour'], data['graph_bg_alpha']
        local graph_fg_colour, graph_fg_alpha = data['graph_fg_colour'], data['graph_fg_alpha']
        local hand_fg_colour, hand_fg_alpha = data['hand_fg_colour'], data['hand_fg_alpha']
        local graph_end_angle = (max_value * graph_unit_angle) % 360
    
        -- background ring
        cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, 0), angle_to_position(graph_start_angle, graph_end_angle))
        cairo_set_source_rgba(display, rgb_to_r_g_b(graph_bg_colour, graph_bg_alpha))
        cairo_set_line_width(display, graph_thickness)
        cairo_stroke(display)
    
        -- arc of value
        local val = value % (max_value + 1)
        local start_arc = 0
        local stop_arc = 0
        local i = 1
        while i <= val do
            start_arc = (graph_unit_angle * i) - graph_unit_thickness
            stop_arc = (graph_unit_angle * i)
            cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
            cairo_set_source_rgba(display, rgb_to_r_g_b(graph_fg_colour, graph_fg_alpha))
            cairo_stroke(display)
            i = i + 1
        end
        local angle = start_arc
    
        -- hand
        start_arc = (graph_unit_angle * val) - (graph_unit_thickness * 2)
        stop_arc = (graph_unit_angle * val)
        cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
        cairo_set_source_rgba(display, rgb_to_r_g_b(hand_fg_colour, hand_fg_alpha))
        cairo_stroke(display)
    
        -- graduations marks
        local graduation_radius = data['graduation_radius']
        local graduation_thickness, graduation_mark_thickness = data['graduation_thickness'], data['graduation_mark_thickness']
        local graduation_unit_angle = data['graduation_unit_angle']
        local graduation_fg_colour, graduation_fg_alpha = data['graduation_fg_colour'], data['graduation_fg_alpha']
        if graduation_radius > 0 and graduation_thickness > 0 and graduation_unit_angle > 0 then
            local nb_graduation = graph_end_angle / graduation_unit_angle
            local i = 0
            while i < nb_graduation do
                cairo_set_line_width(display, graduation_thickness)
                start_arc = (graduation_unit_angle * i) - (graduation_mark_thickness / 2)
                stop_arc = (graduation_unit_angle * i) + (graduation_mark_thickness / 2)
                cairo_arc(display, x, y, graduation_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
                cairo_set_source_rgba(display,rgb_to_r_g_b(graduation_fg_colour,graduation_fg_alpha))
                cairo_stroke(display)
                cairo_set_line_width(display, graph_thickness)
                i = i + 1
            end
        end
    
        -- text
        local txt_radius = data['txt_radius']
        local txt_weight, txt_size = data['txt_weight'], data['txt_size']
        local txt_fg_colour, txt_fg_alpha = data['txt_fg_colour'], data['txt_fg_alpha']
        local movex = txt_radius * math.cos(angle_to_position(graph_start_angle, angle))
        local movey = txt_radius * math.sin(angle_to_position(graph_start_angle, angle))
        cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, txt_weight)
        cairo_set_font_size (display, txt_size)
        cairo_set_source_rgba (display, rgb_to_r_g_b(txt_fg_colour, txt_fg_alpha))
        cairo_move_to (display, x + movex - (txt_size / 2), y + movey + 3)
        cairo_show_text (display, value)
        cairo_stroke (display)
    
        -- caption
        local caption = data['caption']
        local caption_weight, caption_size = data['caption_weight'], data['caption_size']
        local caption_fg_colour, caption_fg_alpha = data['caption_fg_colour'], data['caption_fg_alpha']
        local tox = graph_radius * (math.cos((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
        local toy = graph_radius * (math.sin((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
        cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, caption_weight);
        cairo_set_font_size (display, caption_size)
        cairo_set_source_rgba (display, rgb_to_r_g_b(caption_fg_colour, caption_fg_alpha))
        cairo_move_to (display, x + tox + 5, y + toy + 1)
        -- bad hack but not enough time !
        if graph_start_angle < 105 then
            cairo_move_to (display, x + tox - 30, y + toy + 1)
        end
        cairo_show_text (display, caption)
        cairo_stroke (display)
    end
    
    
    -------------------------------------------------------------------------------
    --                                                               go_gauge_rings
    -- loads data and displays gauges
    --
    function go_gauge_rings(display)
        local function load_gauge_rings(display, data)
            local str, value = '', 0
            str = string.format('${%s %s}',data['name'], data['arg'])
            str = conky_parse(str)
            value = tonumber(str)
            draw_gauge_ring(display, data, value)
        end
        
        for i in pairs(gauge) do
            load_gauge_rings(display, gauge[i])
        end
    end
    
    -------------------------------------------------------------------------------
    --                                                                         MAIN
    function conky_main()
        if conky_window == nil then 
            return
        end
    
        local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
        local display = cairo_create(cs)
        
        local updates = conky_parse('${updates}')
        update_num = tonumber(updates)
        
        if update_num > 5 then
            go_gauge_rings(display)
        end
    
        cairo_surface_destroy(cs)
        cairo_destroy(display)
    
    end
    and mail.sh
    Code:
    #!/bin/bash
    
    curl  https://username:password@mail.google.com/mail/feed/atom -s | grep fullcount | tail -c +12 | head -c -13
    I just copied/pasted this conky and lua scripts EXACTLY as they are. Then installed Cairo:

    Code:
    sudo apt-get install libcairo2-dev
    Yet the rings don't show. What am I doing wrong?

  3. #22053
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Inodoro Pereyra View Post
    I just copied/pasted this conky and lua scripts EXACTLY as they are. Then installed Cairo:

    Code:
    sudo apt-get install libcairo2-dev
    Yet the rings don't show. What am I doing wrong?
    When you start the conky in a terminal what is the output?

    Code:
    conky -c /path_to_the/conky_file
    Try that and post the results please.

  4. #22054
    Join Date
    Feb 2007
    Location
    Georgia, US
    Beans
    5
    Distro
    Ubuntu 6.10 Edgy

    Re: Post your .conkyrc files w/ screenshots

    New to Conky, and the Ubuntu forums. Here's my first attempt at a conky config, extensively based on and modified someone else's brilliant work.

    .conkyrc.txt

    clock_rings.lua.txt




    here's the original desktop image: http://browse.deviantart.com/art/Ubu...paper-99087341
    Attached Images Attached Images

  5. #22055
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    ^ Well done 2000% better than my first.

  6. #22056
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Inodoro Pereyra View Post
    I just copied/pasted this conky and lua scripts EXACTLY as they are. Then installed Cairo:

    Code:
    sudo apt-get install libcairo2-dev
    Yet the rings don't show. What am I doing wrong?
    First line in seamod_rings.lua should start with 2 dashes
    --================.........

  7. #22057
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by stinkeye View Post
    First line in seamod_rings.lua should start with 2 dashes
    --================.........
    Say what!!!!!!! Talk about DUH! feet+trip=oops!

    How could I have missed that?

    That's for you stinkeye

  8. #22058
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    Say what!!!!!!! Talk about DUH! feet+trip=oops!

    How could I have missed that?

    That's for you stinkeye
    Showed the error when I ran in terninal.
    Which was your solution to start with.
    glen@Raring:~$ conky -c '/home/glen/conky/configs/demo-conkyrc'
    Conky: llua_load: /home/glen/conky/lua/seamod_rings.lua:1: unexpected symbol near '-'
    Last edited by stinkeye; June 9th, 2013 at 05:28 AM.

  9. #22059
    Join Date
    Dec 2009
    Beans
    263

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by stinkeye View Post
    First line in seamod_rings.lua should start with 2 dashes
    --================.........
    Damn it. And the thing is working.
    And I can't stop laughing like an idiot...

    Thank you stinkeye. I couldn't have found that in a million years, even if I knew what to look for in the first place...

  10. #22060
    Join Date
    Dec 2009
    Beans
    263

    Re: Post your .conkyrc files w/ screenshots

    Ok, new problem:

    I just fired up my PC, and noticed my weather and clock conky are working perfectly, but my system conky isn't. I ran src.sh several times, with no luck.
    Then, I remembered what Sector11 asked me to do before, and I ran my conkyrc file on the terminal. Here's what happened:

    Code:
    bernardo@bernardo-Inspiron-1525:~$ conky -c ~/.conky/.conkyrc
    --2013-06-10 19:25:43--  http://ip.tupeux.com/
    Resolving ip.tupeux.com (ip.tupeux.com)... 88.190.212.247
    Connecting to ip.tupeux.com (ip.tupeux.com)|88.190.212.247|:80... Alarm clock
    bernardo@bernardo-Inspiron-1525:~$ connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 13 [text/html]
    Saving to: `STDOUT'
    
    100%[======================================>] 13          --.-K/s   in 0s      
    
    2013-06-10 19:25:47 (702 KB/s) - written to stdout [13/13]
    So, what's the problem? All 3 conkys were working perfectly when I turned the PC off, this morning...

Page 2206 of 2314 FirstFirst ... 1206170621062156219622042205220622072208221622562306 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •