picom.conf 14 KB

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