]> git.rmz.io Git - dotfiles.git/blob - picom/picom.conf
lazyvim: absorb snacks dashboard
[dotfiles.git] / picom / picom.conf
1 shadow = false;
2
3 #################################
4 # Fading #
5 #################################
6
7
8 # Fade windows in/out when opening/closing and when opacity changes,
9 # unless no-fading-openclose is used.
10 # fading = false
11 #fading = true;
12
13 # Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
14 # fade-in-step = 0.028
15 fade-in-step = 0.03;
16
17 # Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03)
18 # fade-out-step = 0.03
19 fade-out-step = 0.03;
20
21 # The time between steps in fade step, in milliseconds. (> 0, defaults to 10)
22 # fade-delta = 10
23
24 # Specify a list of conditions of windows that should not be faded.
25 fade-exclude = [
26 "class_g = 'slop'",
27 ]
28
29 # Do not fade on window open/close.
30 # no-fading-openclose = false
31
32 # Do not fade destroyed ARGB windows with WM frame. Workaround of bugs in Openbox, Fluxbox, etc.
33 # no-fading-destroyed-argb = false
34
35
36 #################################
37 # Transparency / Opacity #
38 #################################
39
40
41 # Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0)
42 # inactive-opacity = 1
43 inactive-opacity = 1.0;
44
45 # Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default)
46 # frame-opacity = 1.0
47 frame-opacity = 1.0;
48
49 # Let inactive opacity set by -i override the '_NET_WM_OPACITY' values of windows.
50 # inactive-opacity-override = true
51 inactive-opacity-override = false;
52
53 # Default opacity for active windows. (0.0 - 1.0, defaults to 1.0)
54 # active-opacity = 0.8;
55
56 # Dim inactive windows. (0.0 - 1.0, defaults to 0.0)
57 # inactive-dim = 0.2;
58
59 # Specify a list of conditions of windows that should always be considered focused.
60 focus-exclude = [
61 "class_g = 'slop'",
62 ]
63
64 # Use fixed inactive dim value, instead of adjusting according to window opacity.
65 # inactive-dim-fixed = true;
66
67 # Specify a list of opacity rules, in the format `PERCENT:PATTERN`,
68 # like `50:name *= "Firefox"`. picom-trans is recommended over this.
69 # Note we don't make any guarantee about possible conflicts with other
70 # programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows.
71 # example:
72 # opacity-rule = [ "80:class_g = 'URxvt'" ];
73 #
74 # opacity-rule = ["80:class_g = 'URxvt'"];
75
76
77 #################################
78 # Background-Blurring #
79 #################################
80
81
82 # Parameters for background blurring, see the *BLUR* section for more information.
83 # blur-method =
84 # blur-size = 12
85 #
86 # blur-deviation = false
87
88 # Blur background of semi-transparent / ARGB windows.
89 # Bad in performance, with driver-dependent behavior.
90 # The name of the switch may change without prior notifications.
91 #
92 blur-background = true;
93
94 # Blur background of windows when the window frame is not opaque.
95 # Implies:
96 # blur-background
97 # Bad in performance, with driver-dependent behavior. The name may change.
98 #
99 blur-background-frame = true;
100
101
102 # Use fixed blur strength rather than adjusting according to window opacity.
103 # blur-background-fixed = false
104
105
106 # Specify the blur convolution kernel, with the following format:
107 # example:
108 # 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";
109 #
110 # blur-kern = ''
111 blur-kern = "3x3box";
112
113
114 # Exclude conditions for background blur.
115 # blur-background-exclude = []
116 blur-background-exclude = [
117 "class_g = 'slop'",
118 "window_type = 'dock'",
119 "window_type = 'desktop'",
120 "_GTK_FRAME_EXTENTS@:c"
121 ];
122
123 #################################
124 # General Settings #
125 #################################
126
127 # Daemonize process. Fork to background after initialization. Causes issues with certain (badly-written) drivers.
128 # daemon = false
129
130 # Specify the backend to use: `xrender`, `glx`, or `xr_glx_hybrid`.
131 # `xrender` is the default one.
132 #
133 # backend = 'glx'
134 backend = "glx"
135
136 # Enable/disable VSync.
137 # vsync = false
138 vsync = true
139 # vsync = "opengl-swc";
140
141 # Enable remote control via D-Bus. See the *D-BUS API* section below for more details.
142 # dbus = false
143
144 # Try to detect WM windows (a non-override-redirect window with no
145 # child that has 'WM_STATE') and mark them as active.
146 #
147 # mark-wmwin-focused = false
148 mark-wmwin-focused = true;
149
150 # Mark override-redirect windows that doesn't have a child window with 'WM_STATE' focused.
151 # mark-ovredir-focused = false
152 mark-ovredir-focused = true;
153
154 # Try to detect windows with rounded corners and don't consider them
155 # shaped windows. The accuracy is not very high, unfortunately.
156 #
157 # detect-rounded-corners = false
158 detect-rounded-corners = true;
159
160 # Detect '_NET_WM_OPACITY' on client windows, useful for window managers
161 # not passing '_NET_WM_OPACITY' of client windows to frame windows.
162 #
163 # detect-client-opacity = false
164 detect-client-opacity = true;
165
166 # Specify refresh rate of the screen. If not specified or 0, picom will
167 # try detecting this with X RandR extension.
168 #
169 # refresh-rate = 60
170 refresh-rate = 0
171
172 # Limit picom to repaint at most once every 1 / 'refresh_rate' second to
173 # boost performance. This should not be used with
174 # vsync drm/opengl/opengl-oml
175 # as they essentially does sw-opti's job already,
176 # unless you wish to specify a lower refresh rate than the actual value.
177 #
178 # sw-opti =
179
180 # Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window,
181 # rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy,
182 # provided that the WM supports it.
183 #
184 # use-ewmh-active-win = false
185
186 # Unredirect all windows if a full-screen opaque window is detected,
187 # to maximize performance for full-screen windows. Known to cause flickering
188 # when redirecting/unredirecting windows.
189 #
190 # unredir-if-possible = false
191
192 # Delay before unredirecting the window, in milliseconds. Defaults to 0.
193 # unredir-if-possible-delay = 0
194
195 # Conditions of windows that shouldn't be considered full-screen for unredirecting screen.
196 # unredir-if-possible-exclude = []
197
198 # Use 'WM_TRANSIENT_FOR' to group windows, and consider windows
199 # in the same group focused at the same time.
200 #
201 # detect-transient = false
202 detect-transient = true
203
204 # Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same
205 # group focused at the same time. 'WM_TRANSIENT_FOR' has higher priority if
206 # detect-transient is enabled, too.
207 #
208 # detect-client-leader = false
209 detect-client-leader = true
210
211 # Resize damaged region by a specific number of pixels.
212 # A positive value enlarges it while a negative one shrinks it.
213 # If the value is positive, those additional pixels will not be actually painted
214 # to screen, only used in blur calculation, and such. (Due to technical limitations,
215 # with use-damage, those pixels will still be incorrectly painted to screen.)
216 # Primarily used to fix the line corruption issues of blur,
217 # in which case you should use the blur radius value here
218 # (e.g. with a 3x3 kernel, you should use `--resize-damage 1`,
219 # with a 5x5 one you use `--resize-damage 2`, and so on).
220 # May or may not work with *--glx-no-stencil*. Shrinking doesn't function correctly.
221 #
222 # resize-damage = 1
223
224 # Specify a list of conditions of windows that should be painted with inverted color.
225 # Resource-hogging, and is not well tested.
226 #
227 # invert-color-include = []
228
229 # GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer.
230 # Might cause incorrect opacity when rendering transparent content (but never
231 # practically happened) and may not work with blur-background.
232 # My tests show a 15% performance boost. Recommended.
233 #
234 # glx-no-stencil = false
235 glx-no-stencil = true;
236
237 # GLX backend: Avoid rebinding pixmap on window damage.
238 # Probably could improve performance on rapid window content changes,
239 # but is known to break things on some drivers (LLVMpipe, xf86-video-intel, etc.).
240 # Recommended if it works.
241 #
242 # glx-no-rebind-pixmap = false
243 glx-no-rebind-pixmap = true;
244
245 # Disable the use of damage information.
246 # This cause the whole screen to be redrawn everytime, instead of the part of the screen
247 # has actually changed. Potentially degrades the performance, but might fix some artifacts.
248 # The opposing option is use-damage
249 #
250 # no-use-damage = false
251 use-damage = true
252
253 # Use X Sync fence to sync clients' draw calls, to make sure all draw
254 # calls are finished before picom starts drawing. Needed on nvidia-drivers
255 # with GLX backend for some users.
256 #
257 # xrender-sync-fence = false
258
259 # GLX backend: Use specified GLSL fragment shader for rendering window contents.
260 # See `compton-default-fshader-win.glsl` and `compton-fake-transparency-fshader-win.glsl`
261 # in the source tree for examples.
262 #
263 # glx-fshader-win = ''
264
265 # Force all windows to be painted with blending. Useful if you
266 # have a glx-fshader-win that could turn opaque pixels transparent.
267 #
268 # force-win-blend = false
269
270 # Do not use EWMH to detect fullscreen windows.
271 # Reverts to checking if a window is fullscreen based only on its size and coordinates.
272 #
273 # no-ewmh-fullscreen = false
274
275 # Dimming bright windows so their brightness doesn't exceed this set value.
276 # Brightness of a window is estimated by averaging all pixels in the window,
277 # so this could comes with a performance hit.
278 # Setting this to 1.0 disables this behaviour. Requires --use-damage to be disabled. (default: 1.0)
279 #
280 # max-brightness = 1.0
281
282 # Make transparent windows clip other windows like non-transparent windows do,
283 # instead of blending on top of them.
284 #
285 # transparent-clipping = false
286
287 # Set the log level. Possible values are:
288 # "trace", "debug", "info", "warn", "error"
289 # in increasing level of importance. Case doesn't matter.
290 # If using the "TRACE" log level, it's better to log into a file
291 # using *--log-file*, since it can generate a huge stream of logs.
292 #
293 # log-level = "debug"
294 log-level = "warn";
295
296 # Set the log file.
297 # If *--log-file* is never specified, logs will be written to stderr.
298 # Otherwise, logs will to written to the given file, though some of the early
299 # logs might still be written to the stderr.
300 # When setting this option from the config file, it is recommended to use an absolute path.
301 #
302 # log-file = '/path/to/your/log/file'
303
304 # Show all X errors (for debugging)
305 # show-all-xerrors = false
306
307 # Write process ID to a file.
308 # write-pid-path = '/path/to/your/log/file'
309
310 # Window type settings
311 #
312 # 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard:
313 # "unknown", "desktop", "dock", "toolbar", "menu", "utility",
314 # "splash", "dialog", "normal", "dropdown_menu", "popup_menu",
315 # "tooltip", "notification", "combo", and "dnd".
316 #
317 # Following per window-type options are available: ::
318 #
319 # fade, shadow:::
320 # Controls window-type-specific shadow and fade settings.
321 #
322 # opacity:::
323 # Controls default opacity of the window type.
324 #
325 # focus:::
326 # Controls whether the window of this type is to be always considered focused.
327 # (By default, all window types except "normal" and "dialog" has this on.)
328 #
329 # full-shadow:::
330 # Controls whether shadow is drawn under the parts of the window that you
331 # normally won't be able to see. Useful when the window has parts of it
332 # transparent, and you want shadows in those areas.
333 #
334 # redir-ignore:::
335 # Controls whether this type of windows should cause screen to become
336 # redirected again after been unredirected. If you have unredir-if-possible
337 # set, and doesn't want certain window to cause unnecessary screen redirection,
338 # you can set this to `true`.
339 #
340 wintypes:
341 {
342 tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; };
343 dock = { shadow = false; }
344 dnd = { shadow = false; }
345 popup_menu = { opacity = 0.8; }
346 dropdown_menu = { opacity = 0.8; }
347 };