poetician

picom.conf - Jonaburg's Fork

Jun 25th, 2024
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.65 KB | None | 0 0
  1. # A Poetician Edition of Jonaburg's Fork
  2. # For several months the anti-aliasing issue for round corners was resolved. No longer as of a reinstallation after using Compfy and Ibhagwan's.
  3.  
  4. #################################
  5. # Animations #
  6. #################################
  7. # requires https://github.com/jonaburg/picom
  8. # (These are also the default values)
  9. transition-length = 300
  10. transition-pow-x = 0.1
  11. transition-pow-y = 0.1
  12. transition-pow-w = 0.1
  13. transition-pow-h = 0.1
  14. size-transition = true
  15.  
  16. #################################
  17. # Corners #
  18. #################################
  19. # requires: https://github.com/sdhand/compton or https://github.com/jonaburg/picom
  20. corner-radius = 13.0;
  21. rounded-corners-exclude = [
  22. #"window_type = 'normal'",
  23. "class_g = 'awesome'",
  24. #"class_g = 'Alacritty'",
  25. "class_g = 'i3bar'",
  26. "class_g = 'Polybar'",
  27. "class_g = 'firefox'"
  28. ];
  29. round-borders = 1;
  30. round-borders-exclude = [
  31. #"class_g = 'TelegramDesktop'",
  32. ];
  33.  
  34. #################################
  35. # Shadows #
  36. #################################
  37.  
  38. # Enabled client-side shadows on windows. Note desktop windows
  39. # (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow,
  40. # unless explicitly requested using the wintypes option.
  41. #
  42. # shadow = false
  43. shadow = true;
  44.  
  45. # The blur radius for shadows, in pixels. (defaults to 12)
  46. # shadow-radius = 12
  47. shadow-radius = 10;
  48.  
  49. # The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
  50. shadow-opacity = .9
  51.  
  52. # The left offset for shadows, in pixels. (defaults to -15)
  53. # shadow-offset-x = -15
  54. shadow-offset-x = -5;
  55.  
  56. # The top offset for shadows, in pixels. (defaults to -15)
  57. # shadow-offset-y = -15
  58. shadow-offset-y = -5;
  59.  
  60. # Red color value of shadow (0.0 - 1.0, defaults to 0).
  61. shadow-red = 0.5
  62.  
  63. # Green color value of shadow (0.0 - 1.0, defaults to 0).
  64. shadow-green = 0.3
  65.  
  66. # Blue color value of shadow (0.0 - 1.0, defaults to 0).
  67. shadow-blue = 0.0
  68.  
  69. # Do not paint shadows on shaped windows. Note shaped windows
  70. # here means windows setting its shape through X Shape extension.
  71. # Those using ARGB background is beyond our control.
  72. # Deprecated, use
  73. # shadow-exclude = 'bounding_shaped'
  74. # or
  75. # shadow-exclude = 'bounding_shaped && !rounded_corners'
  76. # instead.
  77. #
  78. # shadow-ignore-shaped = ''
  79.  
  80. # Specify a list of conditions of windows that should have no shadow.
  81. #
  82. # examples:
  83. # shadow-exclude = "n:e:Notification";
  84. #
  85. # shadow-exclude = []
  86. shadow-exclude = [
  87. "name = 'Notification'",
  88. "class_g = 'Conky'",
  89. "class_g ? = 'Notify-osd'",
  90. "class_g = 'Polybar'",
  91. "class_g = 'firefox'",
  92. "class_g = 'kate'",
  93. "class_g = 'LibreWolf'",
  94. "_GTK_FRAME_EXTENTS@:c"
  95. ];
  96.  
  97. # Specify a X geometry that describes the region in which shadow should not
  98. # be painted in, such as a dock window region. Use
  99. # shadow-exclude-reg = "x10+0+0"
  100. # for example, if the 10 pixels on the bottom of the screen should not have shadows painted on.
  101. #
  102. # shadow-exclude-reg = ""
  103.  
  104. # Crop shadow of a window fully on a particular Xinerama screen to the screen.
  105. # xinerama-shadow-crop = false
  106.  
  107. #################################
  108. # Fading #
  109. #################################
  110.  
  111. # Fade windows in/out when opening/closing and when opacity changes,
  112. # unless no-fading-openclose is used.
  113. # fading = false
  114. fading = true;
  115.  
  116. # Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
  117. # fade-in-step = 0.028
  118. fade-in-step = 0.04;
  119.  
  120. # Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03)
  121. # fade-out-step = 0.03
  122. fade-out-step = 0.02;
  123.  
  124. # The time between steps in fade step, in milliseconds. (> 0, defaults to 10)
  125. fade-delta = 10
  126.  
  127. # Specify a list of conditions of windows that should not be faded.
  128. # don't need this, we disable fading for all normal windows with wintypes: {}
  129. fade-exclude = [
  130. "class_g = 'slop'" # maim
  131. ]
  132. # Do not fade on window open/close.
  133. no-fading-openclose = false
  134.  
  135. # Do not fade destroyed ARGB windows with WM frame. Workaround of bugs in Openbox, Fluxbox, etc.
  136. # no-fading-destroyed-argb = false
  137.  
  138. #################################
  139. # Transparency / Opacity #
  140. #################################
  141.  
  142. # Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0)
  143. # inactive-opacity = 1
  144. inactive-opacity = 0.6;
  145.  
  146. # Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default)
  147. # frame-opacity = 1.0
  148. frame-opacity = 0.7;
  149.  
  150. # Let inactive opacity set by -i override the '_NET_WM_OPACITY' values of windows.
  151. # inactive-opacity-override = true
  152. # inactive-opacity-override = false;
  153.  
  154. # Default opacity for active windows. (0.0 - 1.0, defaults to 1.0)
  155. active-opacity = 1.0;
  156.  
  157. # Dim inactive windows. (0.0 - 1.0, defaults to 0.0)
  158. inactive-dim = 0.6
  159.  
  160. # Specify a list of conditions of windows that should always be considered focused.
  161. # focus-exclude = []
  162. focus-exclude = [
  163. "class_g = 'Cairo-clock'",
  164. "class_g = 'Bar'", # lemonbar
  165. "class_g = 'slop'" # maim
  166. ];
  167.  
  168. # Use fixed inactive dim value, instead of adjusting according to window opacity.
  169. # inactive-dim-fixed = 1.0
  170.  
  171. # Specify a list of opacity rules, in the format `PERCENT:PATTERN`,
  172. # like `50:name *= "Firefox"`. picom-trans is recommended over this.
  173. # Note we don't make any guarantee about possible conflicts with other
  174. # programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows.
  175. # example:
  176. # opacity-rule = [ "80:class_g = 'URxvt'" ];
  177. #
  178. # opacity-rule = []
  179. opacity-rule = [
  180. "80:class_g = 'Bar'", # lemonbar
  181. "100:class_g = 'slop'", # maim
  182. "60:class_g = 'Alacritty'",
  183. "100:class_g = 'Polybar'",
  184. "90:class_g = 'Meld'",
  185. "100:class_g = 'firefox'"
  186. ];
  187.  
  188. #################################
  189. # Background-Blurring #
  190. #################################
  191.  
  192. # Parameters for background blurring, see the *BLUR* section for more information.
  193. # blur-method =
  194. # blur-size = 12
  195. #
  196. # blur-deviation = false
  197.  
  198. # Blur background of semi-transparent / ARGB windows.
  199. # Bad in performance, with driver-dependent behavior.
  200. # The name of the switch may change without prior notifications.
  201. #
  202. # blur-background = true;
  203.  
  204. # Blur background of windows when the window frame is not opaque.
  205. # Implies:
  206. # blur-background
  207. # Bad in performance, with driver-dependent behavior. The name may change.
  208. #
  209. # blur-background-frame = false;
  210.  
  211.  
  212. # Use fixed blur strength rather than adjusting according to window opacity.
  213. # blur-background-fixed = false;
  214.  
  215.  
  216. # Specify the blur convolution kernel, with the following format:
  217. # example:
  218. # 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";
  219. #
  220. # blur-kern = ''
  221. # blur-kern = "3x3box";
  222.  
  223. blur: {
  224. # requires: https://github.com/ibhagwan/picom
  225. method = "kawase";
  226. #method = "kernel";
  227. strength = 7;
  228. # deviation = 1.0;
  229. # kernel = "11x11gaussian";
  230. background = false;
  231. background-frame = false;
  232. background-fixed = false;
  233. kern = "3x3box";
  234. }
  235.  
  236. # Exclude conditions for background blur.
  237. blur-background-exclude = [
  238. #"window_type = 'dock'",
  239. #"window_type = 'desktop'",
  240. #"class_g = 'URxvt'",
  241. #
  242. # prevents picom from blurring the background
  243. # when taking selection screenshot with `main`
  244. # https://github.com/naelstrof/maim/issues/130
  245. "class_g = 'slop'",
  246. "_GTK_FRAME_EXTENTS@:c"
  247. ];
  248.  
  249. #################################
  250. # General Settings #
  251. #################################
  252.  
  253. # Daemonize process. Fork to background after initialization. Causes issues with certain (badly-written) drivers.
  254. # daemon = false
  255.  
  256. # Specify the backend to use: `xrender`, `glx`, or `xr_glx_hybrid`.
  257. # `xrender` is the default one.
  258. #
  259. experimental-backends = true;
  260. backend = "glx";
  261. #backend = "xrender";
  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 = 0
  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 = false
  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 (Causing Weird Black semi opaque rectangles when terminal is opened)
  376. #Changing use-damage to false fixes the problem
  377. use-damage = false
  378.  
  379. # Use X Sync fence to sync clients' draw calls, to make sure all draw
  380. # calls are finished before picom starts drawing. Needed on nvidia-drivers
  381. # with GLX backend for some users.
  382. #
  383. # xrender-sync-fence = false
  384.  
  385. # GLX backend: Use specified GLSL fragment shader for rendering window contents.
  386. # See `compton-default-fshader-win.glsl` and `compton-fake-transparency-fshader-win.glsl`
  387. # in the source tree for examples.
  388. #
  389. # glx-fshader-win = ''
  390.  
  391. # Force all windows to be painted with blending. Useful if you
  392. # have a glx-fshader-win that could turn opaque pixels transparent.
  393. #
  394. # force-win-blend = false
  395.  
  396. # Do not use EWMH to detect fullscreen windows.
  397. # Reverts to checking if a window is fullscreen based only on its size and coordinates.
  398. #
  399. # no-ewmh-fullscreen = false
  400.  
  401. # Dimming bright windows so their brightness doesn't exceed this set value.
  402. # Brightness of a window is estimated by averaging all pixels in the window,
  403. # so this could comes with a performance hit.
  404. # Setting this to 1.0 disables this behaviour. Requires --use-damage to be disabled. (default: 1.0)
  405. #
  406. # max-brightness = 1.0
  407.  
  408. # Make transparent windows clip other windows like non-transparent windows do,
  409. # instead of blending on top of them.
  410. #
  411. # transparent-clipping = false
  412.  
  413. # Set the log level. Possible values are:
  414. # "trace", "debug", "info", "warn", "error"
  415. # in increasing level of importance. Case doesn't matter.
  416. # If using the "TRACE" log level, it's better to log into a file
  417. # using *--log-file*, since it can generate a huge stream of logs.
  418. #
  419. # log-level = "debug"
  420. log-level = "info";
  421.  
  422. # Set the log file.
  423. # If *--log-file* is never specified, logs will be written to stderr.
  424. # Otherwise, logs will to written to the given file, though some of the early
  425. # logs might still be written to the stderr.
  426. # When setting this option from the config file, it is recommended to use an absolute path.
  427. #
  428. # log-file = '/path/to/your/log/file'
  429.  
  430. # Show all X errors (for debugging)
  431. # show-all-xerrors = false
  432.  
  433. # Write process ID to a file.
  434. # write-pid-path = '/path/to/your/log/file'
  435.  
  436. # Window type settings
  437. #
  438. # 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard:
  439. # "unknown", "desktop", "dock", "toolbar", "menu", "utility",
  440. # "splash", "dialog", "normal", "dropdown_menu", "popup_menu",
  441. # "tooltip", "notification", "combo", and "dnd".
  442. #
  443. # Following per window-type options are available: ::
  444. #
  445. # fade, shadow:::
  446. # Controls window-type-specific shadow and fade settings.
  447. #
  448. # opacity:::
  449. # Controls default opacity of the window type.
  450. #
  451. # focus:::
  452. # Controls whether the window of this type is to be always considered focused.
  453. # (By default, all window types except "normal" and "dialog" has this on.)
  454. #
  455. # full-shadow:::
  456. # Controls whether shadow is drawn under the parts of the window that you
  457. # normally won't be able to see. Useful when the window has parts of it
  458. # transparent, and you want shadows in those areas.
  459. #
  460. # redir-ignore:::
  461. # Controls whether this type of windows should cause screen to become
  462. # redirected again after been unredirected. If you have unredir-if-possible
  463. # set, and doesn't want certain window to cause unnecessary screen redirection,
  464. # you can set this to `true`.
  465. #
  466. wintypes:
  467. {
  468. normal = { fade = true; shadow = true; }
  469. tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = true; };
  470. dock = { shadow = false; }
  471. dnd = { shadow = false; }
  472. popup_menu = { opacity = 0.7; }
  473. dropdown_menu = { opacity = 0.7; }
  474. };
  475.  
Advertisement
Add Comment
Please, Sign In to add comment