Configured st.
This is my configured release
This commit is contained in:
parent
c02ad97409
commit
7adbe9b765
54
config.def.h
54
config.def.h
|
|
@ -5,10 +5,11 @@
|
||||||
*
|
*
|
||||||
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
|
* 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
|
#if FONT2_PATCH
|
||||||
/* Spare fonts */
|
/* Spare fonts */
|
||||||
static char *font2[] = {
|
static char *font2[] = {
|
||||||
|
"Noto Color Emoji:size=8"
|
||||||
/* "Inconsolata for Powerline:pixelsize=12:antialias=true:autohint=true", */
|
/* "Inconsolata for Powerline:pixelsize=12:antialias=true:autohint=true", */
|
||||||
/* "Hack Nerd Font Mono:pixelsize=11: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.
|
* Bold affects lines thickness if boxdraw_bold is not 0. Italic is ignored.
|
||||||
* 0: disable (render all U25XX glyphs normally from the font).
|
* 0: disable (render all U25XX glyphs normally from the font).
|
||||||
*/
|
*/
|
||||||
const int boxdraw = 0;
|
const int boxdraw = 1;
|
||||||
const int boxdraw_bold = 0;
|
const int boxdraw_bold = 1;
|
||||||
|
|
||||||
/* braille (U28XX): 1: render as adjacent "pixels", 0: use font */
|
/* braille (U28XX): 1: render as adjacent "pixels", 0: use font */
|
||||||
const int boxdraw_braille = 0;
|
const int boxdraw_braille = 1;
|
||||||
#endif // BOXDRAW_PATCH
|
#endif // BOXDRAW_PATCH
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* bell volume. It must be a value between -100 and 100. Use 0 for disabling
|
* bell volume. It must be a value between -100 and 100. Use 0 for disabling
|
||||||
* it
|
* it
|
||||||
*/
|
*/
|
||||||
static int bellvolume = 0;
|
static int bellvolume = 100;
|
||||||
|
|
||||||
/* default TERM value */
|
/* default TERM value */
|
||||||
char *termname = "st-256color";
|
char *termname = "st-256color";
|
||||||
|
|
@ -139,7 +140,7 @@ unsigned int tabspaces = 8;
|
||||||
|
|
||||||
#if ALPHA_PATCH
|
#if ALPHA_PATCH
|
||||||
/* bg opacity */
|
/* bg opacity */
|
||||||
float alpha = 0.8;
|
float alpha = 1;
|
||||||
#if ALPHA_GRADIENT_PATCH
|
#if ALPHA_GRADIENT_PATCH
|
||||||
float grad_alpha = 0.54; //alpha value that'll change
|
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
|
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) */
|
/* Terminal colors (16 first used in escape sequence) */
|
||||||
static const char *colorname[] = {
|
static const char *colorname[] = {
|
||||||
/* 8 normal colors */
|
|
||||||
"black",
|
|
||||||
"red3",
|
|
||||||
"green3",
|
|
||||||
"yellow3",
|
|
||||||
"blue2",
|
|
||||||
"magenta3",
|
|
||||||
"cyan3",
|
|
||||||
"gray90",
|
|
||||||
|
|
||||||
/* 8 bright colors */
|
"#282828", // black
|
||||||
"gray50",
|
"#cc241d", // red
|
||||||
"red",
|
"#98971a", // green
|
||||||
"green",
|
"#d79921", // yellow
|
||||||
"yellow",
|
"#458588", // blue
|
||||||
"#5c5cff",
|
"#b16286", // magenta
|
||||||
"magenta",
|
"#689d6a", // cyan
|
||||||
"cyan",
|
"#a89984", // white
|
||||||
"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,
|
[255] = 0,
|
||||||
|
|
||||||
/* more colors can be added after 255 to use with DefaultXX */
|
/* more colors can be added after 255 to use with DefaultXX */
|
||||||
"#add8e6", /* 256 -> cursor */
|
"#ebdbb2", /* 256 -> cursor */
|
||||||
"#555555", /* 257 -> rev cursor*/
|
"#555555", /* 257 -> rev cursor*/
|
||||||
"#000000", /* 258 -> bg */
|
"#282828", /* 258 -> bg */
|
||||||
"#e5e5e5", /* 259 -> fg */
|
"#ebdbb2", /* 259 -> fg */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ X11LIB = /usr/X11R6/lib
|
||||||
PKG_CONFIG = pkg-config
|
PKG_CONFIG = pkg-config
|
||||||
|
|
||||||
# Uncomment this for the alpha patch / ALPHA_PATCH
|
# Uncomment this for the alpha patch / ALPHA_PATCH
|
||||||
#XRENDER = -lXrender
|
XRENDER = -lXrender
|
||||||
|
|
||||||
# Uncomment this for the themed cursor patch / THEMED_CURSOR_PATCH
|
# Uncomment this for the themed cursor patch / THEMED_CURSOR_PATCH
|
||||||
#XCURSOR = -lXcursor
|
#XCURSOR = -lXcursor
|
||||||
|
|
@ -49,4 +49,4 @@ STLDFLAGS = $(LIBS) $(LDFLAGS)
|
||||||
# `pkg-config --libs freetype2`
|
# `pkg-config --libs freetype2`
|
||||||
|
|
||||||
# compiler and linker
|
# compiler and linker
|
||||||
# CC = c99
|
CC = cc
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* when including this patch.
|
* when including this patch.
|
||||||
* https://st.suckless.org/patches/alpha/
|
* 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
|
/* 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
|
* 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.
|
/* This patch allows st to reize to any pixel size rather than snapping to character width/height.
|
||||||
* https://st.suckless.org/patches/anysize/
|
* 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
|
/* 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
|
* patch. This generally only occurs when the terminal background color doesn't match the colors
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
* terminal resizes.)
|
* terminal resizes.)
|
||||||
* https://github.com/connor-brooks/st-anysize-nobar
|
* 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
|
/* A simple variant of the anysize patch that only changes the resize hints to allow the window to
|
||||||
* be resized to any size.
|
* 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://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/
|
* 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.
|
/* 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.
|
* This patch makes bold text rendered simply as bold, leaving the color unaffected.
|
||||||
* https://st.suckless.org/patches/bold-is-not-bright/
|
* 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.
|
/* This patch adds custom rendering of lines/blocks/braille characters for gapless alignment.
|
||||||
* https://st.suckless.org/patches/boxdraw/
|
* https://st.suckless.org/patches/boxdraw/
|
||||||
*/
|
*/
|
||||||
#define BOXDRAW_PATCH 0
|
#define BOXDRAW_PATCH 1
|
||||||
|
|
||||||
/* By default st only sets PRIMARY on selection.
|
/* By default st only sets PRIMARY on selection.
|
||||||
* This patch makes st set CLIPBOARD on selection.
|
* This patch makes st set CLIPBOARD on selection.
|
||||||
* https://st.suckless.org/patches/clipboard/
|
* 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
|
/* 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.
|
* 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.
|
* available URLs. This variant also highlights the selected URLs.
|
||||||
* https://st.suckless.org/patches/copyurl/
|
* 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
|
/* 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).
|
* restores the window title (for instance nvim does this when opening and closing).
|
||||||
* https://st.suckless.org/patches/csi_22_23/
|
* 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
|
/* 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,
|
* (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.
|
/* This patch makes the cursor color the inverse of the current cell color.
|
||||||
* https://st.suckless.org/patches/dynamic-cursor-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.
|
/* Reading and writing st's screen through a pipe, e.g. pass info to dmenu.
|
||||||
* https://st.suckless.org/patches/externalpipe/
|
* 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:
|
/* This patch improves and extends the externalpipe patch in two ways:
|
||||||
* - it prevents the reset of the signal handler set on SIGCHILD, when
|
* - 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.
|
* So they will be used first for glyphs that are absent in the default font.
|
||||||
* https://st.suckless.org/patches/font2/
|
* 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
|
/* Hide the X cursor whenever a key is pressed and show it back when the mouse is moved in
|
||||||
* the terminal window.
|
* the terminal window.
|
||||||
* https://st.suckless.org/patches/hidecursor/
|
* 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
|
/* This patch hides the terminal cursor when the window loses focus (as opposed to showing a hollow
|
||||||
* cursor).
|
* cursor).
|
||||||
|
|
@ -226,13 +226,13 @@
|
||||||
/* This patch sets the _NET_WM_ICON X property with a hardcoded icon for st.
|
/* This patch sets the _NET_WM_ICON X property with a hardcoded icon for st.
|
||||||
* https://st.suckless.org/patches/netwmicon/
|
* 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
|
/* 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.
|
* same CWD (current working directory) as the original st instance.
|
||||||
* https://st.suckless.org/patches/newterm/
|
* https://st.suckless.org/patches/newterm/
|
||||||
*/
|
*/
|
||||||
#define NEWTERM_PATCH 0
|
#define NEWTERM_PATCH 1
|
||||||
|
|
||||||
/* Open contents of the clipboard in a user-defined browser.
|
/* Open contents of the clipboard in a user-defined browser.
|
||||||
* https://st.suckless.org/patches/open_copied_url/
|
* https://st.suckless.org/patches/open_copied_url/
|
||||||
|
|
@ -244,7 +244,7 @@
|
||||||
*
|
*
|
||||||
* https://www.reddit.com/r/suckless/comments/cc83om/st_open_url/
|
* 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,
|
/* 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
|
* 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}.
|
/* Scroll back through terminal output using Shift+{PageUp, PageDown}.
|
||||||
* https://st.suckless.org/patches/scrollback/
|
* https://st.suckless.org/patches/scrollback/
|
||||||
*/
|
*/
|
||||||
#define SCROLLBACK_PATCH 0
|
#define SCROLLBACK_PATCH 1
|
||||||
|
|
||||||
/* Scroll back through terminal output using Shift+MouseWheel.
|
/* Scroll back through terminal output using Shift+MouseWheel.
|
||||||
* This variant depends on SCROLLBACK_PATCH being enabled.
|
* This variant depends on SCROLLBACK_PATCH being enabled.
|
||||||
* https://st.suckless.org/patches/scrollback/
|
* 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).
|
/* Scroll back through terminal output using mouse wheel (when not in MODE_ALTSCREEN).
|
||||||
* This variant depends on SCROLLBACK_PATCH being enabled.
|
* This variant depends on SCROLLBACK_PATCH being enabled.
|
||||||
* https://st.suckless.org/patches/scrollback/
|
* 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
|
/* 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
|
* 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.
|
* shown by vte terminals like termite.
|
||||||
* https://st.suckless.org/patches/swapmouse/
|
* 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 patch adds synchronized-updates/application-sync support in st.
|
||||||
* This will have no effect except when an application uses the synchronized-update escape
|
* 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
|
/* Vertically center lines in the space available if you have set a larger chscale in config.h
|
||||||
* https://st.suckless.org/patches/vertcenter/
|
* 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,
|
/* 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
|
* 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.
|
/* Briefly inverts window content on terminal bell event.
|
||||||
* https://st.suckless.org/patches/visualbell/
|
* https://st.suckless.org/patches/visualbell/
|
||||||
*/
|
*/
|
||||||
#define VISUALBELL_1_PATCH 0
|
#define VISUALBELL_1_PATCH 1
|
||||||
|
|
||||||
/* Adds support for w3m images.
|
/* Adds support for w3m images.
|
||||||
* https://st.suckless.org/patches/w3m/
|
* https://st.suckless.org/patches/w3m/
|
||||||
|
|
@ -406,7 +406,7 @@
|
||||||
* https://github.com/Dreomite/st/commit/e3b821dcb3511d60341dec35ee05a4a0abfef7f2
|
* https://github.com/Dreomite/st/commit/e3b821dcb3511d60341dec35ee05a4a0abfef7f2
|
||||||
* https://www.reddit.com/r/suckless/comments/jt90ai/update_support_for_proper_glyph_rendering_in_st/
|
* 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
|
/* 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.
|
* that is too wide in programs that use Xft, for example Inconsolata v3.000.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user