Find the answer to your Linux question:
Page 3 of 3 FirstFirst 1 2 3
Results 21 to 23 of 23
Like Tree1Likes
Originally Posted by Sector11 Code: Kernel:${alignr}${kernel} That's a sweet conky you have there. But does the snippet above give the name; for example, in Fedora I am currently running Sabre-toothed ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #21
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,539

    Quote Originally Posted by Sector11 View Post
    Code:
    Kernel:${alignr}${kernel}
    That's a sweet conky you have there. But does the snippet above give the name; for example, in Fedora I am currently running Sabre-toothed Squirrel
    What do we want?
    Time machines!

    When do we want 'em?
    Doesn't really matter does it!?


    The Fifth Continent

  2. #22
    Just Joined! VastOne's Avatar
    Join Date
    Dec 2010
    Posts
    2
    Quote Originally Posted by elija View Post
    That's a sweet conky you have there. But does the snippet above give the name; for example, in Fedora I am currently running Sabre-toothed Squirrel
    I use the following to pull in the kernel and release info in Fedora

    Code:
     ${execi 1800 cat /etc/fedora-release | grep Fedora}  Linux Kernel $kernel

  3. #23
    Just Joined! Sector11's Avatar
    Join Date
    Aug 2012
    Location
    With my wife.
    Posts
    23
    Quote Originally Posted by elija View Post
    That's a sweet conky you have there. But does the snippet above give the name; for example, in Fedora I am currently running Sabre-toothed Squirrel
    Thank you, heavily based on LUA scripts by mrpeachy over on the Crunchbang forums.

    No unfortunately just the kernel name. You'd need to explain to me in a "Dummies Guide" type of way as to how you get the batch file working since all I get is the same thing:

    Code:
      04 Aug 12 | 18:25:46 ~
             $ kname
    grep: /usr/src/linux-headers-3.4.0-2.dmz.2-liquorix-amd64/Makefile: No such file or directory
    
    
      04 Aug 12 | 18:25:48 ~
             $
    And I just tested ${if_match} with the ${cpu1} value - I guess conky does not recognize the numerical output as a number but just a character.

    Your LUA script (that I didn't see at first) works like a charm though - I like it:

    Code:
    TEXT
    
    C P U
    ${hr}
    Core 1:${alignr}${cpu cpu1}%
    ${goto 25}${lua_parse conky_colourise_cpu_bar 1 0x111166}${cpubar cpu1 10,200}${color8}${goto 25}${cpubar cpu4 10,200}${color}
    Frequency:${alignr}${freq cpu1}MHz
    ${goto 25}${cpubar cpu1 10,200}
    
    Core 2:${alignr}${cpu cpu2}%
    ${goto 25}${lua_parse conky_colourise_cpu_bar 2 0x111166}${cpubar cpu2 10,200}${color8}${goto 25}${cpubar cpu4 10,200}${color}
    Frequency:${alignr}${freq cpu2}MHz
    ${goto 25}${cpubar cpu2 10,200}
    
    Core 3:${alignr}${cpu cpu3}%
    ${goto 25}${lua_parse conky_colourise_cpu_bar 3 0x111166}${cpubar cpu3 10,200}${color8}${goto 25}${cpubar cpu4 10,200}${color}
    Frequency:${alignr}${freq cpu3}MHz
    ${goto 25}${cpubar cpu3 10,200}
    
    Avg:   ${alignr}${cpu cpu0}%
    ${goto 25}${lua_parse conky_colourise_cpu_bar 0 0x111166}${cpubar cpu0 10,200}${color8}${goto 25}${cpubar cpu4 10,200}${color}
    Frequency:${alignr}${freq cpu0}MHz
    ${goto 25}${cpubar cpu0 10,200}
    And because a picture says a thousand words.

    http··//i.imgbox.com/abv3FbFi.png

    NOTE:
    Too new here to post links: change http·· to http:

    ===================
    I may not be around long
    • 15 post before I can post links, and
    • 500 for a signature

    Posts in the "Coffee Lounge" don't count. The only thing I enjoy is helping with conky. I have to say - this is not good.

Page 3 of 3 FirstFirst 1 2 3

Posting Permissions

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