picom.conf 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  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 = 0.03;
  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.03;
  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. inactive-opacity = 1
  78. #inactive-opacity = 0.95;
  79. # Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default)
  80. # frame-opacity = 1.0
  81. frame-opacity = 0.9;
  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. opacity-rule = [ "80:class_g = 'Alacritty'" ];
  103. #################################
  104. # Corners #
  105. #################################
  106. # Sets the radius of rounded window corners. When > 0, the compositor will
  107. # round the corners of windows. Does not interact well with
  108. # `transparent-clipping`.
  109. corner-radius = 0
  110. # Exclude conditions for rounded corners.
  111. rounded-corners-exclude = [
  112. "window_type = 'dock'",
  113. "window_type = 'desktop'"
  114. ];
  115. #################################
  116. # Background-Blurring #
  117. #################################
  118. # Parameters for background blurring, see the *BLUR* section for more information.
  119. # blur-method =
  120. # blur-size = 12
  121. #
  122. # blur-deviation = false
  123. #
  124. # blur-strength = 5
  125. # Blur background of semi-transparent / ARGB windows.
  126. # Bad in performance, with driver-dependent behavior.
  127. # The name of the switch may change without prior notifications.
  128. #
  129. # blur-background = false
  130. # Blur background of windows when the window frame is not opaque.
  131. # Implies:
  132. # blur-background
  133. # Bad in performance, with driver-dependent behavior. The name may change.
  134. #
  135. # blur-background-frame = false
  136. # Use fixed blur strength rather than adjusting according to window opacity.
  137. # blur-background-fixed = false
  138. # Specify the blur convolution kernel, with the following format:
  139. # example:
  140. # 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";
  141. #
  142. # blur-kern = ""
  143. blur-kern = "3x3box";
  144. # Exclude conditions for background blur.
  145. # blur-background-exclude = []
  146. blur-background-exclude = [
  147. "window_type = 'dock'",
  148. "window_type = 'desktop'",
  149. "_GTK_FRAME_EXTENTS@:c"
  150. ];
  151. #################################
  152. # General Settings #
  153. #################################
  154. # Enable remote control via D-Bus. See the man page for more details.
  155. # dbus = true
  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. backend = "xrender";
  163. # Enable/disable VSync.
  164. # vsync = false
  165. vsync = true;
  166. # Enable remote control via D-Bus. See the *D-BUS API* section below for more details.
  167. # dbus = false
  168. # Try to detect WM windows (a non-override-redirect window with no
  169. # child that has 'WM_STATE') and mark them as active.
  170. #
  171. # mark-wmwin-focused = false
  172. mark-wmwin-focused = true;
  173. # Mark override-redirect windows that doesn't have a child window with 'WM_STATE' focused.
  174. # mark-ovredir-focused = false
  175. mark-ovredir-focused = true;
  176. # Try to detect windows with rounded corners and don't consider them
  177. # shaped windows. The accuracy is not very high, unfortunately.
  178. #
  179. # detect-rounded-corners = false
  180. detect-rounded-corners = true;
  181. # Detect '_NET_WM_WINDOW_OPACITY' on client windows, useful for window managers
  182. # not passing '_NET_WM_WINDOW_OPACITY' of client windows to frame windows.
  183. #
  184. # detect-client-opacity = false
  185. detect-client-opacity = true;
  186. # Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window,
  187. # rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy,
  188. # provided that the WM supports it.
  189. #
  190. # use-ewmh-active-win = false
  191. # Unredirect all windows if a full-screen opaque window is detected,
  192. # to maximize performance for full-screen windows. Known to cause flickering
  193. # when redirecting/unredirecting windows.
  194. #
  195. # unredir-if-possible = false
  196. # Delay before unredirecting the window, in milliseconds. Defaults to 0.
  197. # unredir-if-possible-delay = 0
  198. # Conditions of windows that shouldn't be considered full-screen for unredirecting screen.
  199. # unredir-if-possible-exclude = []
  200. # Use 'WM_TRANSIENT_FOR' to group windows, and consider windows
  201. # in the same group focused at the same time.
  202. #
  203. # detect-transient = false
  204. detect-transient = true;
  205. # Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same
  206. # group focused at the same time. This usually means windows from the same application
  207. # will be considered focused or unfocused at the same time.
  208. # 'WM_TRANSIENT_FOR' has higher priority if detect-transient is enabled, too.
  209. #
  210. # detect-client-leader = false
  211. # Resize damaged region by a specific number of pixels.
  212. # A positive value enlarges it while a negative one shrinks it.
  213. # If the value is positive, those additional pixels will not be actually painted
  214. # to screen, only used in blur calculation, and such. (Due to technical limitations,
  215. # with use-damage, those pixels will still be incorrectly painted to screen.)
  216. # Primarily used to fix the line corruption issues of blur,
  217. # in which case you should use the blur radius value here
  218. # (e.g. with a 3x3 kernel, you should use `--resize-damage 1`,
  219. # with a 5x5 one you use `--resize-damage 2`, and so on).
  220. # May or may not work with *--glx-no-stencil*. Shrinking doesn't function correctly.
  221. #
  222. # resize-damage = 1
  223. # Specify a list of conditions of windows that should be painted with inverted color.
  224. # Resource-hogging, and is not well tested.
  225. #
  226. # invert-color-include = []
  227. # GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer.
  228. # Might cause incorrect opacity when rendering transparent content (but never
  229. # practically happened) and may not work with blur-background.
  230. # My tests show a 15% performance boost. Recommended.
  231. #
  232. glx-no-stencil = true;
  233. # GLX backend: Avoid rebinding pixmap on window damage.
  234. # Probably could improve performance on rapid window content changes,
  235. # but is known to break things on some drivers (LLVMpipe, xf86-video-intel, etc.).
  236. # Recommended if it works.
  237. #
  238. # glx-no-rebind-pixmap = false
  239. # Disable the use of damage information.
  240. # This cause the whole screen to be redrawn every time, instead of the part of the screen
  241. # has actually changed. Potentially degrades the performance, but might fix some artifacts.
  242. # The opposing option is use-damage
  243. #
  244. # no-use-damage = false
  245. use-damage = true;
  246. # Use X Sync fence to sync clients' draw calls, to make sure all draw
  247. # calls are finished before picom starts drawing. Needed on nvidia-drivers
  248. # with GLX backend for some users.
  249. #
  250. # xrender-sync-fence = false
  251. # GLX backend: Use specified GLSL fragment shader for rendering window
  252. # contents. Read the man page for a detailed explanation of the interface.
  253. #
  254. # window-shader-fg = "default"
  255. # Use rules to set per-window shaders. Syntax is SHADER_PATH:PATTERN, similar
  256. # to opacity-rule. SHADER_PATH can be "default". This overrides window-shader-fg.
  257. #
  258. # window-shader-fg-rule = [
  259. # "my_shader.frag:window_type != 'dock'"
  260. # ]
  261. # Force all windows to be painted with blending. Useful if you
  262. # have a glx-fshader-win that could turn opaque pixels transparent.
  263. #
  264. # force-win-blend = false
  265. # Do not use EWMH to detect fullscreen windows.
  266. # Reverts to checking if a window is fullscreen based only on its size and coordinates.
  267. #
  268. # no-ewmh-fullscreen = false
  269. # Dimming bright windows so their brightness doesn't exceed this set value.
  270. # Brightness of a window is estimated by averaging all pixels in the window,
  271. # so this could comes with a performance hit.
  272. # Setting this to 1.0 disables this behaviour. Requires --use-damage to be disabled. (default: 1.0)
  273. #
  274. # max-brightness = 1.0
  275. # Make transparent windows clip other windows like non-transparent windows do,
  276. # instead of blending on top of them.
  277. #
  278. # transparent-clipping = false
  279. # Specify a list of conditions of windows that should never have transparent
  280. # clipping applied. Useful for screenshot tools, where you need to be able to
  281. # see through transparent parts of the window.
  282. #
  283. # transparent-clipping-exclude = []
  284. # Set the log level. Possible values are:
  285. # "trace", "debug", "info", "warn", "error"
  286. # in increasing level of importance. Case doesn't matter.
  287. # If using the "TRACE" log level, it's better to log into a file
  288. # using *--log-file*, since it can generate a huge stream of logs.
  289. #
  290. # log-level = "debug"
  291. log-level = "warn";
  292. # Set the log file.
  293. # If *--log-file* is never specified, logs will be written to stderr.
  294. # Otherwise, logs will to written to the given file, though some of the early
  295. # logs might still be written to the stderr.
  296. # When setting this option from the config file, it is recommended to use an absolute path.
  297. #
  298. # log-file = "/path/to/your/log/file"
  299. # Show all X errors (for debugging)
  300. # show-all-xerrors = false
  301. # Write process ID to a file.
  302. # write-pid-path = "/path/to/your/log/file"
  303. # Window type settings
  304. #
  305. # 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard:
  306. # "unknown", "desktop", "dock", "toolbar", "menu", "utility",
  307. # "splash", "dialog", "normal", "dropdown_menu", "popup_menu",
  308. # "tooltip", "notification", "combo", and "dnd".
  309. #
  310. # Following per window-type options are available: ::
  311. #
  312. # fade, shadow:::
  313. # Controls window-type-specific shadow and fade settings.
  314. #
  315. # opacity:::
  316. # Controls default opacity of the window type.
  317. #
  318. # focus:::
  319. # Controls whether the window of this type is to be always considered focused.
  320. # (By default, all window types except "normal" and "dialog" has this on.)
  321. #
  322. # full-shadow:::
  323. # Controls whether shadow is drawn under the parts of the window that you
  324. # normally won't be able to see. Useful when the window has parts of it
  325. # transparent, and you want shadows in those areas.
  326. #
  327. # clip-shadow-above:::
  328. # Controls whether shadows that would have been drawn above the window should
  329. # be clipped. Useful for dock windows that should have no shadow painted on top.
  330. #
  331. # redir-ignore:::
  332. # Controls whether this type of windows should cause screen to become
  333. # redirected again after been unredirected. If you have unredir-if-possible
  334. # set, and doesn't want certain window to cause unnecessary screen redirection,
  335. # you can set this to `true`.
  336. #
  337. wintypes:
  338. {
  339. tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; };
  340. dock = { shadow = false; clip-shadow-above = true; }
  341. dnd = { shadow = false; }
  342. popup_menu = { opacity = 0.8; }
  343. dropdown_menu = { opacity = 0.8; }
  344. };