2020-08-15 16:20:39 +00:00
#+title : Picom (Compton) Configuration
#+setupfile : headers
2020-04-09 14:19:56 +00:00
#+HTML_HEAD_EXTRA : <meta name="description" content="Phundrak’ s Picom Configuration" />
#+HTML_HEAD_EXTRA : <meta property="og:title" content="Phundrak’ s Picom Configuration" />
#+HTML_HEAD_EXTRA : <meta property="og:description" content="Description of the Picom configuration of Phundrak" />
2020-09-28 16:09:45 +00:00
#+PROPERTY : header-args:conf :exports code :mkdirp yes :tangle ~/.config/picom/picom.conf
2020-04-09 14:19:56 +00:00
* Introduction
2020-12-10 09:20:21 +00:00
:PROPERTIES:
:CUSTOM_ID: Introduction-a5320326
:END:
2021-02-04 13:43:09 +00:00
Picom is the successor to Compton, a standalone compositor for Xorg. It provides
compositing for WM that do not provide any, such as i3. I am currently using
[[https://github.com/ibhagwan/picom ][ibhagwan’ s fork of compton ]] which provides the ~dual-kawase~ blur from [[https://github.com/tryone144/compton][tryone’ s
compton]] and rounded corners from [[https://github.com/sdhand/picom ][sdhand’ s compton ]].
2020-04-09 14:19:56 +00:00
* Shadows
2020-12-10 09:20:21 +00:00
:PROPERTIES:
:CUSTOM_ID: Shadows-f4ffbb27
:END:
2021-02-04 13:43:09 +00:00
The following enables client-side shadows on windows. Note desktop windows
(windows with ~_NET_WM_WINDOW_TYPE_DESKTOP~ ) never get shadow, unless explicitly
2021-04-18 23:11:06 +00:00
requested using the wintypes option.
2020-11-13 14:18:43 +00:00
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
shadow = true;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
The blur radius radius for shadows is measured in pixels, and it defaults to
12px.
2020-11-13 14:18:43 +00:00
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
shadow-radius = 17;
2020-11-13 14:18:43 +00:00
#+END_SRC
Picom can also apply some level of opacity on shadows.
| Default value | ~0.75~ |
| Min value | ~0.0~ |
| Max value | ~1.0~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
shadow-opacity = 0.6
2020-11-13 14:18:43 +00:00
#+END_SRC
The left and top offsets for shadows are expressed in pixels.
| Default value | ~-15~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
shadow-offset-x = -12;
shadow-offset-y = -12;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
It is possible to set the color of the shadow with the string contained in
~shadow-color~ with a hexadecimal value. I haven’ t included these values in my
config, but this value will override any value in ~shadow-red~ , ~shadow-green~ ,
or ~shadow-blue~ .
2020-11-13 14:18:43 +00:00
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
shadow-color = "#000000"
2020-11-13 14:18:43 +00:00
#+END_SRC
It is possible to specify a list of conditions of windows that should have no
shadow.
| Default value | ~[]~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
shadow-exclude = [
"name = 'Notification'",
"class_g = 'Conky'",
"class_g ?= 'Notify-osd'",
"class_g = 'Cairo-clock'",
"_GTK_FRAME_EXTENTS@:c"
];
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
It is also possible to specify an X geometry that describes the region in which
shadows should not be painted in, such as a dock window region. For example,
2020-11-13 14:18:43 +00:00
#+BEGIN_SRC conf :tangle no
2021-10-12 09:31:20 +00:00
# shadow-exclude-reg = "x10+0+0"
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
would make the 10 pixels at the bottom of the screen not have any shadow painted
on.
2020-11-13 14:18:43 +00:00
| Default value | ~""~ |
#+BEGIN_SRC conf :tangle no
2021-10-12 09:31:20 +00:00
shadow-exclude-reg = ""
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
Finally, it is also possible to crop the shadow of a window fully on a
2020-11-13 14:18:43 +00:00
particular Xinerama screen to the screen.
- Default value :: ~false~
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
xinerama-shadow-crop = false
2020-11-13 14:18:43 +00:00
#+END_SRC
2020-04-09 14:19:56 +00:00
** Deprecated options
2020-12-10 09:20:21 +00:00
:PROPERTIES:
:HEADER-ARGS:conf: :tangle no
:CUSTOM_ID: Shadows-Deprecated_options-da215d5a
:END:
2020-11-13 14:18:43 +00:00
Options in this subheader *will not* be exported to my configuration file.
2021-02-04 13:43:09 +00:00
Thanks to this value, Picom can avoid drawing shadows on dock or panel windows.
This option is deprecated, and users should use the ~wintypes~ option in their
config file instead.
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
no-dock-shadow = false;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
This option allows Picom not to draw on drag-and-drop windows. This option is
deprecated, and users should use the ~wintypes~ option in their config file
instead.
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
no-dnd-shadow = false;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
~shadow-ignore-shaped~ is also deprecated. It used to indicate Picom not to
paint shadows on shaped windows. Note shaped windows here means windows setting
their shape through X Shape extension. Those using ARGB background are beyond
Picom’ s control. Since it is deprecated, you could instead use
2020-11-13 14:18:43 +00:00
#+BEGIN_SRC conf :tangle no
2021-10-12 09:31:20 +00:00
shadow-exclude = 'bounding_shaped'
2020-11-13 14:18:43 +00:00
#+END_SRC
or
#+BEGIN_SRC conf :tangle no
2021-10-12 09:31:20 +00:00
shadow-exclude = 'bounding_shaped && !rounded_corners'
2020-11-13 14:18:43 +00:00
#+END_SRC
| Default value | ~""~ |
#+BEGIN_SRC conf :tangle no
2021-10-12 09:31:20 +00:00
shadow-ignore-shaped = ""
2020-11-13 14:18:43 +00:00
#+END_SRC
2020-04-09 14:19:56 +00:00
2020-04-09 14:33:36 +00:00
* Rounded corners
2020-12-10 09:20:21 +00:00
:PROPERTIES:
:CUSTOM_ID: Rounded_corners-33bfcd20
:END:
2021-04-18 23:11:06 +00:00
Here we can see the declaration of the corners’ radius:
2020-11-13 14:18:43 +00:00
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
corner-radius = 9.0;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
It is also possible to exclude some windows from getting their corners rounded.
I personally excluded any window generated by AwesomeWM.
2020-11-13 14:18:43 +00:00
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
rounded-corners-exclude = [
"_NET_WM_WINDOW_TYPE@[0]:a = '_NET_WM_WINDOW_TYPE_DOCK'"
];
2020-11-13 14:18:43 +00:00
#+END_SRC
2020-04-09 14:33:36 +00:00
2020-04-09 14:19:56 +00:00
* Fading
2020-12-10 09:20:21 +00:00
:PROPERTIES:
:CUSTOM_ID: Fading-419d8047
:END:
2021-02-04 13:43:09 +00:00
Picom has the ability to create some fading effects on windows when opening or
closing or when the opacity changes. The following parameter toggles this
feature on or off. However, its behavior can be changed with
~no-fading-openclose~ .
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
fading = true
2020-11-13 14:18:43 +00:00
#+END_SRC
These values controls the opacity change between steps while fading in and out.
| Default value | ~0.028~ (fade-in), ~0.03~ (fade-out) |
2021-05-21 12:36:38 +00:00
| Min value | ~0.01~ |
| Max value | ~1.0~ |
2020-11-13 14:18:43 +00:00
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
fade-in-step = 0.09;
fade-out-step = 0.08;
2020-11-13 14:18:43 +00:00
#+END_SRC
This value represents the time between steps in fade steps, in milliseconds.
| Default value | ~10~ |
| Min value | ~1~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
fade-delta = 20;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
It is possible to exclude some windows that should not be faded with a specified
list of conditions.
2020-11-13 14:18:43 +00:00
| Default value | ~[]~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
fade-exclude = [ "class_g = 'mpv'" ];
2020-11-13 14:18:43 +00:00
#+END_SRC
This option allows Picom not to create any fade on windows opening or closing.
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
no-fading-openclose = true;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
Finally, this option is a workaround for Openbox, Fluxbox and others by not
fading destroyed ARGB windows with WM frame.
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
no-fading-destroyed-argb = false
2020-11-13 14:18:43 +00:00
#+END_SRC
2020-04-09 14:19:56 +00:00
* Transparency and opacity
2020-12-10 09:20:21 +00:00
:PROPERTIES:
:CUSTOM_ID: Transparency_and_opacity-6c6b36d2
:END:
2021-02-04 13:43:09 +00:00
Picom is also able to create some opacity or transparency for windows, depending
on their state or on some user-defined rules. For instance, the following value
describes the opacity of inactive windows.
2020-11-13 14:18:43 +00:00
| Default value | ~1.0~ |
| Min value | ~0.1~ |
| Max value | ~1.0~ |
#+BEGIN_SRC conf
2021-10-31 13:54:16 +00:00
inactive-opacity = 0.8;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
On the other hand, it is possible to declare a default opacity for active
windows.
2020-11-13 14:18:43 +00:00
| Default value | ~1.0~ |
| Min value | ~0.1~ |
| Max value | ~1.0~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
active-opacity = 1;
2020-11-13 14:18:43 +00:00
#+END_SRC
This however describes the opacity of window titlebars and borders.
| Default value | ~1.0~ |
| Min value | ~0.1~ |
| Max value | ~1.0~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
frame-opacity = 1.0;
2020-11-13 14:18:43 +00:00
#+END_SRC
~menu-opacity~ describes the opacity for dropdown menus and popup menus.
| Default value | ~1.0~ |
| Min value | ~0.1~ |
| Max value | ~1.0~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
# menu-opacity = 0.9;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
~inactive-opacity-override~ allows the user to let inactive opacity set by ~-i~
override the ~_NET_WM_OPACITY_ values of windows.
2020-11-13 14:18:43 +00:00
| Default value | ~true~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
inactive-opacity-override = true;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
While it is possible to alter opacity on inactive windows, it is also possible
to dim them.
2020-11-13 14:18:43 +00:00
| Default value | ~1.0~ |
| Min value | ~0.1~ |
| Max value | ~1.0~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
# inactive-dim = 1.0
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
It is also possible to use a fixed inactive dim value, instead of adjusting
according to window opacity.
2020-11-13 14:18:43 +00:00
| Default value | ~1.0~ |
| Min value | ~0.1~ |
| Max value | ~1.0~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
# inactive-dim-fixed = 1.0
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
It is also possible to specify a list of conditions of windows that should
always be considered focused.
2020-11-13 14:18:43 +00:00
| Default value | ~[]~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
focus-exclude = [
"class_g = 'mpv'",
"class_g = 'qemu'",
"class_g = 'Qemu-system-x86_64'"
];
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
The user can also specify a list of opacity rules, in the format
~PERCENT:PATTERN~ , like ~50:name *= "Firefox"~ . ~picom-trans~ is recommended
over this. Note we don't make any guarantee about possible conflicts with other
programs that set ~_NET_WM_WINDOW_OPACITY~ on frame or client windows.
2020-11-13 14:18:43 +00:00
| Default value | ~[]~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
opacity-rule = [];
2020-11-13 14:18:43 +00:00
#+END_SRC
2020-04-09 14:19:56 +00:00
* Background blurring
2020-12-10 09:20:21 +00:00
:PROPERTIES:
:CUSTOM_ID: Background_blurring-55835066
:END:
2021-02-04 13:43:09 +00:00
The following are the parameters for background blurring, see the \*BLUR\*
section for more information.
2020-11-13 14:18:43 +00:00
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
blur: {
method = "dual_kawase";
strength = 7;
background = false;
background-frame = false;
background-fixed = true;
}
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
This value enables or disables the blur for the background of semi-transparent
or ARGB windows. It has bad performances though, with driver-dependent behavior.
The name of the switch may change without prior notifications.
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
blur-background = true;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
Blur background of windows when the window frame is not opaque. If true, this
implies the value ~true~ for ~blur-background~ .
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
blur-background-frame = true;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
The following determines whether to use fixed blur strength rather than
adjusting according to window opacity.
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
blur-background-fixed = false;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
Specify the blur convolution kernel, with the format
~"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"~ .
2020-11-13 14:18:43 +00:00
| Default value | ~""~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
# blur-kern = "3x3box";
2020-11-13 14:18:43 +00:00
#+END_SRC
It is possible to write exclude conditions for background blur.
| Default value | ~[]~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
blur-background-exclude = [
"window_type = 'desktop'",
"class_g = 'Polybar'",
"class_g = 'discord-overlay'",
"_GTK_FRAME_EXTENTS@:c"
];
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-01-27 15:40:06 +00:00
2020-04-09 14:19:56 +00:00
* General settings
2020-12-10 09:20:21 +00:00
:PROPERTIES:
:CUSTOM_ID: General_settings-41398de7
:END:
2021-02-04 13:43:09 +00:00
Daemonize process. Fork to background after initialization. Causes issues with
certain (badly-written) drivers.
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
daemon = true;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
Picom has three backends it can use: ~xrender~ , ~glx~ , and ~xr_glx_hybrid~ . GLX
backend is typically much faster but depends on a sane driver.
2020-11-13 14:18:43 +00:00
| Default value | ~xrender~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
backend = "glx";
2020-11-13 14:18:43 +00:00
#+END_SRC
This enables or disables VSync.
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
vsync = true;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
Enable remote control via D-Bus. See the *D-BUS API* section below for more
details.
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
dbus = false;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
Try to detect WM windows (a non-override-redirect window with no child that has
~WM_STATE~ ) and markz them as active.
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
mark-wmwin-focused = true;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
Mark override-redirect windows that doesn't have a child window with ~WM_STATE~
focused.
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
mark-ovredir-focused = true;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
Try to detect windows with rounded corners and don't consider them shaped
windows. The accuracy is not very high, unfortunately.
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
detect-rounded-corners = true;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
Detect ~_NET_WM_OPACITY~ on client windows, useful for window managers not
passing ~_NET_WM_OPACITY~ of client windows to frame windows.
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
detect-client-opacity = true;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
Limit picom to repaint at most once every 1 / ~refresh_rate~ second to boost
performance. This should not be used with
2020-11-13 14:18:43 +00:00
#+BEGIN_SRC text :tangle no
2021-10-12 09:31:20 +00:00
vsync drm/opengl/opengl-oml
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
as they essentially does sw-opti's job already, unless you wish to specify a
lower refresh rate than the actual value.
2020-11-13 14:18:43 +00:00
| Default value | ~""~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
# sw-opti =;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
Use EWMH ~_NET_ACTIVE_WINDOW~ to determine currently focused window, rather than
listening to ~FocusIn~ /~FocusOut~ event. Might have more accuracy, provided that
the WM supports it.
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
# use-ewmh-active-win = false;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
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. paint-on-overlay may make the flickering less
obvious.
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
unredir-if-possible = false;
2020-11-13 14:18:43 +00:00
#+END_SRC
Delay before unredirecting the window, in milliseconds.
| Default value | ~0~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
unredir-if-possible-delay = 0;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
Conditions of windows that shouldn't be considered full-screen for unredirecting
screen.
2020-11-13 14:18:43 +00:00
| Default value | ~[]~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
unredir-if-possible-exclude = [];
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
Use ~WM_TRANSIENT_FOR~ to group windows, and consider windows in the same group
focused at the same time.
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
detect-transient = true;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
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.
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
detect-client-leader = true;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
Resize damaged region by a specific number of pixels. A positive value enlarges
it while a negative one shrinks it. If the value is positive, those additional
pixels will not be actually painted to screen, only used in blur calculation,
and such. (Due to technical limitations, with use-damage, those pixels will
still be incorrectly painted to screen.) Primarily used to fix the line
corruption issues of blur, in which case you should use the blur radius value
here (e.g. with a 3x3 kernel, you should use ~--resize-damage 1~ , with a 5x5 one
you use ~--resize-damage 2~ , and so on). May or may not work with
~--glx-no-stencil~ . Shrinking doesn't function correctly.
2020-11-13 14:18:43 +00:00
| Default value | ~1~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
resize-damage = 1;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
Specify a list of conditions of windows that should be painted with inverted
color. Resource-hogging, and is not well tested.
2020-11-13 14:18:43 +00:00
| Default value | ~[]~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
invert-color-include = [];
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
Disable the use of damage information. This cause the whole screen to be redrawn
everytime, instead of the part of the screen has actually changed. Potentially
degrades the performance, but might fix some artifacts. The opposing option is
use-damage
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
use-damage = false;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
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.
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
xrender-sync-fence = false;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
Force all windows to be painted with blending. Useful if you have a
glx-fshader-win that could turn opaque pixels transparent.
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
force-win-blend = false;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
Do not use EWMH to detect fullscreen windows. Reverts to checking if a window is
fullscreen based only on its size and coordinates.
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
no-ewmh-fullscreen = false;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
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.
2020-11-13 14:18:43 +00:00
| Default value | ~1.0~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
max-brightness = 1.0;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
Make transparent windows clip other windows like non-transparent windows do,
instead of blending on top of them.
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
transparent-clipping = false;
2020-11-13 14:18:43 +00:00
#+END_SRC
Set the log level. Possible values are:
- ~trace~
- ~debug~
- ~info~
- ~warn~
- ~error~
2021-02-04 13:43:09 +00:00
in increasing level of importance. Case doesn't matter. 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.
2020-11-13 14:18:43 +00:00
| Default value | ~"debug"~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
log-level = "warn";
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
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.
2020-11-13 14:18:43 +00:00
| Default value | ~''~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
# log-file = '/path/to/your/log/file';
2020-11-13 14:18:43 +00:00
#+END_SRC
Show all X errors (for debugging)
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
# show-all-xerrors = false;
2020-11-13 14:18:43 +00:00
#+END_SRC
Write process ID to a file.
| Default value | ~''~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
# write-pid-path = '/path/to/your/log/file';
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
Window type settings. ~WINDOW_TYPE~ is one of the 15 window types defined in
EWMH standard:
2020-11-13 14:18:43 +00:00
- ~"unknown"~
- ~"desktop"~
- ~"dock"~
- ~"toolbar"~
- ~"menu"~
- ~"utility"~
- ~"splash"~
- ~"dialog"~
- ~"normal"~
- ~"dropdown_menu"~
- ~"popup_menu"~
- ~"tooltip"~
- ~"notification"~
- ~"combo"~
- ~"dnd"~
Following per window-type options are available:
- fade, shadow :: Controls window-type-specific shadow and fade settings.
- opacity :: Controls default opacity of the window type.
2021-02-04 13:43:09 +00:00
- 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`.
2020-11-13 14:18:43 +00:00
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
wintypes:
{
tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; };
dock = { shadow = false; }
dnd = { shadow = false; }
popup_menu = { opacity = 0.8; }
dropdown_menu = { opacity = 0.8; }
};
2020-11-13 14:18:43 +00:00
#+END_SRC
2020-04-09 14:19:56 +00:00
** GLX backend-specific options
2020-12-10 09:20:21 +00:00
:PROPERTIES:
:CUSTOM_ID: General_settings-GLX_backend-specific_options-43892981
:END:
2021-02-04 13:43:09 +00:00
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. Tests show a 15%
performance boost. Recommended.
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
glx-no-stencil = true;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
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.
2020-11-13 14:18:43 +00:00
| Default value | ~false~ |
#+BEGIN_SRC conf
2021-10-12 09:31:20 +00:00
glx-no-rebind-pixmap = false;
2020-11-13 14:18:43 +00:00
#+END_SRC
2021-02-04 13:43:09 +00:00
Use specified GLSL fragment shader for rendering window contents. See
~compton-default-fshader-win.glsl~ and
~compton-fake-transparency-fshader-win.glsl~ in the source tree for examples.
2020-11-13 14:18:43 +00:00
| Default value | ~''~ |
#+BEGIN_SRC conf :tangle no
2021-10-12 09:31:20 +00:00
glx-fshader-win = '';
2020-11-13 14:18:43 +00:00
#+END_SRC