Advertisement
twodogsdave

picom.conf_openbox

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