-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaware.1
More file actions
204 lines (148 loc) · 4.9 KB
/
aware.1
File metadata and controls
204 lines (148 loc) · 4.9 KB
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
.\" (C) Copyright 2015 Christoph Reichenbach
.\" (creichen at gmail.com)
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.TH aware 1 "17 May 2015" "aware 0.1.0" aware
.SH NAME
aware \- flexible information display for X11
.SH DESCRIPTION
.P
\fBaware\fR displays information without grabbing keyboard focus on X11 via GTK.
.SH SYNOPSIS
.B aware
[\fI-s\fR] [\fI-m\fR] [\fImessages\fR] ...
.SH OPTIONS
.TP
.BR \fImessages\fR
One or more display specifications to display. Display specifications
can be plain-text messages text or use special formatting.
\fBaware\fR prints each display specification on an individual line
(except for \fI+line\fR, see below). It treats display specifications
starting with \fI+\fR specially:
+text=foo Same as just "foo"
+img=~/x.png Display image x.png (bounds size, see below)
+script=date Execute `date' and use the result as if it had been a display specification
+line
foo
bar
+endline Align "foo" and "bar" in a single line
.P
The Idisplay types above, \fItext\fR, \fIimg\fR, \fIscript\fR,
and \fIline\fR, permit further configuration:
+text(colour=red)=... Change font colour
+text(font=fixed 12)=.. . Change font style (see FONTS, below)
+img(maxwidth=100)=... Limit image width. Scale down proportionally if exceeded.
+img(maxheight=100)=... Limit image height. Scale down proportionally if exceeded.
+img(width=10)=... Force image width
+img(height=10)=... Force image height
+script(repeat=2.5)=... Re-run script every 2.5 seconds and update
.P
The additional \fIid\fR parameter is admissible for all display types.
This parameter allows messages to be overwritten: any later message
with the same \fIid\fR id overwrites the old message.
.P
Multiple options can be combined using commata:
+text(colour= red, id=1)= red text with ID
+text(colour= green, id=1)= green text overwriting the old red text
.P
Passing \fI-\fR as sole message will make \fBaware\fR read lines from
stdin. Format is the same as before, with each input line
corresponding to one command line argument.
.TP
.BR "\-\-version, \-v"
Display version information and exit.
.TP
.BR "\-\-help, \-h"
Display a short help text and exit.
.TP
.BR "\-\-message, \-m"
Default action; displays the parameter display specifications.
.TP
.BR "\-\-stop, \-s"
Stops displaying. \fBaware\fR ignores this command for a short time
(update_safety_delay) every time it receives an update, to prevent
indavertent message loss. Use "\-\-force\-stop" to override.
.TP
.BR "\-\-force\-stop"
As "\-\-stop", but overrides the safety delay.
.SH CONFIG FILE
The configuration file \fI~/.aware\fR, if present, will override
configuration options, listed here with their defaults:
.TP
.BR "pipe_file_name = ~/.aware-pipe"
File to use for named-pipe communication with the server.
.TP
.BR "pid_file_name = ~/.aware-pid"
File to use for storing the server process ID (PID).
.TP
.BR "update_safety_delay = 1.5"
Safety delay (in seconds): when receiving a message, the server
disables the "\-\-stop" command for this time interval.
.TP
.BR "font = 'Sans Serif 8'"
Default text font (see FONTS, below).
.TP
.BR "bar_color = gray'"
Colour of the window `frame border'.
.TP
.BR "default_fg_color = 'white'"
Default text foreground colour.
.TP
.BR "default_bg_color = 'black'"
Window background colour.
.TP
.BR "column_separator_width = 5"
Number of pixels separating two adjacent entries in the same \fI+line\fR.
.TP
.BR "line_separator_width = 0"
Number of pixels separating adjacent lines.
.TP
.BR "max_width = 768"
Default maximum image width (cf. \fImaxwidth\fR for +img).
.TP
.BR "flash = 0"
Whether to briefly flash the window on updates
.TP
.BR "max_height = 256"
Default maximum image height (cf. \fImaxheight\fR for +img).
.TP
.BR "monitor = "
Monitor to present on. Defaults to current focus, but can be set to a
specific monitor (e.g., eDP-1 or HDMI-1).
.SH FONTS
Fonts follow the syntax
font name [size]
For instance,
Times New Roman 20
or
Fixed
.SH EXAMPLES
Some example uses:
.PP
.ne 3
.nf
.RS
# print green text:
aware '+text(color=green)=this text is green'
# a clock that updates itself every second:
aware '+script(update=1)=date'
# tea timer
sleep 180; aware 'tea is ready'
.RE
.fi
.PP
.SH SEE ALSO
.BR xmessage(1)
.P
This man page was written by Christoph Reichenbach.