From 6f794ce511c3b88f5e6ee177da94d41952cb9080 Mon Sep 17 00:00:00 2001 From: Stephan Lachnit Date: Wed, 10 Nov 2021 09:01:26 +0100 Subject: [PATCH] add man page for mangoapp Adds man page for mangoapp with content mostly taken from https://github.com/flightlessmango/MangoHud/issues/625#issuecomment-961378077. Signed-off-by: Stephan Lachnit --- data/mangoapp.1 | 39 +++++++++++++++++++++++++++++++++++++++ data/meson.build | 11 ++++++++++- 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 data/mangoapp.1 diff --git a/data/mangoapp.1 b/data/mangoapp.1 new file mode 100644 index 00000000..644f9a61 --- /dev/null +++ b/data/mangoapp.1 @@ -0,0 +1,39 @@ +.\" Manpage for mangoapp. +.TH mangoapp 1 "" "" "mangoapp" + +.SH NAME +mangoapp \- transparent background application with a built in mangohud + +.SH SYNOPSIS +\fBmangoapp\fR + +.SH DESCRIPTION +MangoHud is a Vulkan/OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more. +.PP +Mangoapp is a transparent background opengl application with a built in MangoHud. It's designed to be run inside a +gamescope instance which will display mangoapp ontop of gamescopes output. It also takes frame information from +gamescope. The purpose of this is to "easily" make MangoHud compatible with any application, or at least any +application that gamescope can run. This solves issues with some OpenGL games and certain ports that have stdc++ issues +as it's no longer directly injected into the game. + +.SH USAGE +Create a script (e.g. \fBrun.sh\fR) containing the app you want to run (e.g. \fBvkcube\fR) and \fBmangoapp\fR like so: +.PP +.RS 4 +.EX +#!/bin/sh + +vkcube& +mangoapp +.EE +.RE +.PP +And then run it with \fBgamescope ./run.sh\fR. + +.SH SEE ALSO +mangohud(1) + +.SH ABOUT +MangoHud development takes place at \fIhttps://github.com/flightlessmango/MangoHud\fR. +.br +Benchmarks created with MangoHud can be uploaded to \fIhttps://flightlessmango.com\fR. diff --git a/data/meson.build b/data/meson.build index 2a77575c..28d9d47c 100644 --- a/data/meson.build +++ b/data/meson.build @@ -1,4 +1,13 @@ +man1dir = join_paths(get_option('mandir'), 'man1') + install_man( files('mangohud.1'), - install_dir: join_paths(get_option('mandir'), 'man1'), + install_dir: man1dir, ) + +if get_option('mangoapp') + install_man( + files('mangoapp.1'), + install_dir: man1dir, + ) +endif