From owner-freebsd-mobile Sun Nov 9 22:27:56 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA07045 for mobile-outgoing; Sun, 9 Nov 1997 22:27:56 -0800 (PST) (envelope-from owner-freebsd-mobile) Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id WAA07039 for ; Sun, 9 Nov 1997 22:27:53 -0800 (PST) (envelope-from imp@village.org) Received: from harmony [10.0.0.6] by rover.village.org with esmtp (Exim 1.71 #1) id 0xUnKA-00046O-00; Sun, 9 Nov 1997 23:27:50 -0700 Received: from harmony.village.org (localhost [127.0.0.1]) by harmony.village.org (8.8.7/8.8.3) with ESMTP id XAA25538; Sun, 9 Nov 1997 23:28:16 -0700 (MST) Message-Id: <199711100628.XAA25538@harmony.village.org> To: Mike Smith Subject: Re: A little tk program Cc: mobile@freebsd.org In-reply-to: Your message of "Mon, 10 Nov 1997 13:50:00 +1030." <199711100320.NAA00665@word.smith.net.au> References: <199711100320.NAA00665@word.smith.net.au> Date: Sun, 09 Nov 1997 23:28:16 -0700 From: Warner Losh Sender: owner-freebsd-mobile@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In message <199711100320.NAA00665@word.smith.net.au> Mike Smith writes: : > P.S. You need to run this as root, or have apm be setuid root. : : Er, I don't think so. Certainly, apm will give me power status as : non-root. Doesn't for me. I got permission failed before I made apm setuid root. : Wow, now I can set the battery level too! 8) I was somewhat hopeful that I could speed the charging of my battery in this way :-). Too bad that didn't work.... : Here's a slightly modified version that implements a bargraph in the : icon title, adds some colour and shrinks it a little to make the most : of precious laptop real estate. You might also want to configure your : window manager to hide the decorations on the window to make it smaller : again. Thanks for the update. It helps me to understand this stuff better. Warner