Advertisement
Guest User

picom config

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