VectorLinux
October 25, 2014, 09:54:43 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Conky question  (Read 2007 times)
daemonhunter743
Member
*
Posts: 40


« on: June 22, 2010, 10:47:38 pm »

I played around with Crashbang Linux and decided I preferred Vector, but I did really like the Conky system monitor.  I noticed it was available in GSLAPT so I downloaded and installed it, but how do I get it to launch?
Logged
toothandnail
Tester
Vectorian
****
Posts: 2527


« Reply #1 on: June 23, 2010, 01:48:26 am »

I played around with Crashbang Linux and decided I preferred Vector, but I did really like the Conky system monitor.  I noticed it was available in GSLAPT so I downloaded and installed it, but how do I get it to launch?

If you are using VL6.0 Standard (with Xfce as your desktop environment), the easiest way is to use the run dialog from the desktop (Alt-F2) and enter conky from the command line produced by run. When you next log out, make sure that the 'save session for future logins' box is ticked. Conky should then autostart every time you log into the desktop.

You will also need to configure your settings and place them in a .conkyrc file in your home directory. There are quite a few samples of .conkyrc files available. This is what I use on the laptop (a Thinkpad, so some of the settings are Thinkpad specific):

Code:
# conky conifg

# set to yes if you want tormo to be forked in the background
background yes

# X font used, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font fixed
# font *mintsmild.se*
# font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
use_xft yes
xftfont   Tahoma:size=8
xftalpha  0.6

# mail spool
# mail_spool $MAIL

# Update interval in seconds
update_interval 2.0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_class Conky
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated below skip_taskbar
double_buffer yes

# Minimum size of text area
minimum_size 160 5

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 2

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color red

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 12
gap_y 30

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# Possible variables to be used:
#
#      Variable         Arguments                  Description               
#  acpiacadapter                     ACPI ac adapter state.                   
#  acpifan                           ACPI fan state                           
#  acpitemp                          ACPI temperature.                       
#  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           
#  temp1                             Temperature #1 from i2c-sensors, same as
#                                    ${i2c temp 1}                           
#  temp2                             Temperature #2 from i2c-sensors, same as
#                                    ${i2c temp 2}                           
#  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               


# 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

# stuff after 'TEXT' will be formatted on screen

TEXT
${color grey}Up:$color ${upspeed eth0} k/s${color grey} - Down:$color ${downspeed eth0} k/s
${color blue}$hr
${color grey}Processes:$color $processes
${color grey}CPU:$color Core1: ${cpu cpu0}%     Core2: ${cpu cpu1}%
$color${cpugraph}
${color grey}RAM Usage:$color $mem/$memmax - $memperc%
         ${color grey}${membar 3}
${color grey}Swap Used:$color $swap/$swapmax - $swapperc%
         ${color grey}${swapbar 3}
${color grey}File systems:
/          $color${fs_free /}/${fs_size /}   
         ${color grey}${fs_bar 3 /}
/home      $color${fs_free /home}/${fs_size /home}
         ${color grey}${fs_bar 3 /home}
${color red}$hr
${color grey}Uptime:   $color $uptime
${color #ddd}CPUfreq:  $color ${freq} MHz
${color #ddd}CPUtemp:  $color ${ibm_temps 0}C
${color #ddd}HDDtemp:  $color ${ibm_temps 2}C
${color #ddd}FanRPM:   $color ${ibm_fan}
${color green}$hr$color
$sysname $kernel on $machine
${color grey}Host: $color$nodename
${color lightgrey}IP address: $color${addr eth0}

Paul.
Logged
daemonhunter743
Member
*
Posts: 40


« Reply #2 on: June 23, 2010, 03:08:02 pm »

Thank you.  I got it to launch.

Do you know where I can find info that will explain how to do up a config file for it?   I had a look at the one you posted, but I don't know what the various things in the config file does.  I am guessing I will need one similar to yours since it is for a Laptop, but mine is an HP Mini Note 2133.
Logged
bigpaws
Vectorian
****
Posts: 1856


« Reply #3 on: June 23, 2010, 03:28:22 pm »

This is a good place to start:

http://conky.sourceforge.net/documentation.html

Bigpaws
Logged
daemonhunter743
Member
*
Posts: 40


« Reply #4 on: June 23, 2010, 06:05:33 pm »

Well I have got is working mostly flawlessly.  I think I screwed up somewhere because I have my CPU info displaying twice and it is a single processor Netbook.   

The bigger problem is my icons have disappeared and they only appear again momentarily when I move my mouse over the icons.  My Conky is in the top right corner and my icons are on the left so I am not sure what is happening.
Logged
daemonhunter743
Member
*
Posts: 40


« Reply #5 on: June 23, 2010, 10:51:38 pm »

Okay so it launches now and the transparency works like I want it in the top right corner, but my icons still disappear when I launch Conky.   I tried the troubleshooting steps on the Conky FAQ with no change.  I will put up my Config file and maybe someone will see where I am going wrong.


background yes
use_xft yes
xftfont Segoe UI:size=9
xftalpha 0.5
update_interval 1.0
total_run_times 0
own_window no
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 300 5
maximum_width 300
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color black
default_shade_color red
default_outline_color green
alignment top_right
gap_x 12
gap_y 48
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no

TEXT
$sysname $kernel on $machine

${time %A}$alignr${time %F}

Uptime $alignr $uptime

$nodename $sysname $kernel on $machine
CPU0: ${freq}MHz   $cpu%  $cpubar

RAM ($memmax):  $memperc%   ${membar 6}$color
Swap ($swapmax): $swapperc%   ${swapbar 6}$color

Hostname $alignr $nodename
wlan0 $alignr ${addr wlan0}

Download $alignr ${downspeed wlan0} kb/s
${downspeedgraph wlan0}
Upload   $alignr ${upspeed wlan0} kb/s
${upspeedgraph wlan0}
Logged
daemonhunter743
Member
*
Posts: 40


« Reply #6 on: June 24, 2010, 08:25:21 pm »

Hi guys and gals,

I went over my config file again and found where I screwed up and I have it working perfectly now.  Thanks for all the help.
Logged
daemonhunter743
Member
*
Posts: 40


« Reply #7 on: June 28, 2010, 04:12:43 pm »

One last thing.  I am using VL 6 Light now and I noticed ICEWM does not have the same 'save session' option as XFCE so I am wondering how I can get Conky to launch automatically when I login to my account under VL Light.
Logged
nightflier
Administrator
Vectorian
*****
Posts: 4026



« Reply #8 on: June 28, 2010, 04:38:52 pm »

In your home folder, there is a hidden folder ".icewm". Inside that folder is a file named "startup". Open the startup file in a text editor and add whatever commands you want to run, each on a separate line.
Logged
daemonhunter743
Member
*
Posts: 40


« Reply #9 on: June 28, 2010, 05:34:13 pm »

Is there anywhere I can find info on the commands I need to put in that file to get Conky or other programs to load at startup?
Logged
bigpaws
Vectorian
****
Posts: 1856


« Reply #10 on: June 28, 2010, 05:55:04 pm »

http://www.icewm.org/FAQ/

I believe that would be a good place to start.

Most of the programs are not altered to a point
that the programs documentation is not able to
be used.

Bigpaws
Logged
nightflier
Administrator
Vectorian
*****
Posts: 4026



« Reply #11 on: June 28, 2010, 06:53:08 pm »

Another tip: most Linux programs have documentation included. Let's use Conky as an example. Open a terminal (command line window) and type:
Code:
conky --help
If you want more, try:
Code:
man conky
And finally:
Code:
info conky
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!