Page 74 of 287 FirstFirst ... 2464727374757684124174 ... LastLast
Results 731 to 740 of 2865

Thread: HOWTO: VinDSL Conky Script

  1. #731
    Join Date
    Dec 2009
    Location
    Sunny Coast, Australia
    Beans
    150
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by paramvir View Post
    Thanks
    ..... - yes if you lived in Melbourne - you get 4 seasons in a day
    Yep - lived there from 1983 to 1992 and again from 1998 to 2009 - great city but for the (conkywx) weather .

    Thanks again for your valuable advice.

    Frank
    Do You Ubuntu? I Do!
    The Network is Alive and Well

  2. #732
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by PJs Ronin View Post
    I got something wrong going on here... am referring only to the HDD data and forget the graphs for as minute as I think they are correct.

    The data is showing my '/' and 'home' are the same size which should not be correct, right?

    I have a single HDD with 2 partitions. The file system lives on the first (smaller) partition and I use the second partition as a data drive.
    That's because home is on the same file system as root ( / )

    Note the "/media" that is on sda6

    Code:
    TEXT
    ${color0}${cpubar cpu4 1,67}${color} Disk Activity ${color0}${cpubar cpu4 1,67}${color}
    ${goto 10}${diskiograph 50,250 FF0000 0000FF -t -l}${goto 10}${color0}${cpubar cpu4 50,250}${color}\
    ${voffset -35}${goto 80}SDA: R: ${diskio_read /dev/sda}
    ${goto 80}     W: ${diskio_write /dev/sda}
    
    ${goto 60}${color1}${fs_bar /}${goto 60}${color0}${cpubar cpu4}${color}
    ${voffset -30}/Root:  ${fs_size /}${goto 220}${fs_used_perc /}%
    ${goto 60}${color1}${fs_bar /home}${goto 60}${color0}${cpubar cpu4}${color}
    ${voffset -30}/Home:  ${fs_size /home}${goto 220}${fs_used_perc /home}%
    ${goto 60}${color1}${fs_bar /media/5}${goto 60}${color0}${cpubar cpu4}${color}
    ${voffset -30} /M/5:  ${fs_size /media/5}${goto 220}${fs_used_perc /media/5}%
    
    File system        | ON:
    /      ${fs_size /}       | /dev/sda6
    /boot  ${fs_size /boot}       | /dev/sda6
    /lib   ${fs_size /lib}       | /dev/sda6
    
    /home ${fs_size /home}        | /dev/sda7
    
    /media     ${fs_size /media}   | /dev/sda6
    /media/5   ${fs_size /media/5}   | /dev/sda5
    /media/8   ${fs_size /media/8}   | /dev/sda8
    /media/9   ${fs_size /media/9}   | /dev/sda9
    <-- modified "DiskActivity.conky"

    Code:
     30 Nov 12 | 09:31:02 ~
             $ par
    Partition: ID: / size: 9.2G used: 4.5G (52%) fs: ext4 dev: /dev/sda6 
               label: N/A uuid: 62874c9e-7f1b-4204-a273-f0699e31c62c
               ID: /media/5 size: 115G used: 35G (32%) fs: ext4 dev: /dev/sda5 
               label: N/A uuid: 6fc763f2-2587-4572-bc51-39726ab34fc6
               ID: /media/8 size: 33G used: 176M (1%) fs: ext4 dev: /dev/sda8 
               label: N/A uuid: d7f17db3-1a88-4b11-a528-5cf93ea8195c
               ID: /media/9 size: 33G used: 176M (1%) fs: ext4 dev: /dev/sda9 
               label: N/A uuid: 02f12c2a-02ae-4f00-bd23-4b1e7155b48b
               ID: /home size: 14G used: 4.8G (37%) fs: ext4 dev: /dev/sda7 
               label: N/A uuid: fff46aa2-f36b-4e78-8135-736f1754a2a3
               ID: swap-1 size: 4.00GB used: 0.00GB (0%) fs: swap dev: /dev/sda3 
               label: N/A uuid: 0f589adf-726f-4cb3-a96c-e07a63111654
    
     30 Nov 12 | 09:31:06 ~
             $

  3. #733
    Join Date
    Apr 2012
    Location
    Oz
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: HOWTO: VinDSL Conky Script

    Ty for the info regarding / and home directories/partitions. Looks like I'll go off and try and move things around.

    Normal service in this thread will now resume.

  4. #734
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: HOWTO: VinDSL Conky Script

    ^ You're welcome

  5. #735
    Join Date
    Jul 2006
    Location
    Southern California
    Beans
    496
    Distro
    Lubuntu 12.10 Quantal Quetzal

    Re: HOWTO: VinDSL Conky Script

    Well, as a conky newb, I've spent HOURS getting my display just about where I want it.

    For some odd reason, I have two calendars displayed. What am I missing? (I'm using Conky 1.9.0-2 on Lubuntu 12.10)

    Code:
    ##################################
    ##             TIME             ##
    ##################################
    ${voffset 4}${font DroidSans:bold:size=8}${color4}TIME${offset 8}${color8}${voffset 2}${hr 2}${font}
    ${voffset -4}${font RadioSpace:size=32}${color3}${if_match ${time %l}<=9}${alignc 7}${time %l:%M%p}${else}${if_match ${time %l}>=10}${alignc -1}${time %l:%M%p}${endif}${endif}${font}
    ##################################
    ##      CALENDAR (5-Line)       ##
    ##################################
    ${voffset 4}${font DroidSans:bold:size=8}${color4}DATE${offset 8}${color8}${voffset 2}${hr 2}${font}
    ${voffset 20}${font DroidSansMono:size=7.55}${color3}${alignc 60}${time %A}${font}
    ${voffset -4}${font DroidSansFallback:bold:size=18}${if_match ${time %e}<=9}${color5}${alignc 65}${time %e}${font}${else}${if_match ${time %e}>=10}${color5}${alignc 60}${time %e}${endif}${endif}${font}
    ${voffset 0}${font DroidSansMono:size=7.55}${color3}${alignc 60}${time %B}${font}
    ${voffset 0}${font DroidSansMono:size=7.6}${color3}${alignc 60}${time %Y}${font}
    ${voffset -83}${font CutOutsFor3DFX:size=67}${color8}${alignc 99}2${font}
    ####
    ## Uncomment for Conky 1.8.0 (use mono fonts only)
    ${voffset -78}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; cal -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e s/^/"\$\{offset 100"\}/ -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}
    ####
    ## Uncomment for Conky 1.8.1 (use mono fonts only)
    #{voffset -64}${offset 100}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; cal -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}
    Attached Images Attached Images
    Last edited by wilberfan; December 3rd, 2012 at 12:24 AM.
    "He who lives by the penguin, dies by the penguin."
    (at least 'till he figures out what he's doing!)

  6. #736
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    3,001
    Distro
    Ubuntu Development Release

    Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by wilberfan View Post
    For some odd reason, I have two calendars displayed. What am I missing? (I'm using Conky 1.9.0-2 on Lubuntu 12.10)
    That code looks stale.

    Coincidentally, I just got done updating the Calendar code, and wondered if I should post it here. LoL!

    I finally added some lines to adjust for months with 5 weeks or 6 weeks, e.g. 5 lines or 5 lines.

    You'll still have to comment/uncomment the lines manually, until I can figure out a regex, but it's better than nothing.

    Anyway, here's my latest .conkyrc:


    .conkyrc
    Code:
    ###############################################
    ## VinDSL | rev. 12-12-02 17:22 | ver. 0.7.9 ##
    ###############################################
    ##          December 2012 Series             ##
    ###############################################
    
    ## ¡PLEASE READ THE FINE PRINT! ##
    
    ####
    ## Development Platforms (current)
    #
    #  Peppermint Two OS '16GB USB Key' (GNOME 2.28 - Conky 1.8.0-1)
    #  Ubuntu 10.10 'Maverick Meerkat'  (GNOME 2.28 - Conky 1.8.0-1)
    #  Ubuntu 13.04 'Raring Ringtail'   (GNOME-SHELL - UNITY - LXDE - Conky 1.9.0-2)
    #  Screen Resolution: 1280x1024x24  (DELL UltraSharp 1907FP)
    #
    ## Tips n' Tricks: conky 1.8.1 will no longer be supported. RIP :)
    
    ####
    ## Prerequisites (required)
    #
    #  conky-all 1.8.0-1 or 1.9.0-2
    #  Conkywx 0.7.9 (Paramvir Likhari)
    #  UTF-8 Compatible Text Editor
    
    ####
    ## Installed fonts (required)
    #
    #  Arrows (JLH Fonts - not included in link below)
    #  ConkyWeather (Stanko Metodiev)
    #  Cut Outs for 3D FX (Fonts & Things)
    #  Droid Font Family (Google Android SDK)
    #  KR A Round (Kat's Fun Fonts)
    #  Moon Phases (Curtis Clark)
    #  OpenLogos (Icoma)
    #  PizzaDude Bullets (Jakob Fischer)
    #  Radio Space (Iconian Fonts)
    #  StyleBats (Vinterstille)
    #  Ubuntu Font Family (Canonical Ltd)
    #  Ubuntu Title Bold (Paulo Silva - not included in link below)
    #  Weather (Jonathan Macagba)
    # 
    ## Tips n' Tricks from: Mr. Peachy, djyoung4, and 42dorian (Thanks!)
    ## Most necessary fonts can be downloaded here: http://ompldr.org/vOHdoag
    ## Unzip the fonts into your font folder, for example: /home/username/.fonts
    ## Run this command in a terminal (rebuilds font cache file): sudo fc-cache -fv
    
    ####
    ## Use XFT? Required to Force UTF8 (see below)
    #
    use_xft yes
    xftfont DroidSans:size=8.75
    xftalpha 0.1
    
    ####
    ## Force UTF8? Requires XFT (see above)
    ## Displays degree symbol, instead of °, etc.
    #
    override_utf8_locale yes
    
    ####
    ## This buffer is used for single lines, text, output from $exec, and other variables.
    ## Increasing the 'text_buffer_size' (too high) will drastically reduce Conky's performance.
    ## Decreasing the buffer size (too low) will truncate content and cause strange display output.
    ## Standard text buffer size is 256 bytes (cannot be less). Adjust YOUR buffer wisely!
    ## Tips n' Tricks from dk75:"You don't need to create a 12KiB buffer for every Conky config line."
    #
    text_buffer_size 4352
    
    ####
    ## Maximum number of special things, e.g. fonts, offsets, aligns, etc. (default is 512)
    ## Tips n' Tricks from: sparker256 (Thanks, Bill!)
    #
    max_specials 600
    
    ####
    ## Daemonize Conky, aka 'fork to background'.
    #
    background yes
    
    ####
    ## Update interval in seconds.
    #
    update_interval 2.0
    
    ####
    ## The number of times Conky will update before quitting.
    ## Zero makes Conky run forever.
    #
    total_run_times 0
    
    ####
    ## Create 'own_window' type. Makes Conky behave like other panels.
    #
    own_window yes
    own_window_transparent yes
    own_window_type normal
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    ####
    ## Some distros require the following lines for true transparency.
    ## BOTH of these lines need to be Commented/Uncommented in tandem.
    #
    # own_window_argb_visual yes
    # own_window_argb_value 255
    
    ####
    ## Force images to redraw when they change.
    #
    imlib_cache_size 1
    
    ####
    ## Use double buffering? Reduces flicker.
    #
    double_buffer yes
    
    ####
    ## Draw shades?
    #
    draw_shades yes
    default_shade_color 330
    
    ####
    ## Draw outlines?
    #
    draw_outline no
    
    ####
    ## Draw borders around text?
    #
    draw_borders no
    
    ####
    ## Draw borders around graphs?
    #
    draw_graph_borders no
    
    ####
    ## Print text to stdout?
    ## Print text in console?
    #
    out_to_ncurses no
    out_to_console no
    
    ####
    ## Text alignment.
    #
    alignment top_right
    
    ####
    ## Minimum size of the text area.
    ## Syntax: minimum_size [width] [height]
    #
    minimum_size 245 1394
    
    ####
    ## Maximum width of the text area.
    ## Syntax: maximum_width [width]
    #
    maximum_width 245
    
    ####
    ## Gap between text and screen borders.
    #
    gap_x 6	  # Left/Right
    gap_y 32  # Top/Bottom
    
    ####
    ## Shorten MiB/GiB to M/G in stats.
    #
    short_units yes
    
    ####
    ## Pad % symbol spacing after numbers.
    #
    pad_percents 0
    
    ####
    ## Pad spacing between text and borders.
    #
    border_inner_margin 4
    
    ####
    ## Limit the length of names in "Top Processes".
    #
    top_name_width 10
    
    ####
    ## Subtract file system -/+buffers/cache from used memory?
    ## Set to yes, to produce meaningful physical memory stats.
    #
    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
    
    ####
    ## Add spaces to keep things from moving around?
    ## Only affects certain objects.
    #
    use_spacer right
    
    ####
    ## My colors (suit yourself)
    #
    color0 White		#FFFFFF
    color1 Ivory		#FFFFF0
    color2 Ivory2		#EEEEE0
    color3 Ivory3		#CDCDC1
    color4 Tan1		#FFA54F
    color5 Tan2		#EE9A49
    color6 Gray		#7E7E7E
    color7 AntiqueWhite4	#8B8378
    color8 DimGray		#696969
    color9 Tomato		#FF6347
    # colorX OrangeRed	#FF4500
    
    #####
    ## Load Lua for shading (optional)
    ## Set the path to your script here.
    #
    lua_load ~/.conky/draw_bg.lua
    lua_draw_hook_pre draw_bg
    
    ####
    ## Load Lua for bargraphs (required)
    ## Set the path to your script here.
    #
    lua_load ~/.conky/bargraph_small.lua
    lua_draw_hook_post main_bars
    
    ####
    ## Define the locations of Conkywx files (required)
    ## Set the path to your .confs and templates here.
    #
    template0 "/usr/share/conkywx/conkywx.sh"
    template1 "/home/vindsl/.config/conkywx/vindsl-imperial-conkywx.conf"
    template2 "/home/vindsl/.config/conkywx/vindsl-metric-conkywx.conf"
    template3 "/home/vindsl/.config/conkywx/wx-wu-vindsl-imperial-weather-dingbat-template.sh"
    template4 "/home/vindsl/.config/conkywx/wx-wu-vindsl-imperial-weather-graphic-template.sh"
    template5 "/home/vindsl/.config/conkywx/wx-wu-vindsl-metric-weather-dingbat-template.sh"
    template6 "/home/vindsl/.config/conkywx/wx-wu-vindsl-metric-weather-graphic-template.sh"
    
    TEXT
    ##################################
    ##             LOGO             ##
    ##################################
    ## Uncomment for hard-coded ID (static)
    # ${voffset -33}${font OpenLogos:size=103}${color2}v${font}${voffset -75}${goto 179}${font UbuntuTitleBold:size=19.6}${color4}1${offset 1}2${offset 1}.${offset 0}0${offset 0}4${font}
    ####
    ## Uncomment for soft-coded ID (dynamic)
    ${voffset -30}${font OpenLogos:size=103}${color2}v${font}${voffset -75}${goto 179}${font UbuntuTitleBold:size=19.6}${color4}${pre_exec cat /etc/*release | grep 'RELEASE' | awk -F'=' '{print $2}'}${font}
    ####
    ## Additional ID (branch version, code name, release date, etc.)
    ${voffset -2}${goto 182}${font Ubuntu-B:bold:size=7.55}${color5}Conky ${conky_version}${font}
    # ${voffset 0}${goto 182}${font Ubuntu-B:size=8}${color4}Pre-Alpha${font}
    ####
    ## Uncomment to display YOUR custom graphic image (upper-right corner)
    # ${voffset -30}${font OpenLogos:size=103}${color2}v${font}${voffset -52}${image /home/vindsl/Pictures/BDC/Avatar(Transparent-50)55x55.png -p 180,0 -s 52x52 -n}
    ##################################
    ##            SYSTEM            ##
    ##################################
    ${voffset 7}${font DroidSans:bold:size=8.25}${color4}SYSTEM${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 4}${font OpenLogos:size=10}${color2}u${voffset -4}${font DroidSans:size=8.6}${color3}${offset 5}${pre_exec lsb_release -sd | sed -e 's/development/dev/g'}${alignr}${pre_exec lsb_release -sr}${font}
    ${voffset 2}${offset -2}${font OpenLogos:size=12}${color2}Z${voffset -4}${font DroidSans:size=8.6}${color3}${offset 3}${sysname}${offset 3}${kernel}${alignr}${font DroidSans:size=8.3}${machine}${font}
    ####
    ## Uncomment for nVidia ID (nvidia-smi version - dynamic)
    ${voffset 2}${font StyleBats:size=10}${color2}d${voffset -2}${font DroidSans:size=8.6}${color3}${offset 5}${pre_exec nvidia-smi -q | grep "Product Name" | sed -e 's/.*: /nVidia /'}${alignr}${pre_exec nvidia-smi -q | grep "Driver Version" | awk '{print $4}'}${font}
    ####
    ## Uncomment for 'nvidia-current' driver ID (DPKG version - hybrid)
    # ${voffset 2}${font StyleBats:size=10}${color2}d${voffset -2}${font DroidSans:size=8.6}${color3}${offset 5}nVidia GeForce 7600 GT${alignr}${font DroidSans:size=8.3}${pre_exec dpkg --status nvidia-current | grep Version | cut -f 1 -d '-' | sed 's/[^.,0-9]//g'}${font}
    ####
    ## Uncomment for nvidia driver ID (OpenGL version - hydrid)
    # ${voffset 2}${font StyleBats:size=10}${color2}d${voffset -2}${font DroidSans:size=8.6}${color3}${offset 5}nVidia GeForce 7600 GT${alignr}${font DroidSans:size=8.3}${pre_exec glxinfo | grep 'OpenGL version string' | sed -e 's/OpenGL.*: //' | cut -c '14-19'}${font}
    ####
    ## Uncomment for hard-coded video ID (any card / any driver - static)
    # ${voffset 2}${font StyleBats:size=10}${color2}d${voffset -2}${font DroidSans:size=8.6}${color3}${offset 5}Video Card Product Name${alignr}Driver Version${font DroidSans:size=8.3}${font}
    ####
    ## Uncomment for CPU ID / CPU frequency (hybrid)
    ${voffset 2}${font StyleBats:size=10}${color2}A${voffset -1}${font DroidSans:size=8.6}${color3}${offset 5}Intel${offset 3}P4${offset 3}Extreme${offset 3}Edition${alignr 1}${font DroidSans:size=8.3}${freq_g cpu0}${offset 1}GHz${font}
    ####
    ## Uncomment for System Uptime (hybdid)
    ${voffset 2}${font StyleBats:size=10}${color2}q${voffset -1}${font DroidSans:size=8.6}${color3}${offset 5}System${offset 3}Uptime${alignr}${font DroidSans:size=8.3}${uptime_short}${font}
    ##################################
    ##          PROCESSORS          ##
    ##################################
    ${voffset 4}${font DroidSans:bold:size=8}${color4}PROCESSORS${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 4}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color3}${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}${color3}${offset 2}CPU2${offset 5}${font DroidSans:size=8.3}${cpu cpu2}%${font}
    ##################################
    ##            MEMORY            ##
    ##################################
    ${voffset 5}${font DroidSans:bold:size=8}${color4}MEMORY${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 6}${font StyleBats:size=10}${color2}l${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 3}RAM${goto 97}${font DroidSans:size=8.3}${mem}${goto 133}/${offset 5}${memmax}${alignr}${memperc}%${font}
    ##################################
    ##             HDD              ##
    ##################################
    ${voffset 15}${font DroidSans:bold:size=8}${color4}HDD${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 7}${font StyleBats:size=9.9}${color2}x${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 4}ROOT${goto 95}${font DroidSans:size=8.3}${fs_used /}${goto 133}/${offset 5}${fs_size /}${alignr}${fs_free_perc /}%${font}
    ${voffset 16}${font StyleBats:size=9.9}${color2}x${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 4}HOME${goto 95}${font DroidSans:size=8.3}${fs_used /home}${goto 133}/${offset 5}${fs_size /home}${alignr}${fs_free_perc /home}%${font}
    ${voffset 16}${font StyleBats:size=9.9}${color2}4${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 4}SWAP${goto 95}${font DroidSans:size=8.3}${swap}${goto 133}/${offset 5}${swapmax}${alignr}${swapperc}%${font}
    ##################################
    ##         TOP PROCESSES        ##
    ##################################
    ${voffset 15}${font DroidSans:bold:size=8}${color4}TOP PROCESSES${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 6}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color3}${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}${color3}${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}${color3}${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}${color3}${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}${color3}${offset 5}${top_mem name 5}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 5}${alignr}${top_mem mem 5}%${font}
    # ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}${top_mem name 6}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 6}${alignr}${top_mem mem 6}%${font}
    ##################################
    ##          NETWORK             ##
    ##################################
    ${voffset 4}${font DroidSans:bold:size=8}${color4}NETWORK${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 4}${font PizzaDudeBullets:size=9.5}${color6}T${font DroidSans:size=8.65}${color3}${offset 5}Download${goto 120}${font DroidSans:size=8.3}${totaldown eth0}${alignr}${font DroidSans:size=8.3}${downspeed eth0}${font}
    ${voffset 0}${font PizzaDudeBullets:size=9.5}${color6}N${font DroidSans:size=8.65}${color3}${offset 5}Upload${goto 120}${font DroidSans:size=8.3}${totalup eth0}${alignr}${font DroidSans:size=8.3}${upspeed eth0}${font}
    ${voffset 4}${font PizzaDudeBullets:size=9.5}${color6}a${font DroidSans:size=8.65}${color3}${offset 5}Private${offset 3}IP${goto 123}${font DroidSansFallback:size=8.5}LAN${alignr}${font DroidSans:size=8.3}${addr eth0}${font}
    ${voffset 0}${font PizzaDudeBullets:size=9.5}${color6}a${font DroidSans:size=8.65}${color3}${offset 5}Public${offset 7}IP${goto 121}${font DroidSansFallback:size=8.5}WAN${alignr}${font DroidSans:size=8.3}Demo Mode${font}
    # ${execi 1800 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}${font}
    ##################################
    ##      CONKYWX WEATHER         ##
    ##################################
    ${voffset 4}${font DroidSans:bold:size=8.25}${color4}CONKYWX${offset 8}${color6}${voffset -2}${hr 1}${font}
    ####
    ## Uncomment for IMPERIAL Weather Stats (DINGBAT font set).
    # ${execpi 900 ${template0} -c "${template1}" -t "${template3}"}${font}
    ####
    ## Uncomment for IMPERIAL Weather Stats (GRAPHIC icon set).
    ${execpi 900 ${template0} -c "${template1}" -t "${template4}"}${font}
    ####
    ## Uncomment for METRIC Weather Stats (DINGBAT font set).
    # ${execpi 900 ${template0} -c "${template2}" -t "${template5}"}${font}
    ####
    ## Uncomment for METRIC Weather Stats (GRAPHIC icon set).
    # ${execpi 900 ${template0} -c "${template2}" -t "${template6}"}${font}
    ##################################
    ##           TIME               ##
    ##################################
    ${voffset 6}${font DroidSans:bold:size=8}${color4}TIME${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset -5}${font RadioSpace:size=32}${color3}${if_match ${time %l}<=9}${alignc 7}${time %l:%M}${offset 3}${time %p}${else}${if_match ${time %l}>=10}${alignc -1}${time %l:%M}${offset 3}${time %p}${endif}${endif}${font}
    ##################################
    ##         CALENDAR             ##
    ##################################
    ${voffset 4}${font DroidSans:bold:size=8}${color4}DATE${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 18}${font DroidSansMono:size=7.55}${color2}${alignc 60}${time %A}${font}
    ${voffset -4}${font DroidSansFallback:bold:size=18}${if_match ${time %e}<=9}${color3}${alignc 65}${time %e}${font}${else}${if_match ${time %e}>=10}${color3}${alignc 60}${time %e}${endif}${endif}${font}
    ${voffset 0}${font DroidSansMono:size=7.55}${color2}${alignc 60}${time %B}${font}
    ${voffset 0}${font DroidSansMono:size=7.6}${color2}${alignc 60}${time %Y}${font}
    ${voffset -80}${font CutOutsFor3DFX:size=67}${color7}${alignc 99}2${font}
    ####
    ## Uncomment for "SUNDAY = First Day-of-the-Week" (use mono fonts only)
    ## 5-Weeks in Month
    # ${voffset -70}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; cal -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e s/^/"\$\{offset 100"\}/ -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}
    ####
    ## Uncomment for "SUNDAY = First Day-of-the-Week" (use mono fonts only)
    ## 6-Weeks in Month
    ${voffset -76}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; cal -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e s/^/"\$\{offset 100"\}/ -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}
    ####
    ## Uncomment for "MONDAY = First Day-of-the-Week" (use mono fonts only)
    ## 5-Weeks in Month
    # ${voffset -70}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; ncal -M -C -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e s/^/"\$\{offset 100"\}/ -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}
    ####
    ## Uncomment for "MONDAY = First Day-of-the-Week" (use mono fonts only)
    ## 6-Weeks in Month
    # ${voffset -76}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; ncal -M -C -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e s/^/"\$\{offset 100"\}/ -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}
    ##################################
    ##   RHYTHMBOX (Experimental)   ##
    ##################################
    ${if_running rhythmbox}
    ${voffset -9}${font DroidSans:bold:size=8}${color4}RHYTHMBOX${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 6}${font DroidSans:size=8.25}${color3}${if_match "${execpi 2 expr length "`/usr/bin/rhythmbox-client --print-playing-format %tt | head -n 1`"}" >= "48"}${alignr 15}${scroll 38 4* ${execi 2 rhythmbox-client --print-playing-format %tt --no-start}}${font}${else}${alignc}${execi 2 rhythmbox-client --print-playing-format %tt --no-start}${font}${endif}${endif}
    ##################################
    ##    BANSHEE (Experimental)    ##
    ##################################
    ${if_running banshee}
    ${voffset -19}${font DroidSans:bold:size=8}${color4}BANSHEE${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 4}${font DroidSans:size=8.25}${color3}${if_match "${execpi 2 expr length "`/usr/bin/banshee --query-title --no-present | cut -f1- -d " "`"}" >= "48"}${alignr 15}${scroll 38 4* ${execi 2 banshee --query-title --no-present | cut -f2- -d " "}}${font}${else}${alignc}${execi 2 banshee --query-title --no-present | cut -f2- -d " "}${font}${endif}${endif}
    ##################################
    ##   GUAYADEQUE (Experimental)  ##
    ##################################
    ${if_running guayadeque}
    ${voffset -36}${font DroidSans:bold:size=8}${color4}GUAYADEQUE${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 4}${font DroidSans:size=8.25}${color3}${if_match "${execpi 2 expr length "`qdbus org.mpris.guayadeque /\Player org.freedesktop.MediaPlayer.GetMetadata | grep title | cut -f2- -d" "`"}" >= "48"}${alignr 15}${scroll 38 4* ${execi 2 qdbus org.mpris.guayadeque /\Player org.freedesktop.MediaPlayer.GetMetadata | grep title | cut -f2- -d" "}}${font}${else}${alignc}${execi 2 qdbus org.mpris.guayadeque /\Player org.freedesktop.MediaPlayer.GetMetadata | grep title | cut -f2- -d" "}${font}${endif}${endif}
    You might want to try the latest Calendar code.

    Works fine on Peppermint OS (a Lubuntu clone)...
    Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
    Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
    XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU

  7. #737
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    3,001
    Distro
    Ubuntu Development Release

    Re: HOWTO: VinDSL Conky Script

    UPDATE #2

    If anybody *feels* like testing some code...

    This will get rid of a lot of cruft.

    Code:
    ##################################
    ##   CALENDAR (Experimental)    ##
    ##################################
    ${voffset 4}${font DroidSans:bold:size=8}${color4}DATE${offset 8}${color6}${voffset -2}${hr 1}${font}
    ${voffset 18}${font DroidSansMono:size=7.55}${color2}${alignc 60}${time %A}${font}
    ${voffset -4}${font DroidSansFallback:bold:size=18}${if_match ${time %e}<=9}${color3}${alignc 65}${time %e}${font}${else}${if_match ${time %e}>=10}${color3}${alignc 60}${time %e}${endif}${endif}${font}
    ${voffset 0}${font DroidSansMono:size=7.55}${color2}${alignc 60}${time %B}${font}
    ${voffset 0}${font DroidSansMono:size=7.6}${color2}${alignc 60}${time %Y}${font}
    ${voffset -80}${font CutOutsFor3DFX:size=67}${color7}${alignc 99}2${font}
    ####
    ## Uncomment for "SUNDAY = First Day-of-the-Week" (use mono fonts only)
    ${if_match "${time %b %G}"=="Dec 2012"}${voffset -76}${else}${if_match "${time %b %G}"=="Mar 2013"}${voffset -76}${else}${if_match "${time %b %G}"=="Jun 2013"}${voffset -76}${else}${voffset -70}${endif}${endif}${endif}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; cal -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e s/^/"\$\{offset 100"\}/ -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}
    ####
    ## Uncomment for "MONDAY = First Day-of-the-Week" (use mono fonts only)
    # ${if_match "${time %b %G}"=="Dec 2012"}${voffset -76}${else}${if_match "${time %b %G}"=="Mar 2013"}${voffset -76}${else}${if_match "${time %b %G}"=="Jun 2013"}${voffset -76}${else}${voffset -70}${endif}${endif}${endif}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; ncal -M -C -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e s/^/"\$\{offset 100"\}/ -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}
    Last edited by VinDSL; December 4th, 2012 at 08:11 AM. Reason: Update
    Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
    Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
    XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU

  8. #738
    Join Date
    Nov 2008
    Location
    Tampa, Florida
    Beans
    38

    Re: HOWTO: VinDSL Conky Script

    @VinDSL

    In your Date section, you insert the calendar with the following code, correct?

    Code:
    ${voffset -68}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; cal -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e s/^/"\$\{offset 100"\}/ -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}
    What is the shell command you are calling with the highlighted text? How am I able to run something that is personalized to you?

  9. #739
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    3,001
    Distro
    Ubuntu Development Release

    Re: HOWTO: VinDSL Conky Script

    You can call that string anything you want, but the code is complex, and you'll be on your own. LoL!

    I put the moniker in there, so I know the version number, when it doesn't work for someone.

    Took me nine stabs to nail down that calendar code -- that's all.
    Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
    Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
    XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU

  10. #740
    Join Date
    Nov 2008
    Location
    Tampa, Florida
    Beans
    38

    Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by VinDSL View Post
    You can call that string anything you want, but the code is complex, and you'll be on your own. LoL!

    I put the moniker in there, so I know the version number, when it doesn't work for someone.

    Took me nine stabs to nail down that calendar code -- that's all.
    So you are calling your own calendar?

Page 74 of 287 FirstFirst ... 2464727374757684124174 ... 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
  •