Advertisement
Guest User

Compton config

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