Автор Тема: ./conkyrc  (Прочетена 1581 пъти)

DMM

  • Напреднали
  • *****
  • Публикации: 13
  • Distribution: Mint 17.1
  • Window Manager: Gnome
    • Профил
./conkyrc
« -: Feb 19, 2015, 12:18 »
Здравейте!
Имам един незначителен въпрос.Изтеглих си КонкиМаниджър и си харесах една тема,но немога да намера къде да променя да ми показва температурата на процесора и времето в Целзий а не във Фаренхайт.Ето и файла
  • ###############################################################################
    #   Conky Theme   : InfinitySVG
    #
    #   Updates and SVG by:               Pablo Angelani
    #   Original Updates Infinity and SVG:   Eric Weik
    #   Original Infinity theme by:         Harshit Yadav
    #   Includes lua code:               Clock Rings by londonali1010 (2009)
    #   Feel Free to distribute
    #   For Installation Instructions see README
    #
    #   Colors from haunted .lua and .conkyrc:
    #   b7b7b7 (light grey)
    #   6f6f6f (medium grey)
    #   2c2c2c (dark grey)
    #
    #   4a89a7 (blue)      hardware / memory / root
    #   468626 (blue alt)   
    #   e83737 (red)      swap
    #   46a646 (green)      user / cpu / home
    #   f4732d (orange)      network
    #   ebff46 (yellow)      network
    #   FFA300 (br. orange)   text highlights
    #
    #   Changelog:
    #    + v1.0.1:   Initial version by Harshit Yadav
    #    + [All further changes tracked in the git repository.]
    ###############################################################################


    #########################################
    ############# Conky settings ############
    #########################################

    background yes
    update_interval 1

    cpu_avg_samples 2
    net_avg_samples 2

    override_utf8_locale yes

    double_buffer yes
    no_buffers yes

    text_buffer_size 2048
    #imlib_cache_size 0

    ##

    #########################################
    ######### Window specifications #########
    #########################################

    # Allow conky to handle transparency -- all or nothing
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    alignment top_right

    # Allow compiz to handle transparency manually (you will need to add Conky to compiz)
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

    # Allow conky to handle transparency (with percentages) with a compositor
    # From http://blog.mmassonnet.info/2011/08/xfce-48-with-conky.html)
    #own_window yes
    #window_own_type desktop
    #own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager   # make it behave like it belongs to the desktop
    #own_window_argb_visual yes   # true transparency, a compositor has to be active
    #own_window_argb_value 70   # make the background semi-transparent


    ## This Resolution is set according to the sreen resolution of 1360x768
    ## Adjust Accoring to yours

    minimum_size 1680 1050
    maximum_width 1680

    #alignment top_left
    alignment top_right
    gap_x 0
    gap_y 0


    #########################################
    ########### Graphics settings ###########
    #########################################
    border_inner_margin 0
    border_outer_margin 0

    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders yes

    ## Text settings
    use_spacer yes
    use_xft yes
    xftfont caviar dreams:size=8
    xftalpha 0.5

    uppercase no

    temperature_unit fahrenheit
    #temperature_unit celsius

    # Color settings
    default_color eaeaea

    color1 b7b7b7   #(light grey)
    color2 6f6f6f   #(medium grey)
    color2 2c2c2c   #(dark grey)
    color3 4a89a7   #(teal / blue)
    color4 e83737   #(red)
    color5 ebff46   #(yellow)
    color6 46a646   #(green)
    color7 f4732d   #(orange)
    color8 ffa300   #(bright orange)


    ## Lua: load clock rings.
    lua_load .conky/scripts/haunted.lua
    lua_draw_hook_pre clock_rings


    ## Possible variables to be used:
    #
    #    Variable          Arguments     Description

    #    addr              (interface)   IP address for an interface
    #    acpiacadapter                   ACPI ac adapter state.                   
    #    acpifan                         ACPI fan state                           
    #    acpitemp                        ACPI temperature.                       
    #    adt746xcpu                      CPU temperature from therm_adt746x       
    #    adt746xfan                      Fan speed from therm_adt746x             
    #    alignr            (num)         Right-justify text, with space of N
    #    alignc                          Align text to centre
    #    battery           (num)         Remaining capasity in ACPI or APM       
    #                battery. ACPI battery number can be     
    #                given as argument (default is BAT0).     
    #    buffers                         Amount of memory buffered               
    #    cached                          Amount of memory cached                 
    #    color             (color)       Change drawing color to color           
    #    cpu                             CPU usage in percents                   
    #    cpubar            (height)      Bar that shows CPU usage, height is     
    #                bar's height in pixels                 
    #    cpugraph          (height),(width) (gradient colour 1) (gradient colour 2)
    #                CPU usage graph, with optional colours in hex,
    #                minus the #.
    #    downspeed         net           Download speed in kilobytes             
    #    downspeedf        net           Download speed in kilobytes with one     
    #                decimal                                 
    #    downspeedgraph    net (height),(width) (gradient colour 1) (gradient colour 2)
    #                Download speed graph, colours defined in
    #                hex, minus the #.
    #    exec              shell command Executes a shell command and displays   
    #                the output in conky. warning: this     
    #                takes a lot more resources than other   
    #                variables. I'd recommend coding wanted   
    #                behaviour in C and posting a patch :-). 
    #    execbar           shell command Same as exec, except if the first value
    #                return is a value between 0-100, it
    #                will use that number for a bar.
    #                The size for the bar is currently fixed,
    #                but that may change in the future.
    #    execgraph         shell command Same as execbar, but graphs values
    #    execi             interval, shell command
    #                 Same as exec but with specific interval.
    #                Interval can't be less than             
    #                update_interval in configuration.       
    #   font        font      Specify a different font.  Only applies
    #               to one line.
    #    fs_bar            (height), (fs)Bar that shows how much space is used on
    #                a file system. height is the height in   
    #                pixels. fs is any file on that file     
    #                system.                                 
    #    fs_free           (fs)          Free space on a file system available   
    #                for users.                               
    #    fs_free_perc      (fs)          Free percentage of space on a file       
    #                system available for users.             
    #    fs_size           (fs)          File system size                         
    #    fs_used           (fs)          File system used space                   
    #    hr                (height)      Horizontal line, height is the height in
    #                pixels                                   
    #    i2c               (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev   
    #                may be omitted if you have only one I2C 
    #                device. type is either in (or vol)       
    #                meaning voltage, fan meaning fan or
    #                temp/tempf (first in C, second in F)
    #                meaning temperature. n is number of the 
    #                sensor. See /sys/bus/i2c/devices/ on     
    #                your local computer.                     
    #    if_running        (process)     if PROCESS is running, display
    #                everything if_running and the matching $endif
    #    if_existing       (file)        if FILE exists, display everything between
    #                if_existing and the matching $endif
    #    if_mounted        (mountpoint)  if MOUNTPOINT is mounted, display everything between
    #                if_mounted and the matching $endif
    #    else                            Text to show if any of the above are not true
    #    kernel                          Kernel version                         
    #    linkstatus        (interface)   Get the link status for wireless connections
    #    loadavg           (1), (2), (3) System load average, 1 is for past 1     
    #                minute, 2 for past 5 minutes and 3 for   
    #                past 15 minutes.                         
    #    machine                         Machine, i686 for example               
    #    mails                           Mail count in mail spool. You can use   
    #                program like fetchmail to get mails from
    #                some server using your favourite         
    #                protocol. See also new_mails.           
    #    mem                             Amount of memory in use                 
    #    membar            (height)      Bar that shows amount of memory in use   
    #    memmax                          Total amount of memory                   
    #    memperc                         Percentage of memory in use
    #    
    #    metar_ob_time
    #    metar_temp
    #    metar_tempf                     Temp in F
    #    metar_windchill
    #    metar_dew_point                 There are a bunch of these
    #    metar_rh                        and they are self-explanatory
    #    metar_windspeed
    #    metar_winddir
    #    metar_swinddir
    #    metar_cloud
    #    metar_u2d_time
    #    
    #    ml_upload_counter               total session upload in mb
    #    ml_download_counter             total session download in mb
    #    ml_nshared_files                number of shared files
    #    ml_shared_counter               total session shared in mb, buggy
    #                in some mldonkey versions
    #    ml_tcp_upload_rate              tcp upload rate in kb/s
    #    ml_tcp_download_rate            tcp download rate in kb/s
    #    ml_udp_upload_rate              udp upload rate in kb/s
    #    ml_udp_download_rate            udp download rate in kb/s
    #    ml_ndownloaded_files            number of completed files
    #    ml_ndownloading_files           number of downloading files
    #    
    #    mpd_artist         Artist in current MPD song
    #                (must be enabled at compile)
    #    mpd_album         Album in current MPD song
    #    mpd_bar           (height)      Bar of mpd's progress
    #    mpd_bitrate                     Bitrate of current song
    #    mpd_status                      Playing, stopped, et cetera.
    #    mpd_title         Title of current MPD song
    #    mpd_vol            MPD's volume
    #    mpd_elapsed                     Song's elapsed time
    #    mpd_length                      Song's length
    #    mpd_percent                     Percent of song's progress
    #    new_mails                       Unread mail count in mail spool.         
    #    nodename                        Hostname                                 
    #    outlinecolor      (color)       Change outline color                     
    #    pre_exec          shell command Executes a shell command one time before
    #                conky displays anything and puts output
    #                as text.                                 
    #    processes                       Total processes (sleeping and running)   
    #    running_processes               Running processes (not sleeping),       
    #                requires Linux 2.6                       
    #    shadecolor        (color)       Change shading color                     
    #    stippled_hr       (space),      Stippled (dfontashed) horizontal line       
    #          (height)       
    #    swapbar           (height)      Bar that shows amount of swap in use     
    #    swap                            Amount of swap in use                   
    #    swapmax                         Total amount of swap                     
    #    swapperc                        Percentage of swap in use               
    #    sysname                         System name, Linux for example           
    #    offset            pixels        Move text over by N pixels
    #    tail              logfile, lines (interval)
    #                Displays last N lines of supplied text
    #                text file.  If interval is not supplied,
    #                Conky assumes 2x Conky's interval.
    #                Max of 30 lines.
    #                Max of 30 lines can be displayed.
    #    time              (format)      Local time, see man strftime to get more
    #                information about format                 
    #    totaldown         net           Total download, overflows at 4 GB on     
    #                Linux with 32-bit arch and there doesn't
    #                seem to be a way to know how many times 
    #                it has already done that before conky   
    #                has started.                           
    #    top               type, num     This takes arguments in the form:
    #                top <name> <number>
    #                Basically, processes are ranked from
    #                highest to lowest in terms of cpu
    #                usage, which is what <num> represents.
    #                The types are: "name", "pid", "cpu", and
    #                "mem".
    #                There can be a max of 10 processes listed.
    #    top_mem           type, num     Same as top, except sorted by mem usage
    #                instead of cpu
    #    totalup           net           Total upload, this one too, may overflow
    #    updates                         Number of updates (for debugging)       
    #    upspeed           net           Upload speed in kilobytes               
    #    upspeedf          net           Upload speed in kilobytes with one       
    #                decimal                                 
    #    upspeedgraph      net (height),(width)  (gradient colour 1) (gradient colour 2)
    #                Upload speed graph, colours defined in
    #                hex, minus the #.
    #    uptime                          Uptime                                   
    #    uptime_short                    Uptime in a shorter format               
    #    
    #    seti_prog                       Seti@home current progress
    #    seti_progbar      (height)      Seti@home current progress bar
    #    seti_credit                     Seti@home total user credit
    #
    # variable is given either in format $variable or in ${variable}. Latter
    # allows characters right after the variable and must be used in network
    # stuff because of an argument



    ## Adjust these fields according to the your screen size i have modded them for 1366X768



    TEXT
    ## Date
    ${offset 600}${color}${font GE Inspira:pixelsize=120}${time %I:%M %P}${font}${voffset -75}${voffset 10}${color8}${font GE Inspira:pixelsize=42}${time %d} ${voffset -5}${color}${font GE Inspira:pixelsize=22}${exec echo $(echo $(date +%B) | cut -c1 | tr '[a-z]' '[A-Z]')$(echo $(date +%B) | cut -c2-)} ${time %Y}${font}
    ${voffset 124}${offset 350}${font GE Inspira:pixelsize=54}${exec echo $(echo $(date +%A) | cut -c1 | tr '[a-z]' '[A-Z]')$(echo $(date +%A) | cut -c2-)}${font}
    ##
    ${offset 620}${voffset -100}${font Ubuntu:pixelsize=12}${color8}HD ${offset 9}${color 4a89a7}${exec df -h | grep "/dev/sd*"  | awk '{ SUM += $3} END { print SUM "Gib" }'} / ${exec df -h | grep "/dev/sd*"  | awk '{ SUM += $2} END { print SUM "Gib" }'}${offset 30}${color8}RAM ${offset 9}${color 4a89a7}$mem / $memmax${offset 30}${color8}CPU1 ${offset 9}${color3}${cpu cpu0}%
    ${offset 955}${color8}CPU2 ${offset 9}${color3}${cpu cpu1}%
    ${offset 980}${color8}CPU3 ${offset 9}${color3}${cpu cpu2}%
    ${voffset -5}${offset 290}${color}${hr 2}
    ${image .conky/background.png}
    ##FILE SYSTEM
    ${offset 120}${voffset 198}${font Monospace:size=11:style=Bold}${color 4a89a7}root:${tab 4}${font Santana:size=11}${color}${fs_used /}/${fs_size /}
    ${offset 120}${voffset 7}${color6}${font Monospace:size=11:style=Bold}home:${tab 4}${font Santana:size=11}${color}${fs_used /home}/${fs_size /home}$font
    ${offset 118}${voffset 7}${color4}${font Monospace:size=11:style=Bold}swap:${tab 4}${font Santana:size=10}${color} ${swap}/${swapfree}
    ${voffset -20}
    ${offset 500}${voffset -110}${font Santana:size=10}${color}Linux ${kernel} kernel
    ${offset 500}${font Monospace:size=9}${color 4a89a7}Uptime:${color}${uptime}
    ${offset 755}${voffset -110}${font Santana:size=12:style=Bold}${color}${nodename}
    ${offset 749}${font Monospace:size=9}${color6} Top (CPU):${tab 2}${offset 9}${color}${top name 5} ${top cpu 5}
    ${offset 749}${font Monospace:size=9}${color6} Top (RAM):${tab 2}${offset 9}${color}${top_mem name 5} ${top_mem mem 5}
    ${offset 633}${voffset 145}$color${font Santana:size=9:style=Bold}IP Address : ${addr eth1}
    ${offset 635}${voffset 0}$color${font Santana:size=8}TCP Connections : ${tcp_portmon 1 65535 count}
    ${offset 635}${voffset 0}${font Santana:size=8}${color f4732d}Down : ${offset 9}$color${downspeed eth1}/s ${offset 8}${color ebff46}Up : ${offset 9}$color${upspeed eth1} /s
    ${offset 635}${voffset 0}${color 6f6f6f}${font Santana:size=8}Interface eth1 Usage :
    ${offset 635}${voffset -2}$color${font Santana:size=8}${color 6f6f6f}${downspeedgraph eth1 32,200 b7b7b7 f4732d}
    ${offset 635}${voffset -5}${color 6f6f6f}${upspeedgraph eth1 32,200 b7b7b7 ebff46}
    ${voffset -145}
    # Static text example: Logo
    ${offset 120}${color}${font Ubuntu:pixelsize=20}${color7}'YOUR OS'${color} 'YOUR OS VERSION'
    # Static text example: Multi-line
    ${voffset -175}
    ${offset 830}${font Santana:size=10}${color}'YOUR CPU HERE' @${freq_g (1)} GHz
    ${offset 830}${font Monospace:size=9}${color7}CPU Temp = ${color3}${acpitemp} °F
    ${offset 830}${voffset 0}${color 6f6f6f}${font Santana:size=8} CPU 1 :
    ${offset 830}${color 6f6f6f}${cpugraph cpu0 32,200 b7b7b7 f4732d}
    ${offset 830}${voffset 0}${color 6f6f6f}${font Santana:size=8} CPU 2 :
    ${offset 830}${color 6f6f6f}${cpugraph cpu1 32,200 b7b7b7 ebff46}
    #
    #
    #Google Now Weather
    #
    #
    ${voffset -381}
    ${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=838082&u=f" -o ~/.cache/weather.xml}
    ${offset 1100}${font Open Sans Light:size=15}${color8}${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "city=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}, ${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "city=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}
    ${voffset 0}
    ${font Open Sans Light:size=70}${alignr}${color FFFFFF}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}${voffset -100}
    ${execi 300 cp -f ~/.conky-google-now/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather.png}${image ~/.cache/weather.png -p 1056,215 -s 60x60}${voffset 63}${offset 1070}${font Ubuntu:pixelsize=16}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tr '[a-z]' '[A-Z]'}
    ${voffset -95}
    ${image ~/.conky-google-now/wind.png -p 1070,300 -s 15x15}
    ${image ~/.conky-google-now/humidity.png -p 1070,320 -s 15x15}
    ${voffset 19}
    ${offset 1090}${font Ubuntu:pixelsize=12}${color}${execi 300 grep "yweather:wind" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
    ${voffset -10}
    ${offset 1090}${font Ubuntu:pixelsize=12}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "humidity=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}%

    ${voffset -125}
    ${goto 18}${offset 1200}${font Ubuntu:pixelsize=12}${color}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1' | tr '[a-z]' '[A-Z]'}
    ${voffset -30}
    ${goto 88}${offset 1185}${font Ubuntu:pixelsize=12}${color}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2' | tr '[a-z]' '[A-Z]'}
    ${voffset -30}
    ${goto 158}${offset 1178}${font Ubuntu:pixelsize=12}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3' | tr '[a-z]' '[A-Z]'}
    ${voffset -30}
    ${goto 228}${offset 1170}${font Ubuntu:pixelsize=12}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4' | tr '[a-z]' '[A-Z]'}
    ${voffset -30}
    ${goto 298}${offset 1160}${font Ubuntu:pixelsize=12}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5' | tr '[a-z]' '[A-Z]'}
    ${execi 300 cp -f ~/.conky-google-now/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1').png ~/.cache/weather-1.png}${image ~/.cache/weather-1.png -p 1215,257 -s 30x30}${execi 300 cp -f ~/.conky-google-now/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2').png ~/.cache/weather-2.png}${image ~/.cache/weather-2.png -p 1275,257 -s 30x30}${execi 300 cp -f ~/.conky-google-now/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep 838082-o "[^\"]*" | awk 'NR==3').png ~/.cache/weather-3.png}${image ~/.cache/weather-3.png -p 1335,257 -s 30x30}${execi 300 cp -f ~/.conky-google-now/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4').png ~/.cache/weather-4.png}${image ~/.cache/weather-4.png -p 1395,257 -s 30x30}${execi 300 cp -f ~/.conky-google-now/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5').png ~/.cache/weather-5.png}${image ~/.cache/weather-5.png -p 1455,257 -s 30x30}${voffset 100}
    ${voffset -95}
    ${goto 20}${offset 1203}${font Ubuntu:pixelsize=12}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°
    ${voffset -32}
    ${goto 90}${offset 1193}${font Ubuntu:pixelsize=12}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°
    ${voffset -30}
    ${goto 160}${offset 1183}${font Ubuntu:pixelsize=12}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°
    ${voffset -30}
    ${goto 230}${offset 1173}${font Ubuntu:pixelsize=12}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'}°
    ${voffset -30}
    ${goto 300}${offset 1163}${font Ubuntu:pixelsize=12}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5'}°
    ${voffset -10}
    ${goto 20}${offset 1203}${font Ubuntu:pixelsize=12}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°
    ${voffset -32}
    ${goto 90}${offset 1193}${font Ubuntu:pixelsize=12}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°
    ${voffset -30}
    ${goto 160}${offset 1183}${font Ubuntu:pixelsize=12}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°
    ${voffset -30}
    ${goto 230}${offset 1173}${font Ubuntu:pixelsize=12}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'}°
    ${voffset -30}
    ${goto 300}${offset 1163}${font Ubuntu:pixelsize=12}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5'}°

