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
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
|
.nh
.TH Compfy
.SH Guide for Configuring Compfy
.SS Config can be placed at either \fB\fC~/.config/compfy.conf\fR or \fB\fC~/.config/compfy/compfy.conf\fR
.SH Basic Syntax
.PP
Variables are formatted like this
.PP
.RS
.nf
variable-name = value;
.fi
.RE
.PP
All values require a semi-colon on the end as shown above.
.PP
When declaring a animation-name you need to use double quotes like such
.PP
.RS
.nf
animation-for-unmap-window = "slide-down";
.fi
.RE
.PP
When using rule-sets there are two ways to provide windows to it.
.PP
With almost every rule-set it will follow this syntax and structure.
.PP
.RS
.nf
rule-set = [
"class_g = 'foo'" # Select windows by classname
"name = 'bar'" # Select windows by name
];
.fi
.RE
.PP
In the example you replace \fB\fCfoo\fR with the \fB\fCWM_CLASS\fR which can be found using the \fB\fCxprop\fR command provided by xorg-xprop
\[la]https://archlinux.org/packages/extra/x86_64/xorg-xprop/\[ra] on Arch and \fB\fCxorg.xprop\fR on NixOS.
.PP
Sometimes \fB\fCxprop\fR will output multiple class names. If the first class name does not work, try the second one.
.SH Options
.SH corner-radius
.PP
\fIBy default this is set to 12 in the sample config\fP
.PP
Adjusts the window corner rounding in pixels.
.SH rounded-corners-exclude []
.PP
\fIBy default this rule-set is empty\fP
.PP
Here you can declare rules of what windows will not have their borders rounded. This can be good for some games that go full screen but still have rounded borders.
.PP
Here is an example
.PP
.RS
.nf
rounded-corners-exclude = [
"class_g = 'Alacritty'",
];
.fi
.RE
.SH corners-rule []
.PP
\fIBy default this rule-set is empty\fP
.PP
Within this rule-set you can explicitly declare the corner-radius of individual windows based on their name or class name attributes.
.PP
It functions in a similar way to \fB\fCopacity-rule\fR in that the number you put before the window name is the amount of rounding you want applied to that window.
.PP
Currently you can only use number 1-100. This may be fixed in later updates.
.PP
.RS
.nf
corners-rule = [
"20:class_g = 'Polybar'",
"15:class_g = 'Dunst'",
];
.fi
.RE
.SH shadow
.PP
\fIBy default this will be set to \fB\fCfalse\fR in the sample config\fP
.PP
Enables shadows for windows.
.PP
Shadows tend to be a bit finicky on some window managers, so make sure to play around with it and see what is best for you.
.SH shadow-radius
.PP
\fIBy default this is set to 12\fP
.PP
Shadow radius/roundness in pixels.
.SH shadow-opacity
.PP
\fIBy default this is set to 0.75 (0.0 ~ 1.0)\fP
.PP
Set the opacity of the window shadow.
.SH shadow-offset-x
.PP
\fIBy default this is set to -15 (-100 ~ 100)\fP
.PP
Set the offset of the shadow along the x-axis.
.SH shadow-offset-y
.PP
\fIBy default this is set to -15 (-100 ~ 100)\fP
.PP
Set the offset of the shadow along the y-axis.
.SH shadow-color
.PP
The color for shadows as a HEX code.
.PP
.RS
.nf
shadow-color = "#101010";
.fi
.RE
.SH shadow-exclude []
.PP
\fIBy default this rule-set is empty\fP
.PP
Declare windows which will not render a shadow.
.SH fading
.PP
\fIBy default this is set to \fB\fCtrue\fR in the sample config\fP
.PP
\fIFade windows in/out when opening/closing and when opacity changes\fP
.PP
Fading is required for unmap animations to work.
.SH fade-in-step
.PP
\fIBy default this is set to \fB\fC0.03\fR in the sample config\fP
.PP
\fIOpacity change between steps while fading in. (0.01 - 1.0)\fP
.PP
Increasing this value will result in faster fading in of windows.
Decreasing makes the fading in of windows take longer. (This does not means the animations take longer, just the fading).
.SH fade-out-step
.PP
\fIBy default this is set to \fB\fC0.03\fR in the sample config\fP
.PP
\fIOpacity change between steps while fading out. (0.01 - 1.0)\fP
.PP
Increasing this value will result in faster fading out AND animating out of windows.
Decreasing this makes fading and animating out take longer.
.SH fade-delta
.PP
\fIBy default this is set to \fB\fC5\fR\fP
.PP
\fIThe time between steps in fade step, in milliseconds. ( > 0)\fP
.PP
Currently unsure what this does but it is recommended to keep it at the default.
.SH fade-exclude []
.PP
\fIEmpty by default\fP
.PP
\fISpecify a list of windows that should not be faded.\fP
.PP
.RS
.nf
fade-exclude = [
"class_g = 'foo'"
]
.fi
.RE
.SH inactive-opacity
.PP
\fIBy default this is set to 1.0 (0.0 - 1.0)\fP
.PP
Declares the opacity of unfocused windows.
.SH frame-opacity
.PP
\fIBy default this is set to 1.0 (0.0 - 1.0)\fP
.PP
Declares the opacity of window borders and title-bars.
.SH inactive-opacity-override
.PP
\fIBy default this is set to false (true/false)\fP
.PP
If this is not enabled then windows which have their opacity set in \fB\fCopacity-rule\fR or \fB\fCwintypes\fR will not be affected by \fB\fCinactive-opacity\fR\&. Enable this to fix that.
.SH active-opacity
.PP
\fIBy default this is set to 1.0 (0.0 - 1.0)\fP
.PP
Declares the opacity of focused windows.
.SH active-opacity-exclude []
.PP
\fIBy default this rule-set is empty\fP
.PP
A list of windows that should never have their opacity changed by \fB\fCactive-opacity\fR when focused.
.SH inactive-exclude []
.PP
\fIBy default this rule-set is empty\fP
.PP
A list of windows that should have their \fB\fCinactive-opacity\fR set to whatever the \fB\fCactive-opacity\fR is. Unless the window is also in \fB\fCactive-opacity-exclude\fR then it will be set to \fB\fC1.0\fR or if it is set in \fB\fCopacity-rule\fR it will use the opacity set there as the \fB\fCinactive-opacity\fR\&.
.PP
Also excludes inactive dimming.
.SH focus-exclude []
.PP
\fIBy default this rule-set is empty\fP
.PP
Declare windows that should always be considered to be focused by the compositor.
.SH opacity-rule []
.PP
\fIBy default this rule-set is empty\fP
.PP
Declare windows that should have their opacity hard set. As an example. Where 95 is can be anything between (0 - 100)
.PP
.RS
.nf
opacity-rule = [
"95:class_g = 'Alacritty'",
];
.fi
.RE
.SH blur-background
.PP
\fIBy default this is set to false\fP
.PP
Toggle background blurring
.SH blur-method
.PP
\fIBy default this is set to \fB\fCnone\fR\fP
.PP
Selects the blur method. Available options are:
.RS
.IP \(bu 2
none
.IP \(bu 2
kernel
.IP \(bu 2
gaussian
.IP \(bu 2
box
.IP \(bu 2
dual_kawase (most used)
.RE
.SH blur-radius
.PP
\fIBy default this is set to 3\fP
.PP
Sets the radius of the blur.
.SH blur-strength
.PP
\fIBy default this is set to 5\fP
.PP
Sets the strength/intensity of the blur.
.SH blur-whitelist
.PP
\fIDefaults to \fB\fCtrue\fR (true / false)\fP
.PP
Toggle whether you want to use blurring on a whitelist basis(blur-include) or a blacklist basis(blur-exclude).
.SH blur-include
.PP
\fIBy default this rule set is empty\fP
.PP
This acts a a whitelist for blurring the background of windows. See the example below.
Using a whitelist helps to reduce hardware consumption.
.PP
.RS
.nf
blur-rule = [
"class_g = 'kitty'",
"class_g = 'Emacs'",
"class_g = 'Rofi'"
];
.fi
.RE
.SH blur-exclude
.PP
\fIBy default this rule set is empty\fP
.PP
When used with \fB\fCblur-whitelist = false;\fR this will exclude specific windows from having their background blurred.
.PP
.RS
.nf
blur-exclude = [
"class_g = 'Firefox'"
];
.fi
.RE
.PP
The part of the wiki you have probably all come for.
.SH animations
.PP
\fIBy default this option is set to \fB\fCtrue\fR\fP(true/false)
.PP
\fIToggles whether animations should be used for windows\fP
.SH animation-stiffness
.PP
\fIBy default this is set to \fB\fC100\fR\fP
.PP
\fIChanges the stiffness of animations\fP
.PP
What stiffness basically is inferring is how much the window geometry will be stretched when opening/closing windows. It's best illustrated in the video below.
.PP
With a higher stiffness the windows go to the final animation position faster resulting in a snappier looking transition.
.SH animation-window-mass
.PP
\fIBy default this is set to \fB\fC0.5\fR\fP
.PP
\fIChanges the mass of windows\fP
.PP
Modifying the mass of windows makes them virtually heavier and therefore slower to animate.
.SH animation-dampening
.PP
\fIBy default this is set to \fB\fC10\fR\fP
.PP
\fIChanges the dampening applied to windows during the animation\fP
.PP
This setting basically does what it says. It dampens the animation of windows.
.PP
The more windows are dampened, the slower/softer they come into and out of view.
.SH animation-clamping
.PP
\fIBy default this is set to \fB\fCfalse\fR\fP (true/false)
.PP
\fIToggles window clamping\fP
.PP
Stop the animation from making the window exceed its set geometry. Shoutout to @thecodsman
\[la]https://github.com/thecodsman\[ra] for finding this out.
.PP
Basically if you are using a animation setting that would make the window extend larger than it would be after the animation has played then it will cut the animation off once the window reaches its physical geometry.
.SH animation-for-open-window
.PP
\fIBy default this is set to \fB\fCzoom\fR\fP
.PP
Options:
- \fB\fCfly-in\fR \fINewly opened windows will fly in from a random position on the edge of the screen\fP
- \fB\fCzoom\fR \fINewly opened windows will zoom in from the center point of wherever they were going to appear\fP
- \fB\fCslide-up\fR \fINewly opened windows will slide up from the bottom of screen\fP
- \fB\fCslide-down\fR \fINewly opened windows will slide down from the top of the screen\fP
- \fB\fCslide-left\fR \fINewly opened windows will slide in from the right of where they are opened\fP
- \fB\fCslide-right\fR \fINewly opened windows will slide in from the left of where they are opened\fP
- \fB\fCauto\fR \fINewly opened windows will not have an animation\fP
.PP
Feel free to play around with these options to see which animation you prefer.
.SH animation-for-unmap-window
.PP
\fIBy default this is set to \fB\fCzoom\fR\fP
.PP
\fIDefines the animation for when windows are closed/killed\fP
.PP
Options:
- \fB\fCfly-in\fR \fINewly closed windows will fly out to a random position on the edge of the screen\fP
- \fB\fCzoom\fR \fINewly closed windows will zoom out from the center point of the window\fP
- \fB\fCslide-up\fR \fINewly closed windows will slide up from where they were closed\fP
- \fB\fCslide-down\fR \fINewly closed windows will slide down from where they were closed\fP
- \fB\fCslide-left\fR \fINewly closed windows will slide out from the right of where they are opened\fP
- \fB\fCslide-right\fR \fINewly closed windows will slide out from the left of where they are opened\fP
- \fB\fCauto\fR \fINewly closed windows will not have an animation\fP
.PP
Feel free to play around with these options to see which animation you prefer.
.SH animation-open-exclude
.PP
\fIBy default this rule-set is empty\fP
.PP
Define windows that will not render any open animation.
.PP
Example
.PP
.RS
.nf
animation-open-exclude = [
"class_g = 'Alacritty'"
];
.fi
.RE
.SH animation-unmap-exclude
.PP
\fIBy default this rule-set is empty\fP
.PP
Define windows that will not render any closing animation.
.PP
Example
.PP
.RS
.nf
animation-unmap-exclude = [
"class_g = 'Alacritty'"
];
.fi
.RE
.SH Using wintypes.
.PP
In picom you can set many options on the basis of what the windows 'type' is.
.PP
Listed below are the available types.
I can't say what applications or windows all of these link to so you will have to play with them to find what works.
.PP
.RS
.nf
wintypes:
{
desktop = {};
dock = {};
toolbar = {};
menu = {};
utility = {};
splash = {};
dialog = {};
normal = {};
dropdown_menu = {};
popup_menu = {};
tooltip = {};
notification = {};
combo = {};
dnd = {};
}
.fi
.RE
.SH Wintype Options
.PP
You can pass multiple options into one window type. Below is an example:
.PP
.RS
.nf
wintypes:
{
normal = { shadow = true; fade = false; animation = "slide-down"; };
}
.fi
.RE
.PP
Below is all the options you can pass into wintypes.
.SS shadow
.PP
Toggle shadows. ( true / false )
.PP
.RS
.nf
wintypes:
{
popup_menu = { shadow = true; };
}
.fi
.RE
.SS fade
.PP
Toggle fading. ( true / false )
.PP
.RS
.nf
wintypes:
{
popup_menu = { fade = false; };
}
.fi
.RE
.SS focus
.PP
If focus was true, then that wintype would always be considered focus and therefore not be affected by inactive-opacity or inactive-dim.
If false, it is always considered inactive/unfocused and then always applies those effects.
.PP
( true / false )
.PP
.RS
.nf
wintypes:
{
menu = { focus = true; };
}
.fi
.RE
.SS blur-background
.PP
Toggle background blurring for windows under that type. ( true / false )
.PP
Setting this to false will not actually do anything since blurring is done on a whitelist basis.
.PP
.RS
.nf
wintypes:
{
desktop = { blur-background = true; };
}
.fi
.RE
.SS full-shadow
.PP
Toggle full shadow. ( true / false )
.PP
Not sure what full shadow is at the moment.
.PP
.RS
.nf
wintypes:
{
dropdown_menu = { full-shadow = false; };
}
.fi
.RE
.SS redir-ignore
.PP
Toggle redirect ignoring. ( true / false )
.PP
.RS
.nf
wintypes:
{
dock = { redir-ignore = true; };
}
.fi
.RE
.SS clip-shadow-above
.PP
Toggle clipping shadows above a window. ( true / false )
.PP
.RS
.nf
wintypes:
{
utility = { clip-shadow-above = true; };
}
.fi
.RE
.SS opacity
.PP
Set the opacity, both inactive and active. ( 0.0 ~ 1.0 )
.PP
.RS
.nf
wintypes:
{
popup_menu = { opacity = 0.5; };
}
.fi
.RE
.SS animation
.PP
Set the open animation for specific wintypes. ( See \fB\fCanimation-for-open-window\fR under the Animations page for available options )
.PP
.RS
.nf
wintypes:
{
popup_menu = { animation = "slide-right"; };
}
.fi
.RE
.SS animation-unmap
.PP
Set the close animation for specific wintypes. ( See \fB\fCanimation-for-unmap-window\fR under the Animations page for available options )
.PP
.RS
.nf
wintypes:
{
tooltip = { animation-unmap = "fly-in"; };
}
.fi
.RE
|