Menu

Tree [9f1906] master /
 History

HTTPS access


File Date Author Commit
 autom4te.cache 2025-03-13 juergen-m juergen-m [9f1906] Fixes to use in frontpanel
 locale 2025-03-13 juergen-m juergen-m [9f1906] Fixes to use in frontpanel
 src 2025-03-13 juergen-m juergen-m [9f1906] Fixes to use in frontpanel
 COPYING 2021-02-23 Juergen Juergen [e9b47c] Initial commit
 INSTALL 2021-02-23 Juergen Juergen [e9b47c] Initial commit
 LICENSE 2021-02-23 Juergen Juergen [e9b47c] Initial commit
 Makefile 2025-03-13 juergen-m juergen-m [9f1906] Fixes to use in frontpanel
 Makefile.am 2021-03-23 juergen-m juergen-m [5f316a] Fixed memory leaks with drawing pixmaps, change...
 Makefile.in 2023-01-19 juergen-m juergen-m [1690d3] Fixed tooltip position
 README 2021-03-09 juergen-m juergen-m [7632e6] Try to catch the background color, migration to...
 aclocal.m4 2023-01-19 juergen-m juergen-m [1690d3] Fixed tooltip position
 compile 2021-02-26 juergen-m juergen-m [2dd550] Updated Version to 1.2
 config.log 2025-03-13 juergen-m juergen-m [9f1906] Fixes to use in frontpanel
 config.status 2025-03-13 juergen-m juergen-m [9f1906] Fixes to use in frontpanel
 configure 2025-03-13 juergen-m juergen-m [9f1906] Fixes to use in frontpanel
 configure.ac 2025-03-13 juergen-m juergen-m [9f1906] Fixes to use in frontpanel
 depcomp 2021-02-26 juergen-m juergen-m [2dd550] Updated Version to 1.2
 install-sh 2021-02-26 juergen-m juergen-m [2dd550] Updated Version to 1.2
 missing 2021-02-26 juergen-m juergen-m [2dd550] Updated Version to 1.2
 power.fp 2021-02-23 Juergen Juergen [e9b47c] Initial commit

Read Me

README

dtpower is useful for monitoring the battery-state of laptops.

dtpower is designed to be used as an app in CDE's frontpanel. dtpower calls 
"acpi -a" to get the state (power plugged in or not) of the power adapter.
The icon changes according to the state.
Then "acpi -b" is called to set a tooltip with the current load of the battery.

1. PREREQUISITES
-----------------------------

Motif 2.3+

On some GNU/Linux distributions appropriate 'dev' packages need to be installed
separately - e.g. xorg-dev, motif-dev, etc.

2. BUILDING AND INSTALLING
-----------------------------

To build and install using default configuration options run './configure' ,
run 'make', then 'make install' as root.

Default bindir is 

	/usr/dt/bin 

for dtpower and 

	/usr/dt/app-config/icons/C

for the xpm-files. You can also install the binary somewhere in your PATH
and the xpm-files in $HOME/.dt/icons if you do not have root-privileges.

Configure your panel to show the app: copy power.fp to the directory

	$HOME/.dt/types

It has the followring format:

----------- snip -----------------
CONTROL Power
{
  TYPE                  client
  CONTAINER_NAME        Top
  CONTAINER_TYPE        BOX
  POSITION_HINTS        14
  CLIENT_NAME           dtpower
  CLIENT_GEOMETRY       60x60
  LABEL                 Power
}
----------- snip -----------------

where the POSITION_HINTS defines the position in your panel.

If you decided to use 

	Dtwm*primaryColorSetId: 8

instead of the default bg color (ID 5) of dtwm you can use the 8th line of
you colorpalette, i.e.

	dtpower -bg `head -n 8 /home/jma/.dt/palettes/Crimson.dp | tail -1`

Since version 1.5 the line above should not be necessay any longer as i try to
catch the color.

Additionally you can use dtpower in symbolsize. I took away the windowdecorations
in order to use it as desklet, you can still move it around with SHIFT-ESC from your
windowmanager.


3. COPYING
-----------------------------
This software is distributed under the terms of the MIT license. You may use,
modify and redistribute the software under the terms of this license. See the
included LICENSE file for details.


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.