summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorZachIR <zachir@librem.one>2025-07-08 20:39:57 -0500
committerZachIR <zachir@librem.one>2025-07-08 20:39:57 -0500
commit38d2f7ba589e8ee0ee5ded7915952ed094e3a51a (patch)
treeb98c891bcd03dcbc6a9ebae038d154a472febe8a /config.def.h
parent8cda47f8e8b2db37f5c69b4cdb748ac31a2e6e23 (diff)
Start from scratch on version 0.9.2
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h141
1 files changed, 12 insertions, 129 deletions
diff --git a/config.def.h b/config.def.h
index bdfb540..2cd740a 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,37 +1,12 @@
/* See LICENSE file for copyright and license details. */
/*
- * Override/adjust fontsize of choosen monitors:
- */
-MonitorConfig monitors_config[] = {
- // skip = fixed relative points size (monitor dpi)
- // =0 : fixed absolute pixel size (default screen dpi)
- // >0 : auto absolute pixel size (monitor dpi)
- // <0 : auto relative points size (monitor dpi)
- // {"DP-1", 0}, // BUG:(size=0): not restored to default after back'n'forth
- {"HDMI-0~1", -20}, // BUG:(ignored DPI=220): = 20 is eqv to 10pt (DPI=110)
- {"HDMI-0~2", -14},
-};
-float winmovethreshold = 0.6;
-
-/*
* appearance
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
- * borderperc: percentage of cell width to use as a border
- * 0 = no border, 100 = border width is same as cell width
*/
-static char *font = "mononoki Nerd Font Mono:pixelsize=12:antialias=true:autohint=true";
-/* Spare fonts */
-static char *font2[] = {
-/* "Inconsolata for Powerline:pixelsize=12:antialias=true:autohint=true", */
-/* "Hack Nerd Font Mono:pixelsize=11:antialias=true:autohint=true", */
- "Symbola:pixelsize=12:antialias=true:autohint=true"
-};
-
-static int borderperc = 2;
-
-static int center_text = 1;
+static char *font = "Liberation Mono:pixelsize=12:antialias=true:autohint=true";
+static int borderpx = 2;
/*
* What program is execed by st depends of these precedence rules:
@@ -53,9 +28,6 @@ char *vtiden = "\033[?6c";
/* Kerning / character bounding-box multipliers */
static float cwscale = 1.0;
static float chscale = 1.0;
-/* Character rendering offsets in pixels */
-static short cxoffset = 0;
-static short cyoffset = 0;
/*
* word delimiter string
@@ -73,7 +45,7 @@ int allowaltscreen = 1;
/* allow certain non-interactive (insecure) window operations such as:
setting the clipboard text */
-int allowwindowops = 1;
+int allowwindowops = 0;
/*
* draw latency range in ms - from new content/keypress/etc until drawing.
@@ -81,16 +53,10 @@ int allowwindowops = 1;
* near minlatency, but it waits longer for slow updates to avoid partial draw.
* low minlatency will tear/flicker more, as it can "detect" idle too early.
*/
-static double minlatency = 8;
+static double minlatency = 2;
static double maxlatency = 33;
/*
- * Synchronized-Update timeout in ms
- * https://gitlab.com/gnachman/iterm2/-/wikis/synchronized-updates-spec
- */
-static uint su_timeout = 200;
-
-/*
* blinking timeout (set to 0 to disable blinking) for the terminal blinking
* attribute.
*/
@@ -102,18 +68,6 @@ static unsigned int blinktimeout = 800;
static unsigned int cursorthickness = 2;
/*
- * 1: render most of the lines/blocks characters without using the font for
- * perfect alignment between cells (U2500 - U259F except dashes/diagonals).
- * 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 = 1;
-const int boxdraw_bold = 1;
-
-/* braille (U28XX): 1: render as adjacent "pixels", 0: use font */
-const int boxdraw_braille = 1;
-
-/*
* bell volume. It must be a value between -100 and 100. Use 0 for disabling
* it
*/
@@ -137,10 +91,7 @@ char *termname = "st-256color";
*
* stty tabs
*/
-unsigned int tabspaces = 2;
-
-/* bg opacity */
-float alpha = 0.8, alphaUnfocused = 0.7;
+unsigned int tabspaces = 8;
/* Terminal colors (16 first used in escape sequence) */
static const char *colorname[] = {
@@ -179,10 +130,9 @@ static const char *colorname[] = {
* foreground, background, cursor, reverse cursor
*/
unsigned int defaultfg = 258;
-unsigned int defaultbg = 0; //259
+unsigned int defaultbg = 259;
unsigned int defaultcs = 256;
static unsigned int defaultrcs = 257;
-unsigned int bg = 259, bgUnfocused = 259;
/*
* Default shape of cursor
@@ -221,50 +171,11 @@ static unsigned int defaultattr = 11;
static uint forcemousemod = ShiftMask;
/*
- * Xresources preferences to load at startup
- */
-ResourcePref resources[] = {
- { "font", STRING, &font },
- { "color0", STRING, &colorname[0] },
- { "color1", STRING, &colorname[1] },
- { "color2", STRING, &colorname[2] },
- { "color3", STRING, &colorname[3] },
- { "color4", STRING, &colorname[4] },
- { "color5", STRING, &colorname[5] },
- { "color6", STRING, &colorname[6] },
- { "color7", STRING, &colorname[7] },
- { "color8", STRING, &colorname[8] },
- { "color9", STRING, &colorname[9] },
- { "color10", STRING, &colorname[10] },
- { "color11", STRING, &colorname[11] },
- { "color12", STRING, &colorname[12] },
- { "color13", STRING, &colorname[13] },
- { "color14", STRING, &colorname[14] },
- { "color15", STRING, &colorname[15] },
- { "background", STRING, &colorname[259] },
- { "foreground", STRING, &colorname[257] },
- { "cursorColor", STRING, &colorname[258] },
- { "termname", STRING, &termname },
- { "shell", STRING, &shell },
- { "minlatency", INTEGER, &minlatency },
- { "maxlatency", INTEGER, &maxlatency },
- { "blinktimeout", INTEGER, &blinktimeout },
- { "bellvolume", INTEGER, &bellvolume },
- { "tabspaces", INTEGER, &tabspaces },
- { "borderpx", INTEGER, &borderpx },
- { "cwscale", FLOAT, &cwscale },
- { "chscale", FLOAT, &chscale },
-};
-
-/*
* Internal mouse shortcuts.
* Beware that overloading Button1 will disable the selection.
*/
-const unsigned int mousescrollincrement = 1;
static MouseShortcut mshortcuts[] = {
/* mask button function argument release */
- { 0, Button4, kscrollup, {.i = mousescrollincrement }, 0, /* !alt */ -1 },
- { 0, Button5, kscrolldown, {.i = mousescrollincrement }, 0, /* !alt */ -1 },
{ XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
{ ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} },
{ XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },
@@ -273,7 +184,7 @@ static MouseShortcut mshortcuts[] = {
};
/* Internal keyboard shortcuts. */
-#define MODKEY Mod4Mask
+#define MODKEY Mod1Mask
#define TERMMOD (ControlMask|ShiftMask)
static Shortcut shortcuts[] = {
@@ -282,18 +193,14 @@ static Shortcut shortcuts[] = {
{ ControlMask, XK_Print, toggleprinter, {.i = 0} },
{ ShiftMask, XK_Print, printscreen, {.i = 0} },
{ XK_ANY_MOD, XK_Print, printsel, {.i = 0} },
- { ControlMask, XK_equal, zoom, {.f = +1} },
- { ControlMask, XK_minus, zoom, {.f = -1} },
- { TERMMOD, XK_plus, zoomreset, {.f = 0} },
- { TERMMOD, XK_underscore, refreshxrandr, {.i = 0} },
+ { TERMMOD, XK_Prior, zoom, {.f = +1} },
+ { TERMMOD, XK_Next, zoom, {.f = -1} },
+ { TERMMOD, XK_Home, zoomreset, {.f = 0} },
{ TERMMOD, XK_C, clipcopy, {.i = 0} },
{ TERMMOD, XK_V, clippaste, {.i = 0} },
{ TERMMOD, XK_Y, selpaste, {.i = 0} },
{ ShiftMask, XK_Insert, selpaste, {.i = 0} },
{ TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
- { MODKEY, XK_l, copyurl, {.i = 0} },
- { ShiftMask, XK_Page_Up, kscrollup, {.i = -1} },
- { ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} },
};
/*
@@ -371,7 +278,7 @@ static Key key[] = {
{ XK_KP_Delete, ControlMask, "\033[3;5~", +1, 0},
{ XK_KP_Delete, ShiftMask, "\033[2K", -1, 0},
{ XK_KP_Delete, ShiftMask, "\033[3;2~", +1, 0},
- { XK_KP_Delete, XK_ANY_MOD, "\033[3~", -1, 0},
+ { XK_KP_Delete, XK_ANY_MOD, "\033[P", -1, 0},
{ XK_KP_Delete, XK_ANY_MOD, "\033[3~", +1, 0},
{ XK_KP_Multiply, XK_ANY_MOD, "\033Oj", +2, 0},
{ XK_KP_Add, XK_ANY_MOD, "\033Ok", +2, 0},
@@ -439,7 +346,7 @@ static Key key[] = {
{ XK_Delete, ControlMask, "\033[3;5~", +1, 0},
{ XK_Delete, ShiftMask, "\033[2K", -1, 0},
{ XK_Delete, ShiftMask, "\033[3;2~", +1, 0},
- { XK_Delete, XK_ANY_MOD, "\033[3~", -1, 0},
+ { XK_Delete, XK_ANY_MOD, "\033[P", -1, 0},
{ XK_Delete, XK_ANY_MOD, "\033[3~", +1, 0},
{ XK_BackSpace, XK_NO_MOD, "\177", 0, 0},
{ XK_BackSpace, Mod1Mask, "\033\177", 0, 0},
@@ -565,27 +472,3 @@ static char ascii_printable[] =
" !\"#$%&'()*+,-./0123456789:;<=>?"
"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_"
"`abcdefghijklmnopqrstuvwxyz{|}~";
-
-/**
- * Undercurl style. Set UNDERCURL_STYLE to one of the available styles.
- *
- * Curly: Dunno how to draw it *shrug*
- * _ _ _ _
- * ( ) ( ) ( ) ( )
- * (_) (_) (_) (_)
- *
- * Spiky:
- * /\ /\ /\ /\
- * \/ \/ \/
- *
- * Capped:
- * _ _ _
- * / \ / \ / \
- * \_/ \_/
- */
-// Available styles
-#define UNDERCURL_CURLY 0
-#define UNDERCURL_SPIKY 1
-#define UNDERCURL_CAPPED 2
-// Active style
-#define UNDERCURL_STYLE UNDERCURL_CURLY