diff --git a/config.def.h b/config.def.h index 3835b61..1625eb8 100644 --- a/config.def.h +++ b/config.def.h @@ -5,10 +5,11 @@ * * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html */ -static char *font = "Liberation Mono:pixelsize=12:antialias=true:autohint=true"; +static char *font = "monospace"; #if FONT2_PATCH /* Spare fonts */ static char *font2[] = { + "Noto Color Emoji:size=8" /* "Inconsolata for Powerline:pixelsize=12:antialias=true:autohint=true", */ /* "Hack Nerd Font Mono:pixelsize=11:antialias=true:autohint=true", */ }; @@ -104,18 +105,18 @@ static unsigned int cursorthickness = 2; * Bold affects lines thickness if boxdraw_bold is not 0. Italic is ignored. * 0: disable (render all U25XX glyphs normally from the font). */ -const int boxdraw = 0; -const int boxdraw_bold = 0; +const int boxdraw = 1; +const int boxdraw_bold = 1; /* braille (U28XX): 1: render as adjacent "pixels", 0: use font */ -const int boxdraw_braille = 0; +const int boxdraw_braille = 1; #endif // BOXDRAW_PATCH /* * bell volume. It must be a value between -100 and 100. Use 0 for disabling * it */ -static int bellvolume = 0; +static int bellvolume = 100; /* default TERM value */ char *termname = "st-256color"; @@ -139,7 +140,7 @@ unsigned int tabspaces = 8; #if ALPHA_PATCH /* bg opacity */ -float alpha = 0.8; +float alpha = 1; #if ALPHA_GRADIENT_PATCH float grad_alpha = 0.54; //alpha value that'll change float stat_alpha = 0.46; //constant alpha value that'll get added to grad_alpha @@ -151,33 +152,32 @@ float alphaUnfocused = 0.6; /* Terminal colors (16 first used in escape sequence) */ static const char *colorname[] = { - /* 8 normal colors */ - "black", - "red3", - "green3", - "yellow3", - "blue2", - "magenta3", - "cyan3", - "gray90", + + "#282828", // black + "#cc241d", // red + "#98971a", // green + "#d79921", // yellow + "#458588", // blue + "#b16286", // magenta + "#689d6a", // cyan + "#a89984", // white - /* 8 bright colors */ - "gray50", - "red", - "green", - "yellow", - "#5c5cff", - "magenta", - "cyan", - "white", + "#928374", // bright black + "#fb4934", // bright red + "#b8bb26", // bright green + "#fabd2f", // bright yellow + "#83a598", // bright blue + "#d3869b", // bright magenta + "#8ec07c", // bright cyan + "#ebdbb2", // bright white [255] = 0, /* more colors can be added after 255 to use with DefaultXX */ - "#add8e6", /* 256 -> cursor */ + "#ebdbb2", /* 256 -> cursor */ "#555555", /* 257 -> rev cursor*/ - "#000000", /* 258 -> bg */ - "#e5e5e5", /* 259 -> fg */ + "#282828", /* 258 -> bg */ + "#ebdbb2", /* 259 -> fg */ }; @@ -742,4 +742,4 @@ static char *plumb_cmd = "plumb"; #define UNDERCURL_CAPPED 2 // Active style #define UNDERCURL_STYLE UNDERCURL_SPIKY -#endif // UNDERCURL_PATCH \ No newline at end of file +#endif // UNDERCURL_PATCH diff --git a/config.mk b/config.mk index 9487838..f394aa7 100644 --- a/config.mk +++ b/config.mk @@ -13,7 +13,7 @@ X11LIB = /usr/X11R6/lib PKG_CONFIG = pkg-config # Uncomment this for the alpha patch / ALPHA_PATCH -#XRENDER = -lXrender +XRENDER = -lXrender # Uncomment this for the themed cursor patch / THEMED_CURSOR_PATCH #XCURSOR = -lXcursor @@ -49,4 +49,4 @@ STLDFLAGS = $(LIBS) $(LDFLAGS) # `pkg-config --libs freetype2` # compiler and linker -# CC = c99 + CC = cc diff --git a/patches.def.h b/patches.def.h index 0153aa1..a851f1f 100644 --- a/patches.def.h +++ b/patches.def.h @@ -14,7 +14,7 @@ * when including this patch. * https://st.suckless.org/patches/alpha/ */ -#define ALPHA_PATCH 0 +#define ALPHA_PATCH 1 /* The alpha focus highlight patch allows the user to specify two distinct opacity values or * background colors in order to easily differentiate between focused and unfocused terminal @@ -32,7 +32,7 @@ /* This patch allows st to reize to any pixel size rather than snapping to character width/height. * https://st.suckless.org/patches/anysize/ */ -#define ANYSIZE_PATCH 0 +#define ANYSIZE_PATCH 1 /* This patch aims to prevent black bars being drawn on the edges of st terminals using the anysize * patch. This generally only occurs when the terminal background color doesn't match the colors @@ -41,7 +41,7 @@ * terminal resizes.) * https://github.com/connor-brooks/st-anysize-nobar */ -#define ANYSIZE_NOBAR_PATCH 0 +#define ANYSIZE_NOBAR_PATCH 1 /* A simple variant of the anysize patch that only changes the resize hints to allow the window to * be resized to any size. @@ -54,24 +54,24 @@ * https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-q.1D81 * https://st.suckless.org/patches/blinking_cursor/ */ -#define BLINKING_CURSOR_PATCH 0 +#define BLINKING_CURSOR_PATCH 1 /* By default bold text is rendered with a bold font in the bright variant of the current color. * This patch makes bold text rendered simply as bold, leaving the color unaffected. * https://st.suckless.org/patches/bold-is-not-bright/ */ -#define BOLD_IS_NOT_BRIGHT_PATCH 0 +#define BOLD_IS_NOT_BRIGHT_PATCH 1 /* This patch adds custom rendering of lines/blocks/braille characters for gapless alignment. * https://st.suckless.org/patches/boxdraw/ */ -#define BOXDRAW_PATCH 0 +#define BOXDRAW_PATCH 1 /* By default st only sets PRIMARY on selection. * This patch makes st set CLIPBOARD on selection. * https://st.suckless.org/patches/clipboard/ */ -#define CLIPBOARD_PATCH 0 +#define CLIPBOARD_PATCH 1 /* This patch allows st to be resized without cutting off text when the terminal window is * made larger again. Text does not wrap when the terminal window is made smaller. @@ -92,13 +92,13 @@ * available URLs. This variant also highlights the selected URLs. * https://st.suckless.org/patches/copyurl/ */ -#define COPYURL_HIGHLIGHT_SELECTED_URLS_PATCH 0 +#define COPYURL_HIGHLIGHT_SELECTED_URLS_PATCH 1 /* This patch adds support for CSI escape sequences 22 and 23, which save and * restores the window title (for instance nvim does this when opening and closing). * https://st.suckless.org/patches/csi_22_23/ */ -#define CSI_22_23_PATCH 0 +#define CSI_22_23_PATCH 1 /* According to the specification (see link in BLINKING_CURSOR_PATCH) the "Set cursor style * (DECSCUSR), VT520." escape sequences define both values of 0 and 1 as a blinking block, @@ -138,12 +138,12 @@ /* This patch makes the cursor color the inverse of the current cell color. * https://st.suckless.org/patches/dynamic-cursor-color/ */ -#define DYNAMIC_CURSOR_COLOR_PATCH 0 +#define DYNAMIC_CURSOR_COLOR_PATCH 1 /* Reading and writing st's screen through a pipe, e.g. pass info to dmenu. * https://st.suckless.org/patches/externalpipe/ */ -#define EXTERNALPIPE_PATCH 0 +#define EXTERNALPIPE_PATCH 1 /* This patch improves and extends the externalpipe patch in two ways: * - it prevents the reset of the signal handler set on SIGCHILD, when @@ -175,13 +175,13 @@ * So they will be used first for glyphs that are absent in the default font. * https://st.suckless.org/patches/font2/ */ -#define FONT2_PATCH 0 +#define FONT2_PATCH 1 /* Hide the X cursor whenever a key is pressed and show it back when the mouse is moved in * the terminal window. * https://st.suckless.org/patches/hidecursor/ */ -#define HIDECURSOR_PATCH 0 +#define HIDECURSOR_PATCH 1 /* This patch hides the terminal cursor when the window loses focus (as opposed to showing a hollow * cursor). @@ -226,13 +226,13 @@ /* This patch sets the _NET_WM_ICON X property with a hardcoded icon for st. * https://st.suckless.org/patches/netwmicon/ */ -#define NETWMICON_PATCH 0 +#define NETWMICON_PATCH 1 /* This patch allows you to spawn a new st terminal using Ctrl-Shift-Return. It will have the * same CWD (current working directory) as the original st instance. * https://st.suckless.org/patches/newterm/ */ -#define NEWTERM_PATCH 0 +#define NEWTERM_PATCH 1 /* Open contents of the clipboard in a user-defined browser. * https://st.suckless.org/patches/open_copied_url/ @@ -244,7 +244,7 @@ * * https://www.reddit.com/r/suckless/comments/cc83om/st_open_url/ */ -#define OPENURLONCLICK_PATCH 0 +#define OPENURLONCLICK_PATCH 1 /* This patch adds support for OSC escape sequences 10, 11 and 12 that modify the background, * foreground and cursor colors in the way they are implemented in most other terminals @@ -271,19 +271,19 @@ /* Scroll back through terminal output using Shift+{PageUp, PageDown}. * https://st.suckless.org/patches/scrollback/ */ -#define SCROLLBACK_PATCH 0 +#define SCROLLBACK_PATCH 1 /* Scroll back through terminal output using Shift+MouseWheel. * This variant depends on SCROLLBACK_PATCH being enabled. * https://st.suckless.org/patches/scrollback/ */ -#define SCROLLBACK_MOUSE_PATCH 0 +#define SCROLLBACK_MOUSE_PATCH 1 /* Scroll back through terminal output using mouse wheel (when not in MODE_ALTSCREEN). * This variant depends on SCROLLBACK_PATCH being enabled. * https://st.suckless.org/patches/scrollback/ */ -#define SCROLLBACK_MOUSE_ALTSCREEN_PATCH 0 +#define SCROLLBACK_MOUSE_ALTSCREEN_PATCH 1 /* This is the single drawable buffer patch as outlined in the FAQ to get images * in w3m to display. While this patch does not break the alpha patch it images @@ -330,7 +330,7 @@ * shown by vte terminals like termite. * https://st.suckless.org/patches/swapmouse/ */ -#define SWAPMOUSE_PATCH 0 +#define SWAPMOUSE_PATCH 1 /* This patch adds synchronized-updates/application-sync support in st. * This will have no effect except when an application uses the synchronized-update escape @@ -379,7 +379,7 @@ /* Vertically center lines in the space available if you have set a larger chscale in config.h * https://st.suckless.org/patches/vertcenter/ */ -#define VERTCENTER_PATCH 0 +#define VERTCENTER_PATCH 1 /* The vim-browse patch offers the possibility to move through the terminal history-buffer, * search for strings using VIM-like motions, operations and quantifiers. It overlays the @@ -394,7 +394,7 @@ /* Briefly inverts window content on terminal bell event. * https://st.suckless.org/patches/visualbell/ */ -#define VISUALBELL_1_PATCH 0 +#define VISUALBELL_1_PATCH 1 /* Adds support for w3m images. * https://st.suckless.org/patches/w3m/ @@ -406,7 +406,7 @@ * https://github.com/Dreomite/st/commit/e3b821dcb3511d60341dec35ee05a4a0abfef7f2 * https://www.reddit.com/r/suckless/comments/jt90ai/update_support_for_proper_glyph_rendering_in_st/ */ -#define WIDE_GLYPHS_PATCH 0 +#define WIDE_GLYPHS_PATCH 1 /* There is a known issue that Google's Variable Fonts (VF) can end up with letter spacing * that is too wide in programs that use Xft, for example Inconsolata v3.000.