Благодаря предварително.
Активен

1 1 0 0 1 1 1 0 0 0 1

go_fire

  • Global Moderator
  • Напреднали
  • *****
  • Публикации: 8798
  • Distribution: Дебиан Сид
  • Window Manager: ROX-Desktop / е17
  • кашик с гранатомет в танково поделение
    • Профил
    • WWW
Re: ./conkyrc
« Отговор #1 -: Feb 19, 2015, 12:31 »
Не съм се занимавал никога с тъпото „Конку“, но си има документация. Като начало бих започнал с откоментирането/коментирането на редове като:

Код
GeSHi (Bash):
  1. temperature_unit fahrenheit
  2. #temperature_unit celsius
  3.  

В самите настройки доколкото виждам има подробна информация за какви температури могат да се изведат (под реда ## Possible variables to be used:). Защо до сега не си го направил??? Дори да е грешка, все ще разчоплиш нещо.

И не стана ясно, как очакваш времето да е в целзии?
Активен

В $por4e2 e истината  ;)

***

Aко даваха стипендия за най-глупави, щях да съм човека с най-много Mини Kупъри

***

Reborn since 1998 || 15.09.2007 totally М$ free && conscience clear

rams

  • Напреднали
  • *****
  • Публикации: 61
  • Distribution: Linux Mint 17
  • Window Manager: Mate
    • Профил
