summaryrefslogtreecommitdiffstats
path: root/twin/compton-tde/man/compton-trans.1
blob: 8f4351ac33e2cc46bcc46d70cb4ca1d34067d0d7 (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
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
'\" t
.\"     Title: compton-trans
.\"    Author: [see the "AUTHORS" section]
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
.\"      Date: 03/31/2014
.\"    Manual: LOCAL USER COMMANDS
.\"    Source: compton nightly-20121114
.\"  Language: English
.\"
.TH "COMPTON\-TRANS" "1" "03/31/2014" "compton nightly\-20121114" "LOCAL USER COMMANDS"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
compton-trans \- an opacity setter tool
.SH "SYNOPSIS"
.sp
\fBcompton\-trans\fR [\-w \fIWINDOW_ID\fR] [\-n \fIWINDOW_NAME\fR] [\-c] [\-s] \fIOPACITY\fR
.SH "DESCRIPTION"
.sp
\fBcompton\-trans\fR is a bash script that sets \fI_NET_WM_WINDOW_OPACITY\fR attribute of a window using standard X11 command\-line utilities, including \fBxprop\fR(1) and \fBxwininfo\fR(1)\&. It is similar to \fBtransset\fR(1) or \fBtransset\-df\fR(1)\&.
.SH "OPTIONS"
.PP
\fB\-w\fR \fIWINDOW_ID\fR
.RS 4
Specify the window id of the target window\&.
.RE
.PP
\fB\-n\fR \fIWINDOW_NAME\fR
.RS 4
Specify and try to match a window name\&.
.RE
.PP
\fB\-c\fR
.RS 4
Specify the currently active window as target\&. Only works if EWMH
\fI_NET_ACTIVE_WINDOW\fR
property exists on root window\&.
.RE
.PP
\fB\-s\fR
.RS 4
Select target window with mouse cursor\&. This is the default if no window has been specified\&.
.RE
.PP
\fB\-o\fR \fIOPACITY\fR
.RS 4
Specify the new opacity value for the window\&. This value can be anywhere from 1\-100\&. If it is prefixed with a plus or minus (+/\-), this will increment or decrement from the target window\(cqs current opacity instead\&.
.RE
.SH "EXAMPLES"
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Set the opacity of the window with specific window ID to 75%:
.sp
.if n \{\
.RS 4
.\}
.nf
compton\-trans \-w "$WINDOWID" 75
.fi
.if n \{\
.RE
.\}
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Set the opacity of the window with the name "urxvt" to 75%:
.sp
.if n \{\
.RS 4
.\}
.nf
compton\-trans \-n "urxvt" 75
.fi
.if n \{\
.RE
.\}
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Set current window to opacity of 75%:
.sp
.if n \{\
.RS 4
.\}
.nf
compton\-trans \-c 75
.fi
.if n \{\
.RE
.\}
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Select target window and set opacity to 75%:
.sp
.if n \{\
.RS 4
.\}
.nf
compton\-trans \-s 75
.fi
.if n \{\
.RE
.\}
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Increment opacity of current active window by 5%:
.sp
.if n \{\
.RS 4
.\}
.nf
compton\-trans \-c +5
.fi
.if n \{\
.RE
.\}
.RE
.sp
.RS 4
.ie n \{\
\h'-04'\(bu\h'+03'\c
.\}
.el \{\
.sp -1
.IP \(bu 2.3
.\}
Decrement opacity of current active window by 5%:
.sp
.if n \{\
.RS 4
.\}
.nf
compton\-trans \-c \-\- \-5
.fi
.if n \{\
.RE
.\}
.RE
.SH "BUGS"
.sp
Please report any bugs you find to https://github\&.com/chjj/compton \&.
.SH "AUTHORS"
.sp
Christopher Jeffrey (https://github\&.com/chjj)\&.
.SH "SEE ALSO"
.sp
\fBcompton\fR(1), \fBxprop\fR(1), \fBxwininfo\fR(1)