Adding note about flexipatch-finalizer

This commit is contained in:
bakkeby 2019-10-16 08:28:00 +02:00
parent cfecd195ba
commit dc915b6056
11 changed files with 25 additions and 42 deletions

View File

@ -5,12 +5,18 @@ For example to include the `alpha` patch then you would only need to flip this s
#define ALPHA_PATCH 1 #define ALPHA_PATCH 1
``` ```
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.
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.
Refer to [https://st.suckless.org/](https://st.suckless.org/) for details on the st terminal, how to install it and how it works. Refer to [https://st.suckless.org/](https://st.suckless.org/) for details on the st terminal, how to install it and how it works.
--- ---
### Changelog: ### Changelog:
2019-10-16 - Introduced [flexipatch-finalizer](https://github.com/bakkeby/flexipatch-finalizer)
2019-09-17 - Added relativeborder, fix-keyboard-input, iso14755, visualbell, right-click-to-plumb, boxdraw and keyboard-select patches 2019-09-17 - Added relativeborder, fix-keyboard-input, iso14755, visualbell, right-click-to-plumb, boxdraw and keyboard-select patches
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 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

1
patch/fixime_st.h Normal file
View File

@ -0,0 +1 @@
void xximspot(int, int);

View File

@ -1,3 +1,2 @@
void toggle_winmode(int); void toggle_winmode(int);
void keyboard_select(const Arg *);
int trt_kbdselect(KeySym, char *, int); int trt_kbdselect(KeySym, char *, int);

7
patch/keyboardselect_x.c Normal file
View File

@ -0,0 +1,7 @@
void toggle_winmode(int flag) {
win.mode ^= flag;
}
void keyboard_select(const Arg *dummy) {
win.mode ^= trt_kbdselect(-1, NULL, 0);
}

2
patch/keyboardselect_x.h Normal file
View File

@ -0,0 +1,2 @@
void toggle_winmode(int);
void keyboard_select(const Arg *);

View File

@ -1,29 +1,22 @@
/* Patches */ /* Patches */
#if COPYURL_PATCH || COPYURL_HIGHLIGHT_SELECTED_URLS_PATCH #if COPYURL_PATCH || COPYURL_HIGHLIGHT_SELECTED_URLS_PATCH
#include "copyurl.c" #include "copyurl.c"
#endif #endif
#if EXTERNALPIPE_PATCH #if EXTERNALPIPE_PATCH
#include "externalpipe.c" #include "externalpipe.c"
#endif #endif
#if ISO14755_PATCH #if ISO14755_PATCH
#include "iso14755.c" #include "iso14755.c"
#endif #endif
#if KEYBOARDSELECT_PATCH #if KEYBOARDSELECT_PATCH
#include "keyboardselect.c" #include "keyboardselect_st.c"
#endif #endif
#if RIGHTCLICKTOPLUMB_PATCH #if RIGHTCLICKTOPLUMB_PATCH
#include "rightclicktoplumb_st.c" #include "rightclicktoplumb_st.c"
#endif #endif
#if NEWTERM_PATCH #if NEWTERM_PATCH
#include "newterm.c" #include "newterm.c"
#endif #endif
#if SCROLLBACK_PATCH || SCROLLBACK_MOUSE_PATCH || SCROLLBACK_MOUSE_ALTSCREEN_PATCH #if SCROLLBACK_PATCH || SCROLLBACK_MOUSE_PATCH || SCROLLBACK_MOUSE_ALTSCREEN_PATCH
#include "scrollback.c" #include "scrollback.c"
#endif #endif

View File

@ -1,33 +1,25 @@
/* Patches */ /* Patches */
#if COPYURL_PATCH || COPYURL_HIGHLIGHT_SELECTED_URLS_PATCH #if COPYURL_PATCH || COPYURL_HIGHLIGHT_SELECTED_URLS_PATCH
#include "copyurl.h" #include "copyurl.h"
#endif #endif
#if EXTERNALPIPE_PATCH #if EXTERNALPIPE_PATCH
#include "externalpipe.h" #include "externalpipe.h"
#endif #endif
#if FIXIME_PATCH #if FIXIME_PATCH
void xximspot(int, int); #include "fixime_st.h"
#endif #endif
#if ISO14755_PATCH #if ISO14755_PATCH
#include "iso14755.h" #include "iso14755.h"
#endif #endif
#if KEYBOARDSELECT_PATCH #if KEYBOARDSELECT_PATCH
#include "keyboardselect.h" #include "keyboardselect_st.h"
#endif #endif
#if RIGHTCLICKTOPLUMB_PATCH #if RIGHTCLICKTOPLUMB_PATCH
#include "rightclicktoplumb_st.h" #include "rightclicktoplumb_st.h"
#endif #endif
#if NEWTERM_PATCH #if NEWTERM_PATCH
#include "newterm.h" #include "newterm.h"
#endif #endif
#if SCROLLBACK_PATCH || SCROLLBACK_MOUSE_PATCH || SCROLLBACK_MOUSE_ALTSCREEN_PATCH #if SCROLLBACK_PATCH || SCROLLBACK_MOUSE_PATCH || SCROLLBACK_MOUSE_ALTSCREEN_PATCH
#include "scrollback.h" #include "scrollback.h"
#endif #endif

View File

@ -1,39 +1,25 @@
/* Patches */ /* Patches */
#if BOXDRAW_PATCH #if BOXDRAW_PATCH
#include "boxdraw.c" #include "boxdraw.c"
#endif #endif
#if OPENCOPIED_PATCH #if OPENCOPIED_PATCH
#include "opencopied.c" #include "opencopied.c"
#endif #endif
#if FIXIME_PATCH #if FIXIME_PATCH
#include "fixime.c" #include "fixime.c"
#endif #endif
#if FIXKEYBOARDINPUT_PATCH #if FIXKEYBOARDINPUT_PATCH
#include "fixkeyboardinput.c" #include "fixkeyboardinput.c"
#endif #endif
#if KEYBOARDSELECT_PATCH #if KEYBOARDSELECT_PATCH
void toggle_winmode(int flag) { #include "keyboardselect_x.c"
win.mode ^= flag; #endif
}
void keyboard_select(const Arg *dummy) {
win.mode ^= trt_kbdselect(-1, NULL, 0);
}
#endif // KEYBOARDSELECT_PATCH
#if RIGHTCLICKTOPLUMB_PATCH #if RIGHTCLICKTOPLUMB_PATCH
#include "rightclicktoplumb_x.c" #include "rightclicktoplumb_x.c"
#endif #endif
#if VISUALBELL_2_PATCH || VISUALBELL_3_PATCH #if VISUALBELL_2_PATCH || VISUALBELL_3_PATCH
#include "visualbell.c" #include "visualbell.c"
#endif #endif
#if XRESOURCES_PATCH #if XRESOURCES_PATCH
#include "xresources.c" #include "xresources.c"
#endif #endif

View File

@ -1,25 +1,22 @@
/* Patches */ /* Patches */
#if BOXDRAW_PATCH #if BOXDRAW_PATCH
#include "boxdraw.h" #include "boxdraw.h"
#endif #endif
#if OPENCOPIED_PATCH #if OPENCOPIED_PATCH
#include "opencopied.h" #include "opencopied.h"
#endif #endif
#if FIXIME_PATCH #if FIXIME_PATCH
#include "fixime.h" #include "fixime_x.h"
#endif
#if KEYBOARDSELECT_PATCH
#include "keyboardselect_x.h"
#endif #endif
#if RIGHTCLICKTOPLUMB_PATCH #if RIGHTCLICKTOPLUMB_PATCH
#include "rightclicktoplumb_x.h" #include "rightclicktoplumb_x.h"
#endif #endif
#if VISUALBELL_2_PATCH || VISUALBELL_3_PATCH #if VISUALBELL_2_PATCH || VISUALBELL_3_PATCH
#include "visualbell.h" #include "visualbell.h"
#endif #endif
#if XRESOURCES_PATCH #if XRESOURCES_PATCH
#include "xresources.h" #include "xresources.h"
#endif #endif