Page 2270 of 2348 FirstFirst ... 127017702170222022602268226922702271227222802320 ... LastLast
Results 22,691 to 22,700 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #22691
    Join Date
    Feb 2012
    Beans
    54
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    I love how every time I come back here there are so many new configs which exceed my capabilities

    I have a problem. Conky is calling vnstat for the total network traffic monitor. Code:

    Code:
    ${color #ddaa00}Month Total Down: ${alignr}${color }${execi 300 vnstat -i wlan0+eth0 -m | grep "`date +"%b '%y"`" | awk '{print $3 $4}'}
    ${color #ddaa00}Month Total Up: ${alignr}${color }${execi 300 vnstat -i wlan0+eth0 -m | grep "`date +"%b '%y"`" | awk '{print $6 $7}'}
    Nothing is showing up in the conky display. The conkyrc file is the exact same one that I used earlier. (I repartitioned the drive a bit back to install Windows 7, XP (for special purposes) and 10.04LTS. I should go back to Linux for a little while to get an idea of how much data I average per month. Last I checked it was about 8GiB down, 1GiB up. I don't have anything in Windows 7 to match Conky.)

    The console shows "Segmentation fault" that is returned. I commented out the two vnstat lines and the fault is not returned. You'll see what it is supposed to look like in this photo of last year:



    Here's my entire .conkyrc file (and yes vnstat is installed):

    Code:
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_hints undecorated,below,skip_taskbar
    background yes
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # fiddle with window
    use_spacer right
    use_xft yes
    
    # window size controls
    minimum_size 170 570	## width, height
    maximum_width 170	## width
    
    # Update interval in seconds
    update_interval 3.0
    
    # Minimum size of text area
    minimum_size 160
    
    # Draw shades?
    draw_shades yes
    
    # Text stuff
    draw_outline no # amplifies text if yes
    draw_borders no
    
    uppercase no # set to yes if you want all text to be in uppercase
    
    # Stippled borders?
    stippled_borders 8
    
    # border margins
    border_margin 4
    
    # border width
    border_width 1
    
    # Default colors and also border colors, grey90 == #e5e5e5
    default_color white
    default_shade_color black
    default_outline_color white
    
    own_window_colour brown
    own_window_transparent yes
    
    # Text alignment, other possible values are commented
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    
    # Gap between borders of screen and text
    gap_x 5
    gap_y 5
    
    # stuff after 'TEXT' will be formatted on screen
    
    override_utf8_locale yes
    xftfont Terminus:size=8
    xftalpha 0.8
    
    TEXT
    ${color #FF6666}              SYSTEM PROFILE
    ${color slate grey}System: ${color }Th${color FF0000}i${color }nkPad X200 P8400
    ${color slate grey}Computer Name: ${color }$nodename
    ${color slate grey}Kernel: ${color }$kernel
    ${color slate grey}Distro: ${color }${pre_exec lsb_release -d | cut -f 2 } x64
    ${color slate grey}Uptime: ${color }$uptime
    ${color slate grey}Battery: ${color }${battery_percent}%   ${if_match ${battery_percent BAT0} <= 30}${color red}${battery_bar BAT0}${color}${endif}${if_match ${battery_percent BAT0} >= 31}${if_match ${battery_percent BAT0} <=49}${color orange}${battery_bar}${color}${endif}${endif}${if_match ${battery_percent BAT0} >= 50}${if_match ${battery_percent BAT0} <=69}${color yellow}${battery_bar BAT0}${color}${endif}${endif}${if_match ${battery_percent BAT0} >= 70}${if_match ${battery_percent BAT0} <=99}${color green}${battery_bar BAT0 }${color}${endif}${endif}${if_match ${battery_percent BAT0} >= 100}${color green}${battery_bar BAT0 }${color}${endif}
    
    ${color #FF6666}            SYSTEM SUMMARY
    ${color slate grey}CPU: ${color } $freq MHz at ${acpitemp}°C
    ${color slate grey}Core A:     ${color }${cpu cpu1}% ${alignr}${cpubar cpu1 9,80}
    ${color slate grey}Core B:     ${color }${cpu cpu2}% ${alignr}${cpubar cpu2 9,80}
    ${color slate grey}Load: ${alignr}${font Monospace:size=8}${color #6699FF}1.00 = 50% ${color #DDDD66}2.00 = 100%${font}
    ${color }${color #66FFFF}${loadavg 1}   ${color #66FFFF}${loadavg 2}   ${color #66FFFF}${loadavg 3}   ${color #66FFFF}1${color slate grey} / ${color #66FFFF}5${color slate grey} / ${color #66FFFF}15${color slate grey}min
    ${color slate grey}Swap: ${color } ${alignr}$swap ${color slate grey}of ${color } $swapmax
    ${color slate grey}Memory:${color } ${alignr}$mem ${color slate grey}of ${color } $memmax
    ${color slate grey}Usage: ${alignr}${color }$memperc%   ${membar 9,80}
    ${color slate grey}Storage: ${alignr}${color }${fs_used /} ${color slate grey}of ${color }${fs_size /}
    ${color slate grey}Free: ${alignr}${color }${fs_free /}  ${fs_bar 9,80 /}
    
    ${color #FF6666}           ACTIVE PROCESSES
    ${color slate grey}Processes: ${color }$processes ${alignr}${color slate grey}Running: ${color }$running_processes
    
    ${color #3366FF}Process Name: ${alignr}% CPU
    ${color #ddaa00}${top name 1} ${alignr}${top_mem cpu 1}
    ${color slate grey}${top name 2} ${alignr}${top cpu 2}
    ${color slate grey}${top name 3} ${alignr}${top cpu 3}
    ${color slate grey}${top name 4} ${alignr}${top cpu 4}
    ${color slate grey}${top name 5} ${alignr}${top cpu 5}
    
    ${color #FF6666}           NETWORK NUMBERS
    ${color #FF0000}${if_empty ${exec cat /proc/net/arp | grep eth0}}${if_empty ${exec cat /proc/net/arp | grep wlan0}}No network connection 
    ${else}${color slate grey}Internal IP: ${alignr}${color }${addr wlan0}
    ${color slate grey}External IP: ${color }${alignr}${execi 1800 wget -O - http://ip.tupeux.com | tail}
    ${color slate grey}Router: ${alignr}${color }${wireless_essid wlan0}
    ${color slate grey}Signal: ${color }${wireless_link_qual_perc wlan0}% ${alignr}${color }${wireless_bitrate wlan0}
    
    ${color slate grey}Down: ${color }${downspeed wlan0} ${color slate grey}${alignr}Up: ${color }${upspeed wlan0}
    ${color slate grey}Session Total Down: ${alignr}${color }${totaldown wlan0}
    ${color slate grey}Session Total Up: ${alignr}${color }${totalup wlan0}
    ${color slate grey}Connections: ${color #3366FF}In: ${color }${tcp_portmon 1 32767 count} ${alignr}${color #3366FF}Out: ${color }${tcp_portmon 32768 61000 count}${endif}
    ${else}${color slate grey}LAN IP:  ${alignr}${color }${addr eth0}
    ${color slate grey}External IP: ${color } ${alignr}${execi 1800 curl ifconfig.me}
    ${color slate grey}Down: ${color }${downspeed eth0} ${alignr}${color slate grey}Up: ${color }${upspeed eth0}
    ${color slate grey}Session Total Down: ${alignr}${color }${totaldown eth0}
    ${color slate grey}Session Total Up: ${alignr}${color }${totalup eth0}
    ${color slate grey}Connections: ${color #3366FF}In: ${color }${tcp_portmon 1 32767 count} ${alignr}${color #3366FF}Out: ${color }${tcp_portmon 32768 61000 count}${endif}
    
    #${color #ddaa00}Month Total Down: ${alignr}${color }${execi 300 vnstat -i wlan0+eth0 -m | grep "`date +"%b '%y"`" | awk '{print $3 $4}'}
    #${color #ddaa00}Month Total Up: ${alignr}${color }${execi 300 vnstat -i wlan0+eth0 -m | grep "`date +"%b '%y"`" | awk '{print $6 $7}'}

    iMac G4 800MHz, Compaq E500, ThinkPad X200
    Likes: Ubuntu 9.10, 10.04LTS with 9.10 back-theme
    Classic Mac Networking v3.1 http://applefool.com/se30/
    "Linux assumes you know exactly what you are doing." -oboedad55, ubuntuforums.org

  2. #22692

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Mk32 View Post
    Code:
    vnstat -i wlan0+eth0 -m | grep "`date +"%b '%y"`" | awk '{print $3 $4}'
    vnstat -i wlan0+eth0 -m | grep "`date +"%b '%y"`" | awk '{print $6 $7}'
    I'd personally stick these (one each) into file.sh
    One for Month Total Down and
    one for Month Total Up.

    chmod them to make them executable and then call the scripts using:
    Code:
    execpi 300 /path/to/<filename>Down.sh
    execpi 300 /path/to/<filename>Up.sh
    Good luck.

    Edit: some issues with
    Code:
    grep "`date +"%b '%y"`"
    try
    Code:
    grep $(date + "%b %y")
    Last edited by Habitual; March 25th, 2014 at 03:40 PM.
    Windows assumes the user is an idiot.
    Linux demands proof.

  3. #22693
    Join Date
    Feb 2012
    Beans
    54
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Mmm. Perhaps I should be interested as to how it worked fine before and now it doesn't?

    I shall attempt your advice shortly.

    iMac G4 800MHz, Compaq E500, ThinkPad X200
    Likes: Ubuntu 9.10, 10.04LTS with 9.10 back-theme
    Classic Mac Networking v3.1 http://applefool.com/se30/
    "Linux assumes you know exactly what you are doing." -oboedad55, ubuntuforums.org

  4. #22694
    Join Date
    Jul 2012
    Location
    Oklahoma, USA
    Beans
    Hidden!
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Post your .conkyrc files w/ screenshots

    @ Mk32

    Thanks for posting your conky config. I like the idea to color code the remaining battery percentage, so I incorporated that into my own newest design.

    Just in case you are into streamlining your Conky scripts; you can shorten and simplify your color changing battery bar code by restructuring the logic a bit. You do not have to repeat the ${battery_bar BAT0} portion each time you set a color since it is to be printed regardless of color; just stick it at the end after the color has been chosen. Also ${battery_...} commands default to BAT0, so you can leave the BAT0 out to shorten it a bit more.

    Something like this...

    Code:
    ${color slate grey}Battery: ${color }${battery_percent}%   ${color green}\
    ${if_match ${battery_percent} < 70}${color yellow}${endif}\
    ${if_match ${battery_percent} < 50}${color orange}${endif}\
    ${if_match ${battery_percent} < 30}${color red}${endif}\
    ${battery_bar}${color}
    As a side note, for anyone else who might be interested... I found, through personal experience, that the ${battery_...} commands can crash Conky if run on a desktop (without a battery). Since I now primarily run Linux from a flash drive, this has caused an issue between the different computers I use. I fixed the problem by keeping the entire output for the battery status within an if statement like so...

    Code:
    ${if_existing /proc/acpi/battery/BAT0/state}${color1}${font DejaVu Sans Mono:size=11:Bold}BATTERY${font}${color} ${alignr}${battery_time} ${color3}∙${color green}\
    ${if_match ${battery_percent} < 75}${color yellow}${endif}\
    ${if_match ${battery_percent} < 50}${color orange}${endif}\
    ${if_match ${battery_percent} < 25}${color red}${endif}\
    ${battery_short}${endif}
    ConkyBattery_2014-03-26_184358.jpg
    Last edited by Petro Dawg; March 27th, 2014 at 06:58 PM.
    Who's Awesome? You're Awesome.

  5. #22695
    Join Date
    Jun 2005
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    You Guys are doing some fantastic work here!
    Not GURU material here but I like this one now.

    Attached Images Attached Images

  6. #22696
    Join Date
    Feb 2012
    Beans
    54
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    There's something whacky going on.

    vnstat does report valid traffic in the console with vnstat -i eth0 or vnstat -i wlan0. But when I do vnstat -i wlan0+eth0 (which is valid, I learned it from the man page), it kicks that frickin' segmentation fault. It may as well tell me "Unknown Error" for all that means to me.

    Maybe I should reinstall vnstat? What do I have to loose...let's try it...and sudo apt-get remove vnstat && sudo apt-get install vnstat...

    Nothing. Tried just polling with vnstat -i wlan0 in the conky config, just sits at there, no errors produced, looking dumb. Recall that I pulled this hint from this page so unless I missed something in the migration...

    Petro: Nice point there about the shortening of the code. I should have recognized this earlier but I was driven to much frustration last year trying to even get a colored battery bar in the first place, then I learned that if you apply any dimensions (like 9, 80) to the battery bar then it will screw up all the coloring affects. I compromised by just putting it beside the battery line as you see and it's close enough to not take up two lines for a one-line operation. (I always read the % anyways.) I would also add a battery_time but I've read many reports of it being unreliable and I'd rather not trifle with it considering percentage is good enough to infer how much time is remaining anyways. (Unless you're my Compaq E500, which can jump from 80% battery to Emergency Power Off with no warning. Thanks a lot.)

    Code:
    ${if_existing /proc/acpi/battery/BAT0/state}${color slate grey}Battery: ${color }${battery_percent}%   ${color green}\
    ${if_match ${battery_percent} < 70}${color yellow}${endif}\
    ${if_match ${battery_percent} < 50}${color orange}${endif}\
    ${if_match ${battery_percent} < 30}${color red}${endif}\
    ${battery_bar}${color}${endif}
    That's my line there. I see you mentioned Linux on a flash drive and this gives me an idea to put Conky on mine too. I have a thumbdrive partitioned with 2GiB FAT32 and ~6GiB of 10.04.4LTS. It makes a fantastic thumbdrive because I can handle the usual file transfers yet still have an emergency OS on hand. Because I meddle with Macs on a regular basis it also has Netatalk 2.1.6, macutils, uudeview and all that. (I used the OS feature once so far, for someone I know who isn't computer literate (but has been using them for 30+ years) and clicked an Update Chrome advertisement. Pfft. OOops. Malware here we come. Actually at that time I wasn't aware that Chrome was auto-updating, but I wouldn't have clicked on it anyways because I use Firefox, as I need certain extensions. Chrome is an alternate browser for Linux when I can't be bothered to fiddle with cookies and NoScript just to get read a quick blog post or something.)

    iMac G4 800MHz, Compaq E500, ThinkPad X200
    Likes: Ubuntu 9.10, 10.04LTS with 9.10 back-theme
    Classic Mac Networking v3.1 http://applefool.com/se30/
    "Linux assumes you know exactly what you are doing." -oboedad55, ubuntuforums.org

  7. #22697
    Join Date
    Jul 2009
    Location
    AL, USA
    Beans
    330
    Distro
    Kubuntu 16.04 Xenial Xerus

    Re: Post your .conkyrc files w/ screenshots

    It's been a while since I've posted, but I haven't really done much with my conky since then. Using curl fixed my issue with getting my external IP to show up. Eventually I think I'll work on getting wlan incorporated into the network stats. I just don't have the time to tinker like I used to.
    Attached Images Attached Images
    Thinkpad T430, Intel i5-3320M (Ivy), 8GB RAM, Intel HD 4000, 500GB HDD: Xubuntu 20.04 LTS 64bit

  8. #22698
    Join Date
    Jan 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Mk32 View Post
    There's something whacky going on.

    vnstat does report valid traffic in the console with vnstat -i eth0 or vnstat -i wlan0. But when I do vnstat -i wlan0+eth0 (which is valid, I learned it from the man page), it kicks that frickin' segmentation fault. It may as well tell me "Unknown Error" for all that means to me.
    Works for me (in terminal):
    Code:
    ~$ vnstat -i wlan1+ppp0
    Database updated: Mon Mar 31 13:17:13 2014
    
       wlan1+ppp0 since 02/24/13
    
              rx:  1.21 TiB      tx:  163.67 GiB      total:  1.37 TiB
    
       monthly
                         rx      |     tx      |    total    |   avg. rate
         ------------------------+-------------+-------------+---------------
           Mar '14     81.25 GiB |   16.77 GiB |   98.02 GiB |  306.99 kbit/s
           Mar '14     81.25 GiB |   16.77 GiB |   98.02 GiB |  311.90 kbit/s
         ------------------------+-------------+-------------+---------------
         estimated     82.55 GiB |   17.03 GiB |   99.58 GiB |
    
       daily
                         rx      |     tx      |    total    |   avg. rate
         ------------------------+-------------+-------------+---------------
         yesterday      1.83 GiB |  379.50 MiB |    2.20 GiB |  213.62 kbit/s
             today     52.40 MiB |    7.56 MiB |   59.96 MiB |   10.27 kbit/s
         ------------------------+-------------+-------------+---------------
         estimated        93 MiB |      12 MiB |     105 MiB |
    :~$
    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

  9. #22699
    Join Date
    Jul 2012
    Location
    Oklahoma, USA
    Beans
    Hidden!
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Mk32 View Post
    ... I would also add a battery_time but I've read many reports of it being unreliable and I'd rather not trifle with it considering percentage is good enough to infer how much time is remaining anyways. (Unless you're my Compaq E500, which can jump from 80% battery to Emergency Power Off with no warning. Thanks a lot.)...

    That's a good point, I will have to check and see tonight if my remaining battery time output is close to accurate. It would make sense that the remaining time can vary greatly depending on what is running at any given moment.

    Eventually, I want Conky to trigger a pop-up message if the battery gets too low; which is easy to accomplish in Ubuntu, but might be problematic in Puppy Linux. I'll post the solution of the forum if I get it working the way I want.
    Who's Awesome? You're Awesome.

  10. #22700
    Join Date
    Feb 2012
    Beans
    54
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Here's my vnstat report:

    Code:
    glaze@glaze8CT:~$ vnstat -i wlan0
    Database updated: Mon Mar 31 14:51:01 2014
    
        (wlan0) since 12/31/69
    
              rx:  1.11 GiB      tx:  53.51 MiB      total:  1.16 GiB
    
       monthly
                         rx      |     tx      |    total    |   avg. rate
         ------------------------+-------------+-------------+---------------
           Mar '14      1.10 GiB |   53.03 MiB |    1.16 GiB |    3.67 kbit/s
         ------------------------+-------------+-------------+---------------
         estimated      1.12 GiB |      53 MiB |    1.17 GiB |
    
       daily
                         rx      |     tx      |    total    |   avg. rate
         ------------------------+-------------+-------------+---------------
         yesterday      6.47 MiB |     774 KiB |    7.23 MiB |    0.69 kbit/s
             today       292 KiB |     112 KiB |     404 KiB |    0.06 kbit/s
         ------------------------+-------------+-------------+---------------
         estimated        --     |      --     |      --     |
    glaze@glaze8CT:~$ vnstat 
    
                          rx      /      tx      /     total    /   estimated
      (eth0):
           Mar '14      0.99 MiB  /   19.67 MiB  /   20.66 MiB  /       0 KiB
         yesterday         0 KiB  /       0 KiB  /       0 KiB
             today         0 KiB  /       0 KiB  /       0 KiB  /      --    
    
      (wlan0):
           Mar '14      1.10 GiB  /   53.03 MiB  /    1.16 GiB  /    1.17 GiB
         yesterday      6.47 MiB  /     774 KiB  /    7.23 MiB
             today       292 KiB  /     112 KiB  /     404 KiB  /      --    
    
    glaze@glaze8CT:~$ vnstat -i eth0+wlan0
    Segmentation fault
    glaze@glaze8CT:~$
    Not much good I guess. Reinstall the OS? I tried wiping the database but I don't think I did it properly. Furthermore when I reinstalled it, it retained the old values.

    iMac G4 800MHz, Compaq E500, ThinkPad X200
    Likes: Ubuntu 9.10, 10.04LTS with 9.10 back-theme
    Classic Mac Networking v3.1 http://applefool.com/se30/
    "Linux assumes you know exactly what you are doing." -oboedad55, ubuntuforums.org

Page 2270 of 2348 FirstFirst ... 127017702170222022602268226922702271227222802320 ... 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
  •