Guest User

picom

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