Update shown items to be machine independent
This commit is contained in:
parent
2b1c75bea5
commit
c4a70dd814
14
config.h
14
config.h
|
@ -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" },
|
||||
};
|
||||
|
|
20
config.mk
20
config.mk
|
@ -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
|
25
slstatus.1
25
slstatus.1
|
@ -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.
|
Loading…
Reference in New Issue