compton.conf 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. backend = "glx";
  2. glx-no-stencil = true;
  3. glx-copy-from-front = false;
  4. glx-swap-method = 1;
  5. blur-background = true;
  6. blur-kern = "7x7box";
  7. # Shadow
  8. shadow = true; # Enabled client-side shadows on windows.
  9. no-dock-shadow = true; # Avoid drawing shadows on dock/panel windows.
  10. no-dnd-shadow = true; # Don't draw shadows on DND windows.
  11. clear-shadow = true; # Zero the part of the shadow's mask behind the window (experimental).
  12. shadow-radius = 5; # The blur radius for shadows. (default 12)
  13. shadow-offset-x = -10; # The left offset for shadows. (default -15)
  14. shadow-offset-y = -10; # The top offset for shadows. (default -15)
  15. shadow-opacity = 0.5;
  16. menu-opacity = 1;
  17. shadow-exclude = [
  18. #"! name~=''",
  19. "n:e:Notification",
  20. "n:e:Dunst",
  21. "n:e:dzen",
  22. "name = 'dzen slave'",
  23. "name = 'gnome-screenshot'",
  24. #"n:e:Docky",
  25. #"g:e:Synapse",
  26. #"g:e:Kupfer",
  27. "g:e:Conky",
  28. "n:w:Firefox",
  29. "n:w:*Chrome*",
  30. "n:w:*Chromium*",
  31. "class_g ?= 'dzen'",
  32. "class_g ?= 'gnome-screenshot'"
  33. #"class_g ?= 'Cairo-dock'",
  34. #"class_g ?= 'Xfce4-notifyd'",
  35. #"class_g ?= 'Xfce4-power-manager'"
  36. ];
  37. blur-background-exclude = [
  38. "name = 'gnome-screenshot'",
  39. "class_g ?= 'gnome-screenshot'"
  40. ];
  41. #opacity-rule = ["85:class_g = 'gnome-terminal'"];
  42. opacity-rule = [
  43. "50:class_g = 'Bspwm' && class_i = 'presel_feedback'",
  44. "90:class_g = 'URxvt'"
  45. ];
  46. # 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
  47. # (most applications are fine, only apps that do weird things with xshapes or argb are affected).
  48. # 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.
  49. # Fading
  50. fading = true; # Fade windows during opacity changes.
  51. fade-delta = 4; # The time between steps in a fade in milliseconds. (default 10).
  52. fade-in-step = 0.03; # Opacity change between steps while fading in. (default 0.028).
  53. fade-out-step = 0.03; # Opacity change between steps while fading out. (default 0.03).
  54. no-fading-openclose = false; # Fade windows in/out when opening/closing
  55. detect-client-opacity = true; # This prevents opacity being ignored for some apps. For example without this enabled my xfce4-notifyd is 100% opacity no matter what.
  56. #Window type settings
  57. wintypes:
  58. {
  59. tooltip = { fade = true; shadow = false; };
  60. menu = { shadow = false; };
  61. dropdown_menu = { shadow = false; };
  62. popup_menu = { shadow = false; };
  63. };