riow(1): mention having to put the rc pipeline into its own script

This commit is contained in:
Sigrid Solveig Haflínudóttir 2024-05-13 20:28:18 +00:00
parent ff6a0f490a
commit 2734fa8545

View file

@ -7,7 +7,7 @@ riow \- keyboard-controller for rio(1)
.I -s label
]
.SH DESCRIPTION
.I riow
.I Riow
provides keyboard controlling for
.IR rio (1)
in the manner of
@ -19,8 +19,7 @@ It does so by working with
.I /dev/kbdtap
(see \fIrio\fR(4)) and
.IR /dev/wsys .
.I riow
.I Riow
outputs the current desktop number onto fd 3, which can be used by programs like
.IR bar (1).
.SS Running
@ -29,17 +28,24 @@ A minimal example of running
with status output to
.IR bar (1):
.EX
#!/bin/rc
</dev/kbdtap riow >/dev/kbdtap |[3] bar
.EE
Example of running
.I riow
with other programs handling input:
.EX
#!/bin/rc
</dev/kbdtap ktrans -G |
reform/shortcuts |
riow >/dev/kbdtap |[3] bar
.EE
Both examples assume putting the rc pipeline into a script and executing
it with
.IR window (1)
if they are required to start using
.I riostart
script.
.SS Keyboard shortcuts
.TP
.B Kmod4+0…9