Page 2093 of 2348 FirstFirst ... 1093159319932043208320912092209320942095210321432193 ... LastLast
Results 20,921 to 20,930 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #20921
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by ragamatrix View Post
    I can't acces to the dropbox site.
    https://www.dropbox.com/
    online problem may-be ??
    Hmmmmmmmmmm works for me. maybe a problem at your end. Wait a while and see.

  2. #20922
    Join Date
    Jan 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    I tried that at the end of my vnstat conky - but with 'eth0' vs 'wlan0' it does nothing, so I tried it without "-i eth0" (2nd test line):

    All of these produce the same: 1: $(date +"%b..%y") 2: $(date +"%b") & 3: $(date +"%y")
    Code:
     26 Oct 12 | 10:30:08 ~
             $ vnstat -m -i eth0 | mawk '/'$(date +"%b..%y")'/ $9 $10'
    
     eth0  /  monthly
    
           month        rx      |     tx      |    total    |   avg. rate
        ------------------------+-------------+-------------+---------------
           May 12     107.65 MB |     5.99 MB |   113.64 MB |      0.04 KB/s
           Jun 12      13.95 GB |   863.18 MB |    14.79 GB |      5.98 KB/s
           Jul 12      16.41 GB |   876.48 MB |    17.26 GB |      6.76 KB/s
           Aug 12      24.46 GB |     1.21 GB |    25.67 GB |     10.05 KB/s
           Sep 12      27.95 GB |     1.69 GB |    29.64 GB |     11.99 KB/s
           Oct 12      39.67 GB |     1.56 GB |    41.23 GB |     19.67 KB/s
        ------------------------+-------------+-------------+---------------
        estimated      48.34 GB |     1.91 GB |    50.25 GB |
    
     26 Oct 12 | 10:30:30 ~
             $ vnstat -m -i eth0 | mawk '/'$(date +"%b")'/ $9 $10'
    
     eth0  /  monthly
    
           month        rx      |     tx      |    total    |   avg. rate
        ------------------------+-------------+-------------+---------------
           May 12     107.65 MB |     5.99 MB |   113.64 MB |      0.04 KB/s
           Jun 12      13.95 GB |   863.18 MB |    14.79 GB |      5.98 KB/s
           Jul 12      16.41 GB |   876.48 MB |    17.26 GB |      6.76 KB/s
           Aug 12      24.46 GB |     1.21 GB |    25.67 GB |     10.05 KB/s
           Sep 12      27.95 GB |     1.69 GB |    29.64 GB |     11.99 KB/s
           Oct 12      39.67 GB |     1.56 GB |    41.23 GB |     19.67 KB/s
        ------------------------+-------------+-------------+---------------
        estimated      48.34 GB |     1.91 GB |    50.25 GB |
    
     26 Oct 12 | 10:30:36 ~
             $ vnstat -m -i eth0 | mawk '/'$(date +"%y")'/ $9 $10'
    
     eth0  /  monthly
    
           month        rx      |     tx      |    total    |   avg. rate
        ------------------------+-------------+-------------+---------------
           May 12     107.65 MB |     5.99 MB |   113.64 MB |      0.04 KB/s
           Jun 12      13.95 GB |   863.18 MB |    14.79 GB |      5.98 KB/s
           Jul 12      16.41 GB |   876.48 MB |    17.26 GB |      6.76 KB/s
           Aug 12      24.46 GB |     1.21 GB |    25.67 GB |     10.05 KB/s
           Sep 12      27.95 GB |     1.69 GB |    29.64 GB |     11.99 KB/s
           Oct 12      39.67 GB |     1.56 GB |    41.23 GB |     19.67 KB/s
        ------------------------+-------------+-------------+---------------
        estimated      48.34 GB |     1.91 GB |    50.25 GB |
    
     26 Oct 12 | 10:30:42 ~
             $
    Any idea why?
    First: vnstat defaults to eth0, so if your net device is that, you don't need "-i eth0" to trigger proper device to stat.

    Second: in your latest test you didn't used "print" in mawk so can't tell what the problem is.

    Third: test date in terminal for me:
    Code:
    date +%b
    it's my result:
    Code:
    :~$ date +%b
    paź
    :~$
    Linux Debian Sid (Minted) x86_64/3.12.10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Lenovo T61, Intel X3100, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
    Linux user No.: 483055 | My Conky Pitstop corner | One4All project

  3. #20923
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dk75 View Post
    First: vnstat defaults to eth0, so if your net device is that, you don't need "-i eth0" to trigger proper device to stat.
    Oops! I didn't realize that but neither of the tested lines worked:

    Code:
    ${execi 300 vnstat -m -i eth0 | mawk '/'$(date +"%b..%y")'/ {if ($9>=2900) _color="${color red}"; else _color="${color green}"; print _color $9 "${color}" $10}'}
    
    ${execi 300 vnstat -m | mawk '/'$(date +"%b..%y")'/ {if ($9>=2900) _color="${color red}"; else _color="${color green}"; print _color $9 "${color}" $10}'}
    One with - one without: eth0

    Quote Originally Posted by dk75 View Post
    Second: in your latest test you didn't used "print" in mawk so can't tell what the problem is.
    In the code in conky it's there in the terminal.

    And here comes the noob in me:
    How?

    Code:
     26 Oct 12 | 13:12:03 ~
             $ vnstat -m | mawk '/'$(date +"%b..%y")'/ {print $9}'
    
     26 Oct 12 | 13:12:20 ~
             $ vnstat -m | mawk '/'$(date +"%b")'/"{print $9}"'
    
     eth0  /  monthly
    
           month        rx      |     tx      |    total    |   avg. rate
        ------------------------+-------------+-------------+---------------
           May 12     107.65 MB |     5.99 MB |   113.64 MB |      0.04 KB/s
           Jun 12      13.95 GB |   863.18 MB |    14.79 GB |      5.98 KB/s
           Jul 12      16.41 GB |   876.48 MB |    17.26 GB |      6.76 KB/s
           Aug 12      24.46 GB |     1.21 GB |    25.67 GB |     10.05 KB/s
           Sep 12      27.95 GB |     1.69 GB |    29.64 GB |     11.99 KB/s
           Oct 12      39.75 GB |     1.57 GB |    41.32 GB |     19.62 KB/s
        ------------------------+-------------+-------------+---------------
        estimated      48.22 GB |     1.90 GB |    50.12 GB |
    
     26 Oct 12 | 13:26:18 ~
             $
    Quote Originally Posted by dk75 View Post
    Third: test date in terminal for me:
    Code:
    date +%b
    it's my result:
    Code:
    :~$ date +%b
    paź
    :~$
    Here it is - with %y as well:
    Code:
     26 Oct 12 | 13:18:02 ~
             $ date +%b
    Oct
    
     26 Oct 12 | 13:18:14 ~
             $ date +%y
    12
    
     26 Oct 12 | 13:18:17 ~
             $
    Off Topic:
    I think I like "paź" where you are: se = Spanish-English Dictionary for terminal:
    Code:
     26 Oct 12 | 13:19:31 ~
             $ se paz
    Result for 'paz':
    	Paz is a feminine noun.
    	type='feminine noun'
    	meaning: peace
    
     26 Oct 12 | 13:19:41 ~
             $

  4. #20924
    Join Date
    Jun 2012
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    Hmmmmmmmmmm works for me. maybe a problem at your end. Wait a while and see.
    I think its working fine now : https://dl.dropbox.com/u/63154177/wall_space.zip
    I hope...

  5. #20925
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by ragamatrix View Post
    I think its working fine now : https://dl.dropbox.com/u/63154177/wall_space.zip
    I hope...
    Ja ist das gut.
    Yes, it's good.

    Thank you.

  6. #20926
    Join Date
    Jan 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    Code:
     26 Oct 12 | 13:12:20 ~
             $ vnstat -m | mawk '/'$(date +"%b")'/"{print $9}"'
    
     eth0  /  monthly
    
           month        rx      |     tx      |    total    |   avg. rate
        ------------------------+-------------+-------------+---------------
           May 12     107.65 MB |     5.99 MB |   113.64 MB |      0.04 KB/s
           Jun 12      13.95 GB |   863.18 MB |    14.79 GB |      5.98 KB/s
           Jul 12      16.41 GB |   876.48 MB |    17.26 GB |      6.76 KB/s
           Aug 12      24.46 GB |     1.21 GB |    25.67 GB |     10.05 KB/s
           Sep 12      27.95 GB |     1.69 GB |    29.64 GB |     11.99 KB/s
           Oct 12      39.75 GB |     1.57 GB |    41.32 GB |     19.62 KB/s
        ------------------------+-------------+-------------+---------------
        estimated      48.22 GB |     1.90 GB |    50.12 GB |
    
     26 Oct 12 | 13:26:18 ~
             $
    OK.
    I didn't realized it earlier, but your version of vnstat have only one space between short month name and short year digits, whereas my vnstat and in earlier post, have one space and single quote (two character space) in between.
    So, there is a proper, universal code, that should work for most (unless, vnstat changes it output again, especially "-m" option, as in the past ;P ):
    Code:
    ${execi 300 vnstat -m | mawk '/'$(env LC_ALL=en_US.UTF-8 date +"%b.+%y")'/ {if ($9>=2900) _color="${color red}"; else _color="${color green}"; print _color $9 "${color}" $10}'}
    And here, is another thing for you:
    Code:
    for i in 3 2 1 0; do vnstat -m |mawk '/'$(env LC_ALL=en_US.UTF-8 date -d "- $i month" +"%b.+%y")'/ {print $1, $2 ":", $9$10}'; done


    Quote Originally Posted by Sector11 View Post
    Off Topic:
    I think I like "paź" where you are: se = Spanish-English Dictionary for terminal:
    Code:
     26 Oct 12 | 13:19:31 ~
             $ se paz
    Result for 'paz':
    	Paz is a feminine noun.
    	type='feminine noun'
    	meaning: peace
    
     26 Oct 12 | 13:19:41 ~
             $
    Funny thing, as I'm mistaken for Spaniard in real life as I'm seen:
    Code:
    :~$ date +"%A, %d %B %Y, %T %Z"; env LC_ALL=en_US.UTF-8 date +"%A, %d %B %Y, %T %Z"
    piątek, 26 październik 2012, 19:44:04 CEST
    Friday, 26 October 2012, 19:44:04 CEST
    :~$
    :~$ locale
    LANG=pl_PL.utf8
    LANGUAGE=
    LC_CTYPE="pl_PL.utf8"
    LC_NUMERIC=pl_PL.utf8
    LC_TIME=pl_PL.utf8
    LC_COLLATE="pl_PL.utf8"
    LC_MONETARY=pl_PL.utf8
    LC_MESSAGES="pl_PL.utf8"
    LC_PAPER="pl_PL.utf8"
    LC_NAME="pl_PL.utf8"
    LC_ADDRESS="pl_PL.utf8"
    LC_TELEPHONE="pl_PL.utf8"
    LC_MEASUREMENT=pl_PL.utf8
    LC_IDENTIFICATION="pl_PL.utf8"
    LC_ALL=
    :~$
    :~$ env LC_ALL=en_US.UTF-8 locale
    LANG=pl_PL.utf8
    LANGUAGE=
    LC_CTYPE="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_COLLATE="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER="en_US.UTF-8"
    LC_NAME="en_US.UTF-8"
    LC_ADDRESS="en_US.UTF-8"
    LC_TELEPHONE="en_US.UTF-8"
    LC_MEASUREMENT="en_US.UTF-8"
    LC_IDENTIFICATION="en_US.UTF-8"
    LC_ALL=en_US.UTF-8
    :~$


    PS: even better, no date required, one vnstat call and one mawk and '-v last=3' variable controls how many months earlier to present one to show (currently '3'):
    Code:
    vnstat -m |mawk -v last=3 '/[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); --i; for (j=i-last; j<=i; j++) {$0=test[j]; if ($9>100) _color="${color red}"; else _color="${color green}"; print $1, $2 ":", _color $9 "${color}" $10}}'
    Last edited by dk75; October 26th, 2012 at 08:59 PM.
    Linux Debian Sid (Minted) x86_64/3.12.10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Lenovo T61, Intel X3100, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
    Linux user No.: 483055 | My Conky Pitstop corner | One4All project

  7. #20927
    Join Date
    May 2010
    Location
    Australia
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dk75 View Post
    ???
    Code don't show updates because it uses aptitude, which you have not installed.
    Install it
    Code:
    sudo apt-get install aptitude
    and it will work.
    Respectfully, perhaps you've missed my point(s)...
    As confirmed by you in an earlier post, aptitude was not installed default in earlier versions, nor is it installed in 12.10 by default.
    So my question remains: Why did the code work (without aptitude) in 9.04 / 9.10 and not work now?
    Furthermore, here (Kubuntu 12.10) with aptitude installed also failed to indicate updates were available.
    In fact Muon (GUI) also failed to detect updates until I added/removed enabled/disabled a series of repositories and then asked Muon to recheck for updates. Updates were found and conky only then relected this availability.

  8. #20928
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dk75 View Post
    OK.
    I didn't realized it earlier, but your version of vnstat have only one space between short month name and short year digits, whereas my vnstat and in earlier post, have one space and single quote (two character space) in between.
    Because I edited my /etc/vnstat.config and I'm going to do it again to get the DatabaseDir into "$HOME/vnstat_data" at some point so it is always available and can be included in my home-backup.

    Code:
    # vnStat 1.11 config file
    # modified by Sector11 - see /media/5/vnstat.config_ORIGINAL
    ##
    
    # default interface
    Interface "eth0"
    
    # location of the database directory
    DatabaseDir "/var/lib/vnstat"
    
    # locale (LC_ALL) ("-" = use system locale)
    Locale "-"
    
    # on which day should months change
    MonthRotate 1
    
    # date output formats for -d, -m, -t and -w
    # see 'man date' for control codes
    DayFormat    "%x"
    MonthFormat  "%b %y"  ## edited by Sector11
    TopFormat    "%x"
    
    # characters used for visuals
    RXCharacter       "%"
    TXCharacter       ":"
    RXHourCharacter   "r"
    TXHourCharacter   "t"  22:35:30 ~
             $ 
    
    # how units are prefixed when traffic is shown
    # 0 = IEC standard prefixes (KiB/MiB/GiB/TiB)
    # 1 = old style binary prefixes (KB/MB/GB/TB)
    UnitMode 1  ## edited by Sector11
    
    # output style
    # 0 = minimal & narrow, 1 = bar column visible
    # 2 = same as 1 except rate in summary and weekly
    # 3 = rate column visible
    OutputStyle 3
    
    # used rate unit (0 = bytes, 1 = bits)
    RateUnit 0  ## edited by Sector11
    
    # maximum bandwidth (Mbit) for all interfaces, 0 = disable feature
    # (unless interface specific limit is given)
    MaxBandwidth 100
    
    # interface specific limits
    #  example 8Mbit limit for eth0 (remove # to activate):
    #MaxBWeth0 8
    
    # how many seconds should sampling for -tr take by default
    Sampletime 5
    
    # default query mode
    # 0 = normal, 1 = days, 2 = months, 3 = top10
    # 4 = dumpdb, 5 = short, 6 = weeks, 7 = hours
    QueryMode 0
    
    # filesystem disk space check (1 = enabled, 0 = disabled)
    CheckDiskSpace 1
    
    # database file locking (1 = enabled, 0 = disabled)
    UseFileLocking 1
    
    # how much the boot time can variate between updates (seconds)
    BootVariation 15
    
    # log days without traffic to daily list (1 = enabled, 0 = disabled)
    TrafficlessDays 1
    
    
    # vnstatd
    ##
    
    # how often (in seconds) interface data is updated
    UpdateInterval 30
    
    # how often (in seconds) interface status changes are checked
    PollInterval 5
    
    # how often (in minutes) data is saved to file
    SaveInterval 5
    
    # how often (in minutes) data is saved when all interface are offline
    OfflineSaveInterval 30
    
    # force data save when interface status changes (1 = enabled, 0 = disabled)
    SaveOnStatusChange 1
    
    # enable / disable logging (0 = disabled, 1 = logfile, 2 = syslog)
    UseLogging 2
    
    # file used for logging if UseLogging is set to 1
    LogFile "/var/log/vnstat.log"
    
    # file used as daemon pid / lock file
    PidFile "/var/run/vnstat.pid"
    
    
    # vnstati
    ##
    
    # title timestamp format
    HeaderFormat "%x %H:%M"
    
    # show hours with rate (1 = enabled, 0 = disabled)
    HourlyRate 1
    
    # show rate in summary (1 = enabled, 0 = disabled)
    SummaryRate 1
    
    # layout of summary (1 = with monthly, 0 = without monthly)
    SummaryLayout 1
    
    # transparent background (1 = enabled, 0 = disabled)
    TransparentBg 0
    
    # image colors
    CBackground     "FFFFFF"
    CEdge           "AEAEAE"
    CHeader         "606060"
    CHeaderTitle    "FFFFFF"
    CHeaderDate     "FFFFFF"
    CText           "000000"
    CLine           "B0B0B0"
    CLineL          "-"
    CRx             "92CF00"
    CTx             "606060"
    CRxD            "-"
    CTxD            "-"
    Quote Originally Posted by dk75 View Post
    So, there is a proper, universal code, that should work for most (unless, vnstat changes it output again, especially "-m" option, as in the past ;P ):
    Code:
    ${execi 300 vnstat -m | mawk '/'$(env LC_ALL=en_US.UTF-8 date +"%b.+%y")'/ {if ($9>=2900) _color="${color red}"; else _color="${color green}"; print _color $9 "${color}" $10}'}
    And here, is another thing for you:
    Code:
    for i in 3 2 1 0; do vnstat -m |mawk '/'$(env LC_ALL=en_US.UTF-8 date -d "- $i month" +"%b.+%y")'/ {print $1, $2 ":", $9$10}'; done
    Now that is sweet!!!!!!!!!!!!!!!!

    Code:
     26 Oct 12 | 17:35:56 ~
             $ for i in 3 2 1 0; do vnstat -m |mawk '/'$(env LC_ALL=en_US.UTF-8 date -d "- $i month" +"%b.+%y")'/ {print $1, $2 ":", $9$10}'; done
    Jul 12: 17.26GB
    Aug 12: 25.67GB
    Sep 12: 29.64GB
    Oct 12: 41.39GB
    
     26 Oct 12 | 17:36:34 ~
             $
    If I only knew 50% of what you know .... or the stuff you've forgotten.

    Quote Originally Posted by dk75 View Post
    Funny thing, as I'm mistaken for Spaniard in real life as I'm seen:
    Code:
    :~$ date +"%A, %d %B %Y, %T %Z"; env LC_ALL=en_US.UTF-8 date +"%A, %d %B %Y, %T %Z"
    piątek, 26 październik 2012, 19:44:04 CEST
    Friday, 26 October 2012, 19:44:04 CEST
     {snip}
    :~$
    But that Polish and US English not Spanish. And people really mistake you for Spanish? WoW!!!!!
    Hmmmmmmm you don't capitalize days and months in Polish - like Spanish.

    Quote Originally Posted by dk75 View Post
    PS: even better, no date required, one vnstat call and one mawk and '-v last=3' variable controls how many months earlier to present one to show (currently '3'):
    Code:
    vnstat -m |mawk -v last=3 '/[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); --i; for (j=i-last; j<=i; j++) {$0=test[j]; if ($9>100) _color="${color red}"; else _color="${color green}"; print $1, $2 ":", _color $9 "${color}" $10}}'
    OH YEA!!!!!!!!!! You just answered a question I was going to have to worry about in 6 months .... what to do when the database has more than a years worth of info. That's for you and 'Kudos' too!

    Code:
     26 Oct 12 | 17:50:08 ~
             $ vnstat -m |mawk -v last=12 '/[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); --i; for (j=i-last; j<=i; j++) {$0=test[j]; print $1, $2 ":  "$3 $4"  "$6 $7"  "$9 $10}}'
     :      
     :      
     :      
     :      
     :      
     :      
     :      
    May 12:  107.65MB  5.99MB  113.64MB
    Jun 12:  13.95GB  863.18MB  14.79GB
    Jul 12:  16.41GB  876.48MB  17.26GB
    Aug 12:  24.46GB  1.21GB  25.67GB
    Sep 12:  27.95GB  1.69GB  29.64GB
    Oct 12:  39.82GB  1.58GB  41.39GB
    
     26 Oct 12 | 17:50:33 ~
             $
    I'll get it into conky with 5 months and at the first every month add a month until I get to 11. It starts at 0

  9. #20929
    Join Date
    Jan 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    You didn't posted about it earlier, only about aptitude problem.
    But repositories problem is not a script problem.
    Linux Debian Sid (Minted) x86_64/3.12.10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Lenovo T61, Intel X3100, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
    Linux user No.: 483055 | My Conky Pitstop corner | One4All project

  10. #20930
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Thanks to dk75 (post #20928 above) I've just eliminated 11 lines in my vnstat conky that ended with:
    Code:
    ${color0}Yearly Transfer Totals${color} ${hr}
    ${color6}${goto 75}rx${goto 155}tx${goto 235}Total${color}
    ${execpi 300 vnstat -m | grep "Jan" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
    ${execpi 300 vnstat -m | grep "Feb" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
    ${execpi 300 vnstat -m | grep "Mar" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
    ${execpi 300 vnstat -m | grep "Apr" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
    ${execpi 300 vnstat -m | grep "May" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
    ${execpi 300 vnstat -m | grep "Jun" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
    ${execpi 300 vnstat -m | grep "Jul" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
    ${execpi 300 vnstat -m | grep "Aug" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
    ${execpi 300 vnstat -m | grep "Sep" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
    ${execpi 300 vnstat -m | grep "Oct" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
    ${execpi 300 vnstat -m | grep "Nov" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4" ${goto 155}"$6" "$7" ${goto 235}"$9" "$10}'}
    ${execpi 300 vnstat -m | grep "Dec" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
    ${color0}${hr}${color}
    it now ends with:
    Code:
    ${color0}Monthly Transfer Totals${color} ${hr}
    ${color6}${goto 75}rx${goto 155}tx${goto 235}Total${color}
    ${execpi 300 vnstat -m |mawk -v last=5 '/[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); --i; for (j=i-last; j<=i; j++) {$0=test[j]; print "${color6}"$1, $2 ":${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}}'}
    A combination of the two:



    The conky as it is now:
    Code:
    # killall conky && conky -c ~/Conky/S11_VNS.conky &
    # with help from dk75
    
    ###  Begin Window Settings  ##################################################
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    
    # Use the Xdbe extension? (eliminates flicker)
    # It is highly recommended to use own window with this one
    # so double buffer won't be so big.
    double_buffer yes
    
    own_window_type normal #override
    own_window_transparent yes
    own_window_hints undecorated,below,skip_taskbar,skip_pager
    # own_window_colour ffffff
    own_window_class Conky
    own_window_title Vnstats
    
    ### ARGB can be used for real transparency
    ### NOTE that a composite manager is required for real transparency.
    ### This option will not work as desired (in most cases) in conjunction with
    ### own_window_type normal
    # own_window_argb_visual yes
    
    ### When ARGB visuals are enabled, this use this to modify the alpha value
    ### Use: own_window_type normal
    ### Use: own_window_transparent no
    ### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
    #own_window_argb_value 150
    
    minimum_size 330 0 ## width, height
    maximum_width 330  ## width, usually a good idea to equal minimum width
    
    gap_x 385 ### left &right
    gap_y 295 ### up & down
    
    alignment top_left
    ####################################################  End Window Settings  ###
    ###  Font Settings  ##########################################################
    # Use Xft (anti-aliased font and stuff)
    use_xft yes
    xftfont Anonymous Pro:size=9
    
    # Alpha of Xft font. Must be a value at or between 1 and 0 ###
    xftalpha 1
    # Force UTF8? requires XFT ###
    override_utf8_locale yes
    
    ### WARNING ### These do NOT play well with ~/Conky/LUA/draw-bg.lua
    ###################################################################
    draw_shades no #### <<<--- yes --- To see it easier on light screens.
    #default_shade_color black
    draw_outline no #### <<<--- yes --- Amplifies text if yes
    default_outline_color black
    
    uppercase no
    ######################################################  End Font Settings  ###
    ###  Color Settings  #########################################################
    default_shade_color gray
    default_outline_color black
    
    default_color DCDCDC #220 220 220	Gainsboro
    color0 8FBC8F #143 188 143	DarkSeaGreen
    color1 778899 #119 136 153	LightSlateGray
    color2 FF8C00 #255 140   0	DarkOrange
    color3 7FFF00 #127 255   0	Chartreuse
    color4 FFA07A #255 160 122	LightSalmon
    color5 FFDEAD #255 222 173	NavajoWhite
    color6 00BFFF #  0 191 255	DeepSkyBlue
    color7 00FFFF #  0 255 255	Cyan
    color8 FFFF00 #255 255   0	Yellow
    color9 B22222 #178  34  34	FireBrick
    #####################################################  End Color Settings  ###
    ###  Borders Section  ########################################################
    draw_borders no
    # Stippled borders?
    stippled_borders 0
    # border margins
    border_inner_margin 5
    border_outer_margin 0
    # border width
    border_width 0
    # graph borders
    draw_graph_borders no
    #####################################################  End Borders Secton  ###
    ###  Miscellaneous Section  ##################################################
    
    # yes
    background yes
    
    # Adds spaces around certain objects to stop them from moving other things
    # around, this only helps if you are using a mono font
    # Options: right, left or none
    use_spacer right
    
    # Default and Minimum size is 256 - needs more for single commands that
    # "call" a lot of text IE: bash scripts
    text_buffer_size 512
    
    # Subtract (file system) buffers from used memory?
    no_buffers yes
    
    # change GiB to G and MiB to M
    short_units yes
    
    # Like it says, ot pads the decimals on % values
    # doesn't seem to work since v1.7.1
    pad_percents 2
    
    #   Maximum size of user text buffer, i.e. layout below TEXT line in config file
    #  (default is 16384 bytes)
    # max_user_text 16384
    
    ##############################################  End Miscellaneous Section  ###
    ###  LUA Settings  ###########################################################
    ## Above and After TEXT - requires a composite manager or blinks.
    ##
    # lua_load ~/Conky/LUA/draw-bg.lua
    #TEXT
    #${lua conky_draw_bg 10 0 0 0 0 0x000000 0.6}
    #
    ## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
    ##
    ## OR Both above TEXT (No composite manager required - no blinking!)
    #
    lua_load ~/Conky/LUA/draw-bg.lua
    lua_draw_hook_pre draw_bg 15 0 0 0 0 0x000000 0.5
    #
    #######################################################  End LUA Settings  ###
    
    #digiThe all important - How often conky refreshes.5
    # If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP!
    update_interval 1 # in seconds
    
    # stuff after 'TEXT' will be formatted on screen
    TEXT
    ${color0}Network${color} ${hr}
    ${downspeedgraph eth0 24,150 A52A2A 0000FF -t -l}${goto 180}${upspeedgraph eth0 24,150 0000FF A52A2A -t -l}
      Down: ${downspeedf eth0}${goto 195}Up: ${upspeedf eth0}
    
    ${color0}Transfer Totals${color} ${hr}
    ${color6}rx${goto 85}tx${goto 170}Total${goto 265}Avg Rate${color}
    ${color0}Today:${color}
    ${execpi 300 vnstat | grep "today" | awk '{print $2" "$3"\
    ${goto 85}"$5" "$6"\
    ${goto 170}"$8" "$9"\
    ${goto 265}"$11" "$12}'}
    ${color0}Yesterday:${color}
    ${execpi 300 vnstat | grep "yesterday" | awk '{print $2" "$3"\
    ${goto 85}"$5" "$6 "\
    ${goto 170}" $8" "$9 "\
    ${goto 265}" $11" "$12}'}
    ${color0}Last Week:${color}
    ${execpi 300 vnstat -w | grep "last week" | awk '{print $3" "$4"\
    ${goto 85}" $6" "$7 "\
    ${goto 170}" $9" "$10 "\
    ${goto 265}" $12" "$13}'}
    ${color0}Last 7 Days:${color}
    ${execpi 300 vnstat -w | grep "last 7 days" | awk '{print $4" "$5 "\
    ${goto 85}" $7" "$8 "\
    ${goto 170}" $10" "$11 "\
    ${goto 265}" $13" "$14}'}
    ${color0}Current Week:${color}
    ${execpi 300 vnstat -w | grep "current week" | awk '{print $3" "$4 "\
    ${goto 85}" $6" "$7 "\
    ${goto 170}" $9" "$10 "\
    ${goto 265}" $12" "$13}'}
    ${color0}${time %B %Y}:${color}
    ${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $3" "$4}'}\
    ${goto 85}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $6" "$7}'}\
    ${goto 170}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $9" "$10}'}\
    ${goto 265}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $12" "$13}'}
    
    ${color0}Monthly Transfer Totals${color} ${hr}
    ${color6}${goto 85}rx${goto 170}tx${goto 265}Total${color}
    ${execpi 300 vnstat -m |mawk -v last=5 '/[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); --i; for (j=i-last; j<=i; j++) {$0=test[j]; print "${color6}"$1, $2 ":${color}${goto 85}"$3" "$4"${goto 170}"$6" "$7"${goto 265}"$9" "$10}}'}
    ${color0}${hr}${color}
    If you like it thank dk75

Page 2093 of 2348 FirstFirst ... 1093159319932043208320912092209320942095210321432193 ... 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
  •