X-Git-Url: https://jasonwoof.com/gitweb/?p=st.git;a=blobdiff_plain;f=config.h;h=c9740879c09f9f496c3dc81129bfd13846c7fd92;hp=804ef30740be962284101f12f2951f39a1c62668;hb=e9d1c2da7040a5aadb1385f31cd22c06864f03b0;hpb=d1167672d5d985b51a0bffa2f6cb7e5a3c60a8a7 diff --git a/config.h b/config.h index 804ef30..c974087 100644 --- a/config.h +++ b/config.h @@ -5,8 +5,12 @@ * * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html */ -static char font[] = "Fantasque Sans Mono:pixelsize=16:antialias=true:autohint=false"; -static int borderpx = 2; + +static char font[] = "Hack:pixelsize=14:antialias=true:autohint=false"; +// good except smart close quotes: static char font[] = "Fantasque Sans Mono:pixelsize=16:antialias=true:autohint=false"; +//static int borderpx = 25; // setting for run dialog +static int borderpx = 1; // normal setting +static int histsize = 2000; static char shell[] = "/bin/sh"; static char *utmp = NULL; @@ -22,7 +26,7 @@ static float chscale = 1.0; * * More advanced example: " `'\"()[]{}" */ -static char worddelimiters[] = " "; +static char worddelimiters[] = " →›"; /* selection timeouts (in milliseconds) */ static unsigned int doubleclicktimeout = 300; @@ -39,7 +43,7 @@ static unsigned int actionfps = 30; * blinking timeout (set to 0 to disable blinking) for the terminal blinking * attribute. */ -static unsigned int blinktimeout = 250; +static unsigned int blinktimeout = 0; /* * bell volume. It must be a value between -100 and 100. Use 0 for disabling @@ -57,7 +61,8 @@ static unsigned int tabspaces = 4; /* Terminal colors (16 first used in escape sequence) */ static const char *colorname[] = { /* 8 normal colors */ - "#2e3436", + // "#0d1b51", // background for run dialog + "#2e3436", // normal background "#cc0000", "#4e9a06", "#c4a000", @@ -103,8 +108,8 @@ static unsigned int defaultunderline = 7; /* Beware that overloading Button1 will disable the selection. */ static Mousekey mshortcuts[] = { /* button mask string */ - { Button4, XK_ANY_MOD, "\031" }, - { Button5, XK_ANY_MOD, "\005" }, + { Button4, XK_ANY_MOD, "\031\031\031" }, + { Button5, XK_ANY_MOD, "\005\005\005" }, }; /* Internal keyboard shortcuts. */ @@ -121,6 +126,10 @@ static Shortcut shortcuts[] = { { ShiftMask, XK_Insert, selpaste, {.i = 0} }, { MODKEY|ShiftMask, XK_Insert, clippaste, {.i = 0} }, { MODKEY, XK_Num_Lock, numlock, {.i = 0} }, + { ShiftMask, XK_Up, kscrollup, {.i = -1} }, + { ShiftMask, XK_Down, kscrolldown, {.i = -1} }, + { ShiftMask, XK_Page_Up, kscrollup, {.i = -1} }, + { ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} }, }; /* @@ -260,8 +269,7 @@ static Key key[] = { { XK_Delete, ShiftMask, "\033[3;2~", +1, 0, 0}, { XK_Delete, XK_ANY_MOD, "\033[3~", -1, 0, 0}, { XK_Delete, XK_ANY_MOD, "\033[3~", +1, 0, 0}, - { XK_BackSpace, XK_ANY_MOD, "\177", -1, 0, 0}, - { XK_BackSpace, XK_ANY_MOD, "\177", +1, 0, 0}, + { XK_BackSpace, XK_ANY_MOD, "\177", 0, 0, 0}, { XK_Home, ShiftMask, "\033[2J", 0, -1, 0}, { XK_Home, ShiftMask, "\033[1;2H", 0, +1, 0}, { XK_Home, XK_ANY_MOD, "\033[H", 0, -1, 0},