poetician

Picom.conf | Ibhagwan | HP Arco

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