From e262e9a50602c848e560bfa81931d6216eddace7 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Sun, 12 Jun 2022 11:48:51 +0300 Subject: [PATCH] Add manpage --- build-release.sh | 5 +++++ manpage.adoc | 31 +++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 manpage.adoc diff --git a/build-release.sh b/build-release.sh index a34f60e..fa615a5 100755 --- a/build-release.sh +++ b/build-release.sh @@ -23,6 +23,7 @@ printf "\e[34m Copying needed files for release\e[0m\n\n" mkdir release cp target/release/lqsd release/ cp LICENSE release/ +cp manpage.adoc release/ cd release printf "\e[34m Signing binary with GPG\e[0m\n" @@ -45,6 +46,10 @@ md5sum -c lqsd.md5 printf "\n\n" +printf "\e[34m Building documentation\e[0m\n" +asciidoc -b manpage manpage.adoc + +printf "\n\n" printf "\e[34m Compressing to tar.zst\e[0m\n\n" tar cf lqsd_${VERSION_NR}_x86_64.tar.zst * --zstd diff --git a/manpage.adoc b/manpage.adoc new file mode 100644 index 0000000..2a7ec20 --- /dev/null +++ b/manpage.adoc @@ -0,0 +1,31 @@ += lqsd(1) +Marko Korhonen +v0.1.1 +:doctype: manpage +:manmanual: LQSD +:mansource: LQSD +:man-linkstyle: pass:[blue R < >] + +== Name + +lqsd - dim your screen smoothly + +== Synopsis + +*lqsd* [_OPTION_] + +== Options + +*-d, --dim*:: + Dims the screen to idle level set in configuration +*-r, --resume*:: + Sets the backlight to the value it was before dimming +*--copy-config*:: + Copies the default config file to $XDG_CONFIG_HOME/lqsd +*-h, --help*:: + Prints help information +*-V, --version*:: + Prints version information + +== Resources +*Project source code:* https://git.korhonen.cc/FunctionalHacker/lqsd