Page 2163 of 2284 FirstFirst ... 1163166320632113215321612162216321642165217322132263 ... LastLast
Results 21,621 to 21,630 of 22835

Thread: Post your .conkyrc files w/ screenshots

  1. #21621
    Join Date
    Dec 2010
    Location
    Portugal
    Beans
    145
    Distro
    Xubuntu 12.10 Quantal Quetzal

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    Check out The Galleries at Conky PitStop in my sig. Or the Conky section on Deviant Art.
    Thank you!

    Found one I loved.

    Can anyone help me set me up this conky? Tell me what do I need to install and set up?

    Code:
    http://fenouille84.deviantart.com/art/Conky-Geek-inside-198858366
    Thanks in advance.

  2. #21622
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Mr. ViC View Post
    Thank you!

    Found one I loved.

    Can anyone help me set me up this conky? Tell me what do I need to install and set up?

    Code:
    http://fenouille84.deviantart.com/art/Conky-Geek-inside-198858366
    Thanks in advance.
    Wow, lots to configure.
    Have you any conky knowledge?
    FYI it's actually 3 separate conky configs.
    Extract the download to find...
    1. conkyrc1
    2. conkyrc2
    3. conkyterm

    For a start you can run each config just to have a look.
    In terminal...
    Code:
    conky -c /path/to/conkyconfig
    Just enter
    Code:
    conky -c
    followed by a space then drag and drop one of the configs in the terminal and press enter.
    There will be lot's of errors and possibly blank space.

    I'm off to bed but
    I'm sure Sector11 is already looking at the configs.
    Last edited by stinkeye; February 7th, 2013 at 06:52 PM.

  3. #21623
    Join Date
    Dec 2010
    Location
    Portugal
    Beans
    145
    Distro
    Xubuntu 12.10 Quantal Quetzal

    Re: Post your .conkyrc files w/ screenshots

    Well I have fixed the first one, conkyrc1, on the:

    Code:
    use_spacer left
    And now looking at the second one.

    I do not have much knowledge with Conky but I would really love to get this one working with me.

  4. #21624
    Join Date
    Feb 2010
    Location
    SR11 Cockpit
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by stinkeye View Post
    Wow, lots to configure.
    Have you any conky knowledge?
    FYI it's actually 3 separate conky configs.

    I'm off to bed but
    I'm sure Sector11 is already looking at the configs.
    Oh sure use the old "I'm off to bed" excuse to pass it on!
    scheech some people

    But seeing as you are waaaaaay over there and I'm here

    ... it fits.

    Quote Originally Posted by Mr. ViC View Post
    Thank you!

    Found one I loved.

    Can anyone help me set me up this conky? Tell me what do I need to install and set up?

    Code:
    http://fenouille84.deviantart.com/art/Conky-Geek-inside-198858366
    Thanks in advance.
    OK Mr. VIC as stinkeye said you can extract them and see if they run one at a time. First do you have conky installed?

    Code:
     sector11 @ sector11
     07 Feb 13 | 15:19:54 ~
             $ conky -v
    Conky 1.9.0 compiled Fri May 11 15:54:00 UTC 2012 for Linux 2.6.32-5-amd64 (x86_64)
    
    Compiled in features:
    
    System config file: /etc/conky/conky.conf
    Package library path: /usr/lib/conky
    
     X11:
      * Xdamage extension
      * XDBE (double buffer extension)
      * Xft
      * ARGB visual
    
     Music detection:
      * Audacious
      * MPD
      * MOC
      * XMMS2
    
     General:
      * math
      * hddtemp
      * portmon
      * Curl
      * RSS
      * Weather (METAR)
      * Weather (XOAP)
      * wireless
      * support for IBM/Lenovo notebooks
      * nvidia
      * eve-online
      * config-output
      * Imlib2
      * apcupsd
      * iostats
      * ncurses
      * Lua
    
      Lua bindings:
       * Cairo
       * Imlib2
     sector11 @ sector11
     07 Feb 13 | 15:19:57 ~
             $
    Is it conky-all? <<-- better if it is.
    Code:
     sector11 @ sector11
     07 Feb 13 | 15:20:22 ~
             $ sudo apt-get install conky-all
    [sudo] password for sector11: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    conky-all is already the newest version.
    The following packages were automatically installed and are no longer required:
      diffstat dkms quilt
    Use 'apt-get autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
     sector11 @ sector11
     07 Feb 13 | 15:20:44 ~
             $ sudo apt-get autoremove
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      diffstat dkms quilt
    0 upgraded, 0 newly installed, 3 to remove and 9 not upgraded.
    After this operation, 1,080 kB disk space will be freed.
    Do you want to continue [Y/n]? 
    (Reading database ... 188176 files and directories currently installed.)
    Removing quilt ...
    Removing diffstat ...
    Removing dkms ...
    Processing triggers for man-db ...
     sector11 @ sector11
     07 Feb 13 | 15:21:25 ~
             $
    I haven't downloaded the conky file yet, just looking that the screenshot.

    Left conky:
    1. Do you have a dual core or better? - this will show the first two.
    2. You'll need to install lm-sensors and hddtemp for temperatures.
    - your system will probably be different than the calls for those.
    3. is sda5 /root and sda6 /home (minor fixes)

    Centre conky:
    1. File System SDA - do you have a 3rd partition that could be used there?
    2. wlan0 <--- you use that? I use eth0
    3. Saints? Will have to check the code. Obviously a French Catholic user.

    Right Conky
    1. looks like you'll need a few more support programs for that as well.

    According to the "screenshot" the desktop is 1440x900 is that your screen resolution?

    I'll have to test one at a time on my 1280x1024 screen.

  5. #21625
    Join Date
    Dec 2010
    Location
    Portugal
    Beans
    145
    Distro
    Xubuntu 12.10 Quantal Quetzal

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    Oh sure use the old "I'm off to bed" excuse to pass it on!
    scheech some people

    But seeing as you are waaaaaay over there and I'm here

    ... it fits.



    OK Mr. VIC as stinkeye said you can extract them and see if they run one at a time. First do you have conky installed?

    Code:
     sector11 @ sector11
     07 Feb 13 | 15:19:54 ~
             $ conky -v
    Conky 1.9.0 compiled Fri May 11 15:54:00 UTC 2012 for Linux 2.6.32-5-amd64 (x86_64)
    
    Compiled in features:
    
    System config file: /etc/conky/conky.conf
    Package library path: /usr/lib/conky
    
     X11:
      * Xdamage extension
      * XDBE (double buffer extension)
      * Xft
      * ARGB visual
    
     Music detection:
      * Audacious
      * MPD
      * MOC
      * XMMS2
    
     General:
      * math
      * hddtemp
      * portmon
      * Curl
      * RSS
      * Weather (METAR)
      * Weather (XOAP)
      * wireless
      * support for IBM/Lenovo notebooks
      * nvidia
      * eve-online
      * config-output
      * Imlib2
      * apcupsd
      * iostats
      * ncurses
      * Lua
    
      Lua bindings:
       * Cairo
       * Imlib2
     sector11 @ sector11
     07 Feb 13 | 15:19:57 ~
             $
    Is it conky-all? <<-- better if it is.
    Code:
     sector11 @ sector11
     07 Feb 13 | 15:20:22 ~
             $ sudo apt-get install conky-all
    [sudo] password for sector11: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    conky-all is already the newest version.
    The following packages were automatically installed and are no longer required:
      diffstat dkms quilt
    Use 'apt-get autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.
     sector11 @ sector11
     07 Feb 13 | 15:20:44 ~
             $ sudo apt-get autoremove
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following packages will be REMOVED:
      diffstat dkms quilt
    0 upgraded, 0 newly installed, 3 to remove and 9 not upgraded.
    After this operation, 1,080 kB disk space will be freed.
    Do you want to continue [Y/n]? 
    (Reading database ... 188176 files and directories currently installed.)
    Removing quilt ...
    Removing diffstat ...
    Removing dkms ...
    Processing triggers for man-db ...
     sector11 @ sector11
     07 Feb 13 | 15:21:25 ~
             $
    I haven't downloaded the conky file yet, just looking that the screenshot.

    Left conky:
    1. Do you have a dual core or better? - this will show the first two.
    2. You'll need to install lm-sensors and hddtemp for temperatures.
    - your system will probably be different than the calls for those.
    3. is sda5 /root and sda6 /home (minor fixes)

    Centre conky:
    1. File System SDA - do you have a 3rd partition that could be used there?
    2. wlan0 <--- you use that? I use eth0
    3. Saints? Will have to check the code. Obviously a French Catholic user.

    Right Conky
    1. looks like you'll need a few more support programs for that as well.

    According to the "screenshot" the desktop is 1440x900 is that your screen resolution?

    I'll have to test one at a time on my 1280x1024 screen.
    Hi there, and thank you for your reply!

    First yes, conky-all is installed, as well as lm-sensors and hddtemp.

    Left conky:
    1. Do you have a dual core or better? - Yes I'm using a dual core.
    2. You'll need to install lm-sensors and hddtemp for temperatures. - Installed already
    3. is sda5 /root and sda6 /home (minor fixes) - Not sure mate. :/

    Centre conky:
    1. File System SDA - Not really, Ubuntu is using my whole disk.
    2. wlan0 <--- you use that? Yea it's wlan0, I always use wireless connections.
    3. Saints? This can be removed I guess, if not it can also stay.

    Also, my resolution is 1366x768.

  6. #21626
    Join Date
    Feb 2010
    Location
    SR11 Cockpit
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Mr. ViC View Post
    Hi there, and thank you for your reply!

    First yes, conky-all is installed, as well as lm-sensors and hddtemp.

    Left conky:
    1. Do you have a dual core or better? - Yes I'm using a dual core.
    2. You'll need to install lm-sensors and hddtemp for temperatures. - Installed already
    3. is sda5 /root and sda6 /home (minor fixes) - Not sure mate. :/

    Centre conky:
    1. File System SDA - Not really, Ubuntu is using my whole disk.
    2. wlan0 <--- you use that? Yea it's wlan0, I always use wireless connections.
    3. Saints? This can be removed I guess, if not it can also stay.

    Also, my resolution is 1366x768.
    OH you are going to have problems with that, the three conkys are wider and taller than your screen.

    Here's what I would suggest - grab that conky you like, and run just the left one. It will flow off the bottom you your screen.

    Now lm-sensors and hddtemp needs to be set up.

    For lm-sensors - answer YES to everything even that last one:
    Code:
    sudo sensors-detect
    then post the results of:
    Code:
    sensors
    for hddtemp reconfigure it:
    Code:
    sudo dpkg-reconfigure hddtemp
    and answer: YES; Enter; NO!

    If that worked this should work:
    Code:
     sector11 @ sector11
     07 Feb 13 | 16:29:44 ~
             $ hddtemp /dev/sda
    /dev/sda: WDC WD2500AAJS-00VWA0: 37°C
     sector11 @ sector11
     07 Feb 13 | 16:29:59 ~
             $ hddtemp -n /dev/sda
    37
     sector11 @ sector11
     07 Feb 13 | 16:30:01 ~
             $
    If you see that the command in conky will be:
    ${execi 5 hddtemp -n /dev/sda}°

    NVIDIA Graphics? So much easier if it is.

    It is difficult to create a conky for someone that wants things beyond the generic commands as each machine is different.

    You say Ubuntu is using your entire drive
    Do /root and /home have separate partitions at least?

    If I was you, I'd start small and build as your knowledge increases.

    A simple generic conky (with NVIDIA support) and using 'platform' for temps. May not work on all machines ... I'd bet in it.

    Save to: ~/.conkyrc2a
    Start with: conky -c ~/.conkyrc2a &
    Code:
    # killall conky && conky -c ~/.conkyrc2a &
    ## middle right - white text
    
    ###  Begin Window Settings  ##################################################
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,sticky,below,skip_taskbar,skip_pager
    #own_window_colour gray
    own_window_class Conky
    own_window_title A Default Conky
    
    # 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
    
    ### 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 255
    
    minimum_size 235 0     ## width, height
    #maximum_width 160       ## width
    
    gap_x 10 # left-right
    gap_y 0 # up-down
    
    alignment middle_right
    ###################################################  End Window Settings  ###
    ###  Font Settings  #########################################################
    # Use Xft (anti-aliased font and stuff)
    use_xft yes
    #xftfont Liberation Sans:size=15
    #xftfont Monofur:bold:size=13
    xftfont Mono:bold:size=12
    
    # Alpha of Xft font. Must be a value at or between 1 and 0 ###
    xftalpha 1
    # Force UTF8? requires XFT ###
    override_utf8_locale yes
    
    draw_shades yes #### <<<--- 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 black
    #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 FF0000 #255   0   0	Red
    #####################################################  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 yes
    #default_graph_size 15 40
    #####################################################  End Borders Secton  ###
    ###  Miscellaneous Section  ##################################################
    # Boolean value, if true, Conky will be forked to background when started.
    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 none
    
    # Default and Minimum size is 256 - needs more for single commands that
    # "call" a lot of text IE: bash scripts
    text_buffer_size 1028
    
    # 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
    
    # Desired output unit of all objects displaying a temperature. Parameters are
    # either "fahrenheit" or "celsius". The default unit is degree Celsius.
    # temperature_unit Fahrenheit
    
    ##############################################  End Miscellaneous Section  ###
    update_interval 1
    
    TEXT
    ${time %T}${alignr 5}${time %x}
    ${alignc}${uptime}${font monofont:bold:size=10}
    
    ${alignc}${kernel}
    ${hr}${font}
    ${alignc}${nodename}
    
    ${alignr 5}%  Used     | Total
     Root ${fs_used_perc /}${alignr 5}${fs_used /} | ${fs_size /}
     Home ${fs_used_perc /home}${alignr 5}${fs_used /home} | ${fs_size /home}
      RAM ${memperc}${alignr 5}${mem} | ${memmax}
     Swap ${swapperc}${alignr 5}${swap} | ${swapmax}${font Monofur:size=6}
    
    ${font} CPU % in use ${alignr 5}Avg ${if_match ${cpu cpu0}<10}00${cpu cpu0}\
    ${else}${if_match ${cpu cpu0}<100}0${cpu cpu0}\
    ${else}${cpu cpu0}${endif}${endif}
    ${alignc}1 ${if_match ${cpu cpu1}<10}00${cpu cpu1}\
    ${else}${if_match ${cpu cpu1}<100}0${cpu cpu1}\
    ${else}${cpu cpu1}${endif}${endif}\
      2 ${if_match ${cpu cpu2}<10}00${cpu cpu2}\
    ${else}${if_match ${cpu cpu2}<100}0${cpu cpu2}\
    ${else}${cpu cpu2}${endif}${endif}${font Mono:size=6}
    
    ${font} CPU Fan${alignr 5}${platform f71882fg.2560 fan 1} rpm${font Mono:size=6}
    
    ${font} Temperatures ${hr}
    ${alignc}CPU ${if_match ${platform f71882fg.2560 temp 1}<100} ${platform f71882fg.2560 temp 1}\
    ${else}${platform f71882fg.2560 temp 1}${endif}°\
         MB ${if_match ${platform f71882fg.2560 temp 2}<100} ${platform f71882fg.2560 temp 2}\
    ${else}${platform f71882fg.2560 temp 2}${endif}°
    ${alignc}GPU ${if_match ${nvidia temp}<100} ${nvidia temp}\
    ${else}${nvidia temp}${endif}°\
         HD ${if_match ${execi 5 hddtemp -n /dev/sda}<100} ${execi 5 hddtemp -n /dev/sda}\
    ${else}${execi 5 hddtemp -n /dev/sda}${endif}°
    ${alignc}GPU Threshold ${nvidia threshold}°${font Mono:size=6}
    
    ${font} NVIDIA ${hr}
     GPU ${nvidia gpufreq}MHz${alignr 5}MEM ${nvidia memfreq}MHz
    ${alignc}Image Quality ${nvidia imagequality}${font Monofur:size=6}
    
    ${font} DISK Activity ${hr}
     R${goto 40}${diskiograph_read /dev/sda 14,130 00ffff ff0000 5 -lt}${alignr 5}${diskio_read /dev/sda}
     W${goto 40}${diskiograph_write /dev/sda 14,130 ff0000 00ffff 5 -lt}${alignr 5}${diskio_write /dev/sda}${font Monofur:size=6}
    
    ${font} NETWORK ${hr}
     Dn${goto 40}${downspeedgraph eth0 14,130 00ffff ff0000 5 -lt}${alignr 5}${downspeedf eth0}
     Up${goto 40}${upspeedgraph eth0 14,130 ff0000 00ffff 5 -lt}${alignr 5}${upspeedf eth0}
    The time - 16:52:34 - may show up on your system as 4:52:34 PM if your locale is set to use AM|PM and the date will be 02/07/13 if you are in the US. Those conky time functions grab the info from your locale settings from when you installed Linux.
    Attached Images Attached Images
    Last edited by Sector11; February 7th, 2013 at 08:57 PM. Reason: Edited out a 3rd CPU

  7. #21627
    Join Date
    Jan 2013
    Beans
    7

    Re: Post your .conkyrc files w/ screenshots

    Hi all,

    I hope this is the right thread to obtain some help on conky configuration.

    To display the free space left on external hard drive I normally use the syntax: "${fs_free /media/Ext-Main}".

    Of course, this works only for the drive labeled "Ext-Main", and when I change the drive with another one the conky indicator stops working.

    Since in my system the external drive is always "/dev/sdb", and I can use the command "df | grep sdb | sed -re 's/.*% //'" to find the mount point, I wonder if there is a way to combine the output of the command with the "${fs_free }" conky variable to always obtain the free space on /dev/sbd, regardless of the label of the disk (I've tried "${fs_free ${exec df | grep sdb | sed -re 's/.*% //'}}" but it produces the following error: "Conky: statfs '${exec df | grep sdb | sed -re 's/.*% //'}': No such file or directory").
    Last edited by maboventi; February 11th, 2013 at 07:44 PM.

  8. #21628
    Join Date
    Feb 2010
    Location
    SR11 Cockpit
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by maboventi View Post
    Hi all,

    I hope this is the right thread to obtain some help on conky configuration.
    Yup, the right place....

    mrpeachy wrote a "mounted.lua" script. that will fit what you want I think:

    mount.lua
    Code:
    --[[partitions for conky by mrpeachy
    ##instructions
    ##load script
    lua_load ~/lua/mounted.lua
    ## first lua command below text:
    ## ${lua get_mounted_data interval}, where interval is a number.  This starts data gathering
    ## to get output:
    ## ${lua mount partition_number data_type text_length}, where partition number is a number
    ## text_length is optional, lets you specify the max number of characters the function returns. only affects fsys and mount data options
    ## data_type can be
    ## total - shows total number of partitions mounted, requires a partition_number also, use 1, could be used in an if_match
    ## fsys - shows filesystem
    ## size - shows space used in appropriate units
    ## free - shows free space in appropriate units
    ## use% - shows % used
    ## mount - shows mountpoint
    
    TEXT
    CPU %: ${cpu cpu0} ${lua get_mounted_data 10}
    TOTAL PARTITIONS MOUNTED: ${lua mount 1 total}
    FSYS${goto 100}SIZE${goto 200}USED%${goto 300}MOUNT
    ${lua mount 1 fsys}${goto 100}${lua mount 1 size}${goto 200}${lua mount 1 use%}${goto 300}${lua mount 1 mount 10}
    ${lua mount 2 fsys}${goto 100}${lua mount 2 size}${goto 200}${lua mount 2 use%}${goto 300}${lua mount 2 mount 10}
    ${lua mount 3 fsys}${goto 100}${lua mount 3 size}${goto 200}${lua mount 3 use%}${goto 300}${lua mount 3 mount 10}
    ${lua mount 4 fsys}${goto 100}${lua mount 4 size}${goto 200}${lua mount 4 use%}${goto 300}${lua mount 4 mount 10}
    
    ]]
    
    conky_start=1
    function conky_get_mounted_data(interval)
    local updates=tonumber(conky_parse("${updates}"))
    timer=(updates % interval)
    if timer==0 or conky_start==1 then
    fsys={}
    size={}
    used={}
    avail={}
    uperc={}
    mount={}
    local file = io.popen("df -h")
    	for line in file:lines() do
    		if string.find(line,"/dev/")~=nil then
    		local s,f,fs=string.find(line,"^([%d%a%p]*)%s")
    		table.insert(fsys,fs)
    		local s,f,sz=string.find(line,"%s*([%d%a%p]*)%s",f)
    		table.insert(size,sz)
    		local s,f,us=string.find(line,"%s*([%d%a%p]*)%s",f)
    		table.insert(used,us)
    		local s,f,av=string.find(line,"%s*([%d%a%p]*)%s",f)
    		table.insert(avail,av)
    		local s,f,up=string.find(line,"%s*([%d%a%p]*)%s",f)
    		table.insert(uperc,up)
    		local s,f,mn=string.find(line,"%s*([%d%a%p]*)%s*$",f)
    		table.insert(mount,mn)
    		end
    	end
    file:close()
    conky_start=nil
    end--timed section
    return ""
    end
    
    function conky_mount(n,d,c)--n=partition_number,d=data_type,c=number of characters to return
    d=tostring(d)
    n=tonumber(n)
    c=tonumber(c) or 0
    if d=="total" then
    data=#fsys or 1
    elseif d=="fsys" then
    data=fsys[n] or ""
    	if c~=0 then
    	data=string.sub(data,1,c) or ""
    	end
    elseif d=="size" then
    data=size[n] or ""
    elseif d=="used" then
    data=used[n] or ""
    elseif d=="free" then
    data=avail[n] or ""
    elseif d=="use%" then
    data=uperc[n] or ""
    elseif d=="mount" then
    data=mount[n] or ""
    	if c~=0 then
    	data=string.sub(data,1,c) or ""
    	end
    else
    data="check data type"
    end
    return data
    end--end main function
    The conky as a sample
    Code:
    # killall conky && conky -c /media/5/Conky/S11_mrp_FSYS.conky &
    # To use #! in a conky use: ${exec echo '#!'}
    
    ###  Begin Window Settings  ##################################################
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,skip_taskbar,skip_pager
    own_window_colour gray
    own_window_class Conky
    own_window_title Simple
    
    # 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
    
    ### 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 0
    
    minimum_size 260 0     ## width, height
    maximum_width 260     ## width, usually a good idea to equal minimum width
    
    gap_x 10 # left-right
    gap_y 0 # up-down
    
    alignment middle_right
    ###################################################  End Window Settings  ###
    ###  Font Settings  #########################################################
    # Use Xft (anti-aliased font and stuff)
    use_xft yes
    #xftfont mono:bold:size=8
    xftfont Anonymous Pro:bold:size=8
    #xftfont CorporateMonoExtraBold:size=8
    
    # Alpha of Xft font. Must be a value at or between 1 and 0 ###
    xftalpha 1
    # Force UTF8? requires XFT ###
    override_utf8_locale yes
    
    draw_shades no
    default_shade_color black
    
    draw_outline no # 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 62C2C2 #098 194 194	S11 Light Green #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 #yes
    #default_graph_size 15 40
    #####################################################  End Borders Secton  ###
    ###  Miscellaneous Section  ##################################################
    # Boolean value, if true, Conky will be forked to background when started.
    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 none
    
    # Default and Minimum size is 256 - needs more for single commands that
    # "call" a lot of text IE: bash scripts
    text_buffer_size 1028
    
    # 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
    
    # Desired output unit of all objects displaying a temperature. Parameters are
    # either "fahrenheit" or "celsius". The default unit is degree Celsius.
    # temperature_unit Fahrenheit
    
    ##############################################  End Miscellaneous Section  ###
    ###  LUA Settings  ###########################################################
    ## Above and After TEXT - requires a composite manager or blinks.
    ##
    # lua_load /media/5/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 /media/5/Conky/LUA/draw-bg.lua
    lua_draw_hook_pre draw_bg 15 0 0 0 0 0x000000 0.5
    # lua_draw_hook_post draw-bg 125 0 0 0 0 0x000000 0.01
    #
    # TEXT
    #
    ### mount.lua ##################################################################
    #
    ##instructions
    ##load script
    ##lua_load ~/path_to/mounted.lua
    lua_load /media/5/Conky/LUA/mounted.lua
    ## first lua command below text:
    ## ${lua get_mounted_data interval}, where interval is a number.  This starts data gathering
    ## to get output:
    ## ${lua mount partition_number data_type}, where partition number is a number
    ## data_type can be
    ## total - shows total number of partitions mounted, requires a partition_number also, use 1, could be used in an if_match
    ## fsys - shows filesystem
    ## size - shows space used in appropriate units
    ## free - shows free space in appropriate units
    ## use% - shows % used
    ## mount - shows mountpoint
    #######################################################  End LUA Settings  ###
    # The all important - How often conky refreshes.
    # If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP!
    update_interval 1
    
    TEXT
     ${time %H:%M}  Running: ${uptime_short}${alignr 5}${time %a %d %b %y}
    ${color6}${hr}${color}
    ${alignc}${color3}Hosted by: ${color5}${nodename}
    ${color6}${hr}${color}
    ${alignc}${color3}Kernel:${alignr 5}${color5}${kernel}
    
     ${color3}CPU ${color5}%  ${color7}1: ${color5}${if_match ${cpu cpu1} < 10}00${cpu cpu1}\
    ${else}${if_match ${cpu cpu1} < 100}0${cpu cpu1}\
    ${else}${cpu cpu1}\
    ${endif}${endif}\
      ${color7}2: ${color5}${if_match ${cpu cpu2} < 10}00${cpu cpu2}\
    ${else}${if_match ${cpu cpu2} < 100}0${cpu cpu2}\
    ${else}${cpu cpu2}\
    ${endif}${endif}\
      ${color7}3: ${color5}${if_match ${cpu cpu3} < 10}00${cpu cpu3}\
    ${else}${if_match ${cpu cpu3} < 100}0${cpu cpu3}\
    ${else}${cpu cpu3}\
    ${endif}${endif}\
      ${color7}Avg: ${color5}${if_match ${cpu cpu0} < 10}00${cpu cpu0}\
    ${else}${if_match ${cpu cpu0} < 100}0${cpu cpu0}\
    ${else}${cpu cpu0}\
    ${endif}${endif}
    
     ${color3}RAM:  ${color5}${mem} ${color}/ ${color5}${memmax}${alignr 5}${color3}Swap:  ${color5}${swap} ${color}/ ${color5}${swapmax}
    
     ${color3}SDA: ${color7}Read:  ${color5}${diskio_read /dev/sda}${goto 160}${color7}Write:  ${color5}${diskio_write /dev/sda}
    
    ${alignc}${color3}Network speeds for eth0
     ${color7}Down:${goto 60}${color5}${downspeedf eth0}${goto 125}${color7}Up:${goto 160}${color5}${upspeedf eth0}
    ${lua get_mounted_data 3}
    ${color6}FSYS${color} = ${lua mount 1 total}${goto 70}${color8}SIZE${goto 110}${color7}FREE${goto 150}${color1}USED${goto 185}${color}MOUNT
    ${color6}${lua mount 1 fsys 9}${goto 70}${color8}${lua mount 1 size}${goto 110}${color7}${lua mount 1 free}${goto 150}${color1}${lua mount 1 use%}${goto 185}${color}${lua mount 1 mount}
    ${color6}${lua mount 2 fsys 9}${goto 70}${color8}${lua mount 2 size}${goto 110}${color7}${lua mount 2 free}${goto 150}${color1}${lua mount 2 use%}${goto 185}${color}${lua mount 2 mount}
    ${color6}${lua mount 3 fsys 9}${goto 70}${color8}${lua mount 3 size}${goto 110}${color7}${lua mount 3 free}${goto 150}${color1}${lua mount 3 use%}${goto 185}${color}${lua mount 3 mount}
    ${color6}${lua mount 4 fsys 9}${goto 70}${color8}${lua mount 4 size}${goto 110}${color7}${lua mount 4 free}${goto 150}${color1}${lua mount 4 use%}${goto 185}${color}${lua mount 4 mount}
    ${color6}${lua mount 5 fsys 9}${goto 70}${color8}${lua mount 5 size}${goto 110}${color7}${lua mount 5 free}${goto 150}${color1}${lua mount 5 use%}${goto 185}${color}${lua mount 5 mount}
    ${color6}${lua mount 6 fsys 9}${goto 70}${color8}${lua mount 6 size}${goto 110}${color7}${lua mount 6 free}${goto 150}${color1}${lua mount 6 use%}${goto 185}${color}${lua mount 6 mount}
    ${color6}${lua mount 7 fsys 9}${goto 70}${color8}${lua mount 7 size}${goto 110}${color7}${lua mount 7 free}${goto 150}${color1}${lua mount 7 use%}${goto 185}${color}${lua mount 7 mount}
    ${color6}${lua mount 8 fsys 9}${goto 70}${color8}${lua mount 8 size}${goto 110}${color7}${lua mount 8 free}${goto 150}${color1}${lua mount 8 use%}${goto 185}${color}${lua mount 8 mount}
    Attached Images Attached Images

  9. #21629
    Join Date
    Jan 2013
    Beans
    7

    Re: Post your .conkyrc files w/ screenshots

    Thanks a lot Sector11, your solution exactly meets my needs.

    The only concern is whether obtaining the amount of the free space by repeatedly invoking and parsing the "df" command (if I've correctly understood the script) could lead to a load for the CPU significantly higher than the usual "${fs_free }" conky method.

  10. #21630
    Join Date
    Feb 2010
    Location
    SR11 Cockpit
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by maboventi View Post
    Thanks a lot Sector11, your solution exactly meets my needs.

    The only concern is whether obtaining the amount of the free space by repeatedly invoking and parsing the "df" command (if I've correctly understood the script) could lead to a load for the CPU significantly higher than the usual "${fs_free }" conky method.
    That conky running alone uses from 0 to 1% of my CPU.

Page 2163 of 2284 FirstFirst ... 1163166320632113215321612162216321642165217322132263 ... 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
  •