diff --git a/srcpkgs/xbattmon/files/config.h b/srcpkgs/xbattmon/files/config.h new file mode 100644 index 0000000000..96d62a6202 --- /dev/null +++ b/srcpkgs/xbattmon/files/config.h @@ -0,0 +1,13 @@ +char *colors[] = { + [COLOR_BAT_CHARGED] = "green", + [COLOR_BAT_LEFT2CHARGE] = "grey", + [COLOR_BAT_DRAINED] = "red", + [COLOR_BAT_LEFT2DRAIN] = "blue" +}; + +unsigned int thickness = 2; /* 2 pixels by default */ +int placement = BOTTOM; /* set to TOP if you want a top placement */ +int maxcap = 100; /* maximum battery capacity */ +int raise = 0; /* set to 1 if you want the bar to be raised on top of other windows */ +int critical = 5; /* start blinking below 5% */ +int transparent = 0; /* transparent mode */ diff --git a/srcpkgs/xbattmon/template b/srcpkgs/xbattmon/template new file mode 100644 index 0000000000..565a41cad6 --- /dev/null +++ b/srcpkgs/xbattmon/template @@ -0,0 +1,18 @@ +# Template file for 'xbattmon' +pkgname=xbattmon +version=0.9 +revision=1 +build_style=gnu-configure +make_install_args="PREFIX=/usr" +makedepends="libX11-devel" +short_desc="Simple battery monitor" +maintainer="Duncaen " +license="GPL-3" +homepage="http://git.2f30.org/xbattmon/" +distfiles="http://git.2f30.org/$pkgname/snapshot/$pkgname-${version}.tar.gz" +checksum=760a39da5ae81e6af76a06268e8a26ceaae6b4d5e5b34367cbf8dd01b0cc5958 + +pre_build() { + cp "${FILESDIR}/config.h" . + sed -i '/^PREFIX =*/d' config.mk +}