1. William Giokas
  2. dwmstatus

Commits

William Giokas  committed 3d14c99

Added manual page

So far nothing useful, just some simple info on how to use it and where
to find development stuff.

Signed-off-by: William Giokas <1007380@gmail.com>

  • Participants
  • Parent commits 13df690
  • Branches working

Comments (0)

Files changed (3)

File Makefile

View file
 	@mkdir -p ${DESTDIR}${PREFIX}/bin
 	@cp -f ${NAME} ${DESTDIR}${PREFIX}/bin
 	@chmod 755 ${DESTDIR}${PREFIX}/bin/${NAME}
+	@echo installing manual page to ${DESTDIR}${PREFIX}/man1
+	@mkdir -p  ${DESTDIR}${MANPREFIX}/man1
+	@sed "s/VERSION/${VERSION}/g" < dwmstatus.1 > ${DESTDIR}${MANPREFIX}/man1/dwmstatus.1
+	@chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwmstatus.1
 
 uninstall:
 	@echo removing executable file from ${DESTDIR}${PREFIX}/bin
 	@rm -f ${DESTDIR}${PREFIX}/bin/${NAME}
+	@echo removing manual page from ${DESTDIR}${PREFIX}/man1
+	@rm -f ${DESTDIR}${MANPREFIX}/man1/dwmstatus.1
+
 
 .PHONY: all options clean dist install uninstall

File config.mk

View file
 NAME = dwmstatus
-VERSION = 1.2
+VERSION = 0.1
 
 # Customize below to fit your system
 

File dwmstatus.1

View file
+.TH DWMSTATUS 1 dwmstatus\-VERSION
+.SH NAME
+dwmstatus \- simple status bar for dwm
+.SH SYNOPSIS
+.B dwmstatus
+.SH DESCRIPTION
+dwmstatus is a simple, small status bar for dwm. Unlike large, complex shell
+scripts, this status bar tries to stay clean and concise, has no configuration
+file, and must be recompiled to change settings, similar to dwm. 
+.P
+The default setup has 5 sections (from left to right): network usage, battery
+status, computer load, temperature, and time. These are separated by pipes, and
+read to the specific files in the #defines at the top of the dwmstatus.c file.
+.P
+To edit this status bar, you must change the #defines to match where your
+system information is located and recompile.
+.SH OPTIONS
+.TP
+.B None so far.
+.SH USAGE
+.TP
+Run dwbstatus in a shell and it will put its output into the dwm status bar
+area (the right side of the bar by default).
+.SH SEE ALSO
+.BR dwm (1)
+.SH AUTHORS
+.B Original author: 
+Christoph Lohmann
+.P
+.B Shitty hacks: 
+William Giokas, mostly taken from dwmstatus website patches
+.SH BUGS AND DEVELOPMENT
+Please report any and all bugs and track development at
+.B https://bitbucket.org/KaiSforza/dwmstatus