2.conf 14 KB

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