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