aboutsummaryrefslogtreecommitdiff
path: root/tw/home/files/picom.conf
blob: a7d86571f7933365402b2775e8b37439603f14f4 (about) (plain)
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
#
# ~/.config/picom.conf -- Picom compositor configuration
#

## Backend

# Backend to use: "xrender" or "glx".
# GLX backend is typically much faster but depends on a sane driver.
backend: "glx";

## GLX backend

glx-no-stencil: true;

# GLX backend: Copy unmodified regions from front buffer instead of redrawing
# them all.  My tests with nvidia-drivers show a 10% decrease in performance
# when the whole screen is modified, but a 20% increase when only 1/4 is.  My
# tests on nouveau show terrible slowdown.
glx-copy-from-front: false;

# 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).  Recommended if it works.
glx-no-rebind-pixmap: true;

## Shadows

# Enabled client-side shadows on windows.
shadow: false;
# The blur radius for shadows. (default 12)
shadow-radius: 25;
# The left offset for shadows. (default -15)
shadow-offset-x: -25;
# The top offset for shadows. (default -15)
shadow-offset-y: -25;
# The translucency for shadows. (default .75)
shadow-opacity: .3;

# Set if you want different colour shadows
shadow-red: 0.03;
shadow-green: 0.03;
shadow-blue: 0.04;

# The shadow exclude options are helpful if you have shadows enabled. Due to
# the way compton draws its shadows, certain applications will have visual
# glitches (most applications are fine, only apps that do weird things with
# xshapes or argb are affected).  This list includes all the affected apps I
# found in my testing. The "! name~=''" part excludes shadows on any "Unknown"
# windows, this prevents a visual glitch with the XFWM alt tab switcher.
# From "man picom", Format of Conditions: WM_CLASS = class_i, class_g
shadow-exclude: [
#    "! name~=''",
#    "name = 'Notification'",
#    "name = 'Plank'",
#    "name = 'Docky'",
#    "name = 'Kupfer'",
#    "name = 'xfce4-notifyd'",
#    "name *= 'VLC'",
    "name *= 'mpv'",
    "class_g = 'ffplay'",
#    "name *= 'compton'",
#    "name *= 'Chromium'",
#    "name *= 'Chrome'",
    "class_g ?= 'Firefox'",
#    "class_g = 'Conky'",
    "_NET_WM_STATE@:32a *= '_NET_WM_STATE_STICKY'",
    "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'",
    "_GTK_FRAME_EXTENTS@:c",
    "class_g ?= 'ulauncher'",
    "class_g ?= 'tray'",
    "class_g ?= 'i3-frame'",
#    "class_g ?= 'Notify-osd'",
#    "class_g ?= 'Cairo-dock'",
#    "class_g ?= 'Xfce4-notifyd'",
#    "class_g ?= 'Xfce4-power-manager'"
    "class_g ?= 'Xfce4-screenshooter'",
    "class_g ?= 'peek'"
];

# Avoid drawing shadow on all shaped windows (c.f. --detect-rounded-corners)
shadow-ignore-shaped: false;

## Opacity

inactive-opacity: 1;
active-opacity: 1;
frame-opacity: 1;
inactive-opacity-override: false;

# Dim inactive windows. (0.0 - 1.0)
#inactive-dim = 0.1;
# Do not let dimness adjust based on window opacity.
#inactive-dim-fixed = true;

# Blur background of transparent windows. Bad performance with X Render
# backend. GLX backend is preferred.
blur-method: "dual_kawase";
blur-strength: 7;
#blur-method: "kernel";
# generate kernel using compton-convgen.py --dump-compton gaussian 15 -f sigma=15
#blur-kernel: "...";
blur-background: true;
# Blur background of opaque windows with transparent frames as well.
blur-background-frame: true;
# Do not let blur radius adjust based on window opacity.
blur-background-fixed: true;
blur-background-exclude: [
    #"window_type = 'dock'",
    #"window_type = 'desktop'",
    "window_type = 'dnd'",
    "window_type = 'dropdown_menu'",
    "window_type = 'popup_menu'",
    #"class_g = 'Rofi'"
    "class_g ?= 'Xfce4-screenshooter'",
    # for xfce4-screenshooter triggered from its xfce4-panel button
    "class_g ?= 'Wrapper-2.0'",
    "class_g ?= 'peek'"
];

## Rounded corners
#corner-radius: 16;
#rounded-corners-exclude: [
#    "window_type = 'dock'",
#    "window_type = 'desktop'",
#    "class_g ?= 'plasmashell'",
#    "class_g ?= 'krunner'",
#    "class_g ?= 'i3-frame'"
#];

## Fading

# Fade windows during opacity changes.
fading: true;
# The time between steps in a fade in milliseconds. (default 10).
fade-delta: 5;
# Opacity change between steps while fading in. (default 0.028).
fade-in-step: 0.03;
# Opacity change between steps while fading out. (default 0.03).
fade-out-step: 0.03;
# Fade windows in/out when opening/closing
no-fading-openclose: false;

