commit bcfeb47f0b5e1fa9d1d47176d5a64843bef6b3c5
parent a068b0fb757aff7e51742dd8fb9bf7f624f92fe4
Author: iffilopy <iffilopy@gmail.com>
Date: Tue, 30 Jun 2026 22:02:24 +0800
update
Diffstat:
| M | config.h | | | 14 | +++++++------- |
| A | deps | | | 52 | ++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| M | x.c | | | 2 | +- |
3 files changed, 60 insertions(+), 8 deletions(-)
diff --git a/config.h b/config.h
@@ -5,8 +5,8 @@
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
-static char *font = "PxPlus IBM VGA8:pixelsize=16:antialias=true:autohint=true";
-static int borderpx = 0;
+static char *font = "Liberation Mono:pixelsize=16:antialias=true:autohint=true";
+static int borderpx = 2;
/*
* What program is execed by st depends of these precedence rules:
@@ -16,7 +16,7 @@ static int borderpx = 0;
* 4: value of shell in /etc/passwd
* 5: value of shell in config.h
*/
-static char *shell = "/bin/zsh";
+static char *shell = "/bin/sh";
char *utmp = NULL;
/* scroll program: to enable use a string like "scroll" */
char *scroll = NULL;
@@ -34,7 +34,7 @@ static float chscale = 1.0;
*
* More advanced example: L" `'\"()[]{}"
*/
-wchar_t *worddelimiters = L" ";
+wchar_t *worddelimiters = L" `'\"()[]{}";
/* selection timeouts (in milliseconds) */
static unsigned int doubleclicktimeout = 300;
@@ -98,7 +98,7 @@ float alpha = 0.8;
/* Terminal colors (16 first used in escape sequence) */
static const char *colorname[] = {
- /* 8 normal colors - стандартные TTY цвета */
+ /* 8 normal colors */
"#000000", /* black */
"#aa0000", /* red */
"#00aa00", /* green */
@@ -123,8 +123,8 @@ static const char *colorname[] = {
/* more colors can be added after 255 to use with DefaultXX */
"#cccccc",
"#555555",
- "#aaaaaa", /* default foreground colour (bright white) */
- "#000000", /* default background colour (black) */
+ "#bfbfbf", /* default foreground colour (bright white) */
+ "#121314", /* default background colour (black) */
};
/*
diff --git a/deps b/deps
@@ -0,0 +1,52 @@
+HEAD:X11/XKBlib.h
+HEAD:X11/Xatom.h
+HEAD:X11/Xft/Xft.h
+HEAD:X11/Xlib.h
+HEAD:X11/cursorfont.h
+HEAD:X11/keysym.h
+HEAD:ctype.h
+HEAD:errno.h
+HEAD:fcntl.h
+HEAD:libgen.h
+HEAD:libutil.h
+HEAD:limits.h
+HEAD:locale.h
+HEAD:math.h
+HEAD:pty.h
+HEAD:pwd.h
+HEAD:signal.h
+HEAD:stdarg.h
+HEAD:stdint.h
+HEAD:stdio.h
+HEAD:stdlib.h
+HEAD:string.h
+HEAD:sys/ioctl.h
+HEAD:sys/select.h
+HEAD:sys/types.h
+HEAD:sys/wait.h
+HEAD:termios.h
+HEAD:time.h
+HEAD:unistd.h
+HEAD:util.h
+HEAD:wchar.h
+
+FUNC:abort:stdlib.h
+FUNC:atoi:stdlib.h
+FUNC:exit:stdlib.h
+FUNC:fprintf:stdio.h
+FUNC:free:stdlib.h
+FUNC:malloc:stdlib.h
+FUNC:memcpy:string.h
+FUNC:memset:string.h
+FUNC:realloc:stdlib.h
+FUNC:snprintf:stdio.h
+FUNC:strchr:string.h
+FUNC:strcmp:string.h
+FUNC:strdup:string.h
+FUNC:strlen:string.h
+FUNC:strtol:stdlib.h
+
+TYPE:int32_t:stdint.h
+TYPE:uint32_t:stdint.h
+
+MACR:stderr:stdio.h
diff --git a/x.c b/x.c
@@ -688,7 +688,7 @@ setsel(char *str, Time t)
XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, t);
if (XGetSelectionOwner(xw.dpy, XA_PRIMARY) != xw.win)
selclear();
- clipcopy(NULL);
+ // clipcopy(NULL);
}
void