Advertisement
poetician

Picom.conf | Jonaburg | ArcoLinux

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