Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 43

Thread: conky thread :]

  1. Back To Top    #21
    Kubuntu as Second Language wizard10000's Avatar
    Join Date
    Sep 2009
    Location
    midwestern us
    Posts
    1,474
    Threads
    87
    Local Date
    Jan 6th 2018
    Local Time
    09:12 AM
    Nice work, acheron

    conky got kinda simple once I figured out it was all about text markup; with a couple of conditionals, a couple of colors and the understanding that ${voffset} and ${goto} are your friend you can do pretty much anything you want
    Last edited by wizard10000; Sep 17th 2016 at 02:22 PM.
    we see things not as they are, but as we are.
    -- anais nin

  2. Back To Top    #22
    Esteemed Member acheron's Avatar
    Join Date
    May 2016
    Location
    UK
    Posts
    520
    Threads
    19
    Local Date
    Jan 6th 2018
    Local Time
    02:12 PM
    Quote Originally Posted by wizard10000 View Post
    Nice work, acheron

    conky got kinda simple once I figured out it was all about text markup; with a couple of conditionals, a couple of colors and the understanding that ${voffset} and ${goto} are your friend you can do pretty much anything you want
    Indeed. It was literally a matter of minutes to scan though and tweak that.
    On #kubuntu-devel & #kubuntu on irc.freenode.net - IRC Nick: acheronuk - Launchpad ID: click

  3. Back To Top    #23
    Emergent AI MoonRise's Avatar
    Join Date
    May 2006
    Location
    SC
    Posts
    4,911
    Threads
    365
    Local Date
    Jan 6th 2018
    Local Time
    09:12 AM
    Those of you with 8 cores!!!! Make me


  4. Back To Top    #24
    Ascendant Snowhog's Avatar
    Join Date
    Mar 2007
    Location
    Columbia Heights, MN
    Posts
    19,207
    Threads
    893
    Local Date
    Jan 6th 2018
    Local Time
    08:12 AM
    Quote Originally Posted by acheron View Post

    Adapted it slightly, and somewhat please with it.
    Would you post your .conkyrc file for us please?
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes
    Using Kubuntu Linux since March 23, 2007
    National Rifle Association Patron Life Member -- "From my cold, dead hands!"

  5. Back To Top    #25
    Kubuntu as Second Language wizard10000's Avatar
    Join Date
    Sep 2009
    Location
    midwestern us
    Posts
    1,474
    Threads
    87
    Local Date
    Jan 6th 2018
    Local Time
    09:12 AM
    Quote Originally Posted by MoonRise View Post
    Those of you with 8 cores!!!! Make me
    Mine's a first-generation i7 laptop; I use it to heat the house in the winter

    Seriously, this old Precision M4500 has more processor than cooling; it'll overheat quickly if more than one core is maxed out. Inside of the laptop is clean and thermal paste is recent - but if I'm converting flac to 320k mp3 I can only do one thread at a time.
    we see things not as they are, but as we are.
    -- anais nin

  6. Back To Top    #26
    Emergent AI MoonRise's Avatar
    Join Date
    May 2006
    Location
    SC
    Posts
    4,911
    Threads
    365
    Local Date
    Jan 6th 2018
    Local Time
    09:12 AM
    Quote Originally Posted by wizard10000 View Post
    ........; I use it to heat the house in the winter
    ........


  7. Back To Top    #27
    Esteemed Member acheron's Avatar
    Join Date
    May 2016
    Location
    UK
    Posts
    520
    Threads
    19
    Local Date
    Jan 6th 2018
    Local Time
    02:12 PM
    Quote Originally Posted by Snowhog View Post
    Would you post your .conkyrc file for us please?
    Really very little change from the one in the OP.

    Offsets were just guestimated, as I wanted to spend no more than a few mins on it.

    Code:
    -- 
    -- Starting with version 1.10, conky config is following lua format; there are several changes.
    -- all configuration items end with a trailing comma.
    -- all string variables are enclosed in single quotes.
    -- all boolean responses are now true/false instead of yes/no
    -- also notice that comments are two dashes and a space 
    -- until you get into the text area, where # still works.
    -- here we go...
    
    conky.config = {
        
    -- conky setup
        
    update_interval = 0.5,
    update_interval_on_battery = 3,
    background = true,
    total_run_times = 0,
    cpu_avg_samples = 1,
    no_buffers = true,
    text_buffer_size = 8192,
    temperature_unit = 'celsius',
    -- 
    -- needed if you want to display degree symbols
    -- 
    override_utf8_locale = true,
        
    -- set up window
        
    alignment = 'top_right',
    gap_x = 28,
    gap_y = 52,
    minimum_width = 246,
    double_buffer = true,
    background = true,
    own_window = true,
    own_window_transparent = true,
    -- 
    -- for most installations own_window type will be 'normal' or 'desktop'.
    -- to function correctly in KDE own_window_type must be 'dock'.
    -- 
    own_window_type = 'dock',
    own_window_argb_visual = true,
    -- 
    -- own_window_hints:
    -- undecorated = no window decorations
    -- below = keep below other windows
    -- sticky = show on all desktops
    -- skip_taskbar, skip_pager prevents a taskbar icon or an alt-tab switch to conky.
    -- 
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    draw_borders = false,
    draw_shades = false,
    draw_outline = false,
    use_xft = true,
    font = 'Arial:size=11',
    uppercase = false,
    short_units = true,
        
    -- colors
        
    -- 
    -- you can assign colors here and then just refer to them in the text section.
    -- Note they're string variables without a leading #
    -- 
        
    color0 = '828486', -- bar/graph color
    color1 = 'cccccc', -- text color
    color7 = '#00ffff', -- blue
    color8 = 'ffff4d', -- yellow
    color9 = 'ff4d4d', -- red
    
    }
    
    -- text
    
    conky.text = [[
    # 
    # anything after here uses a hashtag to comment instead of double dashes.
    #
    # date and time display
    #
    ${font Arial:size=32}${color1}${alignc}${time %l:%M %P}${font}
    ${font Arial:size=10}${alignc}  ${time %A}, ${time %B} ${time %e}${font}
    # 
    # cpu frequency.  Note cpu freq is green unless running at less than max speed.
    #
    ${voffset 10}${color1}cpu freq:${alignr}${color7}${if_match ${freq 1} < 1734}${color8}${endif}${freq 1}${color1} mhz
    # 
    # cpu temperature.  Colors change to yellow at 75°C and red at 90°C.
    #
    ${color1}cpu temp:${alignr}${color7}${if_match ${i8k_cpu_temp} > 75}${color8}${endif}${if_match ${i8k_cpu_temp} > 90}${color9}${endif}${i8k_cpu_temp}°C
    # 
    # 1m, 5m and 15m cpu load.  Note color changes as load increases. 
    # 
    ${voffset 12}${color1}${alignc}1m: ${if_match ${loadavg 1} < 0.70}${color7}${endif}${if_match ${loadavg 1} >= 0.70}${color8}${endif}${if_match ${loadavg 1} >= 2.00}${color9}${endif}${loadavg 1}${color1} 5m: ${if_match ${loadavg 2} < 0.70}${color7}${endif}${if_match ${loadavg 2} >= 0.70}${color8}${endif}${if_match ${loadavg 2} >= 2.00}${color9}${endif}${loadavg 2}${color1} 15m: ${if_match ${loadavg 3} < 0.70}${color7}${endif}${if_match ${loadavg 3} >= 0.70}${color8}${endif}${if_match ${loadavg 3} >= 2.00}${color9}${endif}${loadavg 3}
    
    # 
    # cpu graph.  
    # 
    ${font Arial:size=10}${voffset -10}${color0}${cpugraph cpu0 32,252 00ffff ff4d4d -t -l}
    # 
    # text inside cpu graph.  Note color changes here also.
    # Also, you can use a backslash to break up long lines.  This is handy.
    # 
    ${color1}${goto 80}${voffset -32}cpu load: ${goto 156}${if_match ${cpu cpu0} >= 3}${color7}${endif}\
    ${if_match ${cpu cpu0} >= 20}${color8}${endif}${if_match ${cpu cpu0} >= 90}${color9}${endif}${cpu cpu0}%
    
    # 
    # Individual CPU indicators - cpu 0-3  
    #
    # cpu0 - note that conky starts numbering cores at 1 instead of zero.  With conky, cpu0 = all cores.
    #
    ${color0}${voffset -2}${if_match ${cpu cpu1} >= 3}${color7}${endif}\
    ${if_match ${cpu cpu1} >= 20}${color8}${endif}${if_match ${cpu cpu1} >= 90}${color9}${endif}${cpugraph cpu1 32,60}\
    # 
    # cpu1 
    #
    ${color0} ${if_match ${cpu cpu2} >= 3}${color7}${endif}${if_match ${cpu cpu2} >= 20}${color8}${endif}\
    ${if_match ${cpu cpu2} >= 90}${color9}${endif}${cpugraph cpu2 32,60}\
    # 
    # cpu2
    # 
    ${color0} ${if_match ${cpu cpu3} >= 3}${color7}${endif}${if_match ${cpu cpu3} >= 20}${color8}${endif}\
    ${if_match ${cpu cpu3} >= 90}${color9}${endif}${cpugraph cpu3 32,60}\
    # 
    # cpu3
    #
    ${color0} ${if_match ${cpu cpu4} >= 3}${color7}${endif}${if_match ${cpu cpu4} >= 20}${color8}${endif}\
    ${if_match ${cpu cpu4} >= 90}${color9}${endif}${cpugraph cpu4 32,60}
    # 
    # cpu load numbers for first four indicators.  These go inside the indicators  :) 
    #
    ${font Arial:size=10}\
    # 
    # cpu0
    # 
    ${color1}${voffset -32}${goto 28}${if_match ${cpu cpu1} >= 20}${color8}${endif}${if_match ${cpu cpu1} >= 90}${color9}${endif}${cpu cpu1}%\
    # 
    # cpu1
    # 
    ${goto 90}${if_match ${cpu cpu2} >= 20}${color8}${endif}${if_match ${cpu cpu2} >= 90}${color9}${endif}${cpu cpu2}%\
    # 
    # cpu2
    #
    ${goto 154}${if_match ${cpu cpu3} >= 20}${color8}${endif}${if_match ${cpu cpu3} >= 90}${color9}${endif}${cpu cpu3}%\
    # 
    # cpu 3
    #
    ${goto 218}${if_match ${cpu cpu4} >= 20}${color8}${endif}${if_match ${cpu cpu4} >= 90}${color9}${endif}${cpu cpu4}%
    # 
    # 
    # memory bar.  Note conditional at the end of the line.
    #
    ${color1}${voffset 24}memory:${alignr}$mem / $memmax
    ${color0}${goto 6}${membar} ${if_existing /proc/swaps partition}
    
    # 
    # swapbar only displays if there is a swap partition activated.  See conditional above.
    # 
    ${color1}swap:${alignr}$swap / $swapmax
    ${color0}${goto 6}${swapbar}${endif}
    
    # 
    # simple filesystem bar.  This one is for /
    #
    ${color1}root:${alignr}${fs_used /} / ${fs_size /}
    ${color0}${goto 6}${fs_bar /}
    
    # 
    # and another filesystem bar for /home
    #
    ${color1}/home:${alignr}${fs_used /home} / ${fs_size /home}
    ${color0}${goto 6}${fs_bar /home}${if_existing /media/neo/437b0d8d-439e-4ce0-b061-c9a11d643b1d}
    
    # 
    # This filesystem bar only displays if a specific external drive is mounted.
    # 
    ${color1}external:${alignr}${fs_used /media/neo/437b0d8d-439e-4ce0-b061-c9a11d643b1d} / ${fs_size /media/neo/437b0d8d-439e-4ce0-b061-c9a11d643b1d}
    ${color0}${goto 6}${fs_bar /media/neo/437b0d8d-439e-4ce0-b061-c9a11d643b1d}${endif}
    # 
    # disk i/o numbers
    #
    ${color1}${voffset 6}${alignc}disk i/o:
    ${color7}${alignc}${diskio}
    
    # 
    # wireless information.  only displays if wireless is connected.
    #
    ${color1}${if_existing /proc/net/route wlp4s0}
    ${color1}${voffset -34}wlan:${alignr}${wireless_link_qual_perc wlp4s0}%
    ${color0}${goto 6}${wireless_link_bar wlp4s0}
    ${alignc}${color1}${voffset 8}dn: ${color7}${downspeedf wlp4s0}${color1} kbps
    ${alignc}up: ${color7}${upspeedf wlp4s0}${color1} kbps${endif}
    
    # 
    # nodename, uptime, kernel version
    #
    ${font Arial:size=10}${color1}${alignc}${voffset 0}uptime: ${uptime}
    ${color1}${alignc}kernel: ${kernel}
    ${color1}${alignc}Distro: kubuntu
    ${color1}${alignc}Release: ${execi 65000 lsb_release -rs | awk '{print $1}'}
    ${color1}${alignc}Codename: ${execi 65000 lsb_release -cs | awk '{print $1}'}
    ${color1}${alignc}KDE Frameworks: ${execi 65000 kf5-config --version | grep KDE | awk '{print $3}'}
    ${color1}${alignc}Desktop: Plasma ${execi 65000 plasmashell -v | awk '{print $2}'}
    #
    # and we end things with a couple of square brackets
    #
    ]]
    On #kubuntu-devel & #kubuntu on irc.freenode.net - IRC Nick: acheronuk - Launchpad ID: click

  8. Back To Top    #28
    Esteemed Member acheron's Avatar
    Join Date
    May 2016
    Location
    UK
    Posts
    520
    Threads
    19
    Local Date
    Jan 6th 2018
    Local Time
    02:12 PM
    Quote Originally Posted by MoonRise View Post
    Those of you with 8 cores!!!! Make me
    Depends what you want to do. On compilation this 4 core oddly beats some 8 cores, I now find out.
    Last edited by acheron; Sep 17th 2016 at 11:22 PM.
    On #kubuntu-devel & #kubuntu on irc.freenode.net - IRC Nick: acheronuk - Launchpad ID: click

  9. Back To Top    #29
    Ascendant GreyGeek's Avatar
    Join Date
    Feb 2009
    Location
    Lincoln, NE
    Posts
    13,710
    Threads
    978
    Local Date
    Jan 6th 2018
    Local Time
    08:12 AM
    Quote Originally Posted by wizard10000 View Post
    .... Seriously, this old Precision M4500 has more processor than cooling; it'll overheat quickly if more than one core is maxed out. Inside of the laptop is clean and thermal paste is recent - but if I'm converting flac to 320k mp3 I can only do one thread at a time.
    My hands shake too much to attempt to take my Acer 7739 laptop apart to replace its thermal paste, which needs to be done. So, instead, I rest it on a USB powered fan that blows air on the bottom just below the CPU. It makes a difference.
    There is no truth in the news, and no news in the truth.

  10. Back To Top    #30
    Ancient vinnywright's Avatar
    Join Date
    Apr 2009
    Posts
    7,190
    Threads
    150
    Local Date
    Jan 6th 2018
    Local Time
    02:12 PM
    Quote Originally Posted by wizard10000 View Post
    Mine's a first-generation i7 laptop; I use it to heat the house in the winter :)

    Seriously, this old Precision M4500 has more processor than cooling; it'll overheat quickly if more than one core is maxed out. Inside of the laptop is clean and thermal paste is recent - but if I'm converting flac to 320k mp3 I can only do one thread at a time.
    my
    Code:
    Intel(R) Core(TM) i7-4910MQ CPU @ 2.90GHz
    (that speed steps to 3.99GHz) will do a CD's worth of FLAC to Mp3 in about a second and never notices it :)

    with a
    Code:
     for f in *.flac
          do 
          ffmpeg -i "$f" -b 320k "${f%.flac}.mp3"
    done
    of course if you have/use avconv then just replace the ffmpeg with avconv ,,,,,, ;)

    but my laptop ,,,,a system76 Bonox8 has heat vents in the back that look like the air intakes of a fancy sports car ,,,,, ;D
    and have never seen it hotter than about 140F-150F

    VINNY
    system76 Bonox8
    i7 4core HT 8MB L3 2.9GHz
    16GB RAM
    Nvidia GTX 860M 4GB RAM 1152 cuda cores

Page 3 of 5 FirstFirst 12345 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •