commit eef185e98fd58bd35d23234f3ddef50bc000be3f
parent bc371271dcbfdc7f31e1351f213f31cb11eb2472
Author: c0dev0id <sh+github@codevoid.de>
Date: Mon, 2 Aug 2021 20:58:34 +0200
sdk-updates
Diffstat:
4 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/Makefile b/Makefile
@@ -48,8 +48,8 @@ install: st
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
sed "s/VERSION/$(VERSION)/g" < st.1 > $(DESTDIR)$(MANPREFIX)/man1/st.1
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/st.1
- sed 's/st\([^t].*\)/st-git\1/g' st.info > st-git.info
- tic -s st-git.info
+ @sed 's/st\([^t].*\)/st-git\1/g' st.info > st-git.info
+ @tic -xs st-git.info
@echo Please see the README file regarding the terminfo entry of st.
uninstall:
diff --git a/config.h b/config.h
@@ -5,10 +5,10 @@
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
-static char *font = "-misc-termsynu-medium-r-normal--14-101-100-100-c-70-iso10646-1";
+static char *font = "-misc-termsynu-medium-r-normal--11-101-100-100-c-70-iso10646-1";
/* Spare fonts */
static char *font2[] = {
- "Noto Emoji"
+ "-gnu-unifont-medium-r-normal-sans-11-101-100-100-c-70-iso10646-1"
};
static int borderpx = 2;
@@ -142,6 +142,7 @@ static const char *colorname[] = {
/* more colors can be added after 255 to use with DefaultXX */
"#cccccc",
"#555555",
+ "#121212",
};
@@ -150,7 +151,7 @@ static const char *colorname[] = {
* foreground, background, cursor, reverse cursor
*/
unsigned int defaultfg = 7;
-unsigned int defaultbg = 0;
+unsigned int defaultbg = 258;
static unsigned int defaultcs = 256;
static unsigned int defaultrcs = 257;
diff --git a/st.c b/st.c
@@ -849,7 +849,7 @@ ttynew(const char *line, char *cmd, const char *out, char **args)
break;
default:
#ifdef __OpenBSD__
- if (pledge("stdio rpath tty proc", NULL) == -1)
+ if (pledge("stdio rpath tty proc exec", NULL) == -1)
die("pledge\n");
#endif
close(s);
diff --git a/x.c b/x.c
@@ -2308,6 +2308,6 @@ opencopied(const Arg *arg)
size_t const cmd_size = max_cmd + strlen(clip) + 5;
char cmd[cmd_size];
- snprintf(cmd, cmd_size, "%s \"%s\"&", (char *)arg->v, clip);
+ snprintf(cmd, cmd_size, "%s \"%s\" &", (char *)arg->v, clip);
system(cmd);
}