# Specify a list of conditions of windows that should not be faded.
fade-exclude: [];

## Other

# Try to detect WM windows and mark them as active.
mark-wmwin-focused: true;
# Mark all non-WM but override-redirect windows active (e.g. menus).
mark-ovredir-focused: true;
# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead
# of using FocusIn/Out events.  Usually more reliable but depends on a
# EWMH-compliant WM.
use-ewmh-active-win: true;
# Detect rounded corners and treat them as rectangular when
# --shadow-ignore-shaped is on.
detect-rounded-corners: true;

# Detect _NET_WM_OPACITY on client windows, useful for window managers not
# passing _NET_WM_OPACITY of client windows to frame windows.  This prevents
# opacity being ignored for some apps.  For example without this enabled my
# xfce4-notifyd is 100% opacity no matter what.
detect-client-opacity: true;

# Toggle VSync. See also: --vsync drm/opengl/opengl-oml.
vsync: true;

# Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate
# tearing.  Reported to have no effect, though.
dbe: true;

# Unredirect all windows if a full-screen opaque window is detected, to
# maximize performance for full-screen windows, like games.  Known to cause
# flickering when redirecting/unredirecting windows.  paint-on-overlay may make
# the flickering less obvious.
unredir-if-possible: true;

# Specify a list of conditions of windows that should always be considered focused.
focus-exclude: [];

# Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group
# focused at the same time.
detect-transient: true;
# Use WM_CLIENT_LEADER to group windows, and consider windows in the same group
# focused at the same time.  WM_TRANSIENT_FOR has higher priority if
# --detect-transient is enabled, too.
detect-client-leader: true;

opacity-rule: [
    "100:name *?= 'Call'",
    "100:name *?= 'Conky'",
    "100:class_g = 'Darktable'",
    "50:class_g = 'Dmenu'",
    "100:name *?= 'Event'",
    "100:class_g = 'Firefox'",
    "100:class_g = 'GIMP'",
    "100:name *?= 'Image'",
    "100:class_g = 'Lazpaint'",
    "100:class_g = 'Midori'",
    "100:name *?= 'Minitube'",
    "83:class_g = 'Mousepad'",
    "100:name *?= 'MuseScore'",
    "90:name *?= 'Page Info'",
    "100:name *?= 'Pale Moon'",
    "100:name *?= 'Screenshot'",
    "100:class_g = 'Viewnior'",
    "100:name *?= 'VirtualBox'",
    "100:name *?= 'VLC'",
    "100:class_g = 'mpv'",
    "100:name *?= 'Write'",
    "0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'",
    "100:_NET_WM_STATE@:32a *= '_NET_WM_STATE_STICKY'"
];

## Window type settings

wintypes: {
    # WINDOW_TYPE is one of the 15 window types defined in the EWMH standard:
    #   https://specifications.freedesktop.org/wm-spec/latest/ar01s05.html#idm45550357242464
    # fade: Fade the particular type of windows.
    # shadow: Give those windows shadow
    # opacity: Default opacity for the type of windows.
    # focus: Controls whether the window of this type is to be always considered
    #   focused. (By default, all window types except "normal" and "dialog" has
    #   this on.)
    # full-shadow: Controls whether shadow is drawn under the parts of the
    #   window that you normally won't be able to see. Useful when the window
    #   has parts of it transparent, and you want shadows in those areas.
    # redir-ignore: Controls whether this type of windows should cause screen to
    #   become redirected again after been unredirected. If you have
    #   --unredir-if-possible set, and doesn't want certain window to cause
    #   unnecessary screen redirection, you can set this to true.

    normal: {
        opacity: 1;
    };

    dialog: {
        opacity: 1;
    };

    # On-screen notification
    notify: {
        opacity: 1;
    };

    tooltip: {
        opacity: .85;
    };

    # Desktop window with icons etc.
    desktop: {
    };

    # Persistent dock, usually on top of all other windows
    dock: {
        opacity: 1;
    };

    # Window representing something being dragged
    dnd: {
        opacity: .85;
        shadow: true;
        full-shadow: true;
    };

    # Menu "torn off" from another window
    menu: {
        opacity: 1;
    };

    # Toolbar "torn off" from another window
    toolbar: {
        opacity: 1;
    };

    # A menu from a right click
    popup_menu: {
        opacity: 1;
    };

    # A menu from a menu bar
    dropdown_menu: {
        opacity: 1;
    };

    # The pop-up/drop-down from a combo box
    combo: {
        opacity: 1;
    };

    # A starting application's splash screen
    splash: {
        opacity: 1;
    };

    # A small persistent utility window, such as a palette or toolbox
    utility: {
    };

    unknown: {
    };
};