Re: ./conkyrc
« Отговор #2 -: Feb 19, 2015, 21:24 »
# Static text example: Multi-line
${voffset -175}
${offset 830}${font Santana:size=10}${color}'YOUR CPU HERE' @${freq_g (1)} GHz
${offset 830}${font Monospace:size=9}${color7}CPU Temp = ${color3}${acpitemp} °F
${offset 830}${voffset 0}${color 6f6f6f}${font Santana:size=8} CPU 1 :
${offset 830}${color 6f6f6f}${cpugraph cpu0 32,200 b7b7b7 f4732d}
${offset 830}${voffset 0}${color 6f6f6f}${font Santana:size=8} CPU 2 :
${offset 830}${color 6f6f6f}${cpugraph cpu1 32,200 b7b7b7 ebff46}

намери тази секция и промени на четвъртия ред параметъра F със С

go_fire

  • Global Moderator
  • Напреднали
  • *****
  • Публикации: 8798
  • Distribution: Дебиан Сид
  • Window Manager: ROX-Desktop / е17
  • кашик с гранатомет в танково поделение
    • Профил
    • WWW
Re: ./conkyrc
« Отговор #3 -: Feb 20, 2015, 08:38 »
Rams, т'ва F го видях, но не повярвах, че може да парсват чак по една буква, но не е невъзможно. Реших, че в случая е украсителен елемент. Ама пича, ако не пробва, няма как да разбере.
« Последна редакция: Feb 20, 2015, 10:32 от go_fire »
Активен

