picom.conf 16 KB

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