The almighty .plan

.plan
[Last 5] [Last 10] [Index] [RSS Feed]
[Full .plan (over 1MB)]
Contact Me

Notes

Notes
SubVersion
Vim
C and C++
FreeBSD
more...

RMITCS

C Helpdesk Resources
Customising Your CS Account
more...

Software

Codepile
Assorted little scripts and apps.
dumps.pl - FreeBSD Backup script
rastodo.py - Python Console todo/reminder
more...
Android
NumLock
Lost Emulators

Game Mods

LethalMod
A Max Payne 2 mod - more realistic and deadly.
more...

Image Gallery

Image Gallery
Photos
Screenshots
more...

Roleplaying Games

Shadowrun Notes(4th ed)
Heavy Gear Notes(2nd ed)
GURPS Notes
GameMastering Notes

Miscellaneous

links
Taglines
crazy
Trombone slide position chart [PDF]
[Back to home page]
For updates about the lack of updates: click click .
<previous entry<
>later entry>


Fri, 13 Aug 2010 00:00:00 +1000

A small CPU load widget for the Awesome wm, based on IceBrain's Active
RAM Widget (http://awesome.naquadah.org/wiki/Active_RAM). Unlike some
other load widgets, This one doesn't spawn any new processes or
require any widget libraries (just the ones that come with awesome).

Add to rc.lua, near the top but after the library imports:

    function cpuload()
      for line in io.lines('/proc/loadavg') do
         return string.sub(line, 0, 4)
      end
    end
    cpuinfo = widget({ type = "textbox", align = "right" })
    awful.hooks.timer.register(5, function() cpuinfo.text = cpuload() end)

Look for the "mywibox[s].widgets" definition and add the new "cpuinfo"
one. I suggest putting it after the textclock:

   mywibox[s].widgets = {
      ...
      mytextclock,
      cpuinfo,
      ...
   }



<previous entry<
>later entry>



View from .
Entries are counted backwards, i.e. the most recent entry is considered number 1.

View entry on .
Dates can be entered in GNU Date Syntax - this has several forms, the simplest is YYYYMMDDhhmm.

View of dated entries.
View .plan (around 1 MB).

Generated Wed, 08 Feb 2012 06:47:09 +1100
Copyright © 2002-2011 Dylan Leigh.
[HTML 4.01 Transitional]