-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpicom.conf
582 lines (506 loc) · 15.1 KB
/
picom.conf
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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
#################################
# Shadows #
#################################
# Enabled client-side shadows on windows. Note desktop windows
# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow,
# unless explicitly requested using the wintypes option.
#
# Can be set per-window using rules.
#
# Default: false
shadow = true;
# The blur radius for shadows, in pixels.
#
# Default: 12
shadow-radius = 9;
# The opacity of shadows.
#
# Range: 0.0 - 1.0
# Default: 0.75
# shadow-opacity = .75
# The left offset for shadows, in pixels.
#
# Default: -15
shadow-offset-x = -10;
# The top offset for shadows, in pixels.
#
# Default: -15
shadow-offset-y = -10;
# Red color value of shadow (0.0 - 1.0, defaults to 0).
shadow-red = 1.0;
# Hex string color value of shadow. Formatted like "#RRGGBB", e.g. "#C0FFEE".
#
# Default: #000000
# shadow-color = "#000000"
# Crop shadow of a window fully on a particular monitor to that monitor. This is
# currently implemented using the X RandR extension.
#
# Default: false
# crop-shadow-to-monitor = false
#################################
# Fading #
#################################
# Fade windows in/out when opening/closing and when opacity changes,
# unless no-fading-openclose is used. Can be set per-window using rules.
#
# Default: false
fading = true;
# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
fade-in-step = 0.028;
# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03)
fade-out-step = 0.03;
# The time between steps in fade step, in milliseconds. (> 0, defaults to 10)
fade-delta = 4;
# Do not fade on window open/close.
# no-fading-openclose = false
# Do not fade destroyed ARGB windows with WM frame. Workaround of bugs in Openbox, Fluxbox, etc.
# no-fading-destroyed-argb = false
#################################
# Transparency / Opacity #
#################################
# Opacity of window titlebars and borders.
#
# Range: 0.1 - 1.0
# Default: 1.0 (disabled)
frame-opacity = 0.9;
# Use fixed inactive dim value, instead of adjusting according to window opacity.
#
# Default: false
# inactive-dim-fixed = true
#################################
# Corners #
#################################
# Sets the radius of rounded window corners. When > 0, the compositor will
# round the corners of windows. Does not interact well with
# `transparent-clipping`.
#
# Default: 0 (disabled)
corner-radius = 6;
#################################
# Blur #
#################################
# Parameters for background blurring, see BLUR section in the man page for more information.
# blur-method =
# blur-size = 12
#
# blur-deviation = false
#
# blur-strength = 5
# Blur background of semi-transparent / ARGB windows.
# Can be set per-window using rules.
#
# Default: false
# blur-background = false
# Blur background of windows when the window frame is not opaque.
# Implies:
# blur-background
#
# Default: false
# blur-background-frame = false
# Use fixed blur strength rather than adjusting according to window opacity.
#
# Default: false
# blur-background-fixed = false
# Specify the blur convolution kernel, with the following format:
# example:
# 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";
# Can also be a pre-defined kernel, see the man page.
#
# Default: ""
blur-kern = "3x3box";
#################################
# General Settings #
#################################
# Enable remote control via D-Bus. See the man page for more details.
#
# Default: false
dbus = true;
# Daemonize process. Fork to background after initialization. Causes issues with certain (badly-written) drivers.
# daemon = false
# Specify the backend to use: `xrender`, `glx`, or `egl`.
#
# Default: "xrender"
backend = "glx";
# Use higher precision during rendering, and apply dither when presenting the
# rendered screen. Reduces banding artifacts, but may cause performance
# degradation. Only works with OpenGL.
dithered-present = false;
# Enable/disable VSync.
#
# Default: false
vsync = true;
# Try to detect windows with rounded corners and don't consider them
# shaped windows. The accuracy is not very high, unfortunately.
#
# Has nothing to do with `corner-radius`.
#
# Default: false
detect-rounded-corners = true;
# Detect '_NET_WM_WINDOW_OPACITY' on client windows, useful for window managers
# not passing '_NET_WM_WINDOW_OPACITY' of client windows to frame windows.
#
# Default: false
detect-client-opacity = true;
# Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window,
# rather than listening to 'FocusIn'/'FocusOut' event. May be more accurate,
# provided that the WM supports it.
#
# Default: false
# use-ewmh-active-win = false;
# Unredirect all windows if a full-screen opaque window is detected,
# to maximize performance for full-screen windows. Known to cause flickering
# when redirecting/unredirecting windows.
#
# Default: false
# unredir-if-possible = false
# Delay before unredirecting the window, in milliseconds.
#
# Default: 0.
# unredir-if-possible-delay = 0
# Use 'WM_TRANSIENT_FOR' to group windows, and consider windows
# in the same group focused at the same time.
#
# Default: false
detect-transient = true;
# Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same
# group focused at the same time. This usually means windows from the same application
# will be considered focused or unfocused at the same time.
# 'WM_TRANSIENT_FOR' has higher priority if detect-transient is enabled, too.
#
# Default: false
# detect-client-leader = false
# Use of damage information for rendering. This cause the only the part of the
# screen that has actually changed to be redrawn, instead of the whole screen
# every time. Should improve performance.
#
# Default: false
use-damage = true;
# Use X Sync fence to wait for the completion of rendering of other windows,
# before using their content to render the current screen.
#
# Required for explicit sync drivers, such as nvidia.
#
# Default: false
# xrender-sync-fence = false
# GLX backend: Use specified GLSL fragment shader for rendering window
# contents. Read the man page for a detailed explanation of the interface.
#
# Can be set per-window using rules.
#
# window-shader-fg = "default"
# Force all windows to be painted with blending. Useful if you
# have a `window-shader-fg` that could turn opaque pixels transparent.
#
# Default: false
# force-win-blend = false
# Do not use EWMH to detect fullscreen windows.
# Reverts to checking if a window is fullscreen based only on its size and coordinates.
#
# Default: false
# no-ewmh-fullscreen = false
# Dimming bright windows so their brightness doesn't exceed this set value.
# Brightness of a window is estimated by averaging all pixels in the window,
# so this could comes with a performance hit.
# Setting this to 1.0 disables this behaviour. Requires --use-damage to be disabled.
#
# Default: 1.0 (disabled)
# max-brightness = 1.0
# Make transparent windows clip other windows like non-transparent windows do,
# instead of blending on top of them. e.g. placing a transparent window on top
# of another window will cut a "hole" in that window, and show the desktop background
# underneath.
#
# Default: false
# transparent-clipping = false
# Set the log level. Possible values are:
# "trace", "debug", "info", "warn", "error"
# in increasing level of importance. Case insensitive.
# If using the "TRACE" log level, it's better to log into a file
# using *--log-file*, since it can generate a huge stream of logs.
#
# Default: "warn"
log-level = "warn";
# Set the log file.
# If *--log-file* is never specified, logs will be written to stderr.
# Otherwise, logs will to written to the given file, though some of the early
# logs might still be written to the stderr.
# When setting this option from the config file, it is recommended to use an absolute path.
#
# log-file = "/path/to/your/log/file"
# Write process ID to a file.
# write-pid-path = "/path/to/your/log/file"
# Rule-based per-window options.
#
# See WINDOW RULES section in the man page for how these work.
#rules: ({
# match = "window_type = 'tooltip'";
# fade = false;
# shadow = true;
# opacity = 0.75;
# full-shadow = false;
#}, {
# match = "window_type = 'dock' || "
# "window_type = 'desktop' || "
# "_GTK_FRAME_EXTENTS@";
# blur-background = false;
#}, {
# match = "window_type != 'dock'";
# # shader = "my_shader.frag";
#}, {
# match = "window_type = 'dock' || "
# "window_type = 'desktop'";
# corner-radius = 0;
#}, {
# match = "name = 'Notification' || "
# "class_g = 'Conky' || "
# "class_g ?= 'Notify-osd' || "
# "class_g = 'Cairo-clock' || "
# "_GTK_FRAME_EXTENTS@";
# shadow = false;
#})
# Set either wintypes or window rules
rules = (
{
match = "window_type = 'dock' || "
"window_type = 'desktop' || "
"_GTK_FRAME_EXTENTS@ || "
"_NET_WM_STATE@ *= '_NET_WM_STATE_HIDDEN'";
blur-background = false;
},
{
match = "!focused";
opacity = 0.84;
},
#{
# match = "window_type != 'dock'";
# # shader = "my_shader.frag"; #custom shader GLSL file
#},
{ match = "fullscreen"; shadow = false; opacity = 1; corner-radius = 0; },
{
match = "window_type = 'dock' || "
"window_type = 'desktop' || "
"class_g = 'Xfce4-panel'";
corner-radius = 0;
opacity = 1;
shadow = false;
},
{
match = "name = 'Notification' || "
"class_g = 'Conky' || "
"class_g ?= 'Notify-osd' || "
"class_g = 'Cairo-clock' || "
"_GTK_FRAME_EXTENTS@";
shadow = false;
},
# Tooltip
{
match = "window_type = 'tooltip'";
fade = true;
shadow = false;
opacity = 0.94;
focus = true;
full-shadow = false;
},
# Drag-and-Drop
{
match = "window_type = 'dnd'";
shadow = false;
},
# Popup Menu
{
match = "window_type = 'popup_menu'";
opacity = 0.95;
},
# Dropdown Menu
{
match = "window_type = 'dropdown_menu'";
opacity = 0.95;
shadow = false;
},
# Menu
{
match = "window_type = 'menu'";
opacity = 0.95;
shadow = false;
},
# Utility
{
match = "window_type = 'utility'";
opacity = 0.95;
shadow = false;
},
# Conky
{
match = "class_g = 'conky' || "
"name *= 'oneko'";
shadow = false;
corner-radius = 0;
},
# Notification
{
match = "name = 'Notification' || "
"name = 'xfce4-notifyd' || "
"class_g ?= 'Xfce4-notifyd' || "
"class_g ?= 'Xfce4-power-manager'";
shadow = false;
opacity = 0.95;
},
{
match = "(class_g = 'firefox' && argb) || "
"(class_g = 'thunderbird' && argb) || "
"(class_g = 'Tor Browser' && argb) || "
"name *= 'Chromium' || "
"name *= 'Chrome' || "
"name *= 'VLC'";
shadow = false;
},
);
#https://picom.app/#_window_rules
#CHECK WINDOW CLASS: xprop | grep WM_CLASS
#################################
# Animation Settings #
#################################
#animations = ({
# triggers = ["close", "hide"];
# offset-y = {
# start = 0;
# duration = 0.2;
# end = "- window-height - window-y";
# };
# opacity = 1;
#}, {
# triggers = ["open"];
# preset = "slide-in";
# duration = 1;
#}, {
# triggers = ["open"];
# preset = "slide-out";
# duration = 1;
#}, {
# triggers = ["open"];
# preset = "fly-in";
# duration = 1;
#}, {
# triggers = ["open"];
# preset = "fly-out";
# duration = 1;
#}, {
# triggers = ["open"];
# preset = "appear";
# duration = 1;
#}, {
# triggers = ["open"];
# preset = "disappear";
# duration = 1;
#});
#https://github.com/yshui/picom/blob/dadfe5a70ee67a19ca11f5bdacae51572db12d47/tests/configs/parsing_test.conf#L427
#animations = ({
# triggers = ["open", "show"];
# preset = "appear";
# duration = 0.1;
# scale = 0.9;
#},{
# triggers = ["close", "hide"];
# preset = "disappear";
# duration = 0.1;
# scale = 0.9;
#},{
# triggers = ["geometry"];
# preset = "geometry-change";
# duration = 0.2;
#});
#https://github.com/Hashino/dotfiles/blob/main/.config/picom.conf
animations = (
{
triggers = ["close", "hide"];
opacity = {
curve = "linear";
duration = 0.1;
start = "window-raw-opacity-before";
end = 0;
};
blur-opacity = "opacity";
shadow-opacity = "opacity";
},
{
triggers = ["open", "show"];
opacity = {
curve = "cubic-bezier(0,1,1,1)";
duration = 0.22;
start = 0;
end = "window-raw-opacity";
};
blur-opacity = "opacity";
shadow-opacity = "opacity";
offset-x = "(1 - scale-x) / 2 * window-width";
offset-y = "(1 - scale-y) / 2 * window-height";
scale-x = {
curve = "cubic-bezier(0,1.3,1,1)";
duration = 0.22;
start = 0.8;
end = 1;
};
scale-y = "scale-x";
shadow-scale-x = "scale-x";
shadow-scale-y = "scale-y";
shadow-offset-x = "offset-x";
shadow-offset-y = "offset-y";
},
{
triggers = ["geometry"]
scale-x = {
curve = "cubic-bezier(0,0,0,1.28)";
duration = 0.22;
start = "window-width-before / window-width";
end = 1;
}
scale-y = {
curve = "cubic-bezier(0,0,0,1.28)";
duration = 0.22;
start = "window-height-before / window-height";
end = 1;
}
offset-x = {
curve = "cubic-bezier(0,0,0,1.28)";
duration = 0.22;
start = "window-x-before - window-x";
end = 0;
}
offset-y = {
curve = "cubic-bezier(0,0,0,1.28)";
duration = 0.22;
start = "window-y-before - window-y";
end = 0;
}
shadow-scale-x = "scale-x";
shadow-scale-y = "scale-y";
shadow-offset-x = "offset-x";
shadow-offset-y = "offset-y";
}
)
#https://gitlab.com/codevedas/dotfiles-ayushman/-/blob/i3-nord/.config/picom/picom.conf?ref_type=heads
#picom v12: Type and format specifiers are no longer used in rules, e.g. the :32c in "_GTK_FRAME_EXTENTS@:32c".
#GLX backend: Avoid using stencil buffer, useful if you don’t have a stencil
#buffer. Might cause incorrect opacity when rendering transparent content (but
#never practically happened) and may not work with --blur-background.
#My tests show a 15% performance boost. Recommended.
# glx-no-stencil = true;
#GLX backend: Avoid rebinding pixmap on window damage. Probably could improve
#performance on rapid window content changes, but is known to break things on
#some drivers (LLVMpipe, xf86-video-intel, etc.). Recommended if it works.
# glx-no-rebind-pixmap = true;
#Use X Sync fence to sync clients' draw calls, to make sure all draw calls are
#finished before picom starts drawing. Needed on nvidia-drivers with GLX backend
#for some users.
# ^
# xrender-sync-fence = true; ***
# ^
# dithered-present = true; **
# ^
# use-ewmh-active-win = true; *
# `@include` directive can be used to include additional configuration files.
# Relative paths are search either in the parent of this configuration file
# (when the configuration is loaded through a symlink, the symlink will be
# resolved first). Or in `$XDG_CONFIG_HOME/picom/include`.
#
# @include "extra.conf"