Page 2138 of 2299 FirstFirst ... 1138163820382088212821362137213821392140214821882238 ... LastLast
Results 21,371 to 21,380 of 22988

Thread: Post your .conkyrc files w/ screenshots

  1. #21371
    Join Date
    Jul 2011
    Beans
    4

    Re: Post your .conkyrc files w/ screenshots

    Hi,
    I started with conky today. I build a config based upon the config of VinDSL.

    This is my current config:
    Code:
    background no
    font DroidSans:size=8
    #xftfont sans:size=10
    use_xft yes
    xftalpha 0.9
    update_interval 1.0
    total_run_times 0
    own_window yes
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    own_window_type normal
    double_buffer yes
    minimum_size 200
    maximum_width 225
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders yes
    default_color white
    default_shade_color black
    default_outline_color green
    alignment top_right
    gap_x 15
    gap_y 15
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    override_utf8_locale no
    uppercase no
    
    # Define some Colors
    color0 tan2		# Headings
    color1 slategrey	# Horizonal lines
    color2 Ivory2		# Text
    
    ####
    ## Load Lua for bargraphs
    ## Set the path to your script here.
    #
    lua_load ~/.conky/bargraph_small.lua
    lua_draw_hook_post main_bars
    
    TEXT
    ###########################
    # Logo and Linux Mint 14 Text
    ###########################
    ${image ~/.conky/logo.png -s 35x35} ${alignc 72}${font Neuropolitical:pixelsize=25}${alignr}Linux Mint ${color0}14
    ${voffset -10}${goto 50}${color2}${font Neuropolitical:size=8}from freedom came elegance
    ###########################
    # Time
    ###########################
    ${color0}${font Neuropolitical:size=8:bold}TIME ${color1} ${hr 2} ${color2}${font}
    ${color2}${font Neuropolitical:pixelsize=56}${time %H:%M}${font}
    ${alignc -24}${color  white}${font Neuropolitical:pixelsize=11}${time %a %d %b %Y}${font}
    ###########################
    # System Information
    ###########################
    ${color0}${font Neuropolitical:size=8:bold}SYSTEM ${color1} ${hr 2} ${color2}${font}
    ${voffset 2}${font OpenLogos:size=10}${color2}u${voffset -4}${font DroidSans:size=8.6}${color2}${offset 5}${pre_exec lsb_release -sd || cat /etc/*release}${font}
    ${voffset 2}${offset -2}${font OpenLogos:size=12}${color2}Z${voffset -4}${font}${color2}${offset 3}${sysname}${offset 3}${kernel}${alignr}${machine}
    ${voffset 2}${font StyleBats:size=10}${color2}A${voffset -1}${font}${color2}${offset 5}Intel Core i7-2600k${alignr}${freq_g cpu0} GHz
    ${voffset 2}${font StyleBats:size=10}${color2}z${voffset -1}${font}${color2}${offset 5}Processes${alignr}${alignr}$processes ($running_processes running)
    ${voffset 2}${font StyleBats:size=10}${color2}q${voffset -1}${font}${color2}${offset 5}System Uptime${alignr}${uptime_short}
    
    ###########################
    # CPU and Processes
    ###########################
    ${color0}${font Neuropolitical:size=8:bold}PROCESSORS ${color1} ${hr 2} ${color2}${font}
    ${voffset 4}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color2}${offset 2}CPU1${offset 5}${font DroidSans:size=8.3}${cpu cpu1}%${font}
    ${voffset 2}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color2}${offset 2}CPU2${offset 5}${font DroidSans:size=8.3}${cpu cpu2}%${font}
    ${voffset 2}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color2}${offset 2}CPU3${offset 5}${font DroidSans:size=8.3}${cpu cpu3}%${font}
    ${voffset 2}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color2}${offset 2}CPU4${offset 5}${font DroidSans:size=8.3}${cpu cpu4}%${font}
    ${voffset 2}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color2}${offset 2}CPU5${offset 5}${font DroidSans:size=8.3}${cpu cpu5}%${font}
    ${voffset 2}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color2}${offset 2}CPU6${offset 5}${font DroidSans:size=8.3}${cpu cpu6}%${font}
    ${voffset 2}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color2}${offset 2}CPU7${offset 5}${font DroidSans:size=8.3}${cpu cpu7}%${font}
    ${voffset 2}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color2}${offset 2}CPU8${offset 5}${font DroidSans:size=8.3}${cpu cpu8}%${font}
    
    ###########################
    # Memory
    ###########################
    ${color0}${font Neuropolitical:size=8:bold}MEMORY ${color1} ${hr 2} ${color2}${font}
    ${voffset 4}${font StyleBats:size=10}${color2}l${voffset -2}${font DroidSansFallback:size=8.3}${color2}${offset 3}RAM${goto 97}${font DroidSans:size=8.3}${mem} / ${memmax}${alignr}${memperc}%${font}
    
    
    ###########################
    # HDDs
    ###########################
    ${color0}${font Neuropolitical:size=8:bold}HDD ${color1} ${hr 2} ${color2}${font}
    ${voffset 6}${font StyleBats:size=9.9}${color2}x${voffset -2}${font DroidSansFallback:size=8.3}${color2}${offset 4}/${goto 95}${font DroidSans:size=8.3}${fs_used /} / ${fs_size /}${alignr}${fs_free_perc /}%${font}
    ${voffset 15}${font StyleBats:size=9.9}${color2}x${voffset -2}${font DroidSansFallback:size=8.3}${color2}${offset 4}/home${goto 95}${font DroidSans:size=8.3}${fs_used /home} / ${fs_size /home}${alignr}${fs_free_perc /home}%${font}
    ${voffset 15}${font StyleBats:size=9.9}${color2}4${voffset -2}${font DroidSansFallback:size=8.3}${color2}${offset 4}SWAP${goto 95}${font DroidSans:size=8.3}${swap} / ${swapmax}${alignr}${swapperc}%${font}
    
    
    ###########################
    # Top Processes
    ###########################
    ${color0}${font Neuropolitical:size=8:bold}TOP PROCESSES ${color1} ${hr 2} ${color2}${font}
    ${voffset 6}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color2}${offset 5}${top_mem name 1}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 1}${alignr}${top_mem mem 1}%${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color2}${offset 5}${top_mem name 2}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 2}${alignr}${top_mem mem 2}%${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color2}${offset 5}${top_mem name 3}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 3}${alignr}${top_mem mem 3}%${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color2}${offset 5}${top_mem name 4}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 4}${alignr}${top_mem mem 4}%${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color2}${offset 5}${top_mem name 5}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 5}${alignr}${top_mem mem 5}%${font}
    
    ###########################
    # Network
    ###########################
    ${color0}${font Neuropolitical:size=8:bold}NETWORK ${color1} ${hr 2} ${color2}${font}
    ${voffset 4}${font StyleBats:size=10}y${voffset -3}${font DroidSans:size=8.65}${color2}${offset 5}SSID${font DroidSans:size=8.3}${alignr}${wireless_essid wlan1}${font}
    ${voffset 4}${font StyleBats:size=10}n${font DroidSans:size=8.65}${color2}${offset 5}WiFi Signal${font DroidSans:size=8.3}${alignr}${wireless_link_bar 6, 140 wlan1}${font}
    #${voffset 4}${font StyleBats:size=10}n${font DroidSans:size=8.65}${color2}${offset 5}WiFi Signal${font DroidSans:size=8.3}${alignr}${wireless_link_bar 6, 140 wlan1}${font}
    ${voffset 4}${font PizzaDudeBullets:size=9.5}T${font DroidSans:size=8.65}${color2}${offset 5}Download${goto 120}${font DroidSans:size=8.3}${totaldown wlan1}${alignr}${font DroidSans:size=8.3}${downspeed wlan1}${font}
    ${voffset 0}${font PizzaDudeBullets:size=9.5}N${font DroidSans:size=8.65}${color2}${offset 5}Upload${goto 120}${font DroidSans:size=8.3}${totalup wlan1}${alignr}${font DroidSans:size=8.3}${upspeed wlan1}${font}
    ${voffset 4}${font PizzaDudeBullets:size=9.5}a${font DroidSans:size=8.65}${color2}${offset 5}Private${offset 3}IP${alignr}${font DroidSans:size=8.3}${addr wlan1}${font}
    ${voffset 0}${font PizzaDudeBullets:size=9.5}a${font DroidSans:size=8.65}${color2}${offset 5}Public${offset 7}IP${alignr}${font DroidSans:size=8.3}${execi 1800 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}${font}
    
    ###########################
    # Banshee
    ###########################
    ${color0}${font Neuropolitical:size=8:bold}BANSHEE ${color1} ${hr 2} ${color2}${font}
    ${voffset 4}${font DroidSans:size=8.25}${if_running banshee}${color3}${alignc}${execi 2 banshee --query-title --no-present | cut -f2- -d " "}${font}${else}${alignc}banshee is not running${endif}
    I stumpled over 2 problems and hope that you can help me with that.

    My first problem is the Wifi Signal bar. Is it possible to use the bargraph_small.lua to render that bar?
    EDIT solved:
    I used wireless_link_qual:
    Code:
    	        {	--[ Graph for WLAN ]--
                            name="wireless_link_qual",
    			arg="wlan1",
    			max=100,
    			alarm=25,
    			alarm_colour={0xFF0000,0.72},
    			bg_colour={0xFFFFFF,0.25},
    			fg_colour={0x00FF00,0.55},
    			mid_colour={{0.45,0xFFFF00,0.70}},
    			x=wlanOffsetY,y=wlanOffset,
    			blocks=50,
    			space=1,
    			height=2,width=5,
    			angle=90,
    			smooth=true
    			},
    My second problem is a general problem with conky. When I press the "show desktop" shortcut, the conky frame gets minimized too. I am running Linux Mint 14 (Cinnamon). I have tried to change the own_window_type to desktop/panel/override, but neither of that worked.
    Can I prevent the minimization?
    Attached Images Attached Images
    Last edited by EikeB; January 2nd, 2013 at 04:26 AM.

  2. #21372
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    @ DobsonM, DK75 & VinDSL

    Why not use the draw-bg created by and worked on by:
    Background originally by londonali1010 (2009)
    ability to set any size for background mrpeachy 2011
    ability to set variables for bg in conkyrc dk75
    and now come with a built-in calendar.

    You can use it more that once with different configurations.

    Three LUA geniuses combined and it's a piece of art!

    draw-bg.lua
    Code:
    lua_load /media/5/Conky/LUA/draw-bg.lua
    TEXT
    ${lua conky_draw_bg 12 0 0 0 0 0x000000 0.6}
    ${lua conky_draw_bg 175 0 0 350 350 0xffffff 0.2}
    ${lua conky_draw_bg 60 115 31 120 120 0x000000 0.4}
    ${lua conky_draw_bg 58 32 118 116 116 0x000000 0.4}
    ${lua conky_draw_bg 58 202 118 116 116 0x000000 0.4}
    ${lua conky_draw_bg 60 115 200 120 120 0x000000 0.4}
    First the whole background
    Second the large white circle
    Then the 4 smaller citcles



    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!)
    @Mr Peachy
     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#######################################################

  3. #21373
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by EikeB View Post
    Hi,

    My second problem is a general problem with conky. When I press the "show desktop" shortcut, the conky frame gets minimized too. I am running Linux Mint 14 (Cinnamon). I have tried to change the own_window_type to desktop/panel/override, but neither of that worked.
    Can I prevent the minimization?
    Try this:
    Code:
    # Boolean value, if true, Conky will be forked to background when started.
    background yes

  4. #21374
    Join Date
    Jul 2011
    Beans
    4

    Re: Post your .conkyrc files w/ screenshots

    Changing background to yes does not affect the view of conky, or does it?
    It just forks the process to the background, I don't see how that solves my problem.

    Nonetheless, I tried it but that did not work.

  5. #21375
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by EikeB View Post
    Changing background to yes does not affect the view of conky, or does it?
    It just forks the process to the background, I don't see how that solves my problem.

    Nonetheless, I tried it but that did not work.
    Don't use Mint but found a solution that may work.
    Use own_window_type dock
    See HERE

  6. #21376
    Join Date
    Jul 2011
    Beans
    4

    Re: Post your .conkyrc files w/ screenshots

    Thank you stinkeye, works like a charm
    I changed the config to:
    Code:
    own_window yes
    own_window_type dock
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    [...]
    #alignment top_right
    gap_x 3605
    gap_y 15

  7. #21377
    Join Date
    Aug 2011
    Beans
    32

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    @ DobsonM, DK75 & VinDSL

    Why not use the draw-bg created by and worked on by:

    and now come with a built-in calendar.

    You can use it more that once with different configurations.

    Three LUA geniuses combined and it's a piece of art!

    draw-bg.lua
    Code:
    lua_load /media/5/Conky/LUA/draw-bg.lua
    TEXT
    ${lua conky_draw_bg 12 0 0 0 0 0x000000 0.6}
    ${lua conky_draw_bg 175 0 0 350 350 0xffffff 0.2}
    ${lua conky_draw_bg 60 115 31 120 120 0x000000 0.4}
    ${lua conky_draw_bg 58 32 118 116 116 0x000000 0.4}
    ${lua conky_draw_bg 58 202 118 116 116 0x000000 0.4}
    ${lua conky_draw_bg 60 115 200 120 120 0x000000 0.4}
    First the whole background
    Second the large white circle
    Then the 4 smaller citcles



    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!)
    @Mr Peachy
     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#######################################################
    Looks really good, but all I need is a background and I don't have the knowledge to edit it just for that. Thanks for the thought though.

  8. #21378
    Join Date
    Apr 2012
    Location
    Darkstar
    Beans
    358

    Re: Post your .conkyrc files w/ screenshots

    Can someone please help me get started on conky?
    I never bothered playing with all of the customization stuff in Linux.
    CrunchBang Linux
    Plz no tpe lik dis or no anser!!
    The search tool can be found in the upper right corner of your screen, please use it to your advantage, especially before asking questions.

  9. #21379
    Join Date
    Jul 2012
    Location
    Oklahoma, USA
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by codingman View Post
    Can someone please help me get started on conky?
    I never bothered playing with all of the customization stuff in Linux.
    Download Conky from here.

    or just type the following in terminal...

    Code:
    sudo apt-get install conky
    A very simple and easily configurable Conky script can be found here. It's where I got my start with it.

    One other thing...
    You will probably want to create a bash script to get conky to start automatically. Do this by creating an empty text file called ".conky-start.sh" in your home directory. Then paste the following code into the body and save.

    Code:
    #!/bin/bash
    sleep 30 && conky ;
    You can then use the "Startup Applications" program in Ubuntu to run the .conky-start.sh file automatically at start up.

    Yet another thing...
    Once you get conky installed and a .conkyrc file saved to your home directory, you can run conky from terminal by simply typing "conky", to stop it type "killall conky" in another terminal.

    If you have any problems getting it to run just let us know.
    Last edited by Petro Dawg; January 3rd, 2013 at 01:29 AM. Reason: Incorrect Link
    Who's Awesome? You're Awesome.

  10. #21380
    Join Date
    Aug 2010
    Location
    Detachment 7
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    And now, and without further ado, Introducing the Worlds greatest all-in-one Debian based Distro, VSIDO, using Xfce4.10! Weather courtesy of mrpeachy, Tint2 panels courtesy of Sector11, (and me, as I've learned a little about Tint2). The wonderful album art and lyrics display at bottom right courtesy of VastOne's awesome gmusicbrowser layouts. The email conky in the upper right corner courtesy of the Kaivalagi python script. The horizontal Conky starting at the top left is the default conky provided with VSIDO!

    | [I]Running 'VSIDO' | My blog |

Page 2138 of 2299 FirstFirst ... 1138163820382088212821362137213821392140214821882238 ... 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
  •