Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1178 lines
46 KiB

  1. /*
  2. * This file contains patch control flags.
  3. *
  4. * In principle you should be able to mix and match any patches
  5. * you may want. In cases where patches are logically incompatible
  6. * one patch may take precedence over the other as noted in the
  7. * relevant descriptions.
  8. *
  9. * Although layouts typically come as patches they are differentiated
  10. * here for grouping purposes.
  11. */
  12. /**
  13. * Bar modules
  14. */
  15. /* Enhanced taskbar that shows the titles of all visible windows in the status bar
  16. * and allows focus / hiding / unhiding of windows by clicking on the status bar.
  17. * Awesomebar takes precedence over fancybar.
  18. * https://dwm.suckless.org/patches/awesomebar/
  19. */
  20. #define BAR_AWESOMEBAR_PATCH 0
  21. /* This patch depends on statuscmd patch and adds integration with a (patched) dwmblocks
  22. * instance to give a clickable status bar.
  23. * Patch: https://gist.github.com/danbyl/54f7c1d57fc6507242a95b71c3d8fdea
  24. * dwmblocks: https://github.com/torrinfail/dwmblocks
  25. */
  26. #define BAR_DWMBLOCKS_PATCH 0
  27. /* This patch shows the titles of all visible windows in the status bar
  28. * (as opposed to showing only the selected one).
  29. * Awesomebar takes precedence over fancybar. Fancybar takes precedence over
  30. * the centeredwindowname patch.
  31. * https://dwm.suckless.org/patches/fancybar/
  32. */
  33. #define BAR_FANCYBAR_PATCH 0
  34. /* Being an evolution of the bartabgroups patch the flexwintitle patch specifically
  35. * taps into the many layout options that flextile-deluxe offers to produce a window
  36. * title section in the bar that is representative of what is shown on screen.
  37. */
  38. #define BAR_FLEXWINTITLE_PATCH 0
  39. /* This patch adds a context menu for layout switching.
  40. * - xmenu needs to be installed.
  41. * - Edit layoutmenu.sh with the installed layouts and with correct indexes.
  42. * - Place layoutmenu.sh in PATH.
  43. * - The text of the menu items is for display only. Name them however you want.
  44. * https://dwm.suckless.org/patches/layoutmenu/
  45. */
  46. #define BAR_LAYOUTMENU_PATCH 0
  47. /* Show layout symbol in bar */
  48. #define BAR_LTSYMBOL_PATCH 1
  49. /* Adds powerline arrows for the status.
  50. * This uses statuscolors logic for choosing colors for the powerline. As these markers
  51. * are also control characters there is no explicit statuscmd support for this patch.
  52. *
  53. * Powerline separators are defined as:
  54. * |\xXX (creates a hard edge)
  55. * <\xXX (creates a less than arrow)
  56. * /\xXX (creates a diagonal line)
  57. *
  58. * Examples:
  59. * xsetroot -name "$(echo -e '<\x01a<\x02b<\x03c')"
  60. * xsetroot -name "$(echo -e '/\x01d/\x02d/\x03f')"
  61. *
  62. * https://gitlab.com/udiboy1209-suckless/dwm/-/commit/071f5063e8ac4280666828179f92788d893eea40#4b1a539194be7467cefbda22f675a3b7c19ceca7
  63. * https://dwm.suckless.org/patches/statuscolors/
  64. */
  65. #define BAR_POWERLINE_STATUS_PATCH 0
  66. /* Adds powerline arrows for the tags.
  67. * https://gitlab.com/udiboy1209-suckless/dwm/-/commit/071f5063e8ac4280666828179f92788d893eea40#4b1a539194be7467cefbda22f675a3b7c19ceca7
  68. */
  69. #define BAR_POWERLINE_TAGS_PATCH 0
  70. /* Alters the tags powerline to use forward slash instead of arrows */
  71. #define BAR_POWERLINE_TAGS_SLASH_PATCH 0
  72. /* This patch turns the titlebar area into a mfact-respecting tabbar showing each client's title.
  73. * https://dwm.suckless.org/patches/bartabgroups/
  74. */
  75. #define BAR_TABGROUPS_PATCH 0
  76. /* This patch adds an option to place tags in rows like in many other window managers.
  77. * https://dwm.suckless.org/patches/taggrid/
  78. */
  79. #define BAR_TAGGRID_PATCH 0
  80. /* Show status in bar */
  81. #define BAR_STATUS_PATCH 1
  82. /* This patch adds a clickable button to the left hand side of the statusbar.
  83. * https://dwm.suckless.org/patches/statusbutton/
  84. */
  85. #define BAR_STATUSBUTTON_PATCH 0
  86. /* This patch adds the ability to execute shell commands based on the mouse button and position
  87. * when clicking the status bar. Refer to the website for usage.
  88. * https://dwm.suckless.org/patches/statuscmd/
  89. */
  90. #define BAR_STATUSCMD_PATCH 0
  91. /* Status2d allows colors and rectangle drawing in your dwm status bar.
  92. * This patch is incompatible with the statuscolors patch which takes precedence.
  93. * This patch is incompatible with the extrabar patch.
  94. * https://dwm.suckless.org/patches/status2d/
  95. */
  96. #define BAR_STATUS2D_PATCH 0
  97. /* Supplementary patch should you want to disable alpha for the status2d section */
  98. #define BAR_STATUS2D_NO_ALPHA_PATCH 0
  99. /* Addition to the status2d patch that allows the use of terminal colors (color0 through color15)
  100. * from xrdb in the status, allowing programs like pywal to change statusbar colors.
  101. * This adds the C and B codes to use terminal foreground and background colors respectively.
  102. * E.g. ^B5^ would use color5 as the background color.
  103. * https://dwm.suckless.org/patches/status2d/
  104. */
  105. #define BAR_STATUS2D_XRDB_TERMCOLORS_PATCH 0
  106. /* The systray patch adds systray for the status bar.
  107. * https://dwm.suckless.org/patches/systray/
  108. */
  109. #define BAR_SYSTRAY_PATCH 0
  110. /* Show tag symbols in bar */
  111. #define BAR_TAGS_PATCH 1
  112. /* Show window title in bar */
  113. #define BAR_WINTITLE_PATCH 1
  114. /* Shows window titles in the bar, but only for floating clients.
  115. * This depends on code from the flexwintitle patch.
  116. * Note that the configuration in config.def.h for this is merely an example. If combined
  117. * with the corresponding hidden patch then these two will overlap unless the width of the
  118. * modules are controlled.
  119. */
  120. #define BAR_WINTITLE_FLOATING_PATCH 0
  121. /* Shows window titles in the bar, but only for floating clients.
  122. * This depends on code from the flexwintitle patch.
  123. * Note that the configuration in config.def.h for this is merely an example. If combined
  124. * with the corresponding floating patch then these two will overlap unless the width of the
  125. * modules are controlled.
  126. */
  127. #define BAR_WINTITLE_HIDDEN_PATCH 0
  128. /* Title bar modules such as wintitle (default), fancybar and awesomebar
  129. * do not by default add left and/or right padding as they take up the
  130. * remaining space. These options allow you explicitly add padding should
  131. * you need it.
  132. */
  133. #define BAR_TITLE_RIGHT_PAD_PATCH 0
  134. #define BAR_TITLE_LEFT_PAD_PATCH 1
  135. /**
  136. * Bar options
  137. */
  138. /* This patch changes the rectangle indicating if a tag is used by a client into a bar
  139. * above the tag name for better visibility.
  140. * Set the tagindicatortype variable in config.h to INDICATOR_TOP_BAR to enable this.
  141. * https://dwm.suckless.org/patches/activetagindicatorbar/
  142. */
  143. #define BAR_ACTIVETAGINDICATORBAR_PATCH N/A
  144. /* Alternative patch to the activetagindicatorbar patch, adds the bar below the tag
  145. * icon rather than above.
  146. * Set the tagindicatortype variable in config.h to INDICATOR_BOTTOM_BAR to enable this.
  147. */
  148. #define BAR_ACTIVETAGINDICATORBAR_ALT1_PATCH N/A
  149. /* The alpha patch adds transparency for the status bar.
  150. * You need to uncomment the corresponding line in config.mk to use the -lXrender library
  151. * when including this patch.
  152. * https://dwm.suckless.org/patches/alpha/
  153. */
  154. #define BAR_ALPHA_PATCH 0
  155. /* This patch introduces alternative tags which can be switched on the fly for the
  156. * sole purpose of providing visual aid.
  157. * https://dwm.suckless.org/patches/alternativetags/
  158. */
  159. #define BAR_ALTERNATIVE_TAGS_PATCH 0
  160. /* This patches provides the ability to use alternative text for tags which contain at
  161. * least one window.
  162. * https://dwm.suckless.org/patches/alttagsdecoration/
  163. */
  164. #define BAR_ALTTAGSDECORATION_PATCH 0
  165. /* This patch enables dwm to manage external status bars such as lemonbar and polybar.
  166. * dwm treats the external bar as it would its own, so all regular dwm commands such as
  167. * togglebar affect the external bar in the same way.
  168. *
  169. * NB: Unless you want both anybar + dwm bar(s) then the recommendation is to disable all
  170. * bar modules and have { 0 } in the barrules.
  171. *
  172. * https://dwm.suckless.org/patches/anybar/
  173. */
  174. #define BAR_ANYBAR_PATCH 0
  175. /* This patch adds a border around the status bar(s) just like the border of client windows.
  176. * https://codemadness.org/paste/dwm-border-bar.patch
  177. */
  178. #define BAR_BORDER_PATCH 0
  179. /* This patch centers the WM_NAME of the currently selected window on the status bar.
  180. * This is compatible with the wintitle, bartabgroups, flexwintitle and awesomebar bar
  181. * modules.
  182. * https://dwm.suckless.org/patches/centeredwindowname/
  183. */
  184. #define BAR_CENTEREDWINDOWNAME_PATCH 0
  185. /* Draws a dot indicator overlayed on each tag icon for each client. The selected client
  186. * is drawn as a larger horizontal line.
  187. * Set the tagindicatortype variable in config.h to INDICATOR_CLIENT_DOTS to enable this.
  188. * https://dwm.suckless.org/patches/clientindicators/
  189. */
  190. #define BAR_CLIENTINDICATOR_PATCH N/A
  191. /* This patch enables color emoji in dwm by removing a workaround for a BadLength error
  192. * in the Xft library when color glyphs are used.
  193. * To enable this you will need an updated Xft library that can handle color glyphs otherwise
  194. * dwm will crash on encountering such characters. Note that you will also need a font that
  195. * provides color emojis for this to work.
  196. */
  197. #define BAR_COLOR_EMOJI_PATCH 0
  198. /* Updates the position of dmenu to match that of the bar. I.e. if topbar is 0 then dmenu
  199. * will appear at the bottom and if 1 then dmenu will appear at the top.
  200. * https://dwm.suckless.org/patches/dmenumatchtop
  201. */
  202. #define BAR_DMENUMATCHTOP_PATCH 0
  203. /* Originally this was the extrabar patch, but as the handling of extra bars is now built-in
  204. * only the splitting of the status by a designated separator remains. As such this has been
  205. * renamed to more accurately reflect what it does - creating an extra status.
  206. * https://dwm.suckless.org/patches/extrabar/
  207. */
  208. #define BAR_EXTRASTATUS_PATCH 0
  209. /* Adds EWMH support for _NET_NUMBER_OF_DESKTOPS, _NET_CURRENT_DESKTOP, _NET_DESKTOP_NAMES
  210. * and _NET_DESKTOP_VIEWPORT, which allows for compatibility with other bars and programs
  211. * that request workspace information. For example polybar's xworkspaces module.
  212. *
  213. * This patch also includes support for adding the _IS_FLOATING property for floating windows
  214. * allowing for compositors to treat floating windows differently to tiled windows.
  215. *
  216. * E.g. this setting makes picom only render shadows for floating windows:
  217. *
  218. * shadow-exclude = [ "! _IS_FLOATING@:32c = 1" ];
  219. *
  220. * https://github.com/bakkeby/dwm-flexipatch/issues/50 (_IS_FLOATING patch)
  221. * https://dwm.suckless.org/patches/ewmhtags/
  222. */
  223. #define BAR_EWMHTAGS_PATCH 0
  224. /* Allows the bar height to be explicitly set rather than being derived from font.
  225. * https://dwm.suckless.org/patches/bar_height/
  226. */
  227. #define BAR_HEIGHT_PATCH 0
  228. /* This patch prevents dwm from drawing tags with no clients (i.e. vacant) on the bar.
  229. * https://dwm.suckless.org/patches/hide_vacant_tags/
  230. */
  231. #define BAR_HIDEVACANTTAGS_PATCH 0
  232. /* With this patch dwm's built-in status bar is only shown when HOLDKEY is pressed
  233. * and the bar will now overlay the display.
  234. * http://dwm.suckless.org/patches/holdbar/
  235. */
  236. #define BAR_HOLDBAR_PATCH 0
  237. /* Sometimes dwm crashes when it cannot render some glyphs in window titles (usually emoji).
  238. * This patch is essentially a hack to ignore any errors when drawing text on the status bar.
  239. * https://groups.google.com/forum/m/#!topic/wmii/7bncCahYIww
  240. * https://docs.google.com/viewer?a=v&pid=forums&srcid=MDAwODA2MTg0MDQyMjE0OTgzMzMBMDQ3ODQzODkyMTU3NTAyMTMxNTYBX2RUMVNtOUtDQUFKATAuMQEBdjI&authuser=0
  241. */
  242. #define BAR_IGNORE_XFT_ERRORS_WHEN_DRAWING_TEXT_PATCH 0
  243. /* This patch adds vertical and horizontal space between the statusbar and the edge of the screen.
  244. * https://dwm.suckless.org/patches/barpadding/
  245. */
  246. #define BAR_PADDING_PATCH 0
  247. /* This patch adds simple markup for status messages using pango markup.
  248. * This depends on the pango library v1.44 or greater.
  249. * You need to uncomment the corresponding lines in config.mk to use the pango libraries
  250. * when including this patch.
  251. *
  252. * Note that the pango patch does not protect against the BadLength error from Xft
  253. * when color glyphs are used, which means that dwm will crash if color emoji is used.
  254. *
  255. * If you need color emoji then you may want to install this patched library from the AUR:
  256. * https://aur.archlinux.org/packages/libxft-bgra/
  257. *
  258. * A long term fix for the libXft library is pending approval of this pull request:
  259. * https://gitlab.freedesktop.org/xorg/lib/libxft/-/merge_requests/1
  260. *
  261. * Also see:
  262. * https://developer.gnome.org/pygtk/stable/pango-markup-language.html
  263. * https://lists.suckless.org/hackers/2004/17285.html
  264. * https://dwm.suckless.org/patches/pango/
  265. */
  266. #define BAR_PANGO_PATCH 0
  267. /* This patch enables colored text in the status bar. It changes the way colors are defined
  268. * in config.h allowing multiple color combinations for use in the status script.
  269. * This patch is incompatible with and takes precedence over the status2d patch.
  270. * https://dwm.suckless.org/patches/statuscolors/
  271. */
  272. #define BAR_STATUSCOLORS_PATCH 0
  273. /* This patch adds configuration options for horizontal and vertical padding in the status bar.
  274. * https://dwm.suckless.org/patches/statuspadding/
  275. */
  276. #define BAR_STATUSPADDING_PATCH 0
  277. /* This patch adds the ability for dwm to read colors from the linux virtual console.
  278. * /sys/module/vt/parameters/default_{red,grn,blu}
  279. * Essentially this way the colors you use in your regular tty is "mirrored" to dwm.
  280. * https://dwm.suckless.org/patches/vtcolors/
  281. */
  282. #define BAR_VTCOLORS_PATCH 0
  283. /* This patch allows client windows to be hidden. This code was originally part of awesomebar,
  284. * but has been separated out so that other bar modules can take advantage of it.
  285. * Both awesomebar and bartabgroups patches depend on this patch and it will be auto-enabled
  286. * during compile time if it is needed. Note that if using flexipatch-finalizer this must be
  287. * explicitly enabled.
  288. * https://github.com/bakkeby/patches/blob/master/dwm/dwm-barmodules-wintitleactions-6.2.diff
  289. */
  290. #define BAR_WINTITLEACTIONS_PATCH BAR_AWESOMEBAR_PATCH || BAR_TABGROUPS_PATCH || BAR_FLEXWINTITLE_PATCH
  291. /***
  292. * Other patches
  293. */
  294. /* This patch allows windows to be resized with its aspect ratio remaining constant.
  295. * https://dwm.suckless.org/patches/aspectresize/
  296. */
  297. #define ASPECTRESIZE_PATCH 0
  298. /* This patch prevents the focus to drift from the active fullscreen client when
  299. * using focusstack().
  300. * https://dwm.suckless.org/patches/alwaysfullscreen/
  301. */
  302. #define ALWAYSFULLSCREEN_PATCH 0
  303. /* This patch adds new clients above the selected client, instead of always
  304. * becoming the new master. This behaviour is known from Xmonad.
  305. * This patch takes precedence over ATTACHASIDE_PATCH.
  306. * https://dwm.suckless.org/patches/attachabove/
  307. */
  308. #define ATTACHABOVE_PATCH 0
  309. /* This patch adds new clients on top of the stack.
  310. * This patch takes precedence over ATTACHBELOW_PATCH.
  311. * https://dwm.suckless.org/patches/attachaside/
  312. */
  313. #define ATTACHASIDE_PATCH 0
  314. /* This patch adds new clients below the selected client.
  315. * This patch takes precedence over ATTACHBOTTOM_PATCH.
  316. * https://dwm.suckless.org/patches/attachbelow/
  317. */
  318. #define ATTACHBELOW_PATCH 0
  319. /* This patch adds new clients at the bottom of the stack.
  320. * https://dwm.suckless.org/patches/attachbottom/
  321. */
  322. #define ATTACHBOTTOM_PATCH 0
  323. /* This patch will make dwm run "~/.local/share/dwm/autostart_blocking.sh" and
  324. * "~/.local/share/dwm/autostart.sh &" before entering the handler loop. One or
  325. * both of these files can be ommited. Note the path inside .local/share rather
  326. * than the original ~/.dwm folder.
  327. * https://dwm.suckless.org/patches/autostart/
  328. */
  329. #define AUTOSTART_PATCH 0
  330. /* By default, windows that are not visible when requesting a resize/move will not
  331. * get resized/moved. With this patch, they will.
  332. * https://dwm.suckless.org/patches/autoresize/
  333. */
  334. #define AUTORESIZE_PATCH 0
  335. /* This patch adds an iscentered rule to automatically center clients on the current monitor.
  336. * This patch takes precedence over centeredwindowname and fancybar patches.
  337. * https://dwm.suckless.org/patches/center/
  338. */
  339. #define CENTER_PATCH 0
  340. /* A transient window is one that is meant to be short lived and is usually raised by a
  341. * parent window. Such windows are typically dialog boxes and the like.
  342. * It should be noted that in dwm transient windows are not subject to normal client rules
  343. * and they are always floating by default.
  344. * This patch centers transient windows on the screen like the center patch does. Note that
  345. * the 6.2 center patch piggy-backed on the updatewindowtype function to ensure that all
  346. * dialog boxes were centered, transient or not. This function was removed in relation to
  347. * adding wintype as a client rule filter, hence this no longer works out of the box. This
  348. * patch restores previous behaviour with the center patch.
  349. */
  350. #define CENTER_TRANSIENT_WINDOWS_PATCH 0
  351. /* As above, except that the transient window is centered within the position of the parent
  352. * window, rather than at the center of the screen. This takes precedence over the above patch.
  353. */
  354. #define CENTER_TRANSIENT_WINDOWS_BY_PARENT_PATCH 0
  355. /* This patch provides the ability to assign different weights to clients in their
  356. * respective stack in tiled layout.
  357. * https://dwm.suckless.org/patches/cfacts/
  358. */
  359. #define CFACTS_PATCH 0
  360. /* This patch allows color attributes to be set through the command line.
  361. * https://dwm.suckless.org/patches/cmdcustomize/
  362. */
  363. #define CMDCUSTOMIZE_PATCH 0
  364. /* This patch tweaks the tagging interface so that you can select multiple tags for tag
  365. * or view by pressing all the right keys as a combo. For example to view tags 1 and 3,
  366. * hold MOD and then press and hold 1 and 3 together.
  367. * https://dwm.suckless.org/patches/combo/
  368. */
  369. #define COMBO_PATCH 0
  370. /* Allow dwm to execute commands from autostart array in your config.h file. When dwm exits
  371. * then all processes from autostart array will be killed.
  372. * https://dwm.suckless.org/patches/cool_autostart/
  373. */
  374. #define COOL_AUTOSTART_PATCH 0
  375. /* The cyclelayouts patch lets you cycle through all your layouts.
  376. * https://dwm.suckless.org/patches/cyclelayouts/
  377. */
  378. #define CYCLELAYOUTS_PATCH 0
  379. /* Make dwm respect _MOTIF_WM_HINTS property, and not draw borders around windows requesting
  380. * for it. Some applications use this property to notify window managers to not draw window
  381. * decorations.
  382. * Not respecting this property leads to issues with applications that draw their own borders,
  383. * like chromium (with "Use system title bar and borders" turned off) or vlc in fullscreen mode.
  384. * https://dwm.suckless.org/patches/decoration_hints/
  385. */
  386. #define DECORATION_HINTS_PATCH 0
  387. /* Similarly to the dragmfact patch this allows you to click and drag clients to change the
  388. * cfact to adjust the client's size in the stack. This patch depends on the cfacts patch.
  389. */
  390. #define DRAGCFACT_PATCH 0
  391. /* This patch lets you resize the split in the tile layout (i.e. modify mfact) by holding
  392. * the modkey and dragging the mouse.
  393. * This patch can be a bit wonky with other layouts, but generally works.
  394. * https://dwm.suckless.org/patches/dragmfact/
  395. */
  396. #define DRAGMFACT_PATCH 0
  397. /* Simple dwmc client using a fork of fsignal to communicate with dwm.
  398. * To use this either copy the patch/dwmc shell script to somewhere in your path or
  399. * uncomment the following line in Makefile:
  400. * #cp -f patch/dwmc ${DESTDIR}${PREFIX}/bin
  401. * http://dwm.suckless.org/patches/dwmc/
  402. */
  403. #define DWMC_PATCH 0
  404. /* This patch allows no tag at all to be selected. The result is that dwm will start with
  405. * no tag selected and when you start a client with no tag rule and no tag selected then
  406. * it will be opened on the first tag.
  407. * https://dwm.suckless.org/patches/emptyview/
  408. */
  409. #define EMPTYVIEW_PATCH 0
  410. /* This patch allows the user to change size and placement of floating windows using only the
  411. * keyboard. It also allows for temporary vertical and horizontal extension of windows similar
  412. * to other WMs fill command.
  413. * https://dwm.suckless.org/patches/exresize/
  414. */
  415. #define EXRESIZE_PATCH 0
  416. /* Only allow clients to "fullscreen" into the space currently given to them.
  417. * As an example, this will allow you to view a fullscreen video in your browser on
  418. * one half of the screen, while having the other half available for other tasks.
  419. * This patch takes precedence over the fakefullscreen client patch below.
  420. * https://dwm.suckless.org/patches/fakefullscreen/
  421. */
  422. #define FAKEFULLSCREEN_PATCH 0
  423. /* Similarly to the fakefullscreen patch this patch only allows clients to "fullscreen" into
  424. * the space currently given to them.
  425. * The "twist" with this patch is that fake fullscreen can be toggled on a per client basis
  426. * rather than applying to all clients globally.
  427. * Also see the selectivefakefullscreen option that adds a rule option to enabled this on client
  428. * startup.
  429. */
  430. #define FAKEFULLSCREEN_CLIENT_PATCH 0
  431. /* This patch adds a float rule allowing the size and position of floating windows to be specified
  432. * It also allows the size and position of floating windows to be controlled similar to the
  433. * exresize, moveresize, and moveplace patches.
  434. * The size and position can be specified using absolute, relative or fixed co-ordinates and
  435. * https://github.com/bakkeby/patches/wiki/floatpos/
  436. */
  437. #define FLOATPOS_PATCH 0
  438. /* Add-on functionality for the above: make the float positions respect outer (vanity)gaps. */
  439. #define FLOATPOS_RESPECT_GAPS_PATCH 0
  440. /* This patch provides the ability to focus the tag on the immediate left or right of the
  441. * currently focused tag. It also allows to send the focused window either on the left or
  442. * the right tag.
  443. * http://dwm.suckless.org/patches/focusadjacenttag/
  444. */
  445. #define FOCUSADJACENTTAG_PATCH 0
  446. /* Allows focusing on clients based on direction (up, down, left, right) instead of client order.
  447. * https://github.com/bakkeby/patches/wiki/focusdir/
  448. */
  449. #define FOCUSDIR_PATCH 0
  450. /* A simple patch that just puts focus back to the master client.
  451. * https://dwm.suckless.org/patches/focusmaster/
  452. */
  453. #define FOCUSMASTER_PATCH 0
  454. /* Switch focus only by mouse click and not sloppy (focus follows mouse pointer).
  455. * https://dwm.suckless.org/patches/focusonclick/
  456. */
  457. #define FOCUSONCLICK_PATCH 0
  458. /* Selects the next window having the urgent flag regardless of the tag it is on.
  459. * The urgent flag can be artificially set with the following xdotool command on any window:
  460. * xdotool selectwindow -- set_window --urgency 1
  461. * https://dwm.suckless.org/patches/focusurgent/
  462. */
  463. #define FOCUSURGENT_PATCH 0
  464. /* By default, dwm responds to _NET_ACTIVE_WINDOW client messages by setting
  465. * the urgency bit on the named window. This patch activates the window instead.
  466. * https://dwm.suckless.org/patches/focusonnetactive/
  467. */
  468. #define FOCUSONNETACTIVE_PATCH 0
  469. /* Send "fake signals" to dwm for handling, using xsetroot. This will not conflict with the
  470. * status bar, which also is managed using xsetroot.
  471. * Also see the dwmc patch, which takes precedence over this patch.
  472. * https://dwm.suckless.org/patches/fsignal/
  473. */
  474. #define FSIGNAL_PATCH 0
  475. /* Applies the monocle layout with the focused client on top and hides the bar. When pressed
  476. * again it shows the bar and restores the layout that was active before going fullscreen.
  477. * https://dwm.suckless.org/patches/fullscreen/
  478. */
  479. #define FULLSCREEN_PATCH 0
  480. /* This patch provides a keybinding to rotate all clients in the currently selected
  481. * area (master or stack) without affecting the other area.
  482. * https://dwm.suckless.org/patches/inplacerotate/
  483. */
  484. #define INPLACEROTATE_PATCH 0
  485. /* This patch lets you define custom insets from each edge of the screen. One use case would be
  486. * to arrange space for an external bar.
  487. * https://dwm.suckless.org/patches/insets/
  488. */
  489. #define INSETS_PATCH 0
  490. /* This patch (v1.5.7) implements inter-process communication through a UNIX socket for dwm. This
  491. * allows for the window manager to be queried for information, e.g. listen for events such as tag
  492. * or layout changes, as well as send commands to control the window manager via other programs.
  493. *
  494. * You need to uncomment the corresponding lines in config.mk to use the -lyajl library
  495. * when including this patch.
  496. * This patch depends on the following additional library:
  497. * - yajl
  498. *
  499. * https://github.com/mihirlad55/dwm-ipc
  500. * https://dwm.suckless.org/patches/ipc/
  501. */
  502. #define IPC_PATCH 0
  503. /* Adds rule option for clients to avoid accidental termination by killclient for sticky windows.
  504. * https://dwm.suckless.org/patches/ispermanent/
  505. */
  506. #define ISPERMANENT_PATCH 0
  507. /* This patch adds key modes (like in vim or emacs) where chains of keyboard shortcuts
  508. * can be performed.
  509. * https://dwm.suckless.org/patches/keymodes/
  510. */
  511. #define KEYMODES_PATCH 0
  512. /* This patch adds a keybinding to kills all visible clients that are not selected.
  513. * https://dwm.suckless.org/patches/killunsel/
  514. */
  515. #define KILLUNSEL_PATCH 0
  516. /* By default in dwm it is possible to make an application fullscreen, then use
  517. * the focusstack keybindings to focus on other windows beneath the current window.
  518. * It is also possible to spawn new windows (e.g. a terminal) that end up getting
  519. * focus while the previous window remains in fullscreen. This patch ensures that
  520. * in such scenarios the previous window loses fullscreen.
  521. * https://github.com/bakkeby/patches/blob/master/dwm/dwm-losefullscreen-6.2.diff
  522. */
  523. #define LOSEFULLSCREEN_PATCH 0
  524. /* This patch adds helper functions for maximizing, horizontally and vertically, floating
  525. * windows using keybindings.
  526. * https://dwm.suckless.org/patches/maximize/
  527. */
  528. #define MAXIMIZE_PATCH 0
  529. /* Control Music Player Daemon via keybinds.
  530. * You need to uncomment the corresponding line in config.mk to use the -lmpdclient library
  531. * when including this patch.
  532. * This patch depends on the following additional library:
  533. * - libmpdclient
  534. * https://dwm.suckless.org/patches/mpdcontrol/
  535. */
  536. #define MPDCONTROL_PATCH 0
  537. /* Adds rules per monitor, e.g. have default layouts per monitor.
  538. * The use case for this is if the second monitor is vertical (i.e. rotated) then
  539. * you may want to use a different default layout for this monitor than what is
  540. * used for the main monitor. E.g. normal vertical split for main monitor and
  541. * horizontal split for the second.
  542. */
  543. #define MONITOR_RULES_PATCH 0
  544. /* Always display the the monocle-symbol as defined in config.h if the monocle-layout
  545. * is activated. Do not display the number of open clients in the current tag.
  546. * https://dwm.suckless.org/patches/monoclesymbol/
  547. */
  548. #define MONOCLESYMBOL_PATCH 0
  549. /* Makes a window floating and 1/3rd the height and 1/3rd the width of the screen and is
  550. * positioned in either the center or one of the 8 cardinal directions depending on which
  551. * key is pressed.
  552. * https://dwm.suckless.org/patches/moveplace/
  553. */
  554. #define MOVEPLACE_PATCH 0
  555. /* This patch allows you to move and resize dwm's clients using keyboard bindings.
  556. * https://dwm.suckless.org/patches/moveresize/
  557. */
  558. #define MOVERESIZE_PATCH 0
  559. /* This patch allows you to move clients around in the stack and swap them with the master.
  560. * https://dwm.suckless.org/patches/movestack/
  561. */
  562. #define MOVESTACK_PATCH 0
  563. /* Adds support for the _NET_CLIENT_LIST_STACKING atom, needed by certain applications like the
  564. * Zoom video conferencing application.
  565. * https://github.com/bakkeby/patches/wiki/netclientliststacking/
  566. */
  567. #define NET_CLIENT_LIST_STACKING_PATCH 0
  568. /* Removes the border when there is only one window visible.
  569. * https://dwm.suckless.org/patches/noborder/
  570. */
  571. #define NOBORDER_PATCH 0
  572. /* Enable modifying or removing dmenu in config.def.h which resulted previously in a
  573. * compilation error because two lines of code hardcode dmenu into dwm.
  574. * https://dwm.suckless.org/patches/nodmenu/
  575. */
  576. #define NODMENU_PATCH 0
  577. /* This patch allows for toggleable client button bindings that have no modifiers.
  578. * This can, for example, allow you to move or resize using the mouse alone without holding
  579. * down a modifier key. This can be practical if you have extra buttons on your mouse.
  580. * While you can use button bindings with no modifiers without this patch in a bare dwm,
  581. * those buttons are then unavailable for use within the application itself so being able to
  582. * toggle these on and off can be necessary in certain situations (e.g. being able to use
  583. * back and forward buttons in a browser).
  584. * Example bindings:
  585. * { ClkClientWin, 0, Button8, movemouse, {0} },
  586. * { ClkClientWin, 0, Button9, resizemouse, {0} },
  587. */
  588. #define NO_MOD_BUTTONS_PATCH 0
  589. /* When terminals have transparency then their borders also become transparent.
  590. * This patch ensures that borders have no transparency. Note that this patch is
  591. * only relevant if you are not using the alpha patch.
  592. * https://github.com/szatanjl/dwm/commit/1529909466206016f2101457bbf37c67195714c8
  593. * https://dwm.suckless.org/patches/alpha/dwm-fixborders-6.2.diff
  594. */
  595. #define NO_TRANSPARENT_BORDERS_PATCH 0
  596. /* Port of InstantVM's on_empty_keys functionality allowing keybindings that apply only when
  597. * a tag is empty. An example use case is being able to launch applications with first hand
  598. * keys like "f" to launch firefox.
  599. *
  600. * https://github.com/instantOS/instantWM/
  601. * https://github.com/bakkeby/dwm-flexipatch/issues/51
  602. */
  603. #define ON_EMPTY_KEYS_PATCH 0
  604. /* Minor patch that prevents more than one rule being matched for a given client. */
  605. #define ONLY_ONE_RULE_MATCH_PATCH 0
  606. /* This patch makes it so dwm will only exit via quit() if no windows are open.
  607. * This is to prevent you accidentally losing all your work.
  608. * https://dwm.suckless.org/patches/onlyquitonempty/
  609. */
  610. #define ONLYQUITONEMPTY_PATCH 0
  611. /* The pertag patch adds nmaster, mfacts and layouts per tag rather than per
  612. * monitor (default).
  613. * https://dwm.suckless.org/patches/pertag/
  614. */
  615. #define PERTAG_PATCH 0
  616. /* This controls whether or not to also store bar position on a per
  617. * tag basis, or leave it as one bar per monitor.
  618. */
  619. #define PERTAGBAR_PATCH 0
  620. /* This patch lets you change the position of a client in the stack using the mouse.
  621. * https://github.com/bakkeby/patches/wiki/placemouse
  622. */
  623. #define PLACEMOUSE_PATCH 0
  624. /* This patch provides a way to move clients up and down inside the client list.
  625. * https://dwm.suckless.org/patches/push/
  626. */
  627. #define PUSH_PATCH 0
  628. /* This patch provides a way to move clients up and down inside the client list,
  629. * but does not push up or down into the master area (except that it does not take
  630. * nmaster into account).
  631. * This takes precedence over the push patch above.
  632. * https://dwm.suckless.org/patches/push/
  633. */
  634. #define PUSH_NO_MASTER_PATCH 0
  635. /* Shifts all clients per tag to leftmost unoccupied tags.
  636. *
  637. * For example, if clients A, B, C are tagged on tags 1, 5, 9 respectively, when
  638. * this function is called, they will now be on 1, 2, and 3. The focused client
  639. * will also remain focused.
  640. *
  641. * Clients on multiple tags will be treated as if they only were only on their
  642. * leftmost tag, and will be reduced to one tag after the operation is complete.
  643. * https://dwm.suckless.org/patches/reorganizetags/
  644. */
  645. #define REORGANIZETAGS_PATCH 0
  646. /* By default, windows only resize from the bottom right corner. With this
  647. * patch the mouse is warped to the nearest corner and you resize from there.
  648. * https://dwm.suckless.org/patches/resizecorners/
  649. */
  650. #define RESIZECORNERS_PATCH 0
  651. /* Practically the same as resizecorners, but the cursor does not warp to corners.
  652. * This takes precedence over the resizecorners patch.
  653. * https://github.com/bakkeby/patches/blob/master/dwm/dwm-resizepoint-6.2.diff
  654. */
  655. #define RESIZEPOINT_PATCH 0
  656. /* Adds a keyboard shortcut to restart dwm or alternatively by using kill -HUP dwmpid.
  657. * Additionally dwm can quit cleanly by using kill -TERM dwmpid.
  658. * https://dwm.suckless.org/patches/restartsig/
  659. */
  660. #define RESTARTSIG_PATCH 0
  661. /* Adds rio-like drawing to resize the selected client.
  662. * This depends on an external tool slop being installed.
  663. * This patch was backported from instantWM.
  664. * https://github.com/bakkeby/patches/blob/master/dwm/dwm-riodraw-6.2.diff
  665. */
  666. #define RIODRAW_PATCH 0
  667. /* This patch let's you rotate through the stack using keyboard shortcuts.
  668. * https://dwm.suckless.org/patches/rotatestack/
  669. */
  670. #define ROTATESTACK_PATCH 0
  671. /* This patch adds rounded corners to client windows in dwm.
  672. * You need to uncomment the corresponding line in config.mk to use the -lXext library
  673. * when including this patch. You will also want to set "borderpx = 0;" in your config.h.
  674. * https://github.com/mitchweaver/suckless/blob/master/dwm/patches_mitch/mitch-06-rounded_corners-db6093f6ec1bb884f7540f2512935b5254750b30.patch
  675. */
  676. #define ROUNDED_CORNERS_PATCH 0
  677. /* This patch saves size and position of every floating window before it is forced
  678. * into tiled mode. If the window is made floating again then the old dimensions
  679. * will be restored.
  680. * https://dwm.suckless.org/patches/save_floats/
  681. */
  682. #define SAVEFLOATS_PATCH 0
  683. /* The scratchpad patch allows you to spawn or restore floating terminal windows.
  684. * It is typically useful when one need to do some short typing.
  685. *
  686. * Note that this patch changes TAGMASK to make room for special scratchpad tags,
  687. * so ~0 does more than select all tags with this patch. Code that relies on ~0 to
  688. * represent all tags should use ~SPTAGMASK instead.
  689. *
  690. * Upgraded to Christian Tenllado's multiple scratchpad version.
  691. * https://lists.suckless.org/hackers/2004/17205.html
  692. * https://dwm.suckless.org/patches/scratchpads/
  693. */
  694. #define SCRATCHPADS_PATCH 0
  695. /* Minor alteration of the above allowing clients to keep their size and position when shown */
  696. #define SCRATCHPADS_KEEP_POSITION_AND_SIZE_PATCH 0
  697. /* This alternative patch enables a scratchpad feature in dwm similar to the scratchpad
  698. * feature in i3wm.
  699. * https://github.com/GasparVardanyan/dwm-scratchpad
  700. */
  701. #define SCRATCHPAD_ALT_1_PATCH 0
  702. /* As opposed to the original patch this only adds a rule option allowing fake fullscreen
  703. * to be enabled for applications when they start. This is intended to be used in combination
  704. * with the fakefullscreenclient patch and offers no practical functionality without it.
  705. * https://dwm.suckless.org/patches/selectivefakefullscreen/
  706. */
  707. #define SELECTIVEFAKEFULLSCREEN_PATCH 0
  708. /* Allows restarting dwm without the dependency of an external script.
  709. * https://dwm.suckless.org/patches/selfrestart/
  710. */
  711. #define SELFRESTART_PATCH 0
  712. /* This patch allow clients to keep focus when being sent to another monitor.
  713. * https://github.com/bakkeby/patches/blob/master/dwm/dwm-sendmon_keepfocus-6.2.diff
  714. */
  715. #define SENDMON_KEEPFOCUS_PATCH 0
  716. /* This patch allows border pixels to be changed during runtime.
  717. * https://dwm.suckless.org/patches/setborderpx/
  718. */
  719. #define SETBORDERPX_PATCH 0
  720. /* This patch adds keybindings for left and right circular shift through tags.
  721. * https://github.com/chau-bao-long/dotfiles/blob/master/suckless/dwm/shiftview.diff
  722. */
  723. #define SHIFTVIEW_PATCH 0
  724. /* This variant of the shiftview patch adds left and right circular shift through tags,
  725. * but skips tags where there are no clients.
  726. */
  727. #define SHIFTVIEW_CLIENTS_PATCH 0
  728. /* This patch makes dwm obey even "soft" sizehints for new clients. Any window
  729. * that requests a specific initial size will be floated and set to that size.
  730. * Unlike with "fixed size" windows, you are able to resize and/or unfloat these
  731. * windows freely - only the initial state is affected.
  732. * This version of the patch is honestly of limited utility since there are many
  733. * clients that will abuse it.
  734. * https://dwm.suckless.org/patches/sizehints/
  735. */
  736. #define SIZEHINTS_PATCH 0
  737. /* This patch makes dwm obey even "soft" sizehints for new clients. This ruled
  738. * version is essentially the same patch except it obeys the "isfloating" rule
  739. * if it is available in config.h for the given client.
  740. * https://dwm.suckless.org/patches/sizehints/
  741. */
  742. #define SIZEHINTS_RULED_PATCH 0
  743. /* In a multi-head setup monitor 0 is by default the primary screen, with the left and right
  744. * screen being monitor 1 and 2 respectively. This patch sorts screens left to right (or
  745. * top to bottom in a vertical layout) which aims to address some inconsistencies when it
  746. * comes to focusmon, tagmon and similar functionality.
  747. * https://www.mail-archive.com/hackers@suckless.org/msg09400.html
  748. */
  749. #define SORTSCREENS_PATCH 0
  750. /* Spawns programs from currently focused client's working directory.
  751. * https://dwm.suckless.org/patches/spawn_cwd/
  752. */
  753. #define SPAWNCMD_PATCH 0
  754. /* This patch provides comprehensive utilities for managing the client stack, providing
  755. * keyboard shortcuts for focusing or placing a client at specific positions in the stack.
  756. * Note that the default keybindings for this patch have been changed in dwm-flexipatch
  757. * due to the many conflicts with other patches. As it provides similar functionality to the
  758. * swapfocus patch it also uses the MOD+s shortcut to focus the previously selected client,
  759. * thus note a conflict between these two patches.
  760. * https://dwm.suckless.org/patches/stacker/
  761. */
  762. #define STACKER_PATCH 0
  763. /* Steam, and steam windows (games), trigger a ConfigureNotify request every time the window
  764. * gets focus. More so, the configure event passed along from Steam tends to have the wrong
  765. * x and y co-ordinates which can make the window, if floating, jump around the screen.
  766. *
  767. * This patch works around this age-old issue by ignoring the x and y co-ordinates for
  768. * ConfigureNotify requests relating to Steam windows.
  769. *
  770. * https://github.com/bakkeby/patches/wiki/steam
  771. */
  772. #define STEAM_PATCH 0
  773. /* Adds toggleable keyboard shortcut to make a client 'sticky', i.e. visible on all tags.
  774. * https://dwm.suckless.org/patches/sticky/
  775. */
  776. #define STICKY_PATCH 0
  777. /* This patch adds "window swallowing" to dwm as known from Plan 9's windowing system rio.
  778. * Clients marked with isterminal in config.h swallow a window opened by any child process,
  779. * e.g. running xclock in a terminal. Closing the xclock window restores the terminal window
  780. * in the current position.
  781. *
  782. * This patch depends on the following additional libraries:
  783. * - libxcb
  784. * - Xlib-libxcb
  785. * - xcb-res
  786. *
  787. * You need to uncomment the corresponding line in config.mk to use the above libraries when
  788. * including this patch.
  789. *
  790. * https://dwm.suckless.org/patches/swallow/
  791. */
  792. #define SWALLOW_PATCH 0
  793. /* This patch depends on the pertag patch and makes it possible to switch focus with a single
  794. * shortcut (MOD+s) instead of having to think if you should use mod-j or mod-k for reaching
  795. * the previously used window.
  796. * https://dwm.suckless.org/patches/swapfocus/
  797. */
  798. #define SWAPFOCUS_PATCH 0
  799. /* This patch allows swapping the contents of the currently selected tag with another tag using
  800. * keyboard shortcuts.
  801. * https://dwm.suckless.org/patches/swaptags/
  802. */
  803. #define SWAPTAGS_PATCH 0
  804. /* Switch focus between the master and stack columns using a single keybinding.
  805. * https://dwm.suckless.org/patches/switchcol/
  806. */
  807. #define SWITCHCOL_PATCH 0
  808. /* By default dwm allow you to set application specific rules so that you can have your browser,
  809. * for example, start up on tag 9 optionally on a given monitor when you open your browser it is
  810. * then automatically moved to the configured tag, but you have to manually enable the tag to see
  811. * the newly opened application.
  812. * This patch adds an extra configuration option for individual rules where:
  813. * 0 is default behaviour
  814. * 1 automatically moves you to the tag of the newly opened application and
  815. * 2 enables the tag of the newly opened application in addition to your existing enabled tags
  816. * 3 as 1, but closing that window reverts the view back to what it was previously (*)
  817. * 4 as 2, but closing that window reverts the view back to what it was previously (*)
  818. *
  819. * (*) except if the client has been moved between tags or to another monitor
  820. *
  821. * https://github.com/bakkeby/patches/blob/master/dwm/dwm-switchtag-6.2.diff
  822. * Also see https://dwm.suckless.org/patches/switchtotag
  823. */
  824. #define SWITCHTAG_PATCH 0
  825. /* Adds keyboard shortcuts to move all (or only floating) windows from one tag to another.
  826. * https://dwm.suckless.org/patches/tagall/
  827. */
  828. #define TAGALL_PATCH 0
  829. /* This patch allows you to move all visible windows on a monitor to an adjacent monitor.
  830. * https://github.com/bakkeby/patches/blob/master/dwm/dwm-tagallmon-6.2.diff
  831. */
  832. #define TAGALLMON_PATCH 0
  833. /* This patch makes new clients attach into the stack area when you toggle a new tag into
  834. * view. This means your master area will remain unchanged when toggling views.
  835. * The allmaster patch will cause all clients in the master area to be left alone. This patch
  836. * takes precedence over the onemaster tagintostack patch.
  837. * https://dwm.suckless.org/patches/tagintostack/
  838. */
  839. #define TAGINTOSTACK_ALLMASTER_PATCH 0
  840. /* This patch makes new clients attach into the stack area when you toggle a new tag into
  841. * view. This means your master area will remain unchanged when toggling views.
  842. * The onemaster patch will cause the first client in the master area to be left alone.
  843. * https://dwm.suckless.org/patches/tagintostack/
  844. */
  845. #define TAGINTOSTACK_ONEMASTER_PATCH 0
  846. /* If you try to send a fullscreen window to an adjacent monitor using tagmon then
  847. * the window is moved behind the scenes, but it remains in fullscreen on the original
  848. * monitor until you exit fullscreen view (at which point it will appear on the adjacent
  849. * monitor). This patch allows a fullscreen window to be moved to an adjacent monitor
  850. * while remaining in fullscreen.
  851. * https://github.com/bakkeby/patches/blob/master/dwm/dwm-tagmonfixfs-6.2.diff
  852. */
  853. #define TAGMONFIXFS_PATCH 0
  854. /* Add functions and keybindings to tag a window to a desired tag on the next (right)
  855. * or previous (left) monitor from the currently selected monitor.
  856. * https://dwm.suckless.org/patches/tagothermonitor/
  857. */
  858. #define TAGOTHERMONITOR_PATCH 0
  859. /* This patch allows you to swap all visible windows on one monitor with those of an
  860. * adjacent monitor.
  861. * https://github.com/bakkeby/patches/blob/master/dwm/dwm-tagswapmon-6.2.diff
  862. */
  863. #define TAGSWAPMON_PATCH 0
  864. /* This patch allows you to toggle fullscreen on and off using a single shortcut key.
  865. * https://github.com/bakkeby/patches/blob/master/dwm/dwm-togglefullscreen-6.2.diff
  866. */
  867. #define TOGGLEFULLSCREEN_PATCH 0
  868. /* Lets you transfer the currently focused client between the master and stack area
  869. * while increasing or decreasing the master area (nmaster) accordingly.
  870. * https://dwm.suckless.org/patches/transfer/
  871. */
  872. #define TRANSFER_PATCH 0
  873. /* Lets you transfer all clients between the master and stack area
  874. * while increasing or decreasing the master area (nmaster) accordingly.
  875. * https://dwm.suckless.org/patches/transfer/
  876. */
  877. #define TRANSFER_ALL_PATCH 0
  878. /* This patch resets isfloating on any visible windows that have it set.
  879. * Optionally also applies a layout.
  880. * https://dwm.suckless.org/patches/unfloatvisible/
  881. */
  882. #define UNFLOATVISIBLE_PATCH 0
  883. /* This patch adds configurable gaps between windows differentiating between outer, inner,
  884. * horizontal and vertical gaps.
  885. * https://github.com/bakkeby/patches/blob/master/dwm/dwm-vanitygaps-6.2.diff
  886. * https://github.com/bakkeby/patches/blob/master/dwm/dwm-cfacts-vanitygaps-6.2.diff
  887. */
  888. #define VANITYGAPS_PATCH 0
  889. /* This patch adds outer gaps for the monocle layout.
  890. * Most gaps patches tries to avoid gaps on the monocle layout, as it is often used as a
  891. * fullscreen mode, hence this is enabled separately from the main vanitygaps patch.
  892. */
  893. #define VANITYGAPS_MONOCLE_PATCH 0
  894. /* Follow a window to the tag it is being moved to.
  895. * https://dwm.suckless.org/patches/viewontag/
  896. */
  897. #define VIEWONTAG_PATCH 0
  898. /* By default tags can be changed using MOD+<num> while MOD+Tab toggles between the current and
  899. * the previous tag. This patch changes this so that if you hit MOD+<num> for the tag you are
  900. * currently on, then it works the same as MOD+Tab and switches back to the previous tag.
  901. * Idea ref.
  902. * https://www.reddit.com/r/suckless/comments/ik27vd/key_toggle_between_next_and_previous_tag_dwm/
  903. */
  904. #define VIEW_SAME_TAG_GIVES_PREVIOUS_TAG_PATCH 0
  905. /* This patch warps the mouse cursor to the center of the currently focused window or screen
  906. * when the mouse cursor is (a) on a different screen or (b) on top of a different window.
  907. * https://dwm.suckless.org/patches/warp/
  908. */
  909. #define WARP_PATCH 0
  910. /* Sometimes a single application opens different windows depending on the task
  911. * at hand and this is often reflected in the WM_WINDOW_ROLE(STRING) x property.
  912. * This patch adds the role field to the rule configuration so that one can
  913. * differentiate between, say, Firefox "browser" vs "Preferences" vs "Manager"
  914. * or Google-chrome "browser" vs "pop-up".
  915. * https://github.com/bakkeby/patches/blob/master/dwm/dwm-windowrolerule-6.2.diff
  916. */
  917. #define WINDOWROLERULE_PATCH 0
  918. /* The winview patch allows switching the view to that of a given client from the all-window
  919. * view (Mod-0) using a keyboard shortcut.
  920. * http://dwm.suckless.org/patches/winview/
  921. */
  922. #define WINVIEW_PATCH 0
  923. /* Allows dwm to read colors from xrdb (.Xresources) during runtime. Compatible with
  924. * the float border color, awesomebar, urgentborder and titlecolor patches.
  925. * https://dwm.suckless.org/patches/xrdb/
  926. */
  927. #define XRDB_PATCH 0
  928. /* Simple patch that allows floating windows to be zoomed into the master stack position.
  929. * https://www.reddit.com/r/suckless/comments/ie5fe3/zoomfloating_my_own_simple_original_patch/
  930. */
  931. #define ZOOMFLOATING_PATCH 0
  932. /* The zoomswap patch allows a master and a stack window to swap places
  933. * rather than every window on the screen changing position.
  934. * https://dwm.suckless.org/patches/zoomswap/
  935. */
  936. #define ZOOMSWAP_PATCH 0
  937. /**
  938. * Layouts
  939. */
  940. /* Bottomstack layout.
  941. * https://dwm.suckless.org/patches/bottomstack/
  942. */
  943. #define BSTACK_LAYOUT 0
  944. /* Bottomstack horizontal layout.
  945. * https://dwm.suckless.org/patches/bottomstack/
  946. */
  947. #define BSTACKHORIZ_LAYOUT 0
  948. /* Centered master layout.
  949. * https://dwm.suckless.org/patches/centeredmaster/
  950. */
  951. #define CENTEREDMASTER_LAYOUT 0
  952. /* Centered floating master layout.
  953. * https://dwm.suckless.org/patches/centeredmaster/
  954. */
  955. #define CENTEREDFLOATINGMASTER_LAYOUT 0
  956. /* Same as the default tile layout except clients in the master area are arranged in
  957. * columns (i.e. left to right).
  958. * https://dwm.suckless.org/patches/columns/
  959. */
  960. #define COLUMNS_LAYOUT 0
  961. /* Deck layout.
  962. * https://dwm.suckless.org/patches/deck/
  963. */
  964. #define DECK_LAYOUT 0
  965. /* Fibonacci dwindle layout.
  966. * https://dwm.suckless.org/patches/fibonacci/
  967. */
  968. #define FIBONACCI_DWINDLE_LAYOUT 0
  969. /* Fibonacci spiral layout.
  970. * https://dwm.suckless.org/patches/fibonacci/
  971. */
  972. #define FIBONACCI_SPIRAL_LAYOUT 0
  973. /* Flextile deluxe layout.
  974. * A revamped, more flexible, and over-the-top version of the original flextile layout.
  975. * https://dwm.suckless.org/patches/flextile/ (original)
  976. */
  977. #define FLEXTILE_DELUXE_LAYOUT 0
  978. /* Gappless grid layout.
  979. * https://dwm.suckless.org/patches/gaplessgrid/
  980. */
  981. #define GAPPLESSGRID_LAYOUT 0
  982. /* Gridmode (grid) layout.
  983. * https://dwm.suckless.org/patches/gridmode/
  984. */
  985. #define GRIDMODE_LAYOUT 0
  986. /* Horizontal grid (horizgrid) layout.
  987. * https://dwm.suckless.org/patches/horizgrid/
  988. */
  989. #define HORIZGRID_LAYOUT 0
  990. /* Grid layout where nmaster controls the number of rows.
  991. * https://dwm.suckless.org/patches/nrowgrid/
  992. */
  993. #define NROWGRID_LAYOUT 0
  994. /* The default tile layout.
  995. * This can be optionally disabled in favour of other layouts.
  996. */
  997. #define TILE_LAYOUT 1
  998. /* Monocle layout (default).
  999. * This can be optionally disabled in favour of other layouts.
  1000. */
  1001. #define MONOCLE_LAYOUT 1