Page 1112 of 2300 FirstFirst ... 1126121012106211021110111111121113111411221162121216122112 ... LastLast
Results 11,111 to 11,120 of 22995

Thread: Post your .conkyrc files w/ screenshots

  1. #11111
    Join Date
    Nov 2008
    Location
    Wirral, UK
    Beans
    277
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by DachaArh View Post
    done all I wanted from conky...

    but I have one problem...

    see photo :



    my text part of conky is ending right bellow that big clock...
    that shadow and border for conky, is done on wallpaper directly, conky has no shadow, borders ...etc

    But my conky "window" is not ending bellow that text, it is ending, more than 100 pixels bellow...

    so my desktop icon is half covered...

    Now, is ther a way to limit height of conky, or something else ...

    here is my .conkyrc

    Code:
    # Conky configuration
    background yes
    use_xft yes
    xftfont DejaVu Sans:size=7
    xftalpha 1
    text_buffer_size 5000
    out_to_console no
    update_interval 5
    total_run_times 0
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    draw_shades yes
    draw_outline no
    draw_borders no
    draw_graph_borders no
    stippled_borders 5
    border_margin 4
    border_width 1
    default_color grey
    default_shade_color black
    default_outline_color 474848
    alignment top_right
    gap_x 20
    gap_y 149
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    net_avg_samples 2
    override_utf8_locale yes
    use_spacer none
    
    TEXT
    ${font Dejavu Sans Considered:size=8}SYSTEM${font}     ${hr 2}
    ${font Dejavu Sans Considered:size=8}${alignr}.......::Ubuntu 9.04^Мастер Чода${font}
    ${voffset -5}${font Dejavu Sans Considered:size=6}${alignr}............................................................${font}
    ${voffset -2}${font OpenLogos:size=10}${font}${offset 35}Kernel: ${alignr}${kernel}
    ${voffset -5}${font Dejavu Sans Considered:size=6}${alignr}............................................................${font}
    ${voffset -3}${font Dejavu Sans Considered:size=7}${offset 37}used${font}${alignr}used / total${font}
    ${voffset -7}${font Dejavu Sans Considered:size=6}${alignr}..................................................${font}
    ${font StyleBats:size=10}${font} Cpu:${offset 10}${cpu cpu0}% ${alignr}${cpubar cpu1 8,60}
    ${font StyleBats:size=10}${font} Ram${offset 10}$memperc%${alignr}${membar 8,60}
    ${font StyleBats:size=10}${font} Swap:${offset 9}$swapperc%${alignr}${swapbar 8,60}
    ${voffset -5}${font Dejavu Sans Considered:size=6}${alignr}..................................................${font}
    ${font StyleBats:size=10}${font} Uptime:${alignr}${uptime}
    ${font StyleBats:size=10}${font} Processes: ${alignr}$processes ($running_processes running)
    ${voffset -7}${font Dejavu Sans Considered:size=6}${alignr}..................................................${font}
    ${voffset -2}${alignr}   name         cpu% ram%${font}
    ${voffset -7}${font Dejavu Sans Considered:size=6}${alignr}..................................................${font}
    ${voffset -2}${alignr}${top name 1}${top cpu 1} ${top mem 1}
    ${voffset -2}${alignr}${top name 2}${top cpu 2} ${top mem 2}
    ${voffset -2}${alignr}${top name 3}${top cpu 3} ${top mem 3}
    ${font Dejavu Sans Considered:size=8}HD${font}     ${hr 2}
    ${voffset -3}${font Dejavu Sans Considered:size=7}${alignr}used / total${font}
    ${voffset -7}${font Dejavu Sans Considered:size=6}${alignr}..................................................${font}
    ${font Dejavu Sans Considered:size=7}Home:${font}
    ${font Dejavu Sans Considered:size=7}${fs_free /home}/${fs_size /home}${font}${alignr}${fs_bar 8,60 /home}
    ${voffset 2}${font Dejavu Sans Considered:size=7}System:${font}
    ${font Dejavu Sans Considered:size=7}${fs_free /}/${fs_size /}${font}${alignr}${fs_bar 8,60 /}
    ${font Dejavu Sans Considered:size=8}NETWORK${font}    ${hr 2}
    ${voffset 4}${font PizzaDude Bullets:size=10}${font} Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,60}
    ${font PizzaDude Bullets:size=10}${font} Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60}
    ${font PizzaDude Bullets:size=10}${font} Upload: ${alignr}${totalup eth0}
    ${font PizzaDude Bullets:size=10}${font} Download: ${alignr}${totaldown eth0}
    ${font Dejavu Sans Considered:size=8}WEATHER${font}     ${hr 2}
    ${voffset 2}${font Dejavu Sans Considered:size=8}${alignr}......::::Beograd^Srbija, bre${font}
    ${voffset -5}${font Dejavu Sans Considered:size=6}${alignr}................................................${font}
    ${voffset 2}${font Dejavu Sans Considered:size=8} ${alignr}.....::Current${font}
    ${font Dejavu Sans Considered:size=7} ${alignr}Conditions: ${execi 1800 conkyForecast --location=SRXX0005 --datatype=CT}${font}
    ${font} ${font Dejavu Sans Considered:size=7}Temp:${font} ${font Dejavu Sans Considered:size=15}${execi 1800 conkyForecast --location=SRXX0005 --datatype=HT --hideunits}${font}${font Dejavu Sans Considered:size=8}c${font}
    ${voffset 2}${font ConkyWeather:style=Bold:size=32}${execi 1800 conkyForecast --location=SRXX0005 --datatype=WF}${font}${font Dejavu Sans Considered:size=7}${voffset -32}      Feels like: ${font} ${font Dejavu Sans Considered:size=8}${execi 1800 conkyForecast --location=SRXX0005 --datatype=LT --hideunits}${font}${font Dejavu Sans Considered:size=8}c${font}
    ${voffset -1}${font Dejavu Sans Considered:size=7}                 Wind Speed:${font}  ${font Dejavu Sans Considered:size=8} ${execi 1800 conkyForecast --location=SRXX0005 --datatype=WS --locale=RO --hideunits}${font}${font Dejavu Sans Considered:size=7} km/h${font}
    ${voffset 1}${font Dejavu Sans Considered:size=7}                 units: 1 km/h=0.277 m/s${font}
    ${voffset -3}${font Dejavu Sans Considered:size=6}${voffset 1}${alignr}............................................................${font}
    ${voffset 2}${font Dejavu Sans Considered:size=8} ${alignr}.....::Today${font}
    ${voffset 2}${font}${font Dejavu Sans Considered:size=7}Lowest Temp:${font} ${font Dejavu Sans Considered:size=12}${execi 1800 conkyForecast --location=SRXX0005 --datatype=LT --hideunits --startday=0}${font}${font Dejavu Sans Considered:size=8}c${font}
    ${voffset 2}${font Dejavu Sans Considered:size=7}${alignr}Sunrise: ${execi 1800 conkyForecast --location=SRXX0005 --datatype=SR}      Sunset: ${execi 1800 conkyForecast --location=SRXX0005 --datatype=SS}${font}
    ${voffset -5}${font Dejavu Sans Considered:size=6}${alignr}............................................................${font}
    ${font Dejavu Sans Considered:size=8}${alignr}.....::Next Days${font}
    ${voffset 2}${font Dejavu Sans Considered:size=7}${offset 9}${execi 1800 conkyForecast --location=SRXX0005 --datatype=DW --startday=1 --shortweekday}${offset 53}${execi 1800 conkyForecast --location=SRXX0005 --datatype=DW --startday=2 --shortweekday}${offset 53}${execi 1800 conkyForecast --location=SRXX0005 --datatype=DW --startday=3 --shortweekday}${font}
    ${voffset 1}${font ConkyWeather:style=Bold:size=28}${execi 1800 conkyForecast --location=SRXX0005 --datatype=WF --startday=1}${offset 35}${execi 1800 conkyForecast --location=SRXX0005 --datatype=WF --startday=2}${offset 35}${execi 1800 conkyForecast --location=SRXX0005 --datatype=WF --startday=3}${font}
    ${voffset 1}${font Dejavu Sans Considered:size=7}${execi 1800 conon_bottom yes
    kyForecast --location=SRXX0005 --datatype=HT  --hideunits --startday=1}^${execi 1800 conkyForecast --location=SRXX0005 --datatype=LT  --hideunits --startday=1}${font}${offset 31}${font Dejavu Sans Considered:size=7}${execi 1800 conkyForecast --location=SRXX0005 --datatype=HT  --hideunits --startday=2}^${execi 1800 conkyForecast --location=SRXX0005 --datatype=LT  --hideunits --startday=2}${font}${alignr}${font Dejavu Sans Considered:size=7}${execi 1800 conkyForecast --location=SRXX0005 --datatype=HT  --hideunits --startday=3}^${execi 1800 conkyForecast --location=SRXX0005 --datatype=LT  --hideunits --startday=3}${font}
    ${voffset -5}${font Dejavu Sans Considered:size=6}${alignr}............................................................${font}
    ${font Dejavu Sans Considered:size=7}${alignr}Last Update: ${execi 1800 conkyForecast --location=SRXX0005 --datatype=LU}${font}
    ${font Dejavu Sans Considered:size=7}${alignr}Last Fetch: ${execi 1800 conkyForecast --location=SRXX0005 --datatype=LF}${font}
    ${font Dejavu Sans Considered:size=8}DATE & TIME${font}     ${hr 2}
    ${font Dejavu Sans Considered:size=7}${alignr}${time %A,  %d.%B %Y}${font}
    ${voffset -7}${font Dejavu Sans Considered:size=6}${alignr}..............................${font}
    ${voffset -5}${font Dejavu Sans Considered:size=22}${alignr}${time %H:%M}${font}
    what am I mistaking, please help ..?

    conky is running with no errors

    now, I know it is about all "${voffset} I did, so conky window is actualy larger... can I limit it's dimensions ?
    you can set a minimum size for your conky by using the command

    Code:
    minimum_size x y
    substitute x & y for the dimensions required,

    unfortunately you can only set a maximum size for the width

    Code:
    maximum_width x
    again substitute x for the desired value

    there is no command for
    Code:
    maximum_height
    I'll never drink water again....Fish poo in it!
    XP for iTunes Only : Ubuntu10.04 : Crunchbang : DSL
    I'm Pushing Narcoleptic Numbat for ubuntu11.04
    Proper Funny Stuff

  2. #11112
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by DachaArh View Post
    done all I wanted from conky...

    but I have one problem...

    conky is running with no errors

    now, I know it is about all "${voffset} I did, so conky window is actualy larger... can I limit it's dimensions ?
    No, sorry. The answer is -->> move the icon

    I have one conky using:
    Code:
    minimum_size 200 0
    that 0 represents a minimum height of 0 pixels and I see the entire conky.

    Now if conky had a maximum_size command - but it doesn't.

  3. #11113
    Join Date
    May 2008
    Location
    Belgrade. Serbia
    Beans
    158
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Post your .conkyrc files w/ screenshots

    ok, I see that only solution is to move icon, thanks for help

  4. #11114
    Join Date
    Feb 2009
    Location
    UK
    Beans
    129
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by DachaArh View Post
    ok, I see that only solution is to move icon, thanks for help
    WAIT! Moving your icon isn't the ONLY solution!

    See, Conky draws a window big enough for all your lines of text, even if you use a negative $voffset to squish them all up. In that case, you are left with a bunch of empty space at the bottom that you can't get rid of (which is what's happening to you).

    Before you resign yourself to moving your icon, see if you can't condense some of your code onto fewer lines...for instance, all of your weather, including windspeed, etc. can be condensed into a single template, which will save you probably 10 lines.
    - Samsung R519 Silver - Dual-Boot Windows 7/Ubuntu 9.10 -
    - The Official Conky Blog - Follow conkynews on Twitter -
    - My Launchpad PPA -
    - My blog: My Little Desktop -

  5. #11115
    Join Date
    Sep 2009
    Beans
    16

    Re: Post your .conkyrc files w/ screenshots

    Code:
    use_xft yes
    xftfont verdana:size=8
    alignment top_right
    xftalpha 0.8
    
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorate,sticky,below,skip_taskbar,skip_pager
    
    double_buffer yes
    draw_shades no
    draw_outline no
    draw_borders no
    
    stippled_borders 1 #10
    border_width 1 #1
    border_inner_margin 0 #5
    border_outer_margin 0
    gap_x 0
    gap_y 0
    
    
    default_shade_color grey
    default_outline_color black
    default_color BADCDD
    use_spacer none
    no_buffers yes
    uppercase no
    color1 F8DF58 #yellow-white
    color2 BADCDD #white blue
    
    
    TEXT
    ${color1}${font weather:size=80}${execi 600 ~/scripts/conditions.sh}${color}${font}${voffset -25}  ${execi 1200 ~/scripts/pogodynka.sh}
      
    ${color1}${font weather:size=28}x ${font}${color2} HDD  ${execpi 300 hddtemp /dev/sda | tail -c6}
    
    ${color1}${font PizzaDude Bullets:size=16}v${font}   ${color2}Up: ${upspeedf eth0} Kb/s 
    ${color1}${font PizzaDude Bullets:size=16}r${font}   ${color2}Down: ${downspeedf eth0} Kb/s 
    
    ${color1}${font PizzaDude Bullets:size=16}M${font}    ${color2}Upload: ${totalup eth0}
    ${color1}${font PizzaDude Bullets:size=16}S${font}   ${color2}Download: ${totaldown eth0}
    
    ${color1}${font StyleBats:size=16}A${font}     ${color2}CPU: ${cpu cpu0}% ${cpubar cpu0 8, 60}
    
    ${color1}${font PizzaDude Bullets:size=16}g${font}     ${color2}RAM: $memperc% ${membar 8, 60}
    
    ${color1}${font StyleBats:size=16}m${font}     ${color2}Disk: ${fs_used_perc /}% ${fs_bar 8, 60}                              
    
    ${color1}${font FreeSans:size=16}@${font}${execpi 300 python ~/scripts/gmail_parser.py  3}
    ${color1}${font StyleBats:size=18}J${font}    ${color2}Work:  ${uptime_short}
       
    ${color1}${font Musicelements:size=16}n${font}    ${color2}${exec rhythmbox-client --no-start --print-playing-format %tt}
    #   ${color1}${exec rhythmbox-client --no-start --print-playing-format %aa}  ${font RadioSpace:size=8}
    #   ${color1}${exec rhythmbox-client --no-start --print-playing-format %at}
    
      ${color1}${font Radio Space:size=12}${time %A %d %Y}
      ${color1}${font Radio Space:size=42}${time %H:%M}


    Can anyone tell me how I can get the info to move all the way to the edge of the screen?

  6. #11116
    Join Date
    Nov 2008
    Location
    Wirral, UK
    Beans
    277
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Orbegoso View Post
    Code:
    use_xft yes
    xftfont verdana:size=8
    alignment top_right
    xftalpha 0.8
    
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorate,sticky,below,skip_taskbar,skip_pager
    
    double_buffer yes
    draw_shades no
    draw_outline no
    draw_borders no
    
    stippled_borders 1 #10
    border_width 1 #1
    border_inner_margin 0 #5
    border_outer_margin 0
    gap_x 0
    gap_y 0
    maximum_width 250
    
    
    default_shade_color grey
    default_outline_color black
    default_color BADCDD
    use_spacer none
    no_buffers yes
    uppercase no
    color1 F8DF58 #yellow-white
    color2 BADCDD #white blue
    
    TEXT
    ${color1}${font weather:size=80}${execi 600 ~/scripts/conditions.sh}${color}${font}${voffset -25}  ${execi 1200 ~/scripts/pogodynka.sh}
      
    ${color1}${font weather:size=28}x ${font}${color2} HDD  ${execpi 300 hddtemp /dev/sda | tail -c6}
    
    ${color1}${font PizzaDude Bullets:size=16}v${font}   ${color2}Up: ${upspeedf eth0} Kb/s 
    ${color1}${font PizzaDude Bullets:size=16}r${font}   ${color2}Down: ${downspeedf eth0} Kb/s 
    
    ${color1}${font PizzaDude Bullets:size=16}M${font}    ${color2}Upload: ${totalup eth0}
    ${color1}${font PizzaDude Bullets:size=16}S${font}   ${color2}Download: ${totaldown eth0}
    
    ${color1}${font StyleBats:size=16}A${font}     ${color2}CPU: ${cpu cpu0}% ${cpubar cpu0 8, 60}
    
    ${color1}${font PizzaDude Bullets:size=16}g${font}     ${color2}RAM: $memperc% ${membar 8, 60}
    
    ${color1}${font StyleBats:size=16}m${font}     ${color2}Disk: ${fs_used_perc /}% ${fs_bar 8, 60}                              
    
    ${color1}${font FreeSans:size=16}@${font}${execpi 300 python ~/scripts/gmail_parser.py  3}
    ${color1}${font StyleBats:size=18}J${font}    ${color2}Work:  ${uptime_short}
       
    ${color1}${font Musicelements:size=16}n${font}    ${color2}${exec rhythmbox-client --no-start --print-playing-format %tt}
    #   ${color1}${exec rhythmbox-client --no-start --print-playing-format %aa}  ${font RadioSpace:size=8}
    #   ${color1}${exec rhythmbox-client --no-start --print-playing-format %at}
    
      ${color1}${font Radio Space:size=12}${time %A %d %Y}
      ${color1}${font Radio Space:size=42}${time %H:%M}


    Can anyone tell me how I can get the info to move all the way to the edge of the screen?
    use the
    Code:
    maximum_width x
    function before the TEXT line in your conky file,

    experiment with different values of x until you get what you need

    See the command in red in your file
    Last edited by 5BallJuggler; December 20th, 2009 at 11:02 AM.
    I'll never drink water again....Fish poo in it!
    XP for iTunes Only : Ubuntu10.04 : Crunchbang : DSL
    I'm Pushing Narcoleptic Numbat for ubuntu11.04
    Proper Funny Stuff

  7. #11117
    Join Date
    May 2008
    Beans
    13

    Re: Post your .conkyrc files w/ screenshots

    hello,
    after upgrading to karmic, it seems like the calendar script in my conky doesn't work well. could you help me what I should change in my files?
    The problem is that the whole conky becomes too wide. If I remove the calendar part it'll be fine.
    Thx in advance

    before karmic:

    with karmic (it is too wide):


    here is my conkyrc file:
    Code:
    # Use Xft?
    use_xft yes
    xftfont DejaVu Sans:size=8
    xftalpha 0.8
    text_buffer_size 2048
    
    # Update interval in seconds
    update_interval 1
    
    # This is the number of times Conky will update before quitting.
    # Set to zero to run forever.
    total_run_times 0
    
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_transparent yes
    own_window_type override
    #own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # Minimum size of text area
    minimum_size 180 0
    #maximum_width 200
    
    # Draw shades?
    draw_shades no
    
    # Draw outlines?
    draw_outline no
    
    # Draw borders around text
    draw_borders no
    
    # Stippled borders?
    stippled_borders 0
    
    # border margins
    border_margin 5
    
    # border width
    border_width 1
    
    # Default colors and also border colors
    default_color white
    #default_shade_color black
    #default_outline_color white
    own_window_colour white
    
    # Text alignment, other possible values are commented
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    
    # Gap between borders of screen and text
    # same thing as passing -x at command line
    gap_x 25
    gap_y 20
    
    # Subtract file system buffers from used memory?
    no_buffers yes
    
    # set to yes if you want all text to be in uppercase
    uppercase no
    
    # number of cpu samples to average
    # set to 1 to disable averaging
    cpu_avg_samples 2
    
    # number of net samples to average
    # set to 1 to disable averaging
    net_avg_samples 2
    
    # Force UTF8? note that UTF8 support required XFT
    override_utf8_locale yes
    
    # Add spaces to keep things from moving about?  This only affects certain objects.
    use_spacer none
    
    TEXT
    SYSTEM ${hr 2}
    ${voffset 2}${font OpenLogos:size=16}u${font}   Kernel:  ${alignr}${kernel}
    ${font StyleBats:size=16}A${font}   CPU1: 
    ${cpu cpu1}% ${alignr} ${freq}MHz ${acpitemp}C  ${alignr}${cpubar cpu1 8,60}
    ${font StyleBats:size=16}A${font}   CPU2: 
    ${cpu cpu2}% ${alignr} ${freq}MHz ${acpitemp}C  ${alignr}${cpubar cpu2 8,60}
    ${font StyleBats:size=16}g${font}   RAM: $memperc% ${alignr}${membar 8,60}
    ${font StyleBats:size=16}j${font}   SWAP: $swapperc% ${alignr}${swapbar 8,60}
    $swap/$swapmax
    ${font StyleBats:size=16}q${font}   Uptime: ${alignr}${uptime}
    
    DATE ${hr 2}
    ${alignc 35}${font Arial Black:size=26}${time %H:%M}${font}
    ${alignc}${time %A %d %Y}
    
    #calendar
    ${color white}${font Monospace:size=11}${execi 1 ~/.scripts/calendar.sh first_part}${color yellow}${execi 1 ~/.scripts/calendar.sh today}${color white}${execi 1 ~/.scripts/calendar.sh second_part}
    
    
    HD ${hr 2}
    ${voffset 4}${font Pie charts for maps:size=14}7${font}   ${voffset -5}root:
    ${voffset 4}${fs_free /}/${fs_size /} ${alignr}${fs_bar 8,60 /}
    ${font Pie charts for maps:size=14}7${font}   ${voffset -5}gab:
    ${voffset 4}${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}
    ${font Pie charts for maps:size=14}7${font}   ${voffset -5}otthon:
    ${voffset 4}${fs_free /media/otthon}/${fs_size /media/otthon} ${alignr}${fs_bar 8,60 /media/otthon}
    ${font Pie charts for maps:size=14}7${font}   ${voffset -5}adat:
    ${voffset 4}${fs_free /media/adat}/${fs_size /media/adat} ${alignr}${fs_bar 8,60 /media/adat}
    
    NETWORK ${hr 2}
    ${voffset 4}${font PizzaDude Bullets:size=14}O${font}   Up: ${upspeed eth0} Kb/s ${alignr}${upspeedgraph eth0 8,60 789E2D A7CC5C}
    ${voffset 4}${font PizzaDude Bullets:size=14}U${font}   Down: ${downspeed eth0} Kb/s ${alignr}${downspeedgraph eth0 8,60 789E2D A7CC5C}
    ${voffset 4}${font PizzaDude Bullets:size=14}N${font}   Upload: ${alignr}${totalup eth0}
    ${voffset 4}${font PizzaDude Bullets:size=14}T${font}   Download: ${alignr}${totaldown eth0}

    and here is the calandar.sh script:
    Code:
    #! /bin/sh
    #str=`echo '\033[01;32m29'`
    
    DATE=`date | awk -F" " '{print $3}'`
    
    case "$1" in
    first_part)
    cal | grep '[a-zA-Z]';
    cal | grep -v '[a-zA-Z]' | grep '[0-9]' | awk -F$DATE ' BEGIN {i=0}
    ($1 == $0 && i==0) {print $1}($1 != $0 && i==0){i=i+1;print $1}';
    ;;
    today)
    echo $DATE;
    ;;
    second_part)
    cal | grep -v '[a-zA-Z]' | grep '[0-9]' | awk -F$DATE ' BEGIN {i=1}
    (i==0) {print $0}($1 != $0 && i==1){i=i-1;print $2}';
    ;;
    esac

  8. #11118
    Join Date
    Jul 2009
    Location
    Germany > Hessen > DA
    Beans
    26

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by inigo48 View Post
    hello,
    after upgrading to karmic, it seems like the calendar script in my conky doesn't work well. could you help me what I should change in my files?
    The problem is that the whole conky becomes too wide. If I remove the calendar part it'll be fine.
    Thx in advance

    before karmic:

    with karmic (it is too wide):


    here is my conkyrc file:
    Code:
    # Use Xft?
    use_xft yes
    xftfont DejaVu Sans:size=8
    xftalpha 0.8
    text_buffer_size 2048
    
    # Update interval in seconds
    update_interval 1
    
    # This is the number of times Conky will update before quitting.
    # Set to zero to run forever.
    total_run_times 0
    
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_transparent yes
    own_window_type override
    #own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # Minimum size of text area
    minimum_size 180 0
    #maximum_width 200
    
    # Draw shades?
    draw_shades no
    
    # Draw outlines?
    draw_outline no
    
    # Draw borders around text
    draw_borders no
    
    # Stippled borders?
    stippled_borders 0
    
    # border margins
    border_margin 5
    
    # border width
    border_width 1
    
    # Default colors and also border colors
    default_color white
    #default_shade_color black
    #default_outline_color white
    own_window_colour white
    
    # Text alignment, other possible values are commented
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    
    # Gap between borders of screen and text
    # same thing as passing -x at command line
    gap_x 25
    gap_y 20
    
    # Subtract file system buffers from used memory?
    no_buffers yes
    
    # set to yes if you want all text to be in uppercase
    uppercase no
    
    # number of cpu samples to average
    # set to 1 to disable averaging
    cpu_avg_samples 2
    
    # number of net samples to average
    # set to 1 to disable averaging
    net_avg_samples 2
    
    # Force UTF8? note that UTF8 support required XFT
    override_utf8_locale yes
    
    # Add spaces to keep things from moving about?  This only affects certain objects.
    use_spacer none
    
    TEXT
    SYSTEM ${hr 2}
    ${voffset 2}${font OpenLogos:size=16}u${font}   Kernel:  ${alignr}${kernel}
    ${font StyleBats:size=16}A${font}   CPU1: 
    ${cpu cpu1}% ${alignr} ${freq}MHz ${acpitemp}C  ${alignr}${cpubar cpu1 8,60}
    ${font StyleBats:size=16}A${font}   CPU2: 
    ${cpu cpu2}% ${alignr} ${freq}MHz ${acpitemp}C  ${alignr}${cpubar cpu2 8,60}
    ${font StyleBats:size=16}g${font}   RAM: $memperc% ${alignr}${membar 8,60}
    ${font StyleBats:size=16}j${font}   SWAP: $swapperc% ${alignr}${swapbar 8,60}
    $swap/$swapmax
    ${font StyleBats:size=16}q${font}   Uptime: ${alignr}${uptime}
    
    DATE ${hr 2}
    ${alignc 35}${font Arial Black:size=26}${time %H:%M}${font}
    ${alignc}${time %A %d %Y}
    
    #calendar
    ${color white}${font Monospace:size=11}${execi 1 ~/.scripts/calendar.sh first_part}${color yellow}${execi 1 ~/.scripts/calendar.sh today}${color white}${execi 1 ~/.scripts/calendar.sh second_part}
    
    
    HD ${hr 2}
    ${voffset 4}${font Pie charts for maps:size=14}7${font}   ${voffset -5}root:
    ${voffset 4}${fs_free /}/${fs_size /} ${alignr}${fs_bar 8,60 /}
    ${font Pie charts for maps:size=14}7${font}   ${voffset -5}gab:
    ${voffset 4}${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}
    ${font Pie charts for maps:size=14}7${font}   ${voffset -5}otthon:
    ${voffset 4}${fs_free /media/otthon}/${fs_size /media/otthon} ${alignr}${fs_bar 8,60 /media/otthon}
    ${font Pie charts for maps:size=14}7${font}   ${voffset -5}adat:
    ${voffset 4}${fs_free /media/adat}/${fs_size /media/adat} ${alignr}${fs_bar 8,60 /media/adat}
    
    NETWORK ${hr 2}
    ${voffset 4}${font PizzaDude Bullets:size=14}O${font}   Up: ${upspeed eth0} Kb/s ${alignr}${upspeedgraph eth0 8,60 789E2D A7CC5C}
    ${voffset 4}${font PizzaDude Bullets:size=14}U${font}   Down: ${downspeed eth0} Kb/s ${alignr}${downspeedgraph eth0 8,60 789E2D A7CC5C}
    ${voffset 4}${font PizzaDude Bullets:size=14}N${font}   Upload: ${alignr}${totalup eth0}
    ${voffset 4}${font PizzaDude Bullets:size=14}T${font}   Download: ${alignr}${totaldown eth0}
    and here is the calandar.sh script:
    Code:
    #! /bin/sh
    #str=`echo '\033[01;32m29'`
    
    DATE=`date | awk -F" " '{print $3}'`
    
    case "$1" in
    first_part)
    cal | grep '[a-zA-Z]';
    cal | grep -v '[a-zA-Z]' | grep '[0-9]' | awk -F$DATE ' BEGIN {i=0}
    ($1 == $0 && i==0) {print $1}($1 != $0 && i==0){i=i+1;print $1}';
    ;;
    today)
    echo $DATE;
    ;;
    second_part)
    cal | grep -v '[a-zA-Z]' | grep '[0-9]' | awk -F$DATE ' BEGIN {i=1}
    (i==0) {print $0}($1 != $0 && i==1){i=i-1;print $2}';
    ;;
    esac
    Hi inigo48,

    why so complicated?
    Please go to this line, which does the same as your script:
    Code:
    ${execpi 60 DJS=`date +%_d`; cal | sed '/./!d' | sed 's/$/                     /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color orange}'"$DJS"'${color}'" "/}
    Add it to the body of your script in the .conkyrc
    Last edited by searchOne; December 20th, 2009 at 12:50 PM.
    64Bit - HP Compaq Presario CQ60-105EG, 4GB RAM, 160GB, NVIDIA GeForce 8200M, AMD Athlon X2 Dual-Core / Mandriva 2009.1, Mandriva 2010, #! Crunchbang 9.04.01 Conky-Hardcore - searchOne

  9. #11119
    Join Date
    Sep 2007
    Location
    Greece.
    Beans
    Hidden!
    Distro
    Xubuntu 10.10 Maverick Meerkat

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by londonali1010 View Post
    WAIT! Moving your icon isn't the ONLY solution!

    See, Conky draws a window big enough for all your lines of text, even if you use a negative $voffset to squish them all up. In that case, you are left with a bunch of empty space at the bottom that you can't get rid of (which is what's happening to you).

    Before you resign yourself to moving your icon, see if you can't condense some of your code onto fewer lines...for instance, all of your weather, including windspeed, etc. can be condensed into a single template, which will save you probably 10 lines.
    So that's why my conky window was taking up half my screen to display 5 lines. Damn voffsets
    Ubuntu user #20092 || I can't sing.

  10. #11120
    Join Date
    Nov 2007
    Beans
    20
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Post your .conkyrc files w/ screenshots

    Hi all,
    Thought I'd post a simple script to display the horizontal calendar.

    This one should not have the bug like the last one which made the calendar go crazy on the 8th of every month.
    Also (especially) for Bruce, the calendar would remain the same width every month even without displaying any dates of the coming month.

    Code:
    #!/bin/bash
    #minimalistic horizontal caalendar for conky by ans.
    
    TOP=`cal|head -n 2| tail -n 1`
    LINE1=`cal|head -n 3| tail -n 1`
    LINE2=`cal|head -n 4| tail -n 1`
    LINE3=`cal|head -n 5| tail -n 1`
    LINE4=`cal|head -n 6| tail -n 1`
    LINE5=`cal|head -n 7| tail -n 1`
    
    echo $TOP $TOP $TOP $TOP $TOP
    echo " $LINE1 $LINE2 $LINE3 $LINE4 $LINE5"
    
    TODAY=`date +%d`
    FIRSTDAY=`date -d "-1 month -$(($(date +%d)-1)) days +1 month" +%u`
    if [ $FIRSTDAY -eq 7 ]
    then
    	FIRSTDAY=1
    fi 
    POSIT=`echo "($TODAY + $FIRSTDAY)*17"|bc`
    echo "\${voffset -14}\${goto $POSIT}\${color skyblue} [  ]"
    exit 0
    I had the sudden urge to go minimalistic so almost no colors. But it would be easy to add using sed

    BTW the number in red should be different for different combinations of font size and DPI settings. I felt too lazy to try and figure out how to make it dynamic, but if somebody needs it then i'll give it a go.
    Attached Images Attached Images

Page 1112 of 2300 FirstFirst ... 1126121012106211021110111111121113111411221162121216122112 ... 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
  •