Advertisement
Guest User

picom-conf

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