]> Sergey Matveev's repositories - st.git/commitdiff
My config
authorSergey Matveev <stargrave@stargrave.org>
Sat, 23 May 2020 11:17:54 +0000 (14:17 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 5 Apr 2024 11:57:27 +0000 (14:57 +0300)
config.def.h

index 85939b94136698ef2b0259b5c8998280bebd71ae..a5672a307c6e9a8f4642ec6db02615c88a490037 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=14: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;
@@ -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,9 +131,9 @@ 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;
 
 /*
@@ -158,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;
 
 /*
@@ -201,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} },
 };
 
 /*
@@ -456,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},
 };
 
 /*