README.md (17246B)
1 Similar to [dwm-flexipatch](https://github.com/bakkeby/dwm-flexipatch) this st 0.9.2 (6009e6e, 2024-11-25) project has a different take on st patching. It uses preprocessor directives to decide whether or not to include a patch during build time. Essentially this means that this build, for better or worse, contains both the patched _and_ the original code. The aim being that you can select which patches to include and the build will contain that code and nothing more. 2 3 For example to include the `alpha` patch then you would only need to flip this setting from 0 to 1 in [patches.h](https://github.com/bakkeby/st-flexipatch/blob/master/patches.def.h): 4 ```c 5 #define ALPHA_PATCH 1 6 ``` 7 8 Once you have found out what works for you and what doesn't then you should be in a better position to choose patches should you want to start patching from scratch. 9 10 Alternatively if you have found the patches you want, but don't want the rest of the flexipatch entanglement on your plate then you may want to have a look at [flexipatch-finalizer](https://github.com/bakkeby/flexipatch-finalizer); a custom pre-processor tool that removes all the unused flexipatch code leaving you with a build that contains the patches you selected. 11 12 Refer to [https://st.suckless.org/](https://st.suckless.org/) for details on the st terminal, how to install it and how it works. 13 14 --- 15 16 ### Changelog: 17 18 2024-05-31 - Added the anygeometry patch 19 20 2024-03-13 - Added the reflow patch and upgraded the netwmicon patch 21 22 2024-03-07 - Improved sixel support, removed VIM browse patch 23 24 2022-10-24 - Added the fullscreen patch 25 26 2022-08-28 - Added the use XftFontMatch patch 27 28 2022-08-24 - Added the no window decorations patch 29 30 2022-04-11 - Added the background image reload patch 31 32 2022-03-10 - Added the background image patch 33 34 2022-02-24 - Upgraded to st 0.8.5 e823e23, 2022-02-17 - removing osc_10_11_12_2 patch as no longer relevant 35 36 2021-08-18 - Added the CSI 22 & 23 patch 37 38 2021-07-26 - Added columns patch 39 40 2021-07-07 - Added sixel scrollback and the openurlonclick patch 41 42 2021-06-09 - Added the hide terminal cursor patch 43 44 2021-05-16 - Added swapmouse patch 45 46 2021-05-11 - Added default cursor patch 47 48 2021-05-10 - Upgrade to 46b02f, 2021-03-28 49 50 2021-05-09 - Added the sync, alpha-focus-hightlight and vim browse patches 51 52 2021-05-08 - Added blinking cursor, delkey, undercurl,universcroll, desktopentry, netwmicon and osc_10_11_12_2 patches 53 54 2021-05-07 - Added xresources reload patch 55 56 2021-04-21 - Added (temporary?) hack for Variable Fonts (VT) support 57 58 2021-03-10 - Added sixel support 59 60 2021-02-26 - Added the dynamic cursor color patch 61 62 2021-02-15 - Added the alpha gradient patch 63 64 2020-11-14 - Added the wide glyphs patch 65 66 2020-10-23 - Added the monochrome patch 67 68 2020-08-08 - Re-added the visualbell patch 69 70 2020-06-26 - Added the single drawable buffer patch as per the FAQ in order to get w3m images to display 71 72 2020-06-25 - Upgrade to 0.8.4 (367803, 2020-06-19) 73 74 2020-06-14 - Added w3m patch 75 76 2020-06-10 - Upgrade to 249ef9, 2020-06-01 77 78 2020-06-05 - Added the ligatures patch 79 80 2020-05-20 - Upgrade to 222876, 2020-05-09, and removed visualbell 1, 2, 3 patches and force redraw after keypress due to incompatibility. Refer to tag [371878](https://github.com/bakkeby/st-flexipatch/tree/371878) if you want to try these out. 81 82 2020-04-20 - Upgrade to c279f5, 2020-04-19, and added the force redraw on pselect after key is pressed patch and the externalpipein patch 83 84 2020-03-29 - Added invert and workingdir patches 85 86 2020-03-24 - Upgraded to latest (master) of st (commit 51e19ea11dd42eefed1ca136ee3f6be975f618b1 at the time of writing). Custom changes to make the altscreen mouse scollback patch working. 87 88 2020-03-21 - Added font2 patch 89 90 2020-01-07 - Added st embedder patch 91 92 2019-10-16 - Introduced [flexipatch-finalizer](https://github.com/bakkeby/flexipatch-finalizer) 93 94 2019-09-17 - Added relativeborder, fix-keyboard-input, iso14755, visualbell, right-click-to-plumb, boxdraw and keyboard-select patches 95 96 2019-09-16 - Added alpha, anysize, bold-is-not-bright, clipboard, copyurl, disable-fonts, externalpipe, fixime, hidecursor, newterm, open-copied-url, vertcenter, scrollback, spoiler, themed cursor and xresources patches 97 98 ### Patches included: 99 100 - [alpha](https://st.suckless.org/patches/alpha/) 101 - adds transparency for the terminal 102 103 - [alpha-focus-highlight](https://st.suckless.org/patches/alpha_focus_highlight/) 104 - allows the user to specify two distinct opacity values or background colors in order to 105 easily differentiate between focused and unfocused terminal windows 106 107 - [anygeometry](https://st.suckless.org/patches/anygeometry/) 108 - allows st to start at any pixel size using the \-G command line option (if floating) 109 - can be combined with the anysize patch to resize to any pixel size 110 111 - [anysize](https://st.suckless.org/patches/anysize/) 112 - allows st to reize to any pixel size rather than snapping to character width / height 113 114 - [~anysize\_nobar~](https://github.com/connor-brooks/st-anysize-nobar) 115 - ~a patch that aims to prevent black bars being drawn on the edges of st terminals using the 116 anysize patch~ 117 118 - [background-image](https://st.suckless.org/patches/background_image/) 119 - draws a background image in farbfeld format in place of the defaultbg color allowing for 120 pseudo transparency 121 122 - background-image-reload 123 - allows the background image to be reloaded similar to xresources using USR1 signals 124 125 - [blinking-cursor](https://st.suckless.org/patches/blinking_cursor/) 126 - allows the use of a blinking cursor 127 128 - [bold-is-not-bright](https://st.suckless.org/patches/bold-is-not-bright/) 129 - by default bold text is rendered with a bold font in the bright variant of the current color 130 - this patch makes bold text rendered simply as bold, leaving the color unaffected 131 132 - [boxdraw](https://st.suckless.org/patches/boxdraw/) 133 - adds dustom rendering of lines/blocks/braille characters for gapless alignment 134 135 - [clipboard](https://st.suckless.org/patches/clipboard/) 136 - by default st only sets PRIMARY on selection 137 - this patch makes st set CLIPBOARD on selection 138 139 - [columns](https://github.com/bakkeby/st-flexipatch/issues/34) 140 - allows st to be resized without cutting off text when the terminal window is made larger again 141 - text does not wrap when the terminal window is made smaller 142 143 - [copyurl](https://st.suckless.org/patches/copyurl/) 144 - this patch allows you to select and copy the last URL displayed with Mod+l 145 - multiple invocations cycle through the available URLs 146 147 - [csi\_23\_23](https://st.suckless.org/patches/csi_22_23/) 148 - adds support for CSI escape sequences 22 and 23, which save and restores the window title 149 (for instance nvim does this when opening and closing) 150 151 - default-cursor 152 - minor change allowing escape sequences like `\e[ q` or `\e[0 q` to set the cursor back to default configuration instead of a blinking block 153 - while many terminals do this the behaviour is not according to the specification 154 155 - [delkey](https://st.suckless.org/patches/delkey/) 156 - return BS on pressing backspace and DEL on pressing the delete key 157 158 - [desktopentry](https://st.suckless.org/patches/desktopentry/) 159 - adds a desktop entry for st so that it can be displayed with an icon when using a graphical launcher 160 - this patch only applies to the Makefile and is enabled by default, remove if not needed 161 162 - [disable-fonts](https://st.suckless.org/patches/disable_bold_italic_fonts/) 163 - this patch adds the option of disabling bold/italic/roman fonts globally 164 165 - [dynamic-cursor-color](https://st.suckless.org/patches/dynamic-cursor-color/) 166 - this patch makes the cursor color the inverse of the current cell color 167 168 - [externalpipe](https://st.suckless.org/patches/externalpipe/) 169 - this patch allows for reading and writing st's screen through a pipe, e.g. to pass info to dmenu 170 171 - [externalpipein](https://lists.suckless.org/hackers/2004/17218.html) 172 - this patch prevents the reset of the signal handler set on SIGCHILD, when the forked process that executes the external process exits 173 - it adds the externalpipein function to redirect the standard output of the external command to the slave size of the pty, that is, as if the external program had been manually executed on the terminal 174 - this can be used to send desired escape sequences to the terminal with a shortcut (e.g. to change colors) 175 176 - [~fixime~](https://st.suckless.org/patches/fix_ime/) 177 - adds better Input Method Editor (IME) support 178 - (included in the base as per [35f7db](https://git.suckless.org/st/commit/e85b6b64660214121164ea97fb098eaa4935f7db.html)) 179 180 - [fix-keyboard-input](https://st.suckless.org/patches/fix_keyboard_input/) 181 - allows cli applications to use all the fancy key combinations that are available to GUI applications 182 183 - [font2](https://st.suckless.org/patches/font2/) 184 - allows you to add a spare font besides the default 185 186 - [~force-redraw-after-keypress~](https://lists.suckless.org/hackers/2004/17221.html) 187 - ~this patch forces the terminal to check for new data on the tty on keypress with the aim of reducing input latency~ 188 189 - [fullscreen](https://st.suckless.org/patches/fullscreen/) 190 - allows the st window to go into fullscreen mode 191 192 - [gradient](https://st.suckless.org/patches/gradient/) 193 - adds gradient transparency to st 194 - depends on the alpha patch 195 196 - [hidecursor](https://st.suckless.org/patches/hidecursor/) 197 - hides the X cursor whenever a key is pressed and show it back when the mouse is moved in the terminal window 198 199 - [hide-terminal-cursor](https://www.reddit.com/r/suckless/comments/nvee8h/how_to_hide_cursor_in_st_is_there_a_patch_for_it/) 200 - hides the terminal cursor when the window loses focus (as opposed to showing a hollow cursor) 201 202 - [invert](https://st.suckless.org/patches/invert/) 203 - adds a keybinding that lets you invert the current colorscheme of st 204 - this provides a simple way to temporarily switch to a light colorscheme if you use a dark colorscheme or visa-versa 205 206 - [iso14755](https://st.suckless.org/patches/iso14755/) 207 - pressing the default binding Ctrl+Shift-i will popup dmenu, asking you to enter a unicode codepoint that will be converted to a glyph and then pushed to st 208 209 - [keyboard-select](https://st.suckless.org/patches/keyboard_select/) 210 - allows you to select text on the terminal using keyboard shortcuts 211 212 - [ligatures](https://st.suckless.org/patches/ligatures/) 213 - adds support for drawing ligatures using the Harfbuzz library to transform original text of a single line to a list of glyphs with ligatures included 214 215 - [monochrome](https://www.reddit.com/r/suckless/comments/ixbx6z/how_to_use_black_and_white_only_for_st/) 216 - makes st ignore terminal color attributes to make for a monochrome look 217 218 - [netwmicon](https://st.suckless.org/patches/netwmicon/) 219 - sets the \_NET\_WM\_ICON X property with a .png file 220 - or alternatively sets the \_NET\_WM\_ICON X property with a farbfeld (.ff) file 221 - or alternatively sets the \_NET\_WM\_ICON X property with a hardcoded icon 222 223 - [newterm](https://st.suckless.org/patches/newterm/) 224 - allows you to spawn a new st terminal using Ctrl-Shift-Return 225 - it will have the same CWD (current working directory) as the original st instance 226 227 - [no-window-decorations](https://github.com/bakkeby/patches/wiki/no_window_decorations) 228 - makes st show without window decorations if the WM supports it 229 230 - [open-copied-url](https://st.suckless.org/patches/open_copied_url/) 231 - open contents of the clipboard in a user-defined browser 232 233 - [openurlonclick](https://www.reddit.com/r/suckless/comments/cc83om/st_open_url/) 234 - allows for URLs to be opened directly when you click on them 235 236 - [~osc\_10\_11\_12\_2~](https://st.suckless.org/patches/osc_10_11_12_2/) 237 - ~this patch adds support for OSC escape sequences 10, 11, and 12 in the way they are~ 238 ~implemented in most other terminals (e.g libvte, kitty)~ 239 - ~specifically it differs from~ [~osc_10_11_12~](https://st.suckless.org/patches/osc_10_11_12/) 240 ~in that it treats the background and foreground colors as distinct from palette colours 01~ 241 ~and 07 in order to facilitate the use of theme setting scripts like~ 242 [~theme.sh~](https://github.com/lemnos/theme.sh) ~which expect these colours to be distinct~ 243 244 - reflow 245 - allows st to be resized without cutting off text when the terminal window is made larger again 246 - text wraps when the terminal window is made smaller 247 248 - [relativeborder](https://st.suckless.org/patches/relativeborder/) 249 - allows you to specify a border that is relative in size to the width of a cell in the 250 terminal 251 252 - [right-click-to-plumb](https://st.suckless.org/patches/right_click_to_plumb/) 253 - allows you to right-click on some selected text to send it to the plumbing program of choice 254 255 - [scrollback](https://st.suckless.org/patches/scrollback/) 256 - allows you scroll back through terminal output using keyboard shortcuts or mousewheel 257 258 - sixel 259 - this patch adds SIXEL graphics support 260 261 - st-embedder 262 - this patch allows clients to embed into the st window and can be useful if you tend to 263 start X applications from the terminal 264 - the behavior is similar to Plan 9 where applications can take over windows 265 266 - [spoiler](https://st.suckless.org/patches/spoiler/) 267 - use inverted defaultbg/fg for selection when bg/fg are the same 268 269 - [swapmouse](https://st.suckless.org/patches/swapmouse/) 270 - changes the mouse shape to the global default when the running program subscribes for mouse 271 events, for instance, in programs like ranger and fzf 272 - it emulates the behaviour shown by vte terminals like termite 273 274 - [sync](https://st.suckless.org/patches/sync/) 275 - adds synchronized-updates/application-sync support in st 276 - this has no effect except when an application uses the synchronized-update escape sequences 277 - with this patch nearly all cursor flicker is eliminated in tmux, and tmux detects it 278 automatically via terminfo 279 280 - [themed-cursor](https://st.suckless.org/patches/themed_cursor/) 281 - instead of a default X cursor, use the xterm cursor from your cursor theme 282 283 - [undercurl](https://st.suckless.org/patches/undercurl/) 284 - adds support for special underlines, e.g. curly / wavy underlines 285 286 - [universcroll](https://st.suckless.org/patches/universcroll/) 287 - allows mouse scroll without modifier keys for regardless of alt screen using the external 288 scroll program 289 290 - [use-XftFontMatch](https://git.suckless.org/st/commit/528241aa3835e2f1f052abeeaf891737712955a0.html) 291 - use XftFontMatch in place of FcFontMatch to allow font to scale with Xft.dpi resource 292 setting 293 294 - [vertcenter](https://st.suckless.org/patches/vertcenter/) 295 - vertically center lines in the space available if you have set a larger chscale in config.h 296 297 - [~vim-browse~](https://st.suckless.org/patches/vim_browse/) 298 - ~the vim-browse patch offers the possibility to move through the terminal history-buffer,~ 299 ~search for strings using VIM-like motions, operations and quantifiers~ 300 - ~it overlays the screen with highlighted search results and displays the current operation~ 301 ~/ motions / search string in the bottom right corner~ 302 - the VIM browse patch was removed due to sheer complexity and it being incompatible with a 303 significant number of other patches 304 - if you want to try this patch out then the recommendation is to play around with the 305 author's own build of st where this is properly implemented with history buffer (scrollback) 306 - https://github.com/juliusHuelsmann/st 307 308 - [visualbell](https://st.suckless.org/patches/visualbell/) 309 - adds visual indicators for the terminal bell event 310 311 - [w3m](https://st.suckless.org/patches/w3m/) 312 - adds support for w3m images 313 314 - [wide-glyphs](https://www.reddit.com/r/suckless/comments/jt90ai/update_support_for_proper_glyph_rendering_in_st/) 315 - adds proper support for wide glyphs, as opposed to rendering smaller or cut glyphs 316 317 - [wide-glyph-spacing](https://github.com/googlefonts/Inconsolata/issues/42#issuecomment-737508890) 318 - there is a known issue that Google's Variable Fonts (VF) can end up with letter spacing 319 that is too wide in programs that use Xft, for example Inconsolata v3.000 320 - this is intended as a temporary workaround / patch / hack until (if) this is fixed in the 321 Xft library itself 322 323 - [workingdir](https://st.suckless.org/patches/workingdir/) 324 - allows user to specify the initial path st should use as the working directory 325 326 - [xresources](https://st.suckless.org/patches/xresources/) 327 - adds the ability to configure st via Xresources 328 - during startup, st will read and apply the resources named in the resources[] array in config.h