В $por4e2 e истината  ;)

***

Aко даваха стипендия за най-глупави, щях да съм човека с най-много Mини Kупъри

***

Reborn since 1998 || 15.09.2007 totally М$ free && conscience clear

neter

  • Global Moderator
  • Напреднали
  • *****
  • Публикации: 3408
  • Distribution: Debian, SailfishOS, CentOS
  • Window Manager: LXDE, Lipstick
    • Профил
    • WWW
Re: ./conkyrc
« Отговор #4 -: Feb 20, 2015, 09:47 »
/извън темата

Плъшо
Да отбележа само, че "rams" се превежда "овни", а "rats" е "плъхове". Ако въобще това е идеята зад името и да му отива да се превежда.
Активен

"Да си добре приспособен към болно общество не е признак за добро здраве" - Джиду Кришнамурти

go_fire

  • Global Moderator
  • Напреднали
  • *****
  • Публикации: 8798
  • Distribution: Дебиан Сид
  • Window Manager: ROX-Desktop / е17
  • кашик с гранатомет в танково поделение
    • Профил
    • WWW
Re: ./conkyrc
« Отговор #5 -: Feb 20, 2015, 10:31 »
Нетере, разбира се, че  си прав, но аз не съм се бил събудил още и съм писал глупости. Сега като гледам, ако му кажа Коче, ще го обидя. Ще го редактирам в оригинал.
Активен

В $por4e2 e истината  ;)

***

Aко даваха стипендия за най-глупави, щях да съм човека с най-много Mини Kупъри

***

Reborn since 1998 || 15.09.2007 totally М$ free && conscience clear

DMM

  • Напреднали
  • *****
  • Публикации: 13
  • Distribution: Mint 17.1
  • Window Manager: Gnome
    • Профил
Re: ./conkyrc
« Отговор #6 -: Feb 26, 2015, 17:02 »
Благодаря "БРО" стана (bow)
Активен

1 1 0 0 1 1 1 0 0 0 1

Подобни теми
Заглавие Започната от Отговора Прегледи Последна публикация
Малко помощ за .conkyrc
Настройка на програми
NikolaiTalev 2 805 Последна публикация Feb 27, 2011, 15:06
от fanfolet