patches.def.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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. /* Patches */
  10. /* This patch allows tabbed to handle windows with transparency.
  11. * You need to uncomment the corresponding line in Makefile to use the -lXrender library
  12. * when including this patch.
  13. * https://tools.suckless.org/tabbed/patches/alpha/
  14. */
  15. #define ALPHA_PATCH 1
  16. /* This patch hides the tab bar if only one tab is open.
  17. * https://tools.suckless.org/tabbed/patches/autohide/
  18. */
  19. #define AUTOHIDE_PATCH 1
  20. /* Named after the window title bar patch for dwm this patch divides the
  21. * tab bar space evenly between the tabbed windows.
  22. */
  23. #define AWESOMEBAR_PATCH 1
  24. /* This patch allows the height of the bar to be manually specified.
  25. * https://tools.suckless.org/tabbed/patches/bar-height/
  26. */
  27. #define BAR_HEIGHT_PATCH 1
  28. /* Only show the basename of the tabbed title; useful with zathura. Toggle with -b.
  29. * https://tools.suckless.org/tabbed/patches/basenames/
  30. */
  31. #define BASENAME_PATCH 1
  32. /* This patch moves the tabs / bar to the bottom of the tabbed window.
  33. * https://github.com/bakkeby/patches/blob/master/tabbed/tabbed-bottomtabs-0.6-20200512-dabf6a2.diff
  34. */
  35. #define BOTTOM_TABS_PATCH 0
  36. /* This patch centers the tab text.
  37. * https://www.reddit.com/r/suckless/comments/oi4zjl/tabbed_text_alignment/
  38. * https://github.com/bakkeby/patches/blob/master/tabbed/tabbed-center-0.6-20200512-dabf6a2.diff
  39. */
  40. #define CENTER_PATCH 1
  41. /* This patch prints the position number of the client before the window title.
  42. * https://tools.suckless.org/tabbed/patches/clientnumber/
  43. */
  44. #define CLIENTNUMBER_PATCH 0
  45. /* Adds support for dragging tabs left and right using the mouse.
  46. * https://tools.suckless.org/tabbed/patches/drag/
  47. */
  48. #define DRAG_PATCH 1
  49. /* This patch hides all the tabs and only shows them when Mod+Shift is pressed. All functions
  50. * with switching, rotating, and creating tabs involve Mod+Shift. When not doing one of these
  51. * functions, visibility of the tabs is not needed.
  52. * This patch relies on the keyrelease patch to support show/hide on keypress/keyrelease.
  53. * https://tools.suckless.org/tabbed/patches/hidetabs/
  54. */
  55. #define HIDETABS_PATCH 0
  56. /* This patch gives tabbed an icon. This icon is the currently selected tab's icon.
  57. * If the selected tab has no icon (or no tab is selected), use a (admittedly ugly) default icon.
  58. *
  59. * This patch supports both the new EWMH (_NET_WM_ICON) and
  60. * legacy ICCCM (WM_ICON) ways of setting a window's icon.
  61. *
  62. * https://tools.suckless.org/tabbed/patches/icon/
  63. */
  64. #define ICON_PATCH 1
  65. /* With this patch, handling key input is done with keycodes instead of keysyms making
  66. * the keyboard layout independent.
  67. * https://tools.suckless.org/tabbed/patches/keycode/
  68. */
  69. #define KEYCODE_PATCH 0
  70. /* This patch enables for function handling on KeyRelease events.
  71. * For example usage see: hidetabs
  72. * https://tools.suckless.org/tabbed/patches/keyrelease/
  73. */
  74. #define KEYRELEASE_PATCH 0
  75. /* Add a decorative separator bar to the beginning of each tab.
  76. * https://tools.suckless.org/tabbed/patches/separator/
  77. */
  78. #define SEPARATOR_PATCH 0
  79. /* This patch allows tabbed colors to be defined via Xresources.
  80. * https://tools.suckless.org/tabbed/patches/xresources/
  81. */
  82. #define XRESOURCES_PATCH 1
  83. /* Expansion of the resources patch above, allows resources to be reloaded during
  84. * runtime by using a USR1 kill signal.
  85. *
  86. * Example use:
  87. * pidof tabbed | xargs kill -s USR1
  88. *
  89. * https://tools.suckless.org/tabbed/patches/xresources-with-reload-signal/
  90. */
  91. #define XRESOURCES_RELOAD_PATCH 1