patches.def.h 59 KB

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