Picom configuration file
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

419 lines
13 KiB

2 years ago
  1. #################################
  2. # Shadows #
  3. #################################
  4. # Enabled client-side shadows on windows. Note desktop windows
  5. # (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow,
  6. # unless explicitly requested using the wintypes option.
  7. #
  8. # shadow = false
  9. shadow = true;
  10. # The blur radius for shadows, in pixels. (defaults to 12)
  11. # shadow-radius = 12
  12. shadow-radius = 7;
  13. # The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
  14. #shadow-opacity = .75;
  15. # The left offset for shadows, in pixels. (defaults to -15)
  16. # shadow-offset-x = -15
  17. shadow-offset-x = -7;
  18. # The top offset for shadows, in pixels. (defaults to -15)
  19. # shadow-offset-y = -15
  20. shadow-offset-y = -7;
  21. # Red color value of shadow (0.0 - 1.0, defaults to 0).
  22. # shadow-red = 0
  23. # Green color value of shadow (0.0 - 1.0, defaults to 0).
  24. # shadow-green = 0
  25. # Blue color value of shadow (0.0 - 1.0, defaults to 0).
  26. # shadow-blue = 0
  27. # Hex string color value of shadow (#000000 - #FFFFFF, defaults to #000000). This option will override options set shadow-(red/green/blue)
  28. # shadow-color = "#000000"
  29. # Specify a list of conditions of windows that should have no shadow.
  30. #
  31. # examples:
  32. # shadow-exclude = "n:e:Notification";
  33. #
  34. # shadow-exclude = []
  35. shadow-exclude = [
  36. "name = 'Notification'",
  37. "class_g = 'Conky'",
  38. "class_g ?= 'Notify-osd'",
  39. "class_g = 'Cairo-clock'",
  40. "_GTK_FRAME_EXTENTS@:c"
  41. ];
  42. # Specify a list of conditions of windows that should have no shadow painted over, such as a dock window.
  43. # clip-shadow-above = []
  44. # Specify a X geometry that describes the region in which shadow should not
  45. # be painted in, such as a dock window region. Use
  46. # shadow-exclude-reg = "x10+0+0"
  47. # for example, if the 10 pixels on the bottom of the screen should not have shadows painted on.
  48. #
  49. # shadow-exclude-reg = ""
  50. # Crop shadow of a window fully on a particular Xinerama screen to the screen.
  51. # xinerama-shadow-crop = false
  52. #################################
  53. # Fading #
  54. #################################
  55. # Fade windows in/out when opening/closing and when opacity changes,
  56. # unless no-fading-openclose is used.
  57. # fading = false
  58. fading = true;
  59. # Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
  60. # fade-in-step = 0.028
  61. #fade-in-step = 1.0;
  62. # Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03)
  63. # fade-out-step = 0.03
  64. #fade-out-step = 0.8;
  65. # The time between steps in fade step, in milliseconds. (> 0, defaults to 10)
  66. fade-delta = 10;
  67. # Specify a list of conditions of windows that should not be faded.
  68. fade-exclude = [];
  69. # Do not fade on window open/close.
  70. no-fading-openclose = false;
  71. # Do not fade destroyed ARGB windows with WM frame. Workaround of bugs in Openbox, Fluxbox, etc.
  72. # no-fading-destroyed-argb = false
  73. #################################
  74. # Transparency / Opacity #
  75. #################################
  76. # Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0)
  77. active-opacity = 0.92;
  78. inactive-opacity = 1.0;
  79. # Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default)
  80. # frame-opacity = 1.0
  81. frame-opacity = 1.0;
  82. # Let inactive opacity set by -i override the '_NET_WM_WINDOW_OPACITY' values of windows.
  83. # inactive-opacity-override = true
  84. inactive-opacity-override = false;
  85. # Default opacity for active windows. (0.0 - 1.0, defaults to 1.0)
  86. # active-opacity = 1.0
  87. # Dim inactive windows. (0.0 - 1.0, defaults to 0.0)
  88. # inactive-dim = 0.0
  89. # Specify a list of conditions of windows that should never be considered focused.
  90. # focus-exclude = []
  91. focus-exclude = [ "class_g = 'Cairo-clock'" ];
  92. # Use fixed inactive dim value, instead of adjusting according to window opacity.
  93. # inactive-dim-fixed = 1.0
  94. # Specify a list of opacity rules, in the format `PERCENT:PATTERN`,
  95. # like `50:name *= "Firefox"`. picom-trans is recommended over this.
  96. # Note we don't make any guarantee about possible conflicts with other
  97. # programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows.
  98. # example:
  99. # opacity-rule = [ "80:class_g = 'URxvt'" ];
  100. #
  101. opacity-rule = [
  102. "70:class_g = 'Brave'",
  103. "90:class_g = 'Alacritty'"
  104. ];
  105. #################################
  106. # Corners #
  107. #################################
  108. # Sets the radius of rounded window corners. When > 0, the compositor will
  109. # round the corners of windows. Does not interact well with
  110. # `transparent-clipping`.
  111. corner-radius = 10;
  112. # Exclude conditions for rounded corners.
  113. rounded-corners-exclude = [
  114. "window_type = 'dock'",
  115. "window_type = 'desktop'"
  116. ];
  117. #################################
  118. # Background-Blurring #
  119. #################################
  120. # Parameters for background blurring, see the *BLUR* section for more information.
  121. blur-background = true;
  122. blur-method = "dual_kawase";
  123. blur-strength = 3;
  124. #blur-size = 12;
  125. #
  126. # blur-deviation = false
  127. #
  128. # Blur background of semi-transparent / ARGB windows.
  129. # Bad in performance, with driver-dependent behavior.
  130. # The name of the switch may change without prior notifications.
  131. #
  132. # Blur background of windows when the window frame is not opaque.
  133. # Implies:
  134. # blur-background
  135. # Bad in performance, with driver-dependent behavior. The name may change.
  136. #
  137. # blur-background-frame = false
  138. # Use fixed blur strength rather than adjusting according to window opacity.
  139. # blur-background-fixed = false
  140. # Specify the blur convolution kernel, with the following format:
  141. # example:
  142. # 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";
  143. #
  144. # blur-kern = ""
  145. blur-kern = "3x3box";
  146. # Exclude conditions for background blur.
  147. # blur-background-exclude = []
  148. blur-background-exclude = [
  149. "window_type = 'dock'",
  150. "window_type = 'desktop'",
  151. "_GTK_FRAME_EXTENTS@:c"
  152. ];
  153. #################################
  154. # General Settings #
  155. #################################
  156. # Daemonize process. Fork to background after initialization. Causes issues with certain (badly-written) drivers.
  157. # daemon = false
  158. # Specify the backend to use: `xrender`, `glx`, or `xr_glx_hybrid`.
  159. # `xrender` is the default one.
  160. #
  161. backend = "glx";
  162. glx-no-stencil = true;
  163. glx-copy-from-front = false;
  164. #backend = "xrender";
  165. # Enable/disable VSync.
  166. # vsync = false
  167. vsync = true;
  168. # Enable remote control via D-Bus. See the *D-BUS API* section below for more details.
  169. # dbus = false
  170. # Try to detect WM windows (a non-override-redirect window with no
  171. # child that has 'WM_STATE') and mark them as active.
  172. #
  173. # mark-wmwin-focused = false
  174. mark-wmwin-focused = true;
  175. # Mark override-redirect windows that doesn't have a child window with 'WM_STATE' focused.
  176. # mark-ovredir-focused = false
  177. mark-ovredir-focused = true;
  178. # Try to detect windows with rounded corners and don't consider them
  179. # shaped windows. The accuracy is not very high, unfortunately.
  180. #
  181. # detect-rounded-corners = false
  182. detect-rounded-corners = true;
  183. # Detect '_NET_WM_WINDOW_OPACITY' on client windows, useful for window managers
  184. # not passing '_NET_WM_WINDOW_OPACITY' of client windows to frame windows.
  185. #
  186. # detect-client-opacity = false
  187. detect-client-opacity = true;
  188. # Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window,
  189. # rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy,
  190. # provided that the WM supports it.
  191. #
  192. # use-ewmh-active-win = false
  193. # Unredirect all windows if a full-screen opaque window is detected,
  194. # to maximize performance for full-screen windows. Known to cause flickering
  195. # when redirecting/unredirecting windows.
  196. #
  197. # unredir-if-possible = false
  198. # Delay before unredirecting the window, in milliseconds. Defaults to 0.
  199. # unredir-if-possible-delay = 0
  200. # Conditions of windows that shouldn't be considered full-screen for unredirecting screen.
  201. # unredir-if-possible-exclude = []
  202. # Use 'WM_TRANSIENT_FOR' to group windows, and consider windows
  203. # in the same group focused at the same time.
  204. #
  205. # detect-transient = false
  206. detect-transient = true;
  207. # Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same
  208. # group focused at the same time. This usually means windows from the same application
  209. # will be considered focused or unfocused at the same time.
  210. # 'WM_TRANSIENT_FOR' has higher priority if detect-transient is enabled, too.
  211. #
  212. # detect-client-leader = false
  213. # Resize damaged region by a specific number of pixels.
  214. # A positive value enlarges it while a negative one shrinks it.
  215. # If the value is positive, those additional pixels will not be actually painted
  216. # to screen, only used in blur calculation, and such. (Due to technical limitations,
  217. # with use-damage, those pixels will still be incorrectly painted to screen.)
  218. # Primarily used to fix the line corruption issues of blur,
  219. # in which case you should use the blur radius value here
  220. # (e.g. with a 3x3 kernel, you should use `--resize-damage 1`,
  221. # with a 5x5 one you use `--resize-damage 2`, and so on).
  222. # May or may not work with *--glx-no-stencil*. Shrinking doesn't function correctly.
  223. #
  224. # resize-damage = 1
  225. # Specify a list of conditions of windows that should be painted with inverted color.
  226. # Resource-hogging, and is not well tested.
  227. #
  228. # invert-color-include = []
  229. # GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer.
  230. # Might cause incorrect opacity when rendering transparent content (but never
  231. # practically happened) and may not work with blur-background.
  232. # My tests show a 15% performance boost. Recommended.
  233. #
  234. # glx-no-stencil = false
  235. # GLX backend: Avoid rebinding pixmap on window damage.
  236. # Probably could improve performance on rapid window content changes,
  237. # but is known to break things on some drivers (LLVMpipe, xf86-video-intel, etc.).
  238. # Recommended if it works.
  239. #
  240. # glx-no-rebind-pixmap = false
  241. # Disable the use of damage information.
  242. # This cause the whole screen to be redrawn everytime, instead of the part of the screen
  243. # has actually changed. Potentially degrades the performance, but might fix some artifacts.
  244. # The opposing option is use-damage
  245. #
  246. # no-use-damage = false
  247. use-damage = true;
  248. # Use X Sync fence to sync clients' draw calls, to make sure all draw
  249. # calls are finished before picom starts drawing. Needed on nvidia-drivers
  250. # with GLX backend for some users.
  251. #
  252. # xrender-sync-fence = false
  253. # GLX backend: Use specified GLSL fragment shader for rendering window contents.
  254. # See `compton-default-fshader-win.glsl` and `compton-fake-transparency-fshader-win.glsl`
  255. # in the source tree for examples.
  256. #
  257. # glx-fshader-win = ""
  258. # Force all windows to be painted with blending. Useful if you
  259. # have a glx-fshader-win that could turn opaque pixels transparent.
  260. #
  261. # force-win-blend = false
  262. # Do not use EWMH to detect fullscreen windows.
  263. # Reverts to checking if a window is fullscreen based only on its size and coordinates.
  264. #
  265. # no-ewmh-fullscreen = false
  266. # Dimming bright windows so their brightness doesn't exceed this set value.
  267. # Brightness of a window is estimated by averaging all pixels in the window,
  268. # so this could comes with a performance hit.
  269. # Setting this to 1.0 disables this behaviour. Requires --use-damage to be disabled. (default: 1.0)
  270. #
  271. # max-brightness = 1.0
  272. # Make transparent windows clip other windows like non-transparent windows do,
  273. # instead of blending on top of them.
  274. #
  275. # transparent-clipping = false
  276. # Set the log level. Possible values are:
  277. # "trace", "debug", "info", "warn", "error"
  278. # in increasing level of importance. Case doesn't matter.
  279. # If using the "TRACE" log level, it's better to log into a file
  280. # using *--log-file*, since it can generate a huge stream of logs.
  281. #
  282. # log-level = "debug"
  283. log-level = "warn";
  284. # Set the log file.
  285. # If *--log-file* is never specified, logs will be written to stderr.
  286. # Otherwise, logs will to written to the given file, though some of the early
  287. # logs might still be written to the stderr.
  288. # When setting this option from the config file, it is recommended to use an absolute path.
  289. #
  290. # log-file = "/path/to/your/log/file"
  291. # Show all X errors (for debugging)
  292. # show-all-xerrors = false
  293. # Write process ID to a file.
  294. # write-pid-path = "/path/to/your/log/file"
  295. # Window type settings
  296. #
  297. # 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard:
  298. # "unknown", "desktop", "dock", "toolbar", "menu", "utility",
  299. # "splash", "dialog", "normal", "dropdown_menu", "popup_menu",
  300. # "tooltip", "notification", "combo", and "dnd".
  301. #
  302. # Following per window-type options are available: ::
  303. #
  304. # fade, shadow:::
  305. # Controls window-type-specific shadow and fade settings.
  306. #
  307. # opacity:::
  308. # Controls default opacity of the window type.
  309. #
  310. # focus:::
  311. # Controls whether the window of this type is to be always considered focused.
  312. # (By default, all window types except "normal" and "dialog" has this on.)
  313. #
  314. # full-shadow:::
  315. # Controls whether shadow is drawn under the parts of the window that you
  316. # normally won't be able to see. Useful when the window has parts of it
  317. # transparent, and you want shadows in those areas.
  318. #
  319. # clip-shadow-above:::
  320. # Controls wether shadows that would have been drawn above the window should
  321. # be clipped. Useful for dock windows that should have no shadow painted on top.
  322. #
  323. # redir-ignore:::
  324. # Controls whether this type of windows should cause screen to become
  325. # redirected again after been unredirected. If you have unredir-if-possible
  326. # set, and doesn't want certain window to cause unnecessary screen redirection,
  327. # you can set this to `true`.
  328. #
  329. wintypes:
  330. {
  331. tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; };
  332. dock = { shadow = false; clip-shadow-above = true; }
  333. dnd = { shadow = false; }
  334. popup_menu = { opacity = 0.8; }
  335. dropdown_menu = { opacity = 0.8; }
  336. };