Page 191 of 287 FirstFirst ... 91141181189190191192193201241 ... LastLast
Results 1,901 to 1,910 of 2865

Thread: HOWTO: VinDSL Conky Script

  1. #1901
    Join Date
    Jun 2014
    Location
    Scotland
    Beans
    57
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: HOWTO: VinDSL Conky Script

    I thought it would be more interesting to get conky to display the user rather than the PID for the top running processes. But with some chromium-browser processes, conky says the user is root, whereas top in the terminal says it's me.

    I don't understand why conky's output should be different from what top says. Does anyone know how I might get conky to display the user correctly?

    Here is my conky.conf, and a screenshot of top reporting the users of all chromium-browser processes to be me, and conky reporting some of them to be root.

    Code:
    alignment top_right
    background true
    border_width 1
    cpu_avg_samples 2
    default_color green
    default_outline_color white
    default_shade_color white
    draw_borders no
    draw_graph_borders no
    draw_outline no
    draw_shades no
    use_xft yes
    xftfont Bitstream Vera Sans Mono:size=10
    gap_x 5
    gap_y 110
    minimum_size 5 5
    net_avg_samples 2
    double_buffer yes
    out_to_console no
    own_window yes
    own_window_argb_visual yes
    own_window_argb_value 100
    own_window_transparent yes
    own_window_type normal
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    stippled_borders 0
    update_interval 03.0
    uppercase no
    use_spacer none
    show_graph_scale no
    show_graph_range no
    
    TEXT
    ${color}${scroll 16 $nodename - $sysname $kernel on $machine | }
    ${color white}$hr
    ${color}Uptime:$uptime
    ${color white}$hr
    ${color}RAM Usage:$mem/$memmax - $memperc% ${membar 7}
    Swap Usage:$swap/$swapmax - $swapperc% ${swapbar 7}
    ${color white}$hr 
    ${color}CPU 1: ${cpu cpu1}% ${cpubar cpu1}
    CPU 2: ${cpu cpu2}% ${cpubar cpu2}
    Frequency: ${freq}MHz
    CPU 1 Temp: ${hwmon 1 temp 1}C    CPU 2 Temp: ${hwmon 2 temp 1}C
    ${color white}$hr
    ${color}File systems: ${fs_free /}/${fs_size /} ${fs_bar 6 /}
    ${color white}$hr
    ${color}Networking:
    Up:${upspeed eth1}k/s       Down:${downspeed eth1}k/s
    ${color white}$hr
    ${color}Processes:$processes     Running:$running_processes
    ${color white}$hr
    ${color}Name               CPU%   MEM%  USER
    ${top name 1} ${top cpu 1} ${top mem 1}  ${top user 1}
    ${top name 2} ${top cpu 2} ${top mem 2}  ${top user 2}
    ${top name 3} ${top cpu 3} ${top mem 3}  ${top user 3}
    ${top name 4} ${top cpu 4} ${top mem 4}  ${top user 4}
    ${top name 5} ${top cpu 5} ${top mem 5}  ${top user 5}
    snapshot18.jpg

  2. #1902

    Thumbs up Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by NM5TF View Post
    you most likely have something like this to get your point release....

    [CODE]
    $alignr${color3}${pre_exec cat /etc/*release | grep 'DESCRIPTION' | awk -F'"' '{print $2}'}
    /CODE]
    Like they say many roads to a city [Rome ???] lol

    Cheaper approaches perhaps ...

    Code:
    SED
    $alignr${color3}${pre_exec sed -n 's/"//g;s/.*DESCRIPTION=//p' /etc/*release }
    
    AWK
    $alignr${color3}${pre_exec awk '$1 ~ /DESCRIPTION/ { gsub(/.*DESCRIPTION=|\"/,""); print}' /etc/*release }
    cheers

  3. #1903
    Join Date
    Aug 2009
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by Al1000 View Post
    I thought it would be more interesting to get conky to display the user rather than the PID for the top running processes. But with some chromium-browser processes, conky says the user is root, whereas top in the terminal says it's me.

    I don't understand why conky's output should be different from what top says. Does anyone know how I might get conky to display the user correctly?

    Here is my conky.conf, and a screenshot of top reporting the users of all chromium-browser processes to be me, and conky reporting some of them to be root.

    Code:
    alignment top_right
    background true
    border_width 1
    cpu_avg_samples 2
    default_color green
    default_outline_color white
    default_shade_color white
    draw_borders no
    draw_graph_borders no
    draw_outline no
    draw_shades no
    use_xft yes
    xftfont Bitstream Vera Sans Mono:size=10
    gap_x 5
    gap_y 110
    minimum_size 5 5
    net_avg_samples 2
    double_buffer yes
    out_to_console no
    own_window yes
    own_window_argb_visual yes
    own_window_argb_value 100
    own_window_transparent yes
    own_window_type normal
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    stippled_borders 0
    update_interval 03.0
    uppercase no
    use_spacer none
    show_graph_scale no
    show_graph_range no
    
    TEXT
    ${color}${scroll 16 $nodename - $sysname $kernel on $machine | }
    ${color white}$hr
    ${color}Uptime:$uptime
    ${color white}$hr
    ${color}RAM Usage:$mem/$memmax - $memperc% ${membar 7}
    Swap Usage:$swap/$swapmax - $swapperc% ${swapbar 7}
    ${color white}$hr 
    ${color}CPU 1: ${cpu cpu1}% ${cpubar cpu1}
    CPU 2: ${cpu cpu2}% ${cpubar cpu2}
    Frequency: ${freq}MHz
    CPU 1 Temp: ${hwmon 1 temp 1}C    CPU 2 Temp: ${hwmon 2 temp 1}C
    ${color white}$hr
    ${color}File systems: ${fs_free /}/${fs_size /} ${fs_bar 6 /}
    ${color white}$hr
    ${color}Networking:
    Up:${upspeed eth1}k/s       Down:${downspeed eth1}k/s
    ${color white}$hr
    ${color}Processes:$processes     Running:$running_processes
    ${color white}$hr
    ${color}Name               CPU%   MEM%  USER
    ${top name 1} ${top cpu 1} ${top mem 1}  ${top user 1}
    ${top name 2} ${top cpu 2} ${top mem 2}  ${top user 2}
    ${top name 3} ${top cpu 3} ${top mem 3}  ${top user 3}
    ${top name 4} ${top cpu 4} ${top mem 4}  ${top user 4}
    ${top name 5} ${top cpu 5} ${top mem 5}  ${top user 5}
    snapshot18.jpg
    Thanks for sharing that. I added user to the mix and when I bring up Chromium it starts with owned by me but sometimes several other Chromium processes pop up and some of them say root on them as well.
    Code:
    ##################################
    ##      TOP CPU PROCESSES       ##
    ##################################
    ${voffset -21}${font DroidSans:bold:size=8.5}${color4}TOP CPU PROCESSES${offset 8}${color6}${voffset -2}${hr 1}${font}
    #${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}Name${goto 100}CPU${goto 163}MEM${alignr}USER${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top name 1}${goto 100}${font DroidSans:size=8.3}${top mem_res 1}${goto 160}${top cpu 1}%${alignr}${top user 1}${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top name 2}${goto 100}${font DroidSans:size=8.3}${top mem_res 2}${goto 160}${top cpu 2}%${alignr}${top user 2}${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top name 3}${goto 100}${font DroidSans:size=8.3}${top mem_res 3}${goto 160}${top cpu 3}%${alignr}${top user 3}${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top name 4}${goto 100}${font DroidSans:size=8.3}${top mem_res 4}${goto 160}${top cpu 4}%${alignr}${top user 4}${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top name 5}${goto 100}${font DroidSans:size=8.3}${top mem_res 5}${goto 160}${top cpu 5}%${alignr}${top user 5}${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top name 6}${goto 100}${font DroidSans:size=8.3}${top mem_res 6}${goto 160}${top cpu 6}%${alignr}${top user 6}${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top name 7}${goto 100}${font DroidSans:size=8.3}${top mem_res 7}${goto 160}${top cpu 7}%${alignr}${top user 7}${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top name 8}${goto 100}${font DroidSans:size=8.3}${top mem_res 8}${goto 160}${top cpu 8}%${alignr}${top user 8}${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top name 9}${goto 100}${font DroidSans:size=8.3}${top mem_res 9}${goto 160}${top cpu 9}%${alignr}${top user 9}${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top name 10}${goto 100}${font DroidSans:size=8.3}${top mem_res 10}${goto 160}${top cpu 10}%${alignr}${top user 10}${font}
    I didn't have enough room to display the titles so I comment that line out.



    Quote Originally Posted by paramvir View Post
    Like they say many roads to a city [Rome ???] lol

    Cheaper approaches perhaps ...

    Code:
    SED
    $alignr${color3}${pre_exec sed -n 's/"//g;s/.*DESCRIPTION=//p' /etc/*release }
    
    AWK
    $alignr${color3}${pre_exec awk '$1 ~ /DESCRIPTION/ { gsub(/.*DESCRIPTION=|\"/,""); print}' /etc/*release }
    cheers

    Both of those yield this:
    Code:
    cavsfan@cavsfan-MS-7529:~$ sed -n 's/"//g;s/.*DESCRIPTION=//p' /etc/*release
    Ubuntu Vivid Vervet (development branch)
    cavsfan@cavsfan-MS-7529:~$ awk '$1 ~ /DESCRIPTION/ { gsub(/.*DESCRIPTION=|\"/,""); print}' /etc/*release
    Ubuntu Vivid Vervet (development branch)
    Which is good but that cannot be displayed in the space available.

    This is what is displaying and it's all I have room for in VinDSL's conky:
    Code:
    cavsfan@cavsfan-MS-7529:~$ cat /etc/*release | grep 'RELEASE' | awk -F'=' '{print $2}'
    15.04
    I think that error was a fluke. I am not getting it any more in the new release Vivid.

  4. #1904
    Join Date
    Aug 2009
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: HOWTO: VinDSL Conky Script

    I put top cpu processes, cpu mem usage, cpu % used, cpu user and cpu pid all together because I needed to know what pid systemd was and was too lazy to look at system monitor.

    Code:
    ##################################
    ##      TOP CPU PROCESSES       ##
    ##################################
    ${voffset -21}${font DroidSans:bold:size=8.5}${color4}TOP CPU PROCESSES${offset 8}${color6}${voffset -2}${hr 1}${font}
    #${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}Name${goto 100}CPU${goto 163}MEM${alignr}USER${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top name 1}${goto 90}${font DroidSans:size=8.3}${top mem_res 1}${goto 130}${top cpu 1}%${goto 177}${top user 1}${alignr}${top pid 1}${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top name 2}${goto 90}${font DroidSans:size=8.3}${top mem_res 2}${goto 130}${top cpu 2}%${goto 177}${top user 2}${alignr}${top pid 2}${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top name 3}${goto 90}${font DroidSans:size=8.3}${top mem_res 3}${goto 130}${top cpu 3}%${goto 177}${top user 3}${alignr}${top pid 3}${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top name 4}${goto 90}${font DroidSans:size=8.3}${top mem_res 4}${goto 130}${top cpu 4}%${goto 177}${top user 4}${alignr}${top pid 4}${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top name 5}${goto 90}${font DroidSans:size=8.3}${top mem_res 5}${goto 130}${top cpu 5}%${goto 177}${top user 5}${alignr}${top pid 5}${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top name 6}${goto 90}${font DroidSans:size=8.3}${top mem_res 6}${goto 130}${top cpu 6}%${goto 177}${top user 6}${alignr}${top pid 6}${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top name 7}${goto 90}${font DroidSans:size=8.3}${top mem_res 7}${goto 130}${top cpu 7}%${goto 177}${top user 7}${alignr}${top pid 7}${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top name 8}${goto 90}${font DroidSans:size=8.3}${top mem_res 8}${goto 130}${top cpu 8}%${goto 177}${top user 8}${alignr}${top pid 8}${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top name 9}${goto 90}${font DroidSans:size=8.3}${top mem_res 9}${goto 130}${top cpu 9}%${goto 177}${top user 9}${alignr}${top pid 9}${font}
    ${voffset 1}${font StyleBats:size=10}${color1}h${voffset -1}${font DroidSans:size=8.65}${color0}${offset 5}${top name 10}${goto 90}${font DroidSans:size=8.3}${top mem_res 10}${goto 130}${top cpu 10}%${goto 177}${top user 10}${alignr}${top pid 10}${font}

  5. #1905
    Join Date
    Aug 2009
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: HOWTO: VinDSL Conky Script

    Wunder what's up with all of the N/As?



    The wunderground site seemed fine. Any one else seeing this?

  6. #1906

    Cool Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by Cavsfan View Post
    Wunder what's up with all of the N/As?



    The wunderground site seemed fine. Any one else seeing this?
    Yes they have done it again lol - there is no forecast information in the html - only shows up on the display page. Noticed it this morning and have been looking at other sites - intellicast gets it's feed from wund and has the same magic...

    Lets look around now - the current information is still coming through ...

    Let me know if you find a site that covers the globe for forecasts ... we need to look around time and date site looks good - just forecast for the time being - I have to rework the history data as that has gone as well ... [ ok have checked weather.com / time and date / some others ...]

    more to check tomorrow

    cheers

  7. #1907
    Join Date
    Aug 2009
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by paramvir View Post
    Yes they have done it again lol - there is no forecast information in the html - only shows up on the display page. Noticed it this morning and have been looking at other sites - intellicast gets it's feed from wund and has the same magic...

    Lets look around now - the current information is still coming through ...

    Let me know if you find a site that covers the globe for forecasts ... we need to look around time and date site looks good - just forecast for the time being - I have to rework the history data as that has gone as well ... [ ok have checked weather.com / time and date / some others ...]

    more to check tomorrow

    cheers
    Sorry Paramvir I hate to hear this! I don't know much about weather but I'll try to find some sites.
    Here is one:
    http://www.accuweather.com/
    I'm not sure if that is good or not.

    This site seems to pull good info. but it's probably only for the US not sure:
    http://www.weather.gov/

    http://weather.weatherbug.com/
    This site seems to pull some good info.

    Not sure if this is just US weather or not:
    http://weather.unisys.com/

  8. #1908
    Join Date
    Apr 2012
    Location
    Oz
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: HOWTO: VinDSL Conky Script

    @ paramvir
    Been too many years since I looked at HTML, but I did notice that Wunderground seems to have introduced new codes for existing places. For instance, for my loc it now shows http://www.wunderground.com/q/locid:ASXX0101 instead of the more traditional http://www.wunderground.com/cgi-bin/...&sp=IWESTERN36. Do the new codes result in forecast data being in the HTML stream? I can't tell.

  9. #1909
    Join Date
    Nov 2008
    Location
    Tampa, Florida
    Beans
    38

    Re: HOWTO: VinDSL Conky Script

    Hey Paramvir, let me know if you need me to test again when you find another solution.

  10. #1910

    Cool Re: HOWTO: VinDSL Conky Script

    Quote Originally Posted by Cavsfan View Post
    Sorry Paramvir I hate to hear this! I don't know much about weather but I'll try to find some sites.
    Here is one:
    http://www.accuweather.com/
    I'm not sure if that is good or not.

    This site seems to pull good info. but it's probably only for the US not sure:
    http://www.weather.gov/

    http://weather.weatherbug.com/
    This site seems to pull some good info.

    Not sure if this is just US weather or not:
    http://weather.unisys.com/
    Quote Originally Posted by PJs Ronin View Post
    @ paramvir
    Been too many years since I looked at HTML, but I did notice that Wunderground seems to have introduced new codes for existing places. For instance, for my loc it now shows http://www.wunderground.com/q/locid:ASXX0101 instead of the more traditional http://www.wunderground.com/cgi-bin/...&sp=IWESTERN36. Do the new codes result in forecast data being in the HTML stream? I can't tell.
    Quote Originally Posted by dtokarz View Post
    Hey Paramvir, let me know if you need me to test again when you find another solution.
    Hey guys - many many thanks for your support and help...

    This has come at a time when i have just had a hard drive failure - a 2 tb drive and with seagate giving only 1 year warranty on it - well grrr... i had to get a new drive and now the process of recovery is on .. i need to shut down and wait a minute and then boot up and recover some more .. I need to get this done fast not only for getting conkywx sorted but other pressing matter as well...

    but life is fun he he

    I suppose in a day or so should be able to get things back on track - but in between shall have a look at those sites - maybe make small modules per site - let me brain storm also and see how it goes...

    cheers

Page 191 of 287 FirstFirst ... 91141181189190191192193201241 ... 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
  •