Page 142 of 2348 FirstFirst ... 42921321401411421431441521922426421142 ... LastLast
Results 1,411 to 1,420 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #1411
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by cdtech View Post
    Yes the spaces are counted as columns as well. Your getting there. And thanks for the reply Bruce.
    Actually the thanks goes to you.

  2. #1412
    Join Date
    Nov 2007
    Location
    USA-ish
    Beans
    206
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Post your .conkyrc files w/ screenshots

    Bruce, it looks like you're using a variable width font in your calendar. I think you won't be able to get your columns to line up properly unless you use a monospace font.

    Edit: Just looked at your screenshot again, and it looks like some of the columns are lining up right, so I dunno... but the 1 in the top month looks like 1/2 space off.
    Last edited by Cammy; January 9th, 2008 at 07:29 PM.

  3. #1413
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Cammy View Post
    Bruce, it looks like you're using a variable width font in your calendar. I think you won't be able to get your columns to line up properly unless you use a monospace font.

    Edit: Just looked at your screenshot again, and it looks like some of the columns are lining up right, so I dunno... but the 1 in the top month looks like 1/2 space off.
    How do I change this to a mono font to testHave answer?

    Code:
    use_xft yes
    xftfont HandelGotD:size=8
    How would I set the font just for the calendars only?

    Have answer - will post screen and code shortly!
    Last edited by Bruce M.; January 9th, 2008 at 07:46 PM. Reason: Have answer

  4. #1414
    Join Date
    Jan 2007
    Location
    ~/SC/USA
    Beans
    1,969
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Bruce M. View Post
    How do I change this to a mono font to test?

    Code:
    use_xft yes
    xftfont HandelGotD:size=8
    How would I set the font just for the calendars only?

    ${color #ffcb48}${font Arial-size=8}${time %H:%M}${font}

    Put your calendar where the time is now.

    Try that........

  5. #1415
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Cammy View Post
    Bruce, it looks like you're using a variable width font in your calendar. I think you won't be able to get your columns to line up properly unless you use a monospace font.

    Edit: Just looked at your screenshot again, and it looks like some of the columns are lining up right, so I dunno... but the 1 in the top month looks like 1/2 space off.
    You gave me the KEY! Thanks.

    Mono font did the trick

    Code:
    ${font DejaVu Sans Mono :size=8}${execi 60 cal -3 | cut -c00-22}
    
    ${execi 60 cal}
    
    ${execi 60 cal -3 | cut -c45-64}$font
    CDTECH did you get that?
    Attached Images Attached Images

  6. #1416
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by cdtech View Post
    ${color #ffcb48}${font Arial-size=8}${time %H:%M}${font}

    Put your calendar where the time is now.

    Try that........
    I was faster than you in getting it, but slower in posting it, take a look at post #1415

    This is great!

  7. #1417
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by jamesey View Post
    I need help with my calendar. I want to display the current month, and the next month. I've sort of got it right, but as you can see, it's not lining up.
    Change:
    Code:
    ${execi 60 cal -3 | cut -c23-64}
    to:
    Code:
    ${font DejaVu Sans Mono :size=8}${execi 60 cal -3 | cut -c23-64}$font
    or any other mono spaced font you like
    Thanks to: Cammy and CDTECH

    Bruce

  8. #1418
    Join Date
    Jul 2006
    Beans
    809
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Can someone explain to me why my weather script is not displayed in conky? The script seems to work just fine when I run it in terminal, but...

    .conkyrc
    PHP Code:
    # UBUNTU-CONKY.
    #

    # Update interval in seconds
    update_interval 1.0
    total_run_times
    =0

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

    draw_shades no
    draw_outline no 
    # amplifies text if yes
    draw_borders no
    draw_graph_borders no

    use_xft yes
    xftalpha 0.9
    xftfont Candera
    :size=7
    uppercase no
    override_utf8_locale yes
    use_spacer no

    stippled_borders 3
    border_margin 9
    border_width 10

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

    # Default colors and also border colors, grey90 == #e5e5e5
    default_color grey
    color0 97b9f4
    color1 orange
    color2 red
    color3 green

    # Text alignment, other possible values are commented
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right


    # stuff after 'TEXT' will be formatted on screen

    TEXT
    $color
    ${alignc}${offset -20}${color0}${font Arial:bold:size=12}${time %H:%M:%S}$font
    ${alignc}${time %A}, ${time %%%G}$color
    ${color1}$hr
    ${voffset -3}$alignc GMAIL
    ${voffset -9}$hr $color
    ${voffset -5}${color}You have ${color3}${texeci 100 python ~/scripts/gmail.py} ${color}new email(s).
    ${
    if_empty ${execi 100 python ~/scripts/gmail_subj.py}}${color1}$hr
    ${voffset -3}$alignc 3 DAY FORECAST
    ${voffset -9}$hr $color
    ${else}${execi 100 python ~/scripts/gmail_subj.py}
    ${
    color1}$hr
    ${voffset -3}$alignc 3 DAY FORECAST
    ${voffset -9}$hr $color${endif}
    ${
    voffset -10}${font weather:size=50}${alignc}${execi 60000 ~/scripts/weather.sh USVA0652 f 1p}${execi 60000 ~/scripts/weather.sh USVA0652 f 2p}${execi 60000 ~/scripts/weather.sh USVA0652 f 3p}${font}$color
    ${alignc}${offset -10}${execi 60000 ~/scripts/weather.sh USVA0652 f 1}${offset 10}${execi 60000 ~/scripts/weather.sh USVA0652 f 2}${offset 10}${execi 60000 ~/scripts/weather.sh USVA0652 f 3}
    ${
    color1}$hr
    ${voffset -3}$alignc SYSTEM
    ${voffset -9}$hr $color
    ${exec cat /etc/issue.net}
    $sysname Kernel $kernel ($machine)
    Uptime$uptime
    Battery status
    $acpiacadapter$battery 
    ${color1}$hr
    ${voffset -3}$alignc PROCESSES
    ${voffset -9}$hr $color
    ${alignc}Processes$processes  Running$running_processes
    ${color1}NAME${alignr}PID      CPU%     MEM%$color
    ${top name 1}${alignr}${offset -40}${top pid 1}${offset 15}${top cpu 1}${offset 15}${top mem 1}
    ${
    top name 2}${alignr}${offset -40}${top pid 2}${offset 15}${top cpu 2}${offset 15}${top mem 2}
    ${
    top name 3}${alignr}${offset -40}${top pid 3}${offset 15}${top cpu 3}${offset 15}${top mem 3}
    ${
    color1}$hr
    ${voffset -3}$alignc CPU/MEM
    ${voffset -9}$hr $color
    ${voffset -5}${cpugraph 50,250 000000 ff0000}
    ${
    voffset -55}${execi 1000 head /proc/cpuinfo grep 'model name' sed -'s/model name.*: //' cut -b 0-20,31-48}
    Clock: ${freq}MHz${alignr}Usage: ${cpu}%        Temp: ${acpitemp}C
    RAM
    :   $memperc%   ${membar 6}$color
    Swap
    :  $swapperc%   ${swapbar 6}$color
    ${color1}$hr
    ${voffset -3}$alignc FILE SYSTEM
    ${voffset -9}$hr $color
    Root
    :  ${fs_free}/${fs_size /} ${fs_bar 6 /}
    Home:  ${fs_free /home}/${fs_size /home} ${fs_bar 6 /home}
    ${
    if_mounted /media/samba/}Samba:  ${fs_free /media/samba}/${fs_size /media/samba} ${fs_bar 6 /media/samba}
    ${
    color1}$hr 
    ${else}${color1}$hr $endif
    ${voffset -3}$alignc NETWORK
    ${voffset -9}$hr $color
    ${if_empty ${exec python ~/scripts/wifiUp.py}}${voffset -5}${downspeedgraph eth0 55,124 000000 ff0000} ${upspeedgraph eth0 55,124 000000 00ff00}$color
    ${voffset -60}${alignc}WIRED
    Local IP
    : ${addr eth0$alignr Public IP: ${execi 18000 ~/scripts/myip.sh}
    Down: ${downspeed eth0kb/s $alignr Up: ${upspeed eth0kb/s
    Total
    : ${totaldown eth0$alignr Total: ${totalup eth0}
    ${else}${
    voffset -5}${downspeedgraph wlan0 64,124 000000 ff0000} ${upspeedgraph wlan0 64,124 000000 00ff00}$color
    ${voffset -69}${alignc}ESSID:"${wireless_essid wlan0}"
    Local IP: ${addr wlan0$alignr Public IP: ${execi 1800 ~/scripts/myip.sh}
    Signal: ${execi 1800 ~/scripts/wifiQ.sh}% $alignr Bit Rate: ${execi 18000 ~/scripts/wifiBR.shMb/s
    Down
    : ${downspeed wlan0kb/s $alignr Up: ${upspeed wlan0kb/s
    Total
    : ${totaldown wlan0$alignr Total: ${totalup wlan0}$endif 
    weather.sh
    PHP Code:
    # This script was written by lvleph and inspired by the original conky weather script written by azhag (azhag@bsd.miki.eu.org)

    #!/bin/bash

    function cond_symb(){ #get condition symbol and print it
        
    cnd=$(echo "$weathergrep -A10 "class=\"titles\"" head -n"$1" tail -n1)
        
    #translate condition to symbol in weather font
        
    if echo "$cndgrep ---'partly cloudy'then
            
    echo 'c'
        
    elif echo "$cndgrep ---'fair|sunny'then
            
    echo 'A'
        
    elif echo "$cndgrep ---'cloudy'then
            
    echo 'e'
        
    elif echo "$cndgrep ---'storm|thunder'then
            
    echo 'i'
        
    elif echo "$cndgrep ---'snow'then
            
    echo 'k'
        
    elif echo "$cndgrep ---'rain'then
            
    echo 'h'
        
    elif echo "$cndgrep ---'shower'then
            
    echo 'g'
        
    fi
    }

    function 
    temp(){ #get high and low temp and print it
        #get high temp
        
    hilo=$(echo "$weathergrep -A6 "class=\"temps\"" head -n"$1" tail -n1)
        
    tmp1=$(echo "$hilocut -b19-22 awk '{ sub(/&/,"\n"); print}' awk '{ sub(" ",""); print}' head -n1)
        
    #get low temp
        
    tmp2=$(echo "$hilocut -b46-49 awk '{ sub(/&/,"\n"); print}' awk '{ sub(" ",""); print}' head -n1)
        echo 
    "$tmp1°/$tmp2°#print the high and low temp
    }

    code=$#zipcode or weather.com city code
    system=$#f for imperial c for metric

    #Check to see if server is available
    if [ `ping -c1 216.109.126.70 | grep from | wc -l` -eq 0 ]; then
        
    echo "Service not available"
        
    exit
    fi

    weather
    =$(wget -http://weather.yahoo.com/forecast/"$code"_"$system".html)

    case "$3" in
        c
    #give me current temp
            
    tmp=$(echo "$weathergrep -A1 "\"forecast\-temperature\"" tail -n1 cut -b5-awk 'sub(/&d/,"")')
            echo 
    "$tmp°"
            
    ;;
        [
    1-5]p#give me the symbol for the current conditions
            #get conditions
            
    day=$(echo "$3" awk 'sub(/p/,"")'#get day
            
    head=$[2*$day+1#translate day into number of lines
            
    cond_symb $head #get condition symbol and print it
            
    ;;    
        [
    1-5]) #give me today's weather
            #get high and low
            
    head=$[$3+1#translate day into number of lines
            
    temp $head #get high and low temp and print it
            
    ;;
        *) 
    #didn't use correct option 
            
    echo "Usage error weather.sh <citycode> <system> <option>
        weather.sh <citycode> <system> <option>
            <citycode> - This can be either your zipcode or weather.com city code
            <system> - c for metric or f for imperial
            <option> - Only one option can be entered at a time
                c displays current temp in chosen system
                1p displays today's conditions in the chosen system
                2p displays tomorrow's conditions in chosen system
                3p displays 3rd day's conditions in chosen system
                4p displays 4th day's conditions in chosen system
                5p displays 4th day's conditions in chosen system
                1 displays today's high/low temp in chosen system
                2 displays tomorrow's high/low temp in chosen system
                3 displays 3rd day's high/low temp in chosen system
                4 displays 4th day's high/low temp in chosen system
                5 displays 5th day's high/low temp in chosen system"
            
    ;;
    esac 

  9. #1419
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by John.Michael.Kane View Post
    Seems sda1, and sda5 are still reading from the same partition you set up. Or is that how you want it?

    Try the below line. it should read your main Ubuntu partition.
    Code:
    ${fs_used /} of ${fs_size /} ${fs_bar /}
    No, it was sda5 and sdb1 that were both reading the same (sda5 info)

    The problem is that sdb1 isn't named sdb1 it's named BruLoo.

    Is there and advantage to using:

    Code:
    ${fs_used /} of ${fs_size /} ${fs_bar /}
    over:
    Code:
    ${fs_used /media/sda5} of ${fs_size /media/sda5} ${fs_bar /}
    They seem to report the same info?
    Would "/" use be faster/use less resources than "/media/sda5"?

    Bruce
    PS: Just saw this now 17:58 (much later in the day)

  10. #1420
    Join Date
    Aug 2005
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Bruce M. View Post
    No, it was sda5 and sdb1 that were both reading the same (sda5 info)

    The problem is that sdb1 isn't named sdb1 it's named BruLoo.

    Is there and advantage to using:

    Code:
    ${fs_used /} of ${fs_size /} ${fs_bar /}
    over:
    Code:
    ${fs_used /media/sda5} of ${fs_size /media/sda5} ${fs_bar /}
    They seem to report the same info?
    Would "/" use be faster/use less resources than "/media/sda5"?

    Bruce
    PS: Just saw this now 17:58 (much later in the day)
    As long as the data shown to you on your conky is correct then you should not have to change it.

    The below code simply tells conky to read your root/ partition.
    Code:
    ${fs_used /} of ${fs_size /} ${fs_bar /}
    Advantages and Disadvantages of 64bit.(Plus install Guides)

    ‘In search of some small measure of peace, that we all seek, and few of us ever find.’

Page 142 of 2348 FirstFirst ... 42921321401411421431441521922426421142 ... 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
  •