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

INTRODUCTION

FClock is meant as a replacement for rclock, for docking in the FvwmButtons panel. It has few features, but at least it displays the time (h:m:s), day of week, date (complies with y2k1c) and shows the time you've been online.

The "F" in FClock derives from the "F" in Fvwm, which means that the "F" can be shorthand for just about any word. Personally, I prefer Feline, but you choose one that suits you! ;-). Please note that FClock is NOT a "official" Fvwm module or whatever, I just happen to like the Fvwm window manager, and have thus been inspired to write this little app.

INSTALLING

  1. tar -xvzf fclock-*.*.src.tar.gz
  2. cd fclock-*.*.src
  3. make
  4. su
  5. cp fclock /usr/local/bin (or someplace else..)

That's it. If you have problems compiling it, check the $(QTDIR) in the Makefile. The installation path of QT seems to differ between distributions. For using the clock as an online timer, see the part titled (insert HREF here) ONLINE TIMER. Of course, there's also the RPM distro, which eases the installation a bit.

UNINSTALLING

To uninstall the fclock, just remove the binary and the file ~/.fclockOnlineTime. Or, if you've installed it the RPM-way, rpm -e fclock.

SETTINGS

You can use most of the normal X options with this program. For example:

-geometry 200x200       sets the size of the program.   
-fg red                 sets the foreground color to red
-bg black               sets the background color to black
-name hello             sets the application name to hello

...

And so on.

ONLINE TIMER

The clock can, alternatively, serve as a online timer. To achieve this, the clock checks if the file /tmp/pppUp exists (once / second). If it does, the clock increases the online time by one second. Now, if you intend to use this feature, you should edit the file /etc/ppp/ip-up.local (on Red Hat 6.0 at least). To this file, you add:

touch /tmp/pppUp

Then edit /etc/ppp/ip-down.local, add:

rm -f /tmp/pppUp

This will create a file in /tmp each time you log on to your ISP, and remove it each time you log off. FClock will store the total time online in ~/.fclockOnlineTime.

CONTACT

Simon Kågström, simon[dot]kagstrom[dot]864[at]student[dot]lu[dot]se


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.