commit
ffacc4f1a2
3 changed files with 71 additions and 0 deletions
7
srcpkgs/slstatus/INSTALL.msg
Normal file
7
srcpkgs/slstatus/INSTALL.msg
Normal file
|
@ -0,0 +1,7 @@
|
|||
To use slstatus, put the following code in your ~/.xinitrc (or similar):
|
||||
|
||||
while true; do
|
||||
slstatus
|
||||
done &
|
||||
|
||||
The loop is needed so that the program runs after suspend to ram.
|
42
srcpkgs/slstatus/files/config.h
Normal file
42
srcpkgs/slstatus/files/config.h
Normal file
|
@ -0,0 +1,42 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
/* alsa sound */
|
||||
static const char channel[] = "Master";
|
||||
|
||||
/* battery */
|
||||
static const char batterypath[] = "/sys/class/power_supply/";
|
||||
static const char batterynow[] = "energy_now";
|
||||
static const char batteryfull[] = "energy_full_design";
|
||||
|
||||
/* bar update interval in seconds (smallest value = 1) */
|
||||
static unsigned int update_interval = 1;
|
||||
|
||||
/* statusbar
|
||||
- battery_perc (battery percentage) [argument: battery name]
|
||||
- cpu_perc (cpu usage in percent) [argument: NULL]
|
||||
- datetime (date and time) [argument: format]
|
||||
- disk_free (disk usage in percent) [argument: mountpoint]
|
||||
- disk_perc (disk usage in percent) [argument: mountpoint]
|
||||
- disk_total (disk usage in percent) [argument: mountpoint]
|
||||
- disk_used (disk usage in percent) [argument: mountpoint]
|
||||
- entropy (available entropy) [argument: NULL]
|
||||
- gid (gid of current user) [argument: NULL]
|
||||
- hostname [argument: NULL]
|
||||
- ip (ip address) [argument: interface]
|
||||
- ram_free (ram usage in percent) [argument: NULL]
|
||||
- ram_perc (ram usage in percent) [argument: NULL]
|
||||
- ram_total (ram usage in percent) [argument: NULL]
|
||||
- ram_used (ram usage in percent) [argument: NULL]
|
||||
- temp (temperature in degrees) [argument: temperature file]
|
||||
- uid (uid of current user) [argument: NULL]
|
||||
- username (username of current user) [argument: NULL]
|
||||
- vol_perc (alsa volume and mute status in percent) [argument: soundcard]
|
||||
- wifi_perc (wifi signal in percent) [argument: wifi card interface name] */
|
||||
static const struct arg args[] = {
|
||||
/* function format argument */
|
||||
{ cpu_perc, "cpu %4s | ", NULL },
|
||||
{ ram_perc, "ram %3s | ", NULL },
|
||||
{ vol_perc, "vol %4s | ", "default" },
|
||||
{ disk_perc, "ssd %3s | ", "/" },
|
||||
{ datetime, "%s", "%y-%m-%d %H:%M:%S" },
|
||||
};
|
22
srcpkgs/slstatus/template
Normal file
22
srcpkgs/slstatus/template
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Template file for 'slstatus'
|
||||
pkgname=slstatus
|
||||
version=1.0
|
||||
revision=1
|
||||
build_style=gnu-makefile
|
||||
short_desc="Suckless status monitor for dwm"
|
||||
maintainer="Dom H. <dom@hxy.io>"
|
||||
license="GPL-3"
|
||||
homepage="https://git.nulltime.net/${pkgname}"
|
||||
distfiles="https://git.nulltime.net/${pkgname}/snapshot/${pkgname}-${version}.tar.gz"
|
||||
makedepends="alsa-lib-devel libX11-devel"
|
||||
checksum=6b3510d6bc96b39a45cb2e2e02240ed7bc23eecb9b2fe79850dfe9f3b9ffff73
|
||||
|
||||
pre_build() {
|
||||
cp ${FILESDIR}/config.h config.h
|
||||
sed -i 's|^CFLAGS *=|override CFLAGS +=|g' config.mk
|
||||
sed -i 's|^LDFLAGS *=|override LDFLAGS +=|g' config.mk
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
}
|
Loading…
Reference in a new issue