]> Sergey Matveev's repositories - st.git/blobdiff - config.def.h
Optimisations
[st.git] / config.def.h
index 2cd740a247dc2a13c1f0ad6301ca4027f28bf6e1..85b56c893a4c34aae555966f7d07ea00389919d4 100644 (file)
@@ -1,3 +1,5 @@
+#include <xkbcommon/xkbcommon-keysyms.h>
+
 /* See LICENSE file for copyright and license details. */
 
 /*
@@ -5,8 +7,8 @@
  *
  * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
  */
-static char *font = "Liberation Mono:pixelsize=12:antialias=true:autohint=true";
-static int borderpx = 2;
+static char *font = "Go Mono:size=15:antialias=true";
+static int borderpx = 0;
 
 /*
  * What program is execed by st depends of these precedence rules:
@@ -16,7 +18,7 @@ static int borderpx = 2;
  * 4: value of shell in /etc/passwd
  * 5: value of shell in config.h
  */
-static char *shell = "/bin/sh";
+static char *shell = "/bin/zsh";
 char *utmp = NULL;
 /* scroll program: to enable use a string like "scroll" */
 char *scroll = NULL;
@@ -34,7 +36,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;
@@ -60,7 +62,7 @@ static double maxlatency = 33;
  * blinking timeout (set to 0 to disable blinking) for the terminal blinking
  * attribute.
  */
-static unsigned int blinktimeout = 800;
+static unsigned int blinktimeout = 250;
 
 /*
  * thickness of underline and bar cursors
@@ -74,7 +76,7 @@ static unsigned int cursorthickness = 2;
 static int bellvolume = 0;
 
 /* default TERM value */
-char *termname = "st-256color";
+char *termname = "screen-256color";
 
 /*
  * spaces per tab
@@ -129,19 +131,24 @@ static const char *colorname[] = {
  * Default colors (colorname index)
  * foreground, background, cursor, reverse cursor
  */
-unsigned int defaultfg = 258;
-unsigned int defaultbg = 259;
-unsigned int defaultcs = 256;
+unsigned int defaultfg = 7;
+unsigned int defaultbg = 0;
+unsigned int defaultcs = 10;
 static unsigned int defaultrcs = 257;
 
 /*
  * Default shape of cursor
+ * 0: Blinking block
+ * 1: Blinking block (default)
  * 2: Block ("█")
+ * 3: Blinking underline
  * 4: Underline ("_")
+ * 5: Blinking bar
  * 6: Bar ("|")
+ * 7: Blinking st cursor
  * 7: Snowman ("☃")
  */
-static unsigned int cursorshape = 2;
+static unsigned int cursorshape = 1;
 
 /*
  * Default columns and rows numbers
@@ -153,8 +160,8 @@ static unsigned int rows = 24;
 /*
  * Default colour and shape of the mouse cursor
  */
-static unsigned int mouseshape = XC_xterm;
-static unsigned int mousefg = 7;
+static unsigned int mouseshape = XC_left_ptr;
+static unsigned int mousefg = 14;
 static unsigned int mousebg = 0;
 
 /*
@@ -196,11 +203,13 @@ static Shortcut shortcuts[] = {
        { 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} },
+       /* { 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|ShiftMask,     XK_Insert,      clippaste,      {.i =  0} },
 };
 
 /*
@@ -451,6 +460,12 @@ static Key key[] = {
        { XK_F33,           XK_NO_MOD,      "\033[20;5~",    0,    0},
        { XK_F34,           XK_NO_MOD,      "\033[21;5~",    0,    0},
        { XK_F35,           XK_NO_MOD,      "\033[23;5~",    0,    0},
+
+       { XK_Menu,          XK_NO_MOD,      "\ 2",    0,    0},
+       { XK_Super_R,       XK_NO_MOD,      "\ 1",    0,    0},
+       { XK_Scroll_Lock,   XK_NO_MOD,      "\ 1[",   0,    0},
+       { XKB_KEY_XF86AudioRaiseVolume, XK_NO_MOD, "0", 0, 0},
+       { XKB_KEY_XF86AudioLowerVolume, XK_NO_MOD, "9", 0, 0},
 };
 
 /*