picom.conf 14 KB

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