Update shown items to be machine independent

This commit is contained in:
caskd 2019-11-20 21:33:12 +01:00
parent 2b1c75bea5
commit c4a70dd814
No known key found for this signature in database
GPG Key ID: 79DB21404E300A27
3 changed files with 6 additions and 53 deletions

View File

@ -4,7 +4,7 @@
const unsigned int interval = 1000;
/* text to show if no value can be retrieved */
static const char unknown_str[] = "n/a";
static const char unknown_str[] = "";
/* maximum output string length */
#define MAXLEN 2048
@ -63,11 +63,9 @@ static const char unknown_str[] = "n/a";
*/
static const struct arg args[] = {
/* function format argument */
{ load_avg, " %s |", NULL },
{ ram_used, " %sB /", NULL },
{ ram_free, " %sB |", NULL },
{ netspeed_rx, " %sB /", "eno1" },
{ netspeed_tx, " %sB |", "eno1" },
{ uptime, " %s |", NULL },
{ datetime, " %s ", "%a %d/%m %T" },
{ load_avg, " %s |", NULL },
{ ram_used, " %sB /", NULL },
{ ram_free, " %sB |", NULL },
{ uptime, " %s |", NULL },
{ datetime, " %s ", "%a %d/%m %T" },
};

View File

@ -1,20 +0,0 @@
# slstatus version
VERSION = 0
# customize below to fit your system
# paths
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
# flags
CPPFLAGS = -I$(X11INC) -D_DEFAULT_SOURCE
CFLAGS = -std=c99 -pedantic -Wall -Wextra -Os
LDFLAGS = -L$(X11LIB) -s
LDLIBS = -lX11
# compiler and linker
CC = cc

View File

@ -1,25 +0,0 @@
.Dd 2017-08-10
.Dt SLSTATUS 1
.Os
.Sh NAME
.Nm slstatus
.Nd suckless status monitor
.Sh SYNOPSIS
.Nm
.Op Fl s
.Sh DESCRIPTION
.Nm
is a suckless status monitor for window managers that use WM_NAME (e.g. dwm) or
stdin to fill the status bar.
By default,
.Nm
outputs to WM_NAME.
.Sh OPTIONS
.Bl -tag -width Ds
.It Fl s
Write to stdout instead of WM_NAME.
.El
.Sh CUSTOMIZATION
.Nm
can be customized by creating a custom config.h and (re)compiling the source
code. This keeps it fast, secure and simple.