Laptop Control Center

Karamba & Superkaramba

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
5 .0
Description:

The Laptop Control Center allows the user to quickly switch between a wireless and wired ethernet interface. It also displays the frequency of the processor from /proc/cpuinfo.

This will be rather boring unless you have cpufreq compiled into your kernel, and a daemon (like cpufreqd or cpudyn changing the frequency according to usage).

It also probes for remaining battery life from /proc/apm--so you MUST be using APM unless you want to adapt a script for ACPI.

The clock is a really basic clock that I adapted from somone else's clock (but the uptime is fairly handy to guage how long your batteries are actually lasting).

I unfortunately couldn't figure out how to display the estimated time that a battery will last, and if I could figure out how to make the pictures change--I would add an AC plug to show when the laptop is charging (if you have ideas, email me).


The scripts for configuring the ethernet interfaces are VERY primative--and they don't use dhclient--they have hard coded IP addresses. This is because dhclient cannot probe new eth interfaces after initially booting up.

Any questions, and you are welcome to email me: list A notthemessiah.net (replace A with @)
Last changelog:

16 years ago

none

C

ming0

16 years ago

I am trying to find an efficient way to have the script find out if eth1 or eth0 are up... If I run "cat /sbin/ifconfig" I just get a bunch of garbage. Is there an easy way to make the image change if the program underneath is executed? I am not very good at the programming stuff :/ Thx in advance

Report

burnsides

15 years ago

/sbin/ifconfig is a execuable file, try "/sbin/ifconfig eth0".

Report

phlogistonjohn

16 years ago

Try running the ip command (probably in /sbin on most systems). I find it a little easier to grep. Try running it with "ip link show <iface>" to show the status of one interface or skip the interface for a list of those that are available.

I like the visual style of your theme, I hope this helps a bit.

Report

gravis

16 years ago

Why not shade the unused mode ?

Report

C

ming0

16 years ago

Bcz I guess I didn't know that was an option... I might make the one that is currently used glow? (or shade--I'll see which looks better)

and if I can get that to work, then I might try getting it to probe for AC, and change the battery picture.

thanks for the idea :) (I don't need to know any python to do this right?)

Report

16 years ago

none

12345678910
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.0a
updated Jan 31 2004
added Jan 31 2004
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0