Page 2165 of 2299 FirstFirst ... 1165166520652115215521632164216521662167217522152265 ... LastLast
Results 21,641 to 21,650 of 22981

Thread: Post your .conkyrc files w/ screenshots

  1. #21641
    Join Date
    Aug 2012
    Beans
    1

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    OMG!!!!!!! A QuadCore - each a duel CPU for 8 CPU Chip!
    I want one - like yesterday!

    ... and ... and ... am I reading that right: 32GB RAM?
    That thing must just smoke along!

    You looking to adopt anyone? Do your kids get one?

    If so I'm available.
    I'm at 16 gig and 6 core AMD. Not even over clocked and it's rare my CPU throttles above 1.4 ghz and I use even 1/4 of the ram. When I have a few VM's running things start to move along though.

    For a while I had Ubuntu 12.10 running on a HP Prolient DL360 G7 with dual Intel 6 core CPUS and 144 G of memory. Then I installed ESXi and had 32 CentOS VM's runing and that server still didn't break a sweat. Processors today are stupid efficient. The new 16 core opteron's are some multi threading beasts.

    It's fun fixing servers for a living I get to play with some expensive toys.

  2. #21642
    Join Date
    Jul 2008
    Beans
    70

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Jedcurtis View Post
    After a lot of tweaking and a little help from the master, Sector11, finally got it how I want it. Credits to McLovin for the bargraph.lua used in the left hand Conky, and to mrpeachy, for his mounted.lua, and also on the right side his v9000 weather script. Bottom right credits to VastOne, for the gmail parser and the awesome GMB Layouts! And thanks also to jst_joe, for getting rid of the green and replacing it with blue, in my favorite wallpaper!

    Any chance you can post the scripts? I'm coming back from the dark side of Winblows and I really like some parts of this config

    EDIT : I managed to find the config, but out of curiosity, what is the music player in bottom right corner?
    Last edited by merlin_ie; February 28th, 2013 at 11:56 PM.
    Linux...The mistress we all left Windows for

  3. #21643
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by joe0121 View Post
    It's fun fixing servers for a living I get to play with some expensive toys.
    Oh Oh! I could learn to hate you in a minute ... but at those setups it would probably only last a 10th of a nanosecond and I'd be over it.

    I do envy you though - in a good way.

  4. #21644
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by joe0121 View Post
    I also don't like how it's aligned that far right. I still want it over to the right but not completely on the edge.
    Easy one:
    Code:
    ${nodename}${alignr 5}${uptime_short}
    that "5" moves it back 5 pixels from the right edge. Can be any number.

  5. #21645
    Join Date
    Aug 2012
    Beans
    1

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    Oh Oh! I could learn to hate you in a minute ... but at those setups it would probably only last a 10th of a nanosecond and I'd be over it.

    I do envy you though - in a good way.
    Honestly I dont game if it werent for the fact I run a few VM's from time to time for College and work I probably would have went for a quad core and 8 gigs of memory. We have a store where I live called microcenter and between them and tiger direct I watch sales and when stuff I want goes on sale stupid cheap I snag it up. I really need to upgrade to a moduler power supply and thinking of uping to the 8 core CPU.

    My dream would be a server MB with 2 Opterons and 64 G of memory with 4 ssd's in a raid 10.

    What I am really waiting for is Enlightment 18 to come out.

    Debating on reloading to CentOS and setting up LVM to do a software raid between my SSD to get practice dealing with LVM. I have some experiance in Solaris but only a working understanding.

  6. #21646
    Join Date
    Aug 2012
    Beans
    1

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    Easy one:
    Code:
    ${nodename}${alignr 5}${uptime_short}
    that "5" moves it back 5 pixels from the right edge. Can be any number.
    Awesome thanks!

  7. #21647
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    @ joe0121 - you're welcome.



    My version of the "HUD-week-2 combo"
    This shows:
    1. Ext 250GB HDD not mounted - USB - not mounted
    2. Ext 250GB HDD mounted
    3. Ext 250GB HDD mounted - USB mounted
    4. Ext 250GB HDD not mounted - USB mounted


    I won't include the VSIDO orb that can be any image you want really - a distro logo.

    Font hint: grab the monofur font.

    S11_HUD3.conky
    Code:
    # killall conky && conky -c /media/5/Conky/S11_HUD3.conky &
    ###  Begin Window Settings  ##################################################
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,sticky,below,skip_taskbar,skip_pager
    #own_window_colour black
    own_window_class Conky
    own_window_title HUD 3
    
    ### ARGB can be used for real transparency
    ### NOTE that a composite manager is required for real transparency.
    ### This option will not work as desired (in most cases) in conjunction with
    ### own_window_type override
    #own_window_argb_visual yes
    
    ### When ARGB visuals are enabled, this use this to modify the alpha value
    ### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
    #own_window_argb_value 200
    
    # Use the Xdbe extension? (eliminates flicker)
    # It is highly recommended to use own window with this one
    # so double buffer won't be so big.
    double_buffer yes
    
    minimum_size 250 910 ## width, height
    maximum_width 250  ## width
    
    gap_x 10 # left-right
    gap_y 10 # up-down
    
    alignment top_left
    ###################################################  End Window Settings  ###
    ###  Font Settings  #########################################################
    # Use Xft (anti-aliased font and stuff)
    use_xft yes
    xftfont Monofur:bold:size=10
    
    # Alpha of Xft font. Must be a value at or between 1 and 0 ###
    xftalpha 0
    # Force UTF8? requires XFT ###
    override_utf8_locale yes
    
    uppercase no
    ######################################################  End Font Settings  ###
    ###  Color Settings  #########################################################
    draw_shades no # amplifies text if yes
    default_shade_color black
    
    draw_outline no # amplifies text if yes
    default_outline_color black
    
    default_color DCDCDC #220 220 220	Gainsboro
    color0 8FBC8F #143 188 143	DarkSeaGreen
    color1 778899 #119 136 153	LightSlateGray
    color2 FF8C00 #255 140   0	DarkOrange
    color3 7FFF00 #127 255   0	Chartreuse
    color4 FFA07A #255 160 122	LightSalmon
    color5 FFDEAD #255 222 173	NavajoWhite
    color6 00BFFF #  0 191 255	DeepSkyBlue
    color7 00FFFF #  0 255 255	Cyan
    color8 FFFF00 #255 255   0	Yellow
    color9 B22222 #178  34  34	FireBrick
    #####################################################  End Color Settings  ###
    ###  Borders Section  ########################################################
    draw_borders no
    # Stippled borders?
    stippled_borders 0
    # border margins
    border_inner_margin 0
    border_outer_margin 0
    # border width
    border_width 0
    # graph borders
    draw_graph_borders yes
    #default_graph_size 15 40
    #####################################################  End Borders Secton  ###
    ###  Miscellaneous Section  ##################################################
    
    # Boolean value, if true, Conky will be forked to background when started.
    background no
    
    # Adds spaces around certain objects to stop them from moving other things
    # around, this only helps if you are using a mono font
    # Options: right, left or none
    use_spacer none
    
    # Default and Minimum size is 256 - needs more for single commands that
    # "call" a lot of text IE: bash scripts
    text_buffer_size 510
    
    # Subtract (file system) buffers from used memory?
    no_buffers yes
    
    # change GiB to G and MiB to M
    short_units yes
    
    # Like it says, ot pads the decimals on % values
    # doesn't seem to work since v1.7.1
    pad_percents 2
    
    ##############################################  End Miscellaneous Section  ###
    ###  LUA Settings  ###########################################################
    ## Above and After TEXT - requires a composite manager or blinks.
    ##
    # lua_load ~/Conky/LUA/draw-bg.lua
    #TEXT
    #${lua conky_draw_bg 10 0 0 0 0 0x000000 0.6}
    #
    ## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
    ##
    ## OR Both above TEXT (No composite manager required - no blinking!)
    #
    lua_load ~/Conky/LUA/draw-bg.lua
    #lua_draw_hook_pre draw_bg 15 0 0 0 0 0x000000 0.2
    #
    lua_load /media/5/Conky/LUA/HUD3.lua
    lua_draw_hook_post main
    #
    #######################################################  End LUA Settings  ###
    # The all important - How often conky refreshes.
    # If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP!
    update_interval 1
    
    
    TEXT
    ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.3}\
    ${image /media/5/Conky/images/VSIDO_ORB_black.png -p 82,45 -s 75x75}\
    ${image /media/5/Conky/images/4.250.374_2.png -p 0,200 -s 250x374}\
    ${color7}CPU Fan${alignr 5}${platform f71882fg.2560 fan 1} rpm
    ${color6}Freq${alignr 5}${freq_g} GHz
    ${color7}Temp${alignr 5}${platform f71882fg.2560 temp 1}°
    
    ${color6}Mobo${alignr 5}${platform f71882fg.2560 temp 2}°
    
    ${color7}SDA ${alignr 5}${platform f71882fg.2560 temp 2}°
    
    ${color6}GPU ${alignr 5}${nvidia temp}°
    ${color7}Freq${alignr 5}${nvidia gpufreq} MHz${color}
    ${color6}Mem${alignr 5}${nvidia memfreq} MHz${color}
    
    ${goto 60}${execpi 600 /media/5/Conky/scripts/week-2.sh}\
    ${voffset -4}${goto 5}${font Digital tech:size=25}${color7}${time %a}${goto 190}${time %b}${color}\
    ${font digitalk:bold:size=13}${goto 65}${color8}${time %C}${goto 165}${time %y}${color}${font}
    
    
    
    ${goto 50}${color}MEM${goto 125}${color}SDA
    ${goto 120}/ &${goto 165}${color}CPU
    ${goto 120}/h${goto 160}${color}% ${color6}Nº${goto 197}1${goto 207}2${goto 217}3${goto 227}${color8}A${color}${font monofur:pixelsize=24}
    ${font}  /${goto 40}${color5}${fs_size /}${goto 100}${color9}${fs_used /}${goto 160}${color6}${fs_free /}${color}${font monofur:pixelsize=27}
    ${font}  /h${goto 40}${color5}${fs_size /home}${goto 100}${color9}${fs_used /home}${goto 160}${color6}${fs_free /home}${color}${font monofur:pixelsize=28}
    ${font}  m/5${goto 40}${color5}${fs_size /media/5}${goto 100}${color9}${fs_used /media/5}${goto 160}${color6}${fs_free /media/5}${color}${font monofur:pixelsize=28}
    ${font}  m/6${goto 40}${color5}${fs_size /media/6}${goto 100}${color9}${fs_used /media/6}${goto 160}${color6}${fs_free /media/6}${color}${font monofur:pixelsize=28}
    ${font}  m/7${goto 40}${color5}${fs_size /media/7}${goto 100}${color9}${fs_used /media/7}${goto 160}${color6}${fs_free /media/7}${color}${font monofur:pixelsize=27}
    ${font}  ext${goto 40}${color5}${if_mounted /media/disk}\
    ${fs_size /media/disk}${goto 100}${color9}${fs_used /media/disk}\
    ${goto 160}${color6}${fs_free /media/disk}\
    ${image /media/5/Conky/images/4-blue.png -p 213,494}\
    ${else}${goto 90}Not Mounted${endif}${color}${font monofur:pixelsize=27.5}
    ${font}  usb${goto 40}${color5}${if_mounted /media/VSIDO_LiveCD}\
    ${fs_size /media/VSIDO_LiveCD}${goto 100}${color9}${fs_used /media/VSIDO_LiveCD}\
    ${goto 160}${color6}25${fs_free /media/VSIDO_LiveCD}\
    ${image /media/5/Conky/images/4-blue.png -p 213,534}\
    ${else}${goto 90}Not Mounted${endif}${color}
    
    ${alignc}${kernel}
    
    ${color6}Processes ${color}${running_processes} of${processes} ${color7}${hr}${color}
    Load${goto 70}${loadavg 1}${goto 140}${loadavg 2}${alignr 5}${loadavg 3}
    
    ${color6}RAM ${color}${memmax} ${color7}${hr}${color}
    ${alignc}Used ${memperc}% for ${mem}
    Buffered ${buffers}${alignr 5}Cached ${cached}
    
    ${color6}DISK Activity ${color7}${hr}${color}
    ${font Monofur:bold:size=13}R${goto 40}${diskiograph_read /dev/sda 14,130 00ffff ff0000 5 -lt}${alignr 5}${diskio_read /dev/sda}
    W${goto 40}${diskiograph_write /dev/sda 14,130 ff0000 00ffff 5 -lt}${alignr 5}${diskio_write /dev/sda}${font}
    
    ${color6}NETWORK ${color7}${hr}${color}
    ${font Monofur:bold:size=13}Dn${goto 40}${downspeedgraph eth0 14,130 00ffff ff0000 5 -lt}${alignr 5}${downspeedf eth0}
    Up${goto 40}${upspeedgraph eth0 14,130 ff0000 00ffff 5 -lt}${alignr 5}${upspeedf eth0}
    ${font}${color0}       Down      Up         Total${font monofur:pixelsize=16}
    ${font}${color}${time %b %y}${goto 50}${color6}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $3 $4}'}${goto 125}${color7}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $6 $7}'}${goto 200}${color}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $9 $10}'}${font monofur:pixelsize=16}
    ${font}${color}${exec date | awk '{print $3" "$2}'}${goto 50}${color6}${execi 300 vnstat | grep "today" | awk '{print $2 $3}'}${goto 125}${color7}${execi 300 vnstat | grep "today" | awk '{print $5 $6}'}${goto 200}${color}${execi 300 vnstat | grep "today" | awk '{print $8 $9}'}
    ${exec date --date="-1 day" | awk '{print $3" "$2}'}${goto 50}${color6}${execi 300 vnstat | grep "yesterday" | awk '{print $2 $3}'}${goto 125}${color7}${execi 300 vnstat | grep "yesterday" | awk '{print $5 $6}'}${goto 200}${color}${execi 300 vnstat | grep "yesterday" | awk '{print $8 $9}'}
    ${color}Last 7${goto 50}${color6}${execi 300 vnstat -w | grep "last 7 days" | awk '{print $4 $5}'}${goto 125}${color7}${execi 300 vnstat -w | grep "last 7 days" | awk '{print $7 $8}'}${goto 200}${color}${execi 300 vnstat -w | grep "last 7 days" | awk '{print $10 $11}'}
    HUD3.lua
    Code:
    --==============================================================================
    --  Origianl by: SLK
    --  license : Distributed under the terms of GNU GPL version 2 or later
    --  modified by Sector11 - Feb 2013
    --==============================================================================
    
    require 'cairo'
    
    --------------------------------------------------------------------------------
    --                                                                    gauge DATA
    gauge = {
    {
        name='cpu',                    arg='cpu0',                  max_value=100,
        x=170,                         y=270, --180,150
        graph_radius=60,
        graph_thickness=5,
        graph_start_angle=0,
        graph_unit_angle=0.9,          graph_unit_thickness=0.9,
        graph_bg_colour=0xFFFF00,      graph_bg_alpha=0.3,
        graph_fg_colour=0xFFFF00,      graph_fg_alpha=0.0,
        hand_fg_colour=0xFFFF00,       hand_fg_alpha=1.0,
        txt_radius=60,				-- yellow
        txt_weight=1,                  txt_size=10.0,
        txt_fg_colour=0xFFFF00,        txt_fg_alpha=0.8,
        graduation_radius=30,
        graduation_thickness=0,        graduation_mark_thickness=1,
        graduation_unit_angle=27,
        graduation_fg_colour=0xFFFF00, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=1,              caption_size=8.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
    },
    {
        name='cpu',                    arg='cpu1',                  max_value=100,
        x=170,                         y=270, --180,150
        graph_radius=50,
        graph_thickness=5,
        graph_start_angle=0,
        graph_unit_angle=0.9,          graph_unit_thickness=0.9,
        graph_bg_colour=0x00BFFF,      graph_bg_alpha=0.3,
        graph_fg_colour=0x00BFFF,      graph_fg_alpha=0.0,
        hand_fg_colour=0x00BFFF,       hand_fg_alpha=1.0,
        txt_radius=50,				-- green
        txt_weight=1,                  txt_size=10.0,
        txt_fg_colour=0x00BFFF,        txt_fg_alpha=0.8,
        graduation_radius=55,
        graduation_thickness=5,        graduation_mark_thickness=2,
        graduation_unit_angle=27,
        graduation_fg_colour=0x00BFFF, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=1,              caption_size=8.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
    },
    {
        name='cpu',                    arg='cpu2',                  max_value=100,
        x=170,                         y=270, --180,150
        graph_radius=40,
        graph_thickness=5,
        graph_start_angle=0,
        graph_unit_angle=0.9,          graph_unit_thickness=0.9,
        graph_bg_colour=0x00BFFF,      graph_bg_alpha=0.3,
        graph_fg_colour=0x00BFFF,      graph_fg_alpha=0.0,
        hand_fg_colour=0x00BFFF,       hand_fg_alpha=1.0,
        txt_radius=40,
        txt_weight=1,                  txt_size=10.0,
        txt_fg_colour=0x00BFFF,        txt_fg_alpha=0.8,
        graduation_radius=30,
        graduation_thickness=0,        graduation_mark_thickness=1,
        graduation_unit_angle=27,
        graduation_fg_colour=0x00BFFF, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=1,              caption_size=8.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
    },
    {
        name='cpu',                    arg='cpu3',                  max_value=100,
        x=170,                         y=270, --180,150
        graph_radius=30,
        graph_thickness=5,
        graph_start_angle=0,
        graph_unit_angle=0.9,          graph_unit_thickness=0.9,
        graph_bg_colour=0x00BFFF,      graph_bg_alpha=0.3,
        graph_fg_colour=0x00BFFF,      graph_fg_alpha=0.0,
        hand_fg_colour=0x00BFFF,       hand_fg_alpha=1.0,
        txt_radius=30,
        txt_weight=1,                  txt_size=10.0,
        txt_fg_colour=0x00BFFF,        txt_fg_alpha=0.8,
        graduation_radius=35,
        graduation_thickness=5,        graduation_mark_thickness=2,
        graduation_unit_angle=27,
        graduation_fg_colour=0x00BFFF, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=1,              caption_size=8.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
    },
    {
        name='memperc',                arg='',                      max_value=100,
        x=60,                          y=245, --40,115
        graph_radius=34,
        graph_thickness=5,
        graph_start_angle=180,
        graph_unit_angle=2,            graph_unit_thickness=2,
        graph_bg_colour=0x00BFFF,      graph_bg_alpha=0.3,
        graph_fg_colour=0x00BFFF,      graph_fg_alpha=0.0,
        hand_fg_colour=0x00BFFF,       hand_fg_alpha=1.0,
        txt_radius=20,
        txt_weight=1,                  txt_size=10.0,
        txt_fg_colour=0x00BFFF,        txt_fg_alpha=0.8,
        graduation_radius=24,
        graduation_thickness=6,        graduation_mark_thickness=2,
        graduation_unit_angle=10,
        graduation_fg_colour=0x00BFFF, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=1,              caption_size=10.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
    },
    {
        name='fs_used_perc',           arg='/',                     max_value=100,
        x=130,                         y=250, --120,70
        graph_radius=25, --40,
        graph_thickness=4,
        graph_start_angle=210,
        graph_unit_angle=2,            graph_unit_thickness=2,
        graph_bg_colour=0x00BFFF,      graph_bg_alpha=0.3,
        graph_fg_colour=0x00BFFF,      graph_fg_alpha=0.0,
        hand_fg_colour=0x00BFFF,       hand_fg_alpha=1.0,
        txt_radius=17, --32,
        txt_weight=1,                  txt_size=10.0,
        txt_fg_colour=0xffffff,        txt_fg_alpha=1.0,
        graduation_radius=31, --46,
        graduation_thickness=0,        graduation_mark_thickness=2,
        graduation_unit_angle=20,
        graduation_fg_colour=0x00BFFF, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=1,              caption_size=8.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
    },
    {
        name='fs_used_perc',           arg='/home/',                max_value=100,
        x=130,                         y=250, --120,70
        graph_radius=35, --50,
        graph_thickness=8,
        graph_start_angle=210,
        graph_unit_angle=2,            graph_unit_thickness=2,
        graph_bg_colour=0x00BFFF,      graph_bg_alpha=0.3,
        graph_fg_colour=0x00BFFF,      graph_fg_alpha=0.0,
        hand_fg_colour=0x00BFFF,       hand_fg_alpha=1.0,
        txt_radius=50, --65,
        txt_weight=1,                  txt_size=10.0,
        txt_fg_colour=0xffffff,        txt_fg_alpha=1.0,
        graduation_radius=43, --58,
        graduation_thickness=4,        graduation_mark_thickness=2,
        graduation_unit_angle=20,
        graduation_fg_colour=0x00BFFF, graduation_fg_alpha=0.6,
        caption='',
        caption_weight=1,              caption_size=8.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 or 0) % (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
    
    
    --------------------------------------------------------------------------------
    --                                                                    clock DATA
    -- HOURS
    clock_h = {
        {
        name='time',                   arg='%H',                    max_value=12,
        x=120,                          y=85,
        graph_radius=62, --58, --53,
        graph_thickness=3,
        graph_unit_angle=30,           graph_unit_thickness=30,
        graph_bg_colour=0x00BFFF,      graph_bg_alpha=0.0,
        graph_fg_colour=0x00BFFF,      graph_fg_alpha=0.3,
        txt_radius=70, --39, --34,
        txt_weight=1,                  txt_size=15.0,
        txt_fg_colour=0xFFDEAD,        txt_fg_alpha=1.0,
        graduation_radius=58, --53,
        graduation_thickness=6,        graduation_mark_thickness=2,
        graduation_unit_angle=30,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
        },
    }
    -- MINUTES
    clock_m = {
        {
        name='time',                   arg='%M',                    max_value=60,
        x=120,                          y=85,
        graph_radius=58, --62, --57,
        graph_thickness=2,
        graph_unit_angle=6,            graph_unit_thickness=6,
        graph_bg_colour=0x00BFFF,      graph_bg_alpha=0.2,
        graph_fg_colour=0x00BFFF,      graph_fg_alpha=0.7,
        txt_radius=47, --39, --70, --65,
        txt_weight=1,                  txt_size=15.0,
        txt_fg_colour=0xFFDEAD,        txt_fg_alpha=1.0,
        graduation_radius=62, --57,
        graduation_thickness=0,        graduation_mark_thickness=2,
        graduation_unit_angle=30,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.3,
        },
    }
    -- SECONDS
    clock_s = {
        {
        name='time',                   arg='%S',                    max_value=60,
        x=120,                          y=85,
        graph_radius=55, --50,
        graph_thickness=2,
        graph_unit_angle=6,            graph_unit_thickness=2,
        graph_bg_colour=0xFFDEAD,      graph_bg_alpha=0.0,
        graph_fg_colour=0xFFDEAD,      graph_fg_alpha=0.7,
        txt_radius=47, --42,
        txt_weight=0,                  txt_size=8.0,
        txt_fg_colour=0xFFDEAD,        txt_fg_alpha=1.0,
        graduation_radius=0,
        graduation_thickness=0,        graduation_mark_thickness=0,
        graduation_unit_angle=0,
        graduation_fg_colour=0xFFFFFF, graduation_fg_alpha=0.0,
        },
    }
    
    --------------------------------------------------------------------------------
    --                                                                 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_clock_ring
    -- displays clock
    --
    function draw_clock_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_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']
    
        -- background ring
        cairo_arc(display, x, y, graph_radius, 0, 2 * math.pi)
        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)
        local i = 1
        while i <= val do
            cairo_arc(display, x, y, graph_radius,(  ((graph_unit_angle * i) - graph_unit_thickness)*(2*math.pi/360)  )-(math.pi/2),((graph_unit_angle * i) * (2*math.pi/360))-(math.pi/2))
            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 = (graph_unit_angle * i) - graph_unit_thickness
    
        -- 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 = 360 / graduation_unit_angle
            local i = 1
            while i <= nb_graduation do
                cairo_set_line_width(display, graduation_thickness)
                cairo_arc(display, x, y, graduation_radius, (((graduation_unit_angle * i)-(graduation_mark_thickness/2))*(2*math.pi/360))-(math.pi/2),(((graduation_unit_angle * i)+(graduation_mark_thickness/2))*(2*math.pi/360))-(math.pi/2))
                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 * 2 * math.pi / 360)-(math.pi/2)))
        local movey = txt_radius * (math.sin((angle * 2 * math.pi / 360)-(math.pi/2)))
        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);
    end
    
    -------------------------------------------------------------------------------
    --                                                               go_clock_rings
    -- loads data and displays clock
    --
    function go_clock_rings(display)
        local function load_clock_rings(display, data)
            local str, value = '', 0
            str = string.format('${%s %s}',data['name'], data['arg'])
            str = conky_parse(str)
            value = tonumber(str)
            draw_clock_ring(display, data, value)
        end
    
        for i in pairs(clock_h) do
            load_clock_rings(display, clock_h[i])
        end
        for i in pairs(clock_m) do
            load_clock_rings(display, clock_m[i])
        end
        for i in pairs(clock_s) do
            load_clock_rings(display, clock_s[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)
            go_clock_rings(display)
        end
    
        cairo_surface_destroy(cs)
        cairo_destroy(display)
    end

    week-2.sh
    Code:
    #!/bin/bash
    # By: mobilediesel
    
    font=("\${voffset -10}\${font digitalk:size=4}" "\${voffset -0}\${font digitalk:size=8}" "\${voffset -0}\${font digitalk:size=12}" "\${voffset -3}\${font digitalk:size=30}\${color 00FFFF}" "\${voffset -15}\${font digitalk:size=12}" "\${voffset -4}\${font digitalk:size=7}" "\${voffset -2}\${font digitalk:size=4}")
    color=("" "" "" "\${color}" "" "" "")
    
    for i in $(seq -3 3); do
    echo -n "${font[$[i+3]]}$(date '+%d' -d "$i days")${color[3]}\${offset 3}"
    done
    And because I am using it and it has a calendar by mrpeachy: draw-bg.lua
    Code:
    --[[Background originally by londonali1010 (2009)
        ability to set any size for background mrpeachy 2011
        ability to set variables for bg in conkyrc dk75
    
      the change is that if you set width and/or height to 0
      then it assumes the width and/or height of the conky window
    
    so:
    
    Above and After TEXT  (requires a composite manager or it blinks!)
    
     lua_load ~/wea_conky/draw_bg.lua
     TEXT
     ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.4}
    
    OR Both above TEXT (no composite manager required - no blinking!)
    
     lua_load ~/wea_conky/draw_bg.lua
     lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.5
     TEXT
    
    Note
    ${lua conky_draw_bg 20 0 0 0 0 0x000000 0.4}
      See below:        1  2 3 4 5 6        7
    
    ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
    
    covers the whole window and will change if you change the minimum_size setting
    
    1 = 20             corner_radius
    2 = 0             x_position
    3 = 0             y_position
    3 = 0             width
    5 = 0             height
    6 = 0x000000      color
    7 = 0.4           alpha
    
    ######### calendar function ##################################################
    
    then to use it, you activate the calendar function BELOW TEXT like this
    
    ${lua luacal {settings}}
    
    #${lua luacal {x=,y=,tf="",tfs=,tc=,ta=,bf="",bfs=,bc=,ba=,hf="",hfs=,hc=,ha=,sp="",gh=,gt=,gv=,sd=}}
    #    x=x position top left
    #    y=y position top left
    #    tf=title font, eg "mono" must be in quotes
    #    tfs=title font size
    #    tc=title color
    #    ta=title alpha
    #    bf=body font, eg "mono" must be in quotes
    #    bfs=body font size
    #    bc=body color
    #    ba=body alpha
    #    hf=highlight font, eg "mono" must be in quotes
    #    hfs=highlight font size
    #    hc=highlight color
    #    ha=highlight alpha
    #    sp=spacer, eg " " or sp="0"... 0,1 or 2 spaces can help with positioning of non-monospaced fonts
    
    #    gt=gap from title to body
    #    gh=gap horizontal between columns
    #    gv=gap vertical between rows
    #    sd=start day, 0=Sun, 1=Mon
    
    #    hstyle = heading style, 0=just days, 1=date insert
    #    tdf=title date font, eg "mono" must be in quotes
    #    tdfs=title date font size
    #    tdc=title date color
    #    tda=title date alpha
    
    # test line
    -- ${lua luacal {x=10,y=100,tf="Purisa",tfs=24,tc=0xf67e16,ta=1,bf="First Order",bfs=26,bc=0xecd32a,ba=1,hf="Purisa",hfs=18,hc=0xf67e16,ha=1,sp=" ",gh=40,gt=25,gv=20,sd=0,hstyle=1,tdf="First Order",tdfs=28,tdc=0xff0000,tda=1}}
    
    
    ]]
    
    require 'cairo'
    local    cs, cr = nil
    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_bg(r,x,y,w,h,color,alpha)
    if conky_window == nil then return end
    if cs == nil then cairo_surface_destroy(cs) end
    if cr == nil then cairo_destroy(cr) 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)
    w=w
    h=h
    if w=="0" then w=tonumber(conky_window.width) end
    if h=="0" then h=tonumber(conky_window.height) end
    cairo_set_source_rgba (cr,rgb_to_r_g_b(color,alpha))
    --top left mid circle
    local xtl=x+r
    local ytl=y+r
    --top right mid circle
    local xtr=(x+r)+((w)-(2*r))
    local ytr=y+r
    --bottom right mid circle
    local xbr=(x+r)+((w)-(2*r))
    local ybr=(y+r)+((h)-(2*r))
    --bottom right mid circle
    local xbl=(x+r)
    local ybl=(y+r)+((h)-(2*r))
    -----------------------------
    cairo_move_to (cr,xtl,ytl-r)
    cairo_line_to (cr,xtr,ytr-r)
    cairo_arc(cr,xtr,ytr,r,((2*math.pi/4)*3),((2*math.pi/4)*4))
    cairo_line_to (cr,xbr+r,ybr)
    cairo_arc(cr,xbr,ybr,r,((2*math.pi/4)*4),((2*math.pi/4)*1))
    cairo_line_to (cr,xbl,ybl+r)
    cairo_arc(cr,xbl,ybl,r,((2*math.pi/4)*1),((2*math.pi/4)*2))
    cairo_line_to (cr,xtl-r,ytl)
    cairo_arc(cr,xtl,ytl,r,((2*math.pi/4)*2),((2*math.pi/4)*3))
    cairo_close_path(cr)
    cairo_fill (cr)
    ------------------------------------------------------------
    cairo_surface_destroy(cs)
    cairo_destroy(cr)
    return ""
    end
    -- ###### calendar function ##################################################
    function conky_luacal(caltab) -- {x=,y=,tf="",tfs=,tc=,ta=,bf="",bfs=,bc=,ba=,hf="",hfs=,hc=,ha=,sp="",gt=,gh=,gv=,sd=,hstyle=,tdf=,tdfs=,tdc=,tda=}
    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)
    --############################################################################
    if caltab.x==nil then
    caltab=loadstring("return" .. caltab)()
    end
    local cal_x=caltab.x
    local cal_y=caltab.y
    local tfont=caltab.tf		or "mono"
    local tfontsize=caltab.tfs	or 12
    local tc=caltab.tc			or 0xffffff
    local ta=caltab.ta			or 1
    local bfont=caltab.bf		or "mono"
    local bfontsize=caltab.bfs	or 12
    local bc=caltab.bc			or 0xffffff
    local ba=caltab.ba			or 1
    local hfont=caltab.hf		or "mono"
    local hfontsize=caltab.hfs	or 12
    local hc=caltab.hc			or 0xff0000
    local ha=caltab.ha			or 1
    local spacer=caltab.sp		or " "
    local gaph=caltab.gh		or 20
    local gapt=caltab.gt		or 15
    local gapl=caltab.gv		or 15
    local sday=caltab.sd		or 0
    local hstyle=caltab.hstyle	or 0
    --convert colors
    --local font=string.gsub(font,"_"," ")
    local tred,tgreen,tblue,talpha=rgb_to_r_g_b(tc,ta)
    --main body text color
    local bred,bgreen,bblue,balpha=rgb_to_r_g_b(bc,ba)
    --highlight text color
    local hred,hgreen,hblue,halpha=rgb_to_r_g_b(hc,ha)
    --############################################################################
    --calendar calcs
    local year=os.date("%G")
    local today=tonumber(os.date("%d"))
    local t1 = os.time( {    year=year,month=03,day=01,hour=00,min=0,sec=0} );
    local t2 = os.time( {    year=year,month=02,day=01,hour=00,min=0,sec=0} );
    local feb=(os.difftime(t1,t2))/(24*60*60)
    local monthdays={ 31, feb, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
    local day=tonumber(os.date("%w"))+1-sday
    local day_num = today
    local remainder=day_num % 7
    local start_day=day-(day_num % 7)
    if start_day<0 then start_day=7+start_day end
    local month=os.date("%m")
    local mdays=monthdays[tonumber(month)]
    local x=mdays+start_day
    local dnum={}
    local dnumh={}
    if mdays+start_day<36 then
    dlen=35
    plen=29
    else
    dlen=42
    plen=36
    end
    for i=1,dlen do
        if i<=start_day then
        dnum[i]="  "
        else
        dn=i-start_day
            if dn=="nil" then dn=0 end
            if dn<=9 then dn=(spacer .. dn) end
            if i>x then dn="" end
            dnum[i]=dn
            dnumh[i]=dn
            if dn==(spacer .. today) or dn==today then
            dnum[i]=""
            end
            if dn==(spacer .. today) or dn==today then
            dnumh[i]=dn
            place=i
            else dnumh[i]="  "
            end
        end
    end--for
    cairo_select_font_face (cr, tfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, tfontsize);
    cairo_set_source_rgba (cr,tred,tgreen,tblue,talpha)
    local extents=cairo_text_extents_t:create()
    tolua.takeownership(extents)
    if hstyle==0 then
        if tonumber(sday)==0 then
        dys={"SU","MO","TU","WE","TH","FR","SA"}
        else
        dys={"MO","TU","WE","TH","FR","SA","SU"}
        end
        --draw calendar titles
    elseif hstyle==1 then
        if tonumber(sday)==0 then
        dys={"SU","MO"," ","  ","  ","FR","SA"}
        cairo_text_extents(cr,"MO",extents)
        local s=extents.x_advance+gaph
        local f=gaph*5
        local tdfont=caltab.tdf        or "mono"
        local tdfontsize=caltab.tdfs    or 12
        local tdc=caltab.tdc        or 0xffffff
        local tda=caltab.tda        or 1
        cairo_select_font_face (cr, tdfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
        cairo_set_font_size (cr, tdfontsize);
        local tdred,tdgreen,tdblue,tdalpha=rgb_to_r_g_b(tdc,tda)
        cairo_set_source_rgba (cr,tdred,tdgreen,tdblue,tdalpha)
        local insert=os.date("%b %y")
        cairo_text_extents(cr,insert,extents)
        local w=extents.x_advance
        cairo_move_to (cr, cal_x+((s+f)/2)-(w/2), cal_y)
        cairo_show_text (cr,insert)
        cairo_stroke (cr)
        else
        dys={"MO","TU"," ","  ","  ","SA","SU"}
        cairo_text_extents(cr,"TU",extents)
        local s=extents.x_advance+gaph
        local f=gaph*5
        local tdfont=caltab.tdf        or "mono"
        local tdfontsize=caltab.tdfs    or 12
        local tdc=caltab.tdc        or 0xffffff
        local tda=caltab.tda        or 1
        cairo_select_font_face (cr, tdfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
        cairo_set_font_size (cr, tdfontsize);
        local tdred,tdgreen,tdblue,tdalpha=rgb_to_r_g_b(tdc,tda)
        cairo_set_source_rgba (cr,tdred,tdgreen,tdblue,tdalpha)
        local insert=os.date("%b %y")
        cairo_text_extents(cr,insert,extents)
        local w=extents.x_advance
        cairo_move_to (cr, cal_x+((s+f)/2)-(w/2), cal_y)
        cairo_show_text (cr,insert)
        cairo_stroke (cr)
        end
    end
    --draw calendar titles
    for i=1,7 do
    cairo_select_font_face (cr, tfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, tfontsize);
    cairo_set_source_rgba (cr,tred,tgreen,tblue,talpha)
    cairo_move_to (cr, cal_x+(gaph*(i-1)), cal_y)
    cairo_show_text (cr, dys[i])
    cairo_stroke (cr)
    end
    --draw calendar body
    cairo_select_font_face (cr, bfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, bfontsize);
    cairo_set_source_rgba (cr,bred,bgreen,bblue,balpha)
    for i=1,plen,7 do
    local fn=i
        for i=fn,fn+6 do
        cairo_move_to (cr, cal_x+(gaph*(i-fn)),cal_y+gapt+(gapl*((fn-1)/7)))
        cairo_show_text (cr, dnum[i])
        cairo_stroke (cr)
        end
    end
    --highlight
    cairo_select_font_face (cr, hfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, hfontsize);
    cairo_set_source_rgba (cr,hred,hgreen,hblue,halpha)
    for i=1,plen,7 do
    local fn=i
        for i=fn,fn+6 do
        cairo_move_to (cr, cal_x+(gaph*(i-fn)),cal_y+gapt+(gapl*((fn-1)/7)))
        cairo_show_text (cr, dnumh[i])
        cairo_stroke (cr)
        end
    end
    --############################################################################
    caltab=nil
    dlen=nil
    plen=nil
    cairo_destroy(cr)
    cairo_surface_destroy(cs)
    cr=nil
    return ""
    end
    -- end main function #########################################################
    The stack of harddrives:
    And links to the blue and red lights. I include the red although I don't use it.

    EDIT
    An "Oops!" showed up on another conky thread in another forum - here goes:

    REF: The vnstat section of the conky

    OH OH! I didn't see this coming. A few years back I ran into a problem with vnstat using:

    Mar '13

    I can't remember if it was conky that complained about the ' or something else, probably conky if you look at the commands:

    grep "`date +"%b %y"`" <--- works

    grep "`date +"%b '%y"`" <--- doesn't work

    So I checked
    Code:
    man vnstat
    and saw:
    Code:
    FILES
           /var/lib/vnstat/
                  This directory contains all databases the program uses. Files are named according to the monitored inter‐
                  faces.
    
           /etc/vnstat.conf
                  Config file that will be used unless $HOME/.vnstatrc exists. See vnstat.conf(5) for more information.
    CLICK: unless $HOME/.vnstatrc exists
    ever since then I have been using: $HOME/.vnstatrc (~/.vnstatrc) and in there I got rid of the ' before the year.

    My $HOME/.vnstatrc
    Code:
    # vnStat 1.11 config file
    ##
    
    # default interface
    Interface "eth0"
    
    # location of the database directory
    DatabaseDir "/var/lib/vnstat"
    #DatabaseDir "/home/sector11/vnstat"
    
    # locale (LC_ALL) ("-" = use system locale)
    Locale "-"
    
    # on which day should months change
    MonthRotate 1
    
    # date output formats for -d, -m, -t and -w
    # see 'man date' for control codes
    DayFormat    "%x"
    MonthFormat  "%b %y"
    TopFormat    "%x"
    
    # characters used for visuals
    RXCharacter       "%"
    TXCharacter       ":"
    RXHourCharacter   "r"
    TXHourCharacter   "t"
    
    # how units are prefixed when traffic is shown
    # 0 = IEC standard prefixes (KiB/MiB/GiB/TiB)
    # 1 = old style binary prefixes (KB/MB/GB/TB)
    UnitMode 1
    
    # output style
    # 0 = minimal & narrow, 1 = bar column visible
    # 2 = same as 1 except rate in summary and weekly
    # 3 = rate column visible
    OutputStyle 3
    
    # used rate unit (0 = bytes, 1 = bits)
    RateUnit 1
    
    # maximum bandwidth (Mbit) for all interfaces, 0 = disable feature
    # (unless interface specific limit is given)
    MaxBandwidth 100
    
    # interface specific limits
    #  example 8Mbit limit for eth0 (remove # to activate):
    #MaxBWeth0 8
    
    # how many seconds should sampling for -tr take by default
    Sampletime 5
    
    # default query mode
    # 0 = normal, 1 = days, 2 = months, 3 = top10
    # 4 = dumpdb, 5 = short, 6 = weeks, 7 = hours
    QueryMode 0
    
    # filesystem disk space check (1 = enabled, 0 = disabled)
    CheckDiskSpace 1
    
    # database file locking (1 = enabled, 0 = disabled)
    UseFileLocking 1
    
    # how much the boot time can variate between updates (seconds)
    BootVariation 15
    
    # log days without traffic to daily list (1 = enabled, 0 = disabled)
    TrafficlessDays 1
    
    
    # vnstatd
    ##
    
    # how often (in seconds) interface data is updated
    UpdateInterval 30
    
    # how often (in seconds) interface status changes are checked
    PollInterval 5
    
    # how often (in minutes) data is saved to file
    SaveInterval 5
    
    # how often (in minutes) data is saved when all interface are offline
    OfflineSaveInterval 30
    
    # force data save when interface status changes (1 = enabled, 0 = disabled)
    SaveOnStatusChange 1
    
    # enable / disable logging (0 = disabled, 1 = logfile, 2 = syslog)
    UseLogging 2
    
    # file used for logging if UseLogging is set to 1
    LogFile "/var/log/vnstat.log"
    
    # file used as daemon pid / lock file
    PidFile "/var/run/vnstat.pid"
    
    
    # vnstati
    ##
    
    # title timestamp format
    HeaderFormat "%x %H:%M"
    
    # show hours with rate (1 = enabled, 0 = disabled)
    HourlyRate 1
    
    # show rate in summary (1 = enabled, 0 = disabled)
    SummaryRate 1
    
    # layout of summary (1 = with monthly, 0 = without monthly)
    SummaryLayout 1
    
    # transparent background (1 = enabled, 0 = disabled)
    TransparentBg 0
    
    # image colors
    CBackground     "FFFFFF"
    CEdge           "AEAEAE"
    CHeader         "606060"
    CHeaderTitle    "FFFFFF"
    CHeaderDate     "FFFFFF"
    CText           "000000"
    CLine           "B0B0B0"
    CLineL          "-"
    CRx             "92CF00"
    CTx             "606060"
    CRxD            "-"
    CTxD            "-"
    Notice that line 20:
    Code:
    MonthFormat  "%b %y"
    Not:
    Code:
    MonthFormat  "%b '%y"
    OPINION ALERT For me it even looks cleaner in a terminal:
    Code:
     sector11 @ sector11
     02 Mar 13 | 09:35:02 ~
             $ vnstat
    Database updated: Sat Mar  2 09:34:04 2013
    
       eth0 since 02/13/13
    
              rx:  19.58 GB      tx:  785.24 MB      total:  20.35 GB
    
       monthly
                         rx      |     tx      |    total    |   avg. rate
         ------------------------+-------------+-------------+---------------
            Feb 13      19.42 GB |   759.31 MB |    20.16 GB |   69.92 kbit/s
            Mar 13     159.94 MB |    25.92 MB |   185.87 MB |   12.60 kbit/s
         ------------------------+-------------+-------------+---------------
         estimated       3.44 GB |      554 MB |     3.98 GB |
    
       daily
                         rx      |     tx      |    total    |   avg. rate
         ------------------------+-------------+-------------+---------------
         yesterday     153.85 MB |    24.86 MB |   178.71 MB |   16.94 kbit/s
             today       6.09 MB |     1.07 MB |     7.16 MB |    1.70 kbit/s
         ------------------------+-------------+-------------+---------------
         estimated         15 MB |        2 MB |       17 MB |
     sector11 @ sector11
     02 Mar 13 | 09:35:12 ~
             $
    Last edited by Sector11; March 2nd, 2013 at 02:43 PM.

  8. #21648
    Join Date
    Aug 2010
    Location
    Detachment 7
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by merlin_ie View Post
    Any chance you can post the scripts? I'm coming back from the dark side of Winblows and I really like some parts of this config

    EDIT : I managed to find the config, but out of curiosity, what is the music player in bottom right corner?
    The music player is gmusicbrowser using layouts by VastOne which can be found here;
    http://crunchbang.org/forums/viewtop...232294#p232294
    enjoy!!!
    | [I]Running 'VSIDO' | My blog |

  9. #21649
    Join Date
    Feb 2013
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    Here is my .conkycr file and a screenshot.

    Code:
    alignment bottom_left
    background no
    border_width 1
    cpu_avg_samples 2
    default_color 6E6E6E
    default_outline_color white
    default_shade_color white
    draw_borders yes 
    draw_graph_borders yes
    draw_outline no
    draw_shades no
    use_xft yes
    xftfont Atomic Mono:size=8.5
    gap_x 670
    gap_y 748
    minimum_size 400 20
    net_avg_samples 2
    no_buffers yes
    out_to_console no
    out_to_stderr no
    extra_newline no
    own_window yes
    own_window_type dock
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    stippled_borders 0
    update_interval 1.0
    uppercase no
    use_spacer none
    show_graph_scale no
    show_graph_range no
    # $alignc
    TEXT
    ${color grey} RAM:$mem || CPU:${cpu cpu0}% - $acpitemp°C || ⚡:$battery_percent%-$battery_time ||↓:${downspeed wlan0}
    Attached Images Attached Images

  10. #21650
    Join Date
    Oct 2010
    Beans
    18

    Re: Post your .conkyrc files w/ screenshots

    Quick question, I'm hoping someone can answer... When I use dconf to set org->gnome->desktop->background->show-desktop-icons to true, my desktop icons appear but my conky stuff disappears. When I set it of false, my conky stuff reappears but my desktop icons disappear. I want both my desktop icons and my conky stuff to be visible.

    How can I do that? Btw, I'm using the 1d1_AccuWeather_INT_images conky script pretty much straight out-of-the-box, so I won't post a screenshot of that cuz I'm sure y'all have seen it a thousand times.

    Thanks for any help provided!

    Regards,

    Chris

Page 2165 of 2299 FirstFirst ... 1165166520652115215521632164216521662167217522152265 ... 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
  •