Debian Codegraph @

picom.sample.conf

raw symbols SCIP
1 #====================================================#
2 # #
3 # picom.conf sample #
4 # #
5 # To learn more about how to configure picom #
6 # go to https://picom.app/ #
7 # #
8 #====================================================#
9
10 #################################
11 # Shadows #
12 #################################
13
14 # Enabled client-side shadows on windows. Note desktop windows
15 # (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow,
16 # unless explicitly requested using the wintypes option.
17 #
18 # Can be set per-window using rules.
19 #
20 # Default: false
21 shadow = true;
22
23 # The blur radius for shadows, in pixels.
24 #
25 # Default: 12
26 shadow-radius = 7;
27
28 # The opacity of shadows.
29 #
30 # Range: 0.0 - 1.0
31 # Default: 0.75
32 # shadow-opacity = .75
33
34 # The left offset for shadows, in pixels.
35 #
36 # Default: -15
37 shadow-offset-x = -7;
38
39 # The top offset for shadows, in pixels.
40 #
41 # Default: -15
42 shadow-offset-y = -7;
43
44 # Hex string color value of shadow. Formatted like "#RRGGBB", e.g. "#C0FFEE".
45 #
46 # Default: #000000
47 # shadow-color = "#000000"
48
49 # Crop shadow of a window fully on a particular monitor to that monitor. This is
50 # currently implemented using the X RandR extension.
51 #
52 # Default: false
53 # crop-shadow-to-monitor = false
54
55
56 #################################
57 # Fading #
58 #################################
59
60 # Fade windows in/out when opening/closing and when opacity changes,
61 # unless no-fading-openclose is used. Can be set per-window using rules.
62 #
63 # Default: false
64 fading = true;
65
66 # Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
67 fade-in-step = 0.03;
68
69 # Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03)
70 fade-out-step = 0.03;
71
72 # The time between steps in fade step, in milliseconds. (> 0, defaults to 10)
73 # fade-delta = 10
74
75 # Do not fade on window open/close.
76 # no-fading-openclose = false
77
78 # Do not fade destroyed ARGB windows with WM frame. Workaround of bugs in Openbox, Fluxbox, etc.
79 # no-fading-destroyed-argb = false
80
81
82 #################################
83 # Transparency / Opacity #
84 #################################
85
86 # Opacity of window titlebars and borders.
87 #
88 # Range: 0.1 - 1.0
89 # Default: 1.0 (disabled)
90 frame-opacity = 0.7;
91
92 # Use fixed inactive dim value, instead of adjusting according to window opacity.
93 #
94 # Default: false
95 # inactive-dim-fixed = true
96
97 #################################
98 # Corners #
99 #################################
100
101 # Sets the radius of rounded window corners. When > 0, the compositor will
102 # round the corners of windows. Does not interact well with
103 # `transparent-clipping`.
104 #
105 # Default: 0 (disabled)
106 corner-radius = 0
107
108 #################################
109 # Blur #
110 #################################
111
112 # Parameters for background blurring, see BLUR section in the man page for more information.
113 # blur-method =
114 # blur-size = 12
115 #
116 # blur-deviation = false
117 #
118 # blur-strength = 5
119
120 # Blur background of semi-transparent / ARGB windows.
121 # Can be set per-window using rules.
122 #
123 # Default: false
124 # blur-background = false
125
126 # Blur background of windows when the window frame is not opaque.
127 # Implies:
128 # blur-background
129 #
130 # Default: false
131 # blur-background-frame = false
132
133 # Use fixed blur strength rather than adjusting according to window opacity.
134 #
135 # Default: false
136 # blur-background-fixed = false
137
138
139 # Specify the blur convolution kernel, with the following format:
140 # example:
141 # blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1";
142 # Can also be a pre-defined kernel, see the man page.
143 #
144 # Default: ""
145 blur-kern = "3x3box";
146
147 #################################
148 # General Settings #
149 #################################
150
151 # Enable remote control via D-Bus. See the man page for more details.
152 #
153 # Default: false
154 # dbus = true
155
156 # Daemonize process. Fork to background after initialization. Causes issues with certain (badly-written) drivers.
157 # daemon = false
158
159 # Specify the backend to use: `xrender`, `glx`, or `egl`.
160 #
161 # Default: "xrender"
162 backend = "glx"
163
164 # Use higher precision during rendering, and apply dither when presenting the
165 # rendered screen. Reduces banding artifacts, but may cause performance
166 # degradation. Only works with OpenGL.
167 dithered-present = false;
168
169 # Enable/disable VSync.
170 #
171 # Default: false
172 vsync = true;
173
174 # Try to detect windows with rounded corners and don't consider them
175 # shaped windows. The accuracy is not very high, unfortunately.
176 #
177 # Has nothing to do with `corner-radius`.
178 #
179 # Default: false
180 detect-rounded-corners = true;
181
182 # Detect '_NET_WM_WINDOW_OPACITY' on client windows, useful for window managers
183 # not passing '_NET_WM_WINDOW_OPACITY' of client windows to frame windows.
184 #
185 # Default: false
186 detect-client-opacity = true;
187
188 # Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window,
189 # rather than listening to 'FocusIn'/'FocusOut' event. May be more accurate,
190 # provided that the WM supports it.
191 #
192 # Default: false
193 # use-ewmh-active-win = false
194
195 # Unredirect all windows if a full-screen opaque window is detected,
196 # to maximize performance for full-screen windows. Known to cause flickering
197 # when redirecting/unredirecting windows.
198 #
199 # Default: false
200 # unredir-if-possible = false
201
202 # Delay before unredirecting the window, in milliseconds.
203 #
204 # Default: 0.
205 # unredir-if-possible-delay = 0
206
207 # Use 'WM_TRANSIENT_FOR' to group windows, and consider windows
208 # in the same group focused at the same time.
209 #
210 # Default: false
211 detect-transient = true;
212
213 # Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same
214 # group focused at the same time. This usually means windows from the same application
215 # will be considered focused or unfocused at the same time.
216 # 'WM_TRANSIENT_FOR' has higher priority if detect-transient is enabled, too.
217 #
218 # Default: false
219 # detect-client-leader = false
220
221 # Use of damage information for rendering. This cause the only the part of the
222 # screen that has actually changed to be redrawn, instead of the whole screen
223 # every time. Should improve performance.
224 #
225 # Default: false
226 use-damage = true;
227
228 # Use X Sync fence to wait for the completion of rendering of other windows,
229 # before using their content to render the current screen.
230 #
231 # Required for explicit sync drivers, such as nvidia.
232 #
233 # Default: false
234 # xrender-sync-fence = false
235
236 # GLX backend: Use specified GLSL fragment shader for rendering window
237 # contents. Read the man page for a detailed explanation of the interface.
238 #
239 # Can be set per-window using rules.
240 #
241 # window-shader-fg = "default"
242
243 # Force all windows to be painted with blending. Useful if you
244 # have a `window-shader-fg` that could turn opaque pixels transparent.
245 #
246 # Default: false
247 # force-win-blend = false
248
249 # Do not use EWMH to detect fullscreen windows.
250 # Reverts to checking if a window is fullscreen based only on its size and coordinates.
251 #
252 # Default: false
253 # no-ewmh-fullscreen = false
254
255 # Dimming bright windows so their brightness doesn't exceed this set value.
256 # Brightness of a window is estimated by averaging all pixels in the window,
257 # so this could comes with a performance hit.
258 # Setting this to 1.0 disables this behaviour. Requires --use-damage to be disabled.
259 #
260 # Default: 1.0 (disabled)
261 # max-brightness = 1.0
262
263 # Make transparent windows clip other windows like non-transparent windows do,
264 # instead of blending on top of them. e.g. placing a transparent window on top
265 # of another window will cut a "hole" in that window, and show the desktop background
266 # underneath.
267 #
268 # Default: false
269 # transparent-clipping = false
270
271 # Set the log level. Possible values are:
272 # "trace", "debug", "info", "warn", "error"
273 # in increasing level of importance. Case insensitive.
274 # If using the "TRACE" log level, it's better to log into a file
275 # using *--log-file*, since it can generate a huge stream of logs.
276 #
277 # Default: "warn"
278 # log-level = "warn";
279
280 # Set the log file.
281 # If *--log-file* is never specified, logs will be written to stderr.
282 # Otherwise, logs will to written to the given file, though some of the early
283 # logs might still be written to the stderr.
284 # When setting this option from the config file, it is recommended to use an absolute path.
285 #
286 # log-file = "/path/to/your/log/file"
287
288 # Write process ID to a file.
289 # write-pid-path = "/path/to/your/log/file"
290
291 # Rule-based per-window options.
292 #
293 # See WINDOW RULES section in the man page for how these work.
294 rules: ({
295 match = "window_type = 'tooltip'";
296 fade = false;
297 shadow = true;
298 opacity = 0.75;
299 full-shadow = false;
300 }, {
301 match = "window_type = 'dock' || "
302 "window_type = 'desktop' || "
303 "_GTK_FRAME_EXTENTS@";
304 blur-background = false;
305 }, {
306 match = "window_type != 'dock'";
307 # shader = "my_shader.frag";
308 }, {
309 match = "window_type = 'dock' || "
310 "window_type = 'desktop'";
311 corner-radius = 0;
312 }, {
313 match = "name = 'Notification' || "
314 "class_g = 'Conky' || "
315 "class_g ?= 'Notify-osd' || "
316 "class_g = 'Cairo-clock' || "
317 "_GTK_FRAME_EXTENTS@";
318 shadow = false;
319 })
320
321 # `@include` directive can be used to include additional configuration files.
322 # Relative paths are search either in the parent of this configuration file
323 # (when the configuration is loaded through a symlink, the symlink will be
324 # resolved first). Or in `$XDG_CONFIG_HOME/picom/include`.
325 #
326 # @include "extra.conf"