summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-01-05 01:16:26 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-02-27 18:12:44 +0100
commitb88c86f1e7d075b9331feebf6d44a3731ea9354f (patch)
treef724629f8bf3d0679748eb7c74025c3bec11de9b /src
parenta8799c016e292da05ef9c9168be2d4e5e4f01426 (diff)
downloadpa-sink-ctl-b88c86f1e7d075b9331feebf6d44a3731ea9354f.tar.gz
pa-sink-ctl-b88c86f1e7d075b9331feebf6d44a3731ea9354f.tar.bz2
pa-sink-ctl-b88c86f1e7d075b9331feebf6d44a3731ea9354f.zip
Add a manpage using asciidoc
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am9
-rw-r--r--src/pa-sink-ctl-manpage.css25
-rw-r--r--src/pa-sink-ctl.1.txt74
3 files changed, 108 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 4401bfa..3579dc0 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -12,3 +12,12 @@ AM_CPPFLAGS = $(PULSE_CFLAGS) $(PULSE_MAINLOOP_CFLAGS) $(GLIB_CFLAGS) \
pa_sink_ctl_LDADD = $(GLIB_LIBS) $(PULSE_LIBS) $(PULSE_MAINLOOP_LIBS) $(CURSES_LIBS)
noinst_HEADERS = interface.h command.h config.h pa-sink-ctl.h ctl.h unix_signal.h
+
+dist_man_MANS = pa-sink-ctl.1
+EXTRA_DIST = pa-sink-ctl.1.txt
+
+%: %.txt
+ a2x -f manpage $<
+
+%.html: %.txt
+ a2x -f xhtml -d manpage --stylesheet=pa-sink-ctl-manpage.css $<
diff --git a/src/pa-sink-ctl-manpage.css b/src/pa-sink-ctl-manpage.css
new file mode 100644
index 0000000..d75c4a6
--- /dev/null
+++ b/src/pa-sink-ctl-manpage.css
@@ -0,0 +1,25 @@
+/* Overrides for manpage documents */
+h1 {
+ padding-top: 0.5em;
+ padding-bottom: 0.5em;
+ border-top: 2px solid silver;
+ border-bottom: 2px solid silver;
+}
+h2 {
+ border-style: none;
+}
+div.sectionbody {
+ margin-left: 5%;
+}
+
+@media print {
+ div#toc { display: none; }
+}
+
+table,tr,td,th {
+ border: 1px solid black !important;
+}
+
+pre.literallayout {
+ margin-left: 15px;
+}
diff --git a/src/pa-sink-ctl.1.txt b/src/pa-sink-ctl.1.txt
new file mode 100644
index 0000000..d05aa3d
--- /dev/null
+++ b/src/pa-sink-ctl.1.txt
@@ -0,0 +1,74 @@
+pa-sink-ctl(1)
+==============
+
+
+NAME
+----
+pa-sink-ctl - NCurses based PulseAudio control client
+
+SYNOPSIS
+--------
+*pa-sink-ctl*
+
+DESCRIPTION
+-----------
+*pa-sink-ctl* is a ncurses PulseAudio control utitilty that lets you change
+volume, set mute state and change outputs/inputs of PulseAudio controls.
+
+This program takes no command line options.
+
+DEFAULT KEYBINDINGS
+-------------------
+
+ up -- [ UP, k, w ]
+ down -- [ DOWN, j, s ]
+ left -- [ LEFT, h, a ]
+ right -- [ RIGHT, l, d ]
+ mute -- [ M, m, x ]
+ switch -- [ RETURN, SPACE, TAB ]
+ quit -- [ ESCAPE, q ]
+
+See `input' section of `Available Config Groups' for an explanation of these
+commands.
+
+CONFIGURATION
+-------------
+The configuration is read either from '/etc/xdg/pa-sink-ctl/config'
+or '$XDG_CONFIG_HOME/pa-sink-ctl/config' if available.
+The configuration file corresponds to the Desktop Entry Specification.
+Key files consists of groups of key-value pairs, interspersed with comments.
+Value list elements are seperated by '';''.
+
+See '/etc/xdg/pa-sink-ctl/config' for an example config.
+
+Available Config Groups
+~~~~~~~~~~~~~~~~~~~~~~~
+pa-sink-ctl
+^^^^^^^^^^^
+ name-properties - Properties tried in order as control name
+
+input
+^^^^^
+Input values are a list of keys for an action.
+
+ up - Select next control
+ down - Select previous control
+ volume-down - Increase volume
+ volume-up - Decrease Volume
+ mute - Mute currently selected control
+ switch - Move a input / output to next sink / source
+ quit - Quit pa-sink-ctl
+
+priority *
+^^^^^^^^^^
+ match - PulseAudio property to match against
+ value - Value to compare against 'match'
+ priority - Priority to assign to device with matched value
+
+AUTHOR
+------
+Benjamin Franzke & Jan Klemkow
+
+SEE ALSO
+--------
+'pactl(1)', 'pacmd(1)'