aboutsummaryrefslogtreecommitdiff
path: root/picom.sample.conf
diff options
context:
space:
mode:
Diffstat (limited to 'picom.sample.conf')
-rw-r--r--picom.sample.conf100
1 files changed, 69 insertions, 31 deletions
diff --git a/picom.sample.conf b/picom.sample.conf
index e516175..a8ba5c7 100644
--- a/picom.sample.conf
+++ b/picom.sample.conf
@@ -6,20 +6,24 @@
# 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.
-shadow = false;
+#
+# shadow = false
+shadow = true;
# The blur radius for shadows, in pixels. (defaults to 12)
# shadow-radius = 12
-shadow-radius = 12;
+shadow-radius = 7;
# The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
-# shadow-opacity = 0.75
+# shadow-opacity = .75
# The left offset for shadows, in pixels. (defaults to -15)
-shadow-offset-x = -15;
+# shadow-offset-x = -15
+shadow-offset-x = -7;
# The top offset for shadows, in pixels. (defaults to -15)
-shadow-offset-y = -15;
+# shadow-offset-y = -15
+shadow-offset-y = -7;
# Red color value of shadow (0.0 - 1.0, defaults to 0).
# shadow-red = 0
@@ -34,10 +38,33 @@ shadow-offset-y = -15;
# shadow-color = "#000000"
# Specify a list of conditions of windows that should have no shadow.
+#
+# examples:
+# shadow-exclude = "n:e:Notification";
+#
+# shadow-exclude = []
shadow-exclude = [
- "class_g = 'foo'",
+ "name = 'Notification'",
+ "class_g = 'Conky'",
+ "class_g ?= 'Notify-osd'",
+ "class_g = 'Cairo-clock'",
+ "_GTK_FRAME_EXTENTS@:c"
];
+# Specify a list of conditions of windows that should have no shadow painted over, such as a dock window.
+# clip-shadow-above = []
+
+# Specify a X geometry that describes the region in which shadow should not
+# be painted in, such as a dock window region. Use
+# shadow-exclude-reg = "x10+0+0"
+# for example, if the 10 pixels on the bottom of the screen should not have shadows painted on.
+#
+# shadow-exclude-reg = ""
+
+# Crop shadow of a window fully on a particular Xinerama screen to the screen.
+# xinerama-shadow-crop = false
+
+
#################################
# Fading #
#################################
@@ -62,10 +89,6 @@ fade-out-step = 0.03;
# Specify a list of conditions of windows that should not be faded.
# fade-exclude = []
-#
-# Advanced Options
-#
-
# Do not fade on window open/close.
# no-fading-openclose = false
@@ -80,13 +103,13 @@ fade-out-step = 0.03;
# Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0)
# inactive-opacity = 1
-inactive-opacity = 1;
+inactive-opacity = 0.8;
# Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default)
# frame-opacity = 1.0
-frame-opacity = 1.0;
+frame-opacity = 0.7;
-# Let inactive opacity set by -i override the '_NET_WM_OPACITY' values of windows.
+# Let inactive opacity set by -i override the '_NET_WM_WINDOW_OPACITY' values of windows.
# inactive-opacity-override = true
inactive-opacity-override = false;
@@ -98,12 +121,18 @@ inactive-opacity-override = false;
# Specify a list of conditions of windows that should never be considered focused.
# focus-exclude = []
-focus-exclude = [];
+focus-exclude = [ "class_g = 'Cairo-clock'" ];
# Use fixed inactive dim value, instead of adjusting according to window opacity.
# inactive-dim-fixed = 1.0
# 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.
+# example:
+# opacity-rule = [ "80:class_g = 'URxvt'" ];
+#
# opacity-rule = []
@@ -174,6 +203,9 @@ blur-background-exclude = [
# General Settings #
#################################
+# Enable remote control via D-Bus. See the man page for more details.
+# dbus = true
+
# Daemonize process. Fork to background after initialization. Causes issues with certain (badly-written) drivers.
# daemon = false
@@ -206,18 +238,12 @@ mark-ovredir-focused = true;
# detect-rounded-corners = false
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.
+# Detect '_NET_WM_WINDOW_OPACITY' on client windows, useful for window managers
+# not passing '_NET_WM_WINDOW_OPACITY' of client windows to frame windows.
#
# detect-client-opacity = false
detect-client-opacity = true;
-# Specify refresh rate of the screen. If not specified or 0, picom will
-# try detecting this with X RandR extension.
-#
-# refresh-rate = 60
-refresh-rate = 0;
-
# 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.
@@ -243,11 +269,11 @@ refresh-rate = 0;
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.
+# 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.
#
# detect-client-leader = false
-detect-client-leader = true;
# Resize damaged region by a specific number of pixels.
# A positive value enlarges it while a negative one shrinks it.
@@ -282,7 +308,7 @@ detect-client-leader = true;
# glx-no-rebind-pixmap = false
# Disable the use of damage information.
-# This cause the whole screen to be redrawn everytime, instead of the part of the screen
+# This cause the whole screen to be redrawn every time, 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
#
@@ -295,11 +321,17 @@ use-damage = true;
#
# xrender-sync-fence = false
-# GLX backend: 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.
+# GLX backend: Use specified GLSL fragment shader for rendering window
+# contents. Read the man page for a detailed explanation of the interface.
+#
+# window-shader-fg = "default"
+
+# Use rules to set per-window shaders. Syntax is SHADER_PATH:PATTERN, similar
+# to opacity-rule. SHADER_PATH can be "default". This overrides window-shader-fg.
#
-# glx-fshader-win = ""
+# window-shader-fg-rule = [
+# "my_shader.frag:window_type != 'dock'"
+# ]
# Force all windows to be painted with blending. Useful if you
# have a glx-fshader-win that could turn opaque pixels transparent.
@@ -323,6 +355,12 @@ use-damage = true;
#
# transparent-clipping = false
+# Specify a list of conditions of windows that should never have transparent
+# clipping applied. Useful for screenshot tools, where you need to be able to
+# see through transparent parts of the window.
+#
+# transparent-clipping-exclude = []
+
# Set the log level. Possible values are:
# "trace", "debug", "info", "warn", "error"
# in increasing level of importance. Case doesn't matter.
@@ -371,7 +409,7 @@ log-level = "warn";
# transparent, and you want shadows in those areas.
#
# clip-shadow-above:::
-# Controls wether shadows that would have been drawn above the window should
+# Controls whether shadows that would have been drawn above the window should
# be clipped. Useful for dock windows that should have no shadow painted on top.
#
# redir-ignore:::