SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

For fun, visit the XLoadtime homepage, at:

http://www.speakeasy.org/~xyzzy/xloadtime/


Changes

Version 2.2

  • Added a -nolabel option and showLabel resource like xload. They prevent a label from getting drawn. This is different from a blank label, as the space a label would have taken is saved.
  • Added a -noclock option and a Clock resource. If -noclock is specified or Clock is False, then just a standard label is used like xload.
  • With no clock, the label will default to the hostname, or can be set with the -label option.

Version 2.1

  • Made cursor in the "scrollbar" a normal cursor, since it doesn't scroll.
  • Made the clock updates more punctual, the clock should update to the correct time less than one update interval after the minute changes. Before it could take up to a minute!

Version 2.0

  • Added update interval setting
  • Added 12hour time
  • Added CPU usage bars
  • Made a little more efficient

To compile, just type make. The program uses for the most part the same options and resources as xload. Three extra options are for the extra features.

First is the -noclock option or the boolean resource Clock, which will turn of the clock, making the program work like normal xload. The default label will be the machine's hostname, or whatever label you set with the -label option. The -nolabel option and the resource showLabel will turn off the label all together.

Second is -12hour or the boolean resource 12Hour, which change the clock from a 24 hour clock to a 12 hour clock with AM/PM. Nice for us Americans.

Third is -cpu or the boolean resource Cpu. This displays vertical bar(s) on the right side of the window. Each bar represents the average CPU usage during the update interval. With kernel 2.2.0+, machines with more than one CPU will have more than one bar, one per CPU up to four. Multiple CPU bars will not work on 2.0.x kernels, you will just get one bar.

This is the command line I use:

xloadtime -update 5 -12hour -cpu -fg Black -bg gray52

Alternatively, one could put resources like this in their .Xdefaults file, instead of the command line options. Or use a combination of the two.

XLoadbackground:       Black
XLoadforeground:       gray52
XLoad12Hour:           True
XLoadCpu:              True
XLoadUpdate:           5
XLoadFont:             -misc-fixed-bold-r-normal--*-120-*-*-c--iso8859-1
XLoadshowLabel:        True
Xload*Clock:            True


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.