poetician

picom.conf |Ibhagwan fork

Dec 5th, 2020 (edited)
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.41 KB | None | 0 0
  1. # Thank you code_nomad: http://9m.no/ꪯ鵞
  2. # and Arch Wiki contributors: https://wiki.archlinux.org/index.php/Compton
  3.  
  4. #################################
  5. #
  6. # Backend
  7. #
  8. #################################
  9.  
  10. # Backend to use: "xrender" or "glx".
  11. # GLX backend is typically much faster but depends on a sane driver.
  12. backend = "glx";
  13. #backend = "xrender"
  14.  
  15. #################################
  16. #
  17. # GLX backend
  18. #
  19. #################################
  20.  
  21. glx-no-stencil = true;
  22.  
  23. # GLX backend: Copy unmodified regions from front buffer instead of redrawing them all.
  24. # My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified,
  25. # but a 20% increase when only 1/4 is.
  26. # My tests on nouveau show terrible slowdown.
  27. glx-copy-from-front = false;
  28.  
  29. # GLX backend: Use MESA_copy_sub_buffer to do partial screen update.
  30. # My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated.
  31. # May break VSync and is not available on some drivers.
  32. # Overrides --glx-copy-from-front.
  33. # glx-use-copysubbuffermesa = true;
  34.  
  35. # GLX backend: Avoid rebinding pixmap on window damage.
  36. # Probably could improve performance on rapid window content changes, but is known to break things on some drivers (LLVMpipe).
  37. # Recommended if it works.
  38. # glx-no-rebind-pixmap = true;
  39.  
  40. # GLX backend: GLX buffer swap method we assume.
  41. # Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1).
  42. # undefined is the slowest and the safest, and the default value.
  43. # copy is fastest, but may fail on some drivers,
  44. # 2-6 are gradually slower but safer (6 is still faster than 0).
  45. # Usually, double buffer means 2, triple buffer means 3.
  46. # buffer-age means auto-detect using GLX_EXT_buffer_age, supported by some drivers.
  47. # Useless with --glx-use-copysubbuffermesa.
  48. # Partially breaks --resize-damage.
  49. # Defaults to undefined.
  50. # glx-swap-method = "undefined";
  51.  
  52. #################################
  53. #
  54. # Shadows
  55. #
  56. #################################
  57.  
  58. # Enabled client-side shadows on windows.
  59. shadow = true;
  60. # The blur radius for shadows. (default 12)
  61. shadow-radius = 20;
  62. # The left offset for shadows. (default -15)
  63. shadow-offset-x = 15;
  64. # The top offset for shadows. (default -15)
  65. shadow-offset-y = 15;
  66. # The translucency for shadows. (default .75)
  67. shadow-opacity = 0.3;
  68.  
  69. blur: {
  70. method = "kawase";
  71. strength = 9;
  72. background = false;
  73. background-frame = false;
  74. background-fixed = false;
  75. }
  76.  
  77. log-level = "warn";
  78. #change your username here
  79. log-file = "/home/poetician/.config/compton.log";
  80.  
  81. # Set if you want different colour shadows
  82. # shadow-red = 0.0;
  83. # shadow-green = 0.0;
  84. # shadow-blue = 0.0;
  85.  
  86. # The shadow exclude options are helpful if you have shadows enabled. Due to the way compton draws its shadows, certain applications will have visual glitches
  87. # (most applications are fine, only apps that do weird things with xshapes or argb are affected).
  88. # This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher.
  89. shadow-exclude = [
  90. "name = 'Notification'",
  91. "name = 'Plank'",
  92. "name = 'Docky'",
  93. "name = 'Kupfer'",
  94. "name = 'xfce4-notifyd'",
  95. "name *= 'VLC'",
  96. "name *= 'compton'",
  97. "name *= 'picom'",
  98. "name *= 'Chromium'",
  99. "name *= 'Chrome'",
  100. #"class_g = 'Firefox' && argb",
  101. "class_g = 'Conky'",
  102. "class_g = 'Kupfer'",
  103. "class_g = 'Synapse'",
  104. "class_g ?= 'Notify-osd'",
  105. "class_g ?= 'Cairo-dock'",
  106. "class_g = 'Cairo-clock'",
  107. "class_g ?= 'Xfce4-notifyd'",
  108. "class_g ?= 'Xfce4-power-manager'",
  109. "_GTK_FRAME_EXTENTS@:c",
  110. "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
  111. ];
  112. # Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners)
  113. shadow-ignore-shaped = true;
  114.  
  115. #################################
  116. #
  117. #Radius
  118. #
  119. #################################
  120.  
  121. corner-radius = 20.0;
  122. rounded-corners-exclude = [
  123. #"window_type = 'normal'",
  124. "class_g = 'URxvt'",
  125. "class_g = 'XTerm'",
  126. "class_g = 'Polybar'",
  127. "class_g = 'code-oss'",
  128. #"class_g = 'TelegramDesktop'",
  129. #"class_g = 'firefox'",
  130. "class_g = 'Thunderbird'",
  131. ];
  132.  
  133. #################################
  134. #
  135. # Opacity
  136. #
  137. #################################
  138.  
  139. inactive-opacity = 0.8;
  140. active-opacity = 1;
  141. frame-opacity = 0.8;
  142. inactive-opacity-override = true;
  143.  
  144. # Dim inactive windows. (0.0 - 1.0)
  145. inactive-dim = 0.2;
  146. # Do not let dimness adjust based on window opacity.
  147. inactive-dim-fixed = true;
  148. # Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
  149. blur-background = true;
  150. # Blur background of opaque windows with transparent frames as well.
  151. blur-background-frame = true;
  152. # Do not let blur radius adjust based on window opacity.
  153. blur-background-fixed = true;
  154. blur-background-exclude = [
  155. "window_type = 'dock'",
  156. "window_type = 'desktop'",
  157. "_GTK_FRAME_EXTENTS@:c"
  158. ];
  159.  
  160. #################################
  161. #
  162. # Fading
  163. #
  164. #################################
  165.  
  166. # Fade windows during opacity changes.
  167. fading = true;
  168. # The time between steps in a fade in milliseconds. (default 10).
  169. fade-delta = 12;
  170. # Opacity change between steps while fading in. (default 0.028).
  171. fade-in-step = 0.02;
  172. # Opacity change between steps while fading out. (default 0.03).
  173. fade-out-step = 0.02;
  174. # Fade windows in/out when opening/closing
  175. no-fading-openclose = false;
  176.  
  177. # Specify a list of conditions of windows that should not be faded.
  178. fade-exclude = [ ];
  179.  
  180. #################################
  181. #
  182. # Other
  183. #
  184. #################################
  185.  
  186. # Try to detect WM windows and mark them as active.
  187. mark-wmwin-focused = true;
  188. # Mark all non-WM but override-redirect windows active (e.g. menus).
  189. mark-ovredir-focused = true;
  190. # Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events.
  191. # Usually more reliable but depends on a EWMH-compliant WM.
  192. use-ewmh-active-win = true;
  193. # Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
  194. detect-rounded-corners = true;
  195.  
  196. # Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows.
  197. # This prevents opacity being ignored for some apps.
  198. # For example without this enabled my xfce4-notifyd is 100% opacity no matter what.
  199. detect-client-opacity = true;
  200.  
  201. # Specify refresh rate of the screen.
  202. # If not specified or 0, picom will try detecting this with X RandR extension.
  203. refresh-rate = 0;
  204.  
  205. # Vertical synchronization: match the refresh rate of the monitor
  206. # this breaks transparency in virtualbox - put a "#" before next line to fix that
  207. vsync = true;
  208.  
  209. # Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing.
  210. # Reported to have no effect, though.
  211. dbe = false;
  212.  
  213. # Limit picom to repaint at most once every 1 / refresh_rate second to boost performance.
  214. # This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already,
  215. # unless you wish to specify a lower refresh rate than the actual value.
  216. #sw-opti = true;
  217.  
  218. # Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games.
  219. # Known to cause flickering when redirecting/unredirecting windows.
  220. unredir-if-possible = false;
  221.  
  222. # Specify a list of conditions of windows that should always be considered focused.
  223. focus-exclude = [ ];
  224.  
  225. # Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time.
  226. detect-transient = true;
  227. # Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused at the same time.
  228. # WM_TRANSIENT_FOR has higher priority if --detect-transient is enabled, too.
  229. detect-client-leader = true;
  230.  
  231. #################################
  232. #
  233. # Window type settings
  234. #
  235. #################################
  236.  
  237. wintypes:
  238. {
  239. tooltip = { fade = true; shadow = true; opacity = 0.9; focus = true;};
  240. dock = { shadow = false; }
  241. dnd = { shadow = false; }
  242. popup_menu = { opacity = 0.7; }
  243. dropdown_menu = { opacity = 0.7; }
  244. };
  245.  
  246. ######################
  247. #
  248. # XSync
  249. # See: https://github.com/yshui/compton/commit/b18d46bcbdc35a3b5620d817dd46fbc76485c20d
  250. #
  251. ######################
  252.  
  253. # Use X Sync fence to sync clients' draw calls. Needed on nvidia-drivers with GLX backend for some users.
  254. # xrender-sync-fence = true;
  255.  
Add Comment
Please, Sign In to add comment