diff --git a/Makefile b/Makefile index 3f8c340..bfa99ad 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,10 @@ normal: proto: cat *.c | egrep '^(void|int|char|unsigned|Window|client)' | sed -r 's/\)/);/' > proto.h +docs: + pandoc -s -w man xoat.md -o xoat.1 + clean: rm -f xoat -all: proto normal \ No newline at end of file +all: docs proto normal \ No newline at end of file diff --git a/PKGBUILD-git b/PKGBUILD-git index ddb02ad..7f6f215 100644 --- a/PKGBUILD-git +++ b/PKGBUILD-git @@ -39,4 +39,6 @@ build() { package() { cd "$srcdir/$_gitname-build" install -Dm 755 $_gitname "$pkgdir/usr/bin/$_gitname" + gzip -c "$_gitname.1" > "$_gitname.1.gz" + install -Dm644 "$_gitname.1.gz" "$pkgdir/usr/share/man/man1/$_gitname.1.gz" } \ No newline at end of file diff --git a/xoat.1 b/xoat.1 new file mode 100644 index 0000000..6f6bd3c --- /dev/null +++ b/xoat.1 @@ -0,0 +1,103 @@ +.TH XOAT 1 "" +.SH NAME +.PP +xoat - X11 Obstinate Asymmetric Tiler +.SH SYNOPSIS +.PP +\f[B]xoat\f[] +.SH DESCRIPTION +.PP +A static tiling window manager. +.PP +License: MIT/X11 +.SH USAGE +.PP +See config.h for customization. +.PP +These are the default key bindings: +.TP +.B Mod4-1 +Focus tile 1. +.RS +.RE +.TP +.B Mod4-2 +Focus tile 2. +.RS +.RE +.TP +.B Mod4-3 +Focus tile 3. +.RS +.RE +.TP +.B Shift-Mod4-1 +Move window to tile 1. +.RS +.RE +.TP +.B Shift-Mod4-2 +Move window to tile 2. +.RS +.RE +.TP +.B Shift-Mod4-3 +Move window to tile 3. +.RS +.RE +.TP +.B Mod4-Tab +Flip top two windows in a tile. +.RS +.RE +.TP +.B Mod4-` (grave) +Cycle all windows in a tile. +.RS +.RE +.TP +.B Mod4-Escape +Close a window. +.RS +.RE +.TP +.B Mod4-f +Toggle fullscreen. +.RS +.RE +.TP +.B Mod4-Right +Focus next monitor. +.RS +.RE +.TP +.B Mod4-Left +Focus previous monitor. +.RS +.RE +.TP +.B Shift-Mod4-Right +Move window to next monitor. +.RS +.RE +.TP +.B Shift-Mod4-Left +Move window to previous monitor. +.RS +.RE +.TP +.B Shift-Mod4-x +Launch dmenu_run +.RS +.RE +.TP +.B F1 +Launch urxvt +.RS +.RE +.SH SEE ALSO +.PP +\f[B]dmenu\f[] (1) +.SH AUTHOR +.PP +Sean Pringle diff --git a/xoat.md b/xoat.md new file mode 100644 index 0000000..1b2a120 --- /dev/null +++ b/xoat.md @@ -0,0 +1,77 @@ +% XOAT(1) + +# NAME + +xoat \- X11 Obstinate Asymmetric Tiler + +# SYNOPSIS + +**xoat** + +# DESCRIPTION + +A static tiling window manager. + +License: MIT/X11 + +# USAGE + +See config.h for customization. + +These are the default key bindings: + +Mod4-1 +: Focus tile 1. + +Mod4-2 +: Focus tile 2. + +Mod4-3 +: Focus tile 3. + +Shift-Mod4-1 +: Move window to tile 1. + +Shift-Mod4-2 +: Move window to tile 2. + +Shift-Mod4-3 +: Move window to tile 3. + +Mod4-Tab +: Flip top two windows in a tile. + +Mod4-` (grave) +: Cycle all windows in a tile. + +Mod4-Escape +: Close a window. + +Mod4-f +: Toggle fullscreen. + +Mod4-Right +: Focus next monitor. + +Mod4-Left +: Focus previous monitor. + +Shift-Mod4-Right +: Move window to next monitor. + +Shift-Mod4-Left +: Move window to previous monitor. + +Shift-Mod4-x +: Launch dmenu_run + +F1 +: Launch urxvt + +# SEE ALSO + +**dmenu** (1) + +# AUTHOR + +Sean Pringle \ No newline at end of file