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