summaryrefslogtreecommitdiff
path: root/docs/ueberzugpp.1.in
blob: f95296a80a762ca2ecb689bb646aae2efb760bb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
.TH UEBERZUGPP 1 "2023 May" "Ueberzugpp @ueberzugpp_VERSION@"

.SH NAME
ueberzugpp \- display images in a terminal

.SH SYNOPSIS
.SY ueberzugpp
.RI [ options ]

.SH DESCRIPTION
.PP
.B ueberzugpp
is a program meant to display images in a terminal in a with an IPC.

.SH OPTIONS

.TP
.BR \-h ", " \-\-help
Show help text.

.TP
.BR \-\-version
Show version

.TP
.BR \-\-use\-escape\-codes
Use escape codes to get terminal capabilities

.TP
.BR \-\-no\-stdin
Do not listen on stdin for commands

.TP
.BR \-\-no\-cache
Disable caching of resized images

.TP
.BR \-\-no\-opencv
Do not use OpenCV, use Libvips instead

.TP
.BR \-o ", " \-\-output
Image output method, valid values for this include:
.PP
.RS
.I x11 " (May not be available if disabled in compilation)"
.br
.I sixel
.br
.I kitty
.br
.I iterm2
.br
.I wayland " (May not be available if disabled in compilation)"
.br
.I chafa
.RE

.TP
.BR \-p ", " \-\-parser
.B UNUSED ", "
only present for backwards compatibility

.TP
.BR \-l ", " \-\-loader
.B UNUSED ", "
only present for backwards compatibility

.SH STDIN

.PP
Ueberzugpp reads commands through stdin. Or through the unix socket located at /tmp/ueberzug_${USER}.sock
.PP
Commands should be in JSON form, as described in the JSON IPC section

.SH JSON IPC

.PP
There are two actions,
.I add
and
.I remove
.PP

.SS
.B add
action json schema
.PP
Requried Keys

.RE
.TP
.B action " (string)"
should be
.I add

.TP
.B path " (string)"
the path to the image to use

.TP
.B identifier " (string)"
an identifier for the image, so that it can be removed with the remove action

.TP
.B One of, width/height, or max_width/max_height

.TP
.B width " (integer)"
width of the image

.TP
.B max_width " (integer)"
maximum width of the image

.TP
.B height " (integer)"
height of the image

.TP
.B max_height " (integer)"
maximum height of the image

.TP
.B x " (integer)"
the column position in the terminal

.TP
.B y " (integer)"
the row position in the terminal

.PP
Optional keys

.TP
.B scaler " (string)"
can be fit_contain or forced_cover.
.br
Both base the scale on whichever is larger, the width, or height of the image

.RE

.SS
.B remove
action json schema
.PP
Requried Keys

.RS
.TP
.B action " (string)"
should be remove

.TP
.B identifier " (string)"
The identifier of the image to remove

.RE

.SH EXAMPLE

.PP
Create a fifo file named fifo, and have an image in the current folder named image.png for this example to work

.PP
ueberzugpp layer -o sixel < fifo &

.PP
echo '{"path": "./image.png", "action": "add", "identifier": "image", "x": 0, "y": 0, "width": 20, "height": 20}' > fifo