From e7214b60fa65dd375a8c72b146171cfa2236e983 Mon Sep 17 00:00:00 2001 From: Raphael Robatsch Date: Wed, 20 Apr 2022 22:22:07 +0200 Subject: add manpage --- Makefile | 4 ++++ someblocks.1 | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 someblocks.1 diff --git a/Makefile b/Makefile index 1be71aa..f0c027b 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ PREFIX ?= /usr/local +MANPREFIX ?= $(PREFIX)/share/man CC ?= cc output: someblocks.c blocks.def.h blocks.h @@ -12,5 +13,8 @@ clean: install: output mkdir -p $(DESTDIR)$(PREFIX)/bin install -m 0755 someblocks $(DESTDIR)$(PREFIX)/bin/someblocks + mkdir -p $(DESTDIR)$(MANPREFIX)/man1 + install -m 0644 someblocks.1 $(DESTDIR)$(MANPREFIX)/man1/someblocks.1 uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/someblocks + rm -f $(DESTDIR)$(MANPREFIX)/man1/someblocks.1 diff --git a/someblocks.1 b/someblocks.1 new file mode 100644 index 0000000..4b5cf6e --- /dev/null +++ b/someblocks.1 @@ -0,0 +1,22 @@ +.TH someblocks 1 someblocks\-1.0 +.SH NAME +someblocks \- Modular status bar for somebar +.SH SYNOPSIS +.B someblocks +.RB [ \-d +.IR delimiter ] +.RB [ \-s +.IR path ] +.RB [ \-p ] +.SH DESCRIPTION +Modular status bar for somebar written in c. +.SH OPTIONS +.TP +.B \-d +Sets the delimiter between blocks +.TP +.B \-s +Sets the path to the somebar control FIFO. The default value is +$XDG_RUNTIME_DIR/somebar-0 +.SH BUGS +Send bug reports to ~raphi/public-inbox@lists.sr.ht -- cgit v1.2.3