Commit: 016d4ba1afd39e4a67b398f1beda6db21770f189
Parent: e83aa6a9682ee333421bc9b05a2a5b8a7e572e14
Author: 0x766F6964
Date: Wed, 24 Feb 2021 23:31:04 -0700
add a patch i wrote for setting the default fontsize in st
i will push this to the st patches page as well
Diffstat:
1 file changed, 45 insertions(+), 0 deletions(-)
diff --git a/.config/sys/etc/portage/patches/x11-terms/st/zoom.patch b/.config/sys/etc/portage/patches/x11-terms/st/zoom.patch
@@ -0,0 +1,45 @@
+diff --git a/st.1 b/st.1
+index 39120b4..02cbd48 100644
+--- a/st.1
++++ b/st.1
+@@ -22,6 +22,8 @@ st \- simple terminal
+ .IR line ]
+ .RB [ \-w
+ .IR windowid ]
++.RB [ \-z
++.IR fontsize ]
+ .RB [[ \-e ]
+ .IR command
+ .RI [ arguments ...]]
+@@ -44,6 +46,8 @@ st \- simple terminal
+ .IR title ]
+ .RB [ \-w
+ .IR windowid ]
++.RB [ \-z
++.IR fontsize ]
+ .RB \-l
+ .IR line
+ .RI [ stty_args ...]
+diff --git a/x.c b/x.c
+index 120e495..1e859f4 100644
+--- a/x.c
++++ b/x.c
+@@ -1114,7 +1114,7 @@ xinit(int cols, int rows)
+ die("could not init fontconfig.\n");
+
+ usedfont = (opt_font == NULL)? font : opt_font;
+- xloadfonts(usedfont, 0);
++ xloadfonts(usedfont, defaultfontsize);
+
+ /* colors */
+ xw.cmap = XDefaultColormap(xw.dpy, xw.scr);
+@@ -2038,6 +2038,9 @@ main(int argc, char *argv[])
+ case 'v':
+ die("%s " VERSION "\n", argv0);
+ break;
++ case 'z':
++ defaultfontsize = strtoul(EARGF(usage()), NULL, 10);
++ break;
+ default:
+ usage();
+ } ARGEND;