This is the old SliTaz forum - Please use the main forum.slitaz.org

For anyone wanting to use Conky
  • DeagonDeagon October 2010
    If you have tried conky and found that it disappears behind the desktop everytime you ALT+TAB or click an icon.

    Here is the fix;

    Create the file ".conkyrc" in /Home/(YOUR USERNAME) and open with leafpad (or any preferred text editor)

    put this at the top

    #PCMANFM Fix;
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_class Conky
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes

    Note: instead of conky being merged with the desktop, then being hidden by pcmanfm file manager. You now have an invisible window, with no decorations that cant be moved and doesnt show up in ALT+TAB or your taskbar. Double buffer is only to stop conky flickering, you would get a slight performance increase without it.


    Customise your conky;

    These are the configuration options available in .conkyrc under the header "TEXT". This can be used to give your performance meter a custom look that suits your needs.

    --------------------------------------------------------------------------------------------------------------------------------------------------------
    # Possible variables to be used:
    #
    # Variable Arguments Description
    # acpiacadapter ACPI ac adapter state.
    # acpifan ACPI fan state
    # acpitemp ACPI temperature.
    # adt746xcpu CPU temperature from therm_adt746x
    # adt746xfan Fan speed from therm_adt746x
    # battery (num) Remaining capasity in ACPI or APM
    # battery. ACPI battery number can be
    # given as argument (default is BAT0).
    # buffers Amount of memory buffered
    # cached Amount of memory cached
    # color (color) Change drawing color to color
    # cpu CPU usage in percents
    # cpubar (height) Bar that shows CPU usage, height is
    # bar's height in pixels
    # downspeed net Download speed in kilobytes
    # downspeedf net Download speed in kilobytes with one
    # decimal
    # exec shell command Executes a shell command and displays
    # the output in torsmo. warning: this
    # takes a lot more resources than other
    # variables. I'd recommend coding wanted
    # behaviour in C and posting a patch :-).
    # execi interval, shell Same as exec but with specific interval.
    # command Interval can't be less than
    # update_interval in configuration.
    # fs_bar (height), (fs) Bar that shows how much space is used on
    # a file system. height is the height in
    # pixels. fs is any file on that file
    # system.
    # fs_free (fs) Free space on a file system available
    # for users.
    # fs_free_perc (fs) Free percentage of space on a file
    # system available for users.
    # fs_size (fs) File system size
    # fs_used (fs) File system used space
    # hr (height) Horizontal line, height is the height in
    # pixels
    # i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
    # may be omitted if you have only one I2C
    # device. type is either in (or vol)
    # meaning voltage, fan meaning fan or temp
    # meaning temperature. n is number of the
    # sensor. See /sys/bus/i2c/devices/ on
    # your local computer.
    # kernel Kernel version
    # loadavg (1), (2), (3) System load average, 1 is for past 1
    # minute, 2 for past 5 minutes and 3 for
    # past 15 minutes.
    # machine Machine, i686 for example
    # mails Mail count in mail spool. You can use
    # program like fetchmail to get mails from
    # some server using your favourite
    # protocol. See also new_mails.
    # mem Amount of memory in use
    # membar (height) Bar that shows amount of memory in use
    # memmax Total amount of memory
    # memperc Percentage of memory in use
    # new_mails Unread mail count in mail spool.
    # nodename Hostname
    # outlinecolor (color) Change outline color
    # pre_exec shell command Executes a shell command one time before
    # torsmo displays anything and puts output
    # as text.
    # processes Total processes (sleeping and running)
    # running_processes Running processes (not sleeping),
    # requires Linux 2.6
    # shadecolor (color) Change shading color
    # stippled_hr (space), Stippled (dashed) horizontal line
    # (height)
    # swapbar (height) Bar that shows amount of swap in use
    # swap Amount of swap in use
    # swapmax Total amount of swap
    # swapperc Percentage of swap in use
    # sysname System name, Linux for example
    # time (format) Local time, see man strftime to get more
    # information about format
    # totaldown net Total download, overflows at 4 GB on
    # Linux with 32-bit arch and there doesn't
    # seem to be a way to know how many times
    # it has already done that before torsmo
    # has started.
    # totalup net Total upload, this one too, may overflow
    # updates Number of updates (for debugging)
    # upspeed net Upload speed in kilobytes
    # upspeedf net Upload speed in kilobytes with one
    # decimal
    # uptime Uptime
    # uptime_short Uptime in a shorter format
    #
    # seti_prog Seti@home current progress
    # seti_progbar (height) Seti@home current progress bar
    # seti_credit Seti@hoome total user credit


    # variable is given either in format $variable or in ${variable}. Latter
    # allows characters right after the variable and must be used in network
    # stuff because of an argument
    #${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
    #${font Verdana:size=10}as many times as I choose
    #${font Perry:size=10}Including UTF-8,
    # stuff after 'TEXT' will be formatted on screen
    #${font Grunge:size=12}${time %a %b %d}${alignr -25}${time %k:%M}
    --------------------------------------------------------------------------------------------------------------------------------------------------------

    So have fun making your own custom desktop performance meter, and please feel free to share you configs and give screenshots ;)
  • DeagonDeagon October 2010
    http://i955.photobucket.com/albums/ae40/Deagon88/ConkyScreentshot.png

    My config;

    TEXT
    ${color}$stippled_hr| :
    $nodename - $sysname $kernel on $machine :
    ${color}Uptime:$color ${color red}$uptime $color ${color}- Load:$color ${color red}$loadavg$color :
    $color$stippled_hr :
    ${color}CPU:${color red} ${freq}mhz ${color}- Temp:${color red}$acpitemp*C $color:
    ${color}CPU Usage:${color red} ${cpu}% $color ${color darkgreen}${cpubar}$color :
    ${color black}${cpugraph 0000ff ff0000} $color :
    ${color}RAM Usage:$color ${color red}$mem/$memmax - $memperc% $color ${color darkgreen}$membar $color :
    ${color}Swap Usage:${color red} $swap/$swapmax ${color}-${color red} $swapperc% ${color darkgreen}${swapbar} :
    ${color}Battery 1: ${color red}${battery BAT0} ${color}Battery 2: ${color red}${battery BAT1}
    ${color}File systems :$color
    ${color black} Hda1: ${color red}${fs_used /}/${fs_size /} ${color darkgreen} ${fs_bar /}$color
    ${color black} Hda2: ${color red}${fs_used /home}/${fs_size /home} ${color darkgreen}${fs_bar /home}$color
    ${color}$stippled_hr| :
    ${color}Processes: ${color red}$processes ${color}Running:${color red} $running_processes $color:
    ${color}Highest CPU usage :$color
    ${color} Name PID CPU% MEM% :
    ${color red} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} $color :
    ${color black} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} $color :
    ${color black} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} $color :
    ${color black} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4} $color :
    ${color black} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5} $color :
    ${color}Highest Mem usage :$color
    ${color} Name PID CPU% MEM% :
    ${color red} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1} $color :
    ${color black} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2} $color :
    ${color black} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3} $color :
    ${color black} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4} $color :
    ${color black} ${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5} $color :
    ${color}$stippled_hr| :
    ${color}Networking ppp0:
    ${color black}Down:${color ff0000} ${downspeed ppp0} k/s${color black} ${offset 70}Up:${color ff0000} ${upspeed ppp0} k/s
    ${color black}${downspeedgraph ppp0 32,150 ff0000 0000ff} $alignr${color black}${upspeedgraph ppp0 32,150 0000ff ff0000}
    ${color}Networking eth0 :
    ${color black}Down:${color ff0000} ${downspeed eth0} k/s${color black} ${offset 70}Up:${color ff0000} ${upspeed eth0} k/s
    ${color black}${downspeedgraph eth0 32,150 ff0000 0000ff} $alignr${color black}${upspeedgraph eth0 32,150 0000ff ff0000}
    ${color}$stippled_hr| :
  • seawolfseawolf October 2010
    Hi @Deagon --
    I'll try to put this in http://doc.slitaz.org/en:guides:conky later for reference.
    Thanks :)
  • DeagonDeagon October 2010
    I suppose the only really relevant bit to slitaz is the pcmanfm fix, everything else is documented on the web.
    EDIT: http://conky.sourceforge.net/variables.html

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

SliTaz Social