mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
New package: xbattmon-0.9
This commit is contained in:
parent
55ad6ca42d
commit
a90b5071e0
2 changed files with 31 additions and 0 deletions
13
srcpkgs/xbattmon/files/config.h
Normal file
13
srcpkgs/xbattmon/files/config.h
Normal file
|
@ -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 */
|
18
srcpkgs/xbattmon/template
Normal file
18
srcpkgs/xbattmon/template
Normal file
|
@ -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 <duncaen@voidlinux.eu>"
|
||||||
|
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
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue