icon_bishop

picom config

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