commit 85704bb3f41f9eac281fbb4168e75e72e9e63466
parent 097c780f13caab5ee6ca836bba23a73111892670
Author: Nihal Jere <nihal@nihaljere.xyz>
Date: Mon, 1 Aug 2022 13:44:47 -0500
add manpages
Diffstat:
3 files changed, 60 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -1,5 +1,6 @@
.POSIX:
PREFIX = /usr/local
+MANPREFIX = $(PREFIX)/share/man
LIB = -lwayland-client
WAYCOPY_OBJ = protocol/wlr-data-control-unstable-v1.o waycopy.o common.o
WAYPASTE_OBJ = protocol/wlr-data-control-unstable-v1.o waypaste.o common.o
@@ -24,9 +25,11 @@ protocol/wlr-data-control-unstable-v1-client-protocol.h:
install:
install -Dm755 -t $(DESTDIR)$(PREFIX)/bin waycopy waypaste
+ install -Dm644 -t $(DESTDIR)$(MANPREFIX)/man1 waycopy.1 waypaste.1
uninstall:
- rm -f $(DESTDIR)$(PREFIX)/bin/waycopy $(DESTDIR)$(PREFIX)/bin/waypaste
+ rm -f $(DESTDIR)$(PREFIX)/bin/waycopy $(DESTDIR)$(PREFIX)/bin/waypaste \
+ $(DESTDIR)$(MANPREFIX)/man1/waycopy.1 $(DESTDIR)$(MANPREFIX)/man1/waypaste.1
clean:
rm -f *.o $(EXE) protocol/*.[och]
diff --git a/waycopy.1 b/waycopy.1
@@ -0,0 +1,28 @@
+.Dd 2020-07-30
+.Dt WAYCOPY 1
+.Os
+.Sh NAME
+.Nm waycopy
+.Nd copy data to the clipboard
+.Sh SYNOPSIS
+.Nm
+.Op Fl s Ar seat
+.Op Fl t Ar mimetype
+.Sh DESCRIPTION
+.Nm
+copies data from standard in to the clipboard using the wlr-data-control
+Wayland extension protocol.
+.Bl -tag -width Ds
+.It Fl s Ar seat
+The name of the seat to use
+.Po
+defaults to the first seat sent by the compositor
+.Pc
+.It Fl t Ar mimetype
+The mimetype of the data
+.Po
+defaults to "text/plain;charset=utf-8"
+.Pc
+.El
+.Sh AUTHORS
+.An Nihal Jere Aq Mt nihal@nihaljere.xyz
diff --git a/waypaste.1 b/waypaste.1
@@ -0,0 +1,28 @@
+.Dd 2020-07-30
+.Dt WAYPASTE 1
+.Os
+.Sh NAME
+.Nm waypaste
+.Nd paste data from the clipboard
+.Sh SYNOPSIS
+.Nm
+.Op Fl s Ar seat
+.Op Fl t Ar mimetype
+.Sh DESCRIPTION
+.Nm
+pastes data to standard out from the clipboard using the wlr-data-control
+Wayland extension protocol.
+.Bl -tag -width Ds
+.It Fl s Ar seat
+The name of the seat to use
+.Po
+defaults to the first seat sent by the compositor
+.Pc
+.It Fl t Ar mimetype
+The mimetype of the data
+.Po
+defaults to "text/plain;charset=utf-8"
+.Pc
+.El
+.Sh AUTHORS
+.An Nihal Jere Aq Mt nihal@nihaljere.xyz