st

my build of st
git clone git://git.ckyln.com/st
Log | Files | Refs | README | LICENSE

commit 76a48083fdaeca8df4496015491937ffacd608a6
parent 03ae6f2c0ee9d2eef4b9b5f82e8e1fdd6e4abfdf
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue,  4 Aug 2020 16:11:40 +0300

apply personal configuration

Diffstat:
Mconfig.def.h | 22++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -5,7 +5,7 @@ * * 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:pixelsize=14:antialias=true:autohint=true"; static int borderpx = 2; /* @@ -143,7 +143,7 @@ unsigned int defaultrcs = 257; * 6: Bar ("|") * 7: Snowman ("☃") */ -static unsigned int cursorshape = 2; +static unsigned int cursorshape = 6; /* * Default columns and rows numbers @@ -206,6 +206,7 @@ ResourcePref resources[] = { { "borderpx", INTEGER, &borderpx }, { "cwscale", FLOAT, &cwscale }, { "chscale", FLOAT, &chscale }, + { "alpha", FLOAT, &alpha }, }; /* @@ -221,9 +222,15 @@ static MouseShortcut mshortcuts[] = { { XK_ANY_MOD, Button5, ttysend, {.s = "\005"} }, }; +/* Externalpipe commands */ +static char *editstdout[] = { "/bin/sh", "-c", "st-editstdout", NULL }; +static char *openurl[] = { "/bin/sh", "-c", "st-url o", NULL }; +static char *copyurl[] = { "/bin/sh", "-c", "st-url c", NULL }; + /* Internal keyboard shortcuts. */ -#define MODKEY Mod1Mask +#define MODKEY Mod1Mask #define TERMMOD (ControlMask|ShiftMask) +#define WINMOD (Mod4Mask|ShiftMask) static Shortcut shortcuts[] = { /* mask keysym function argument */ @@ -231,9 +238,9 @@ static Shortcut shortcuts[] = { { ControlMask, XK_Print, toggleprinter, {.i = 0} }, { ShiftMask, XK_Print, printscreen, {.i = 0} }, { XK_ANY_MOD, XK_Print, printsel, {.i = 0} }, - { TERMMOD, XK_Prior, zoom, {.f = +1} }, - { TERMMOD, XK_Next, zoom, {.f = -1} }, - { TERMMOD, XK_Home, zoomreset, {.f = 0} }, + { TERMMOD, XK_K, zoom, {.f = +1} }, + { TERMMOD, XK_J, zoom, {.f = -1} }, + { TERMMOD, XK_H, zoomreset, {.f = 0} }, { TERMMOD, XK_C, clipcopy, {.i = 0} }, { TERMMOD, XK_V, clippaste, {.i = 0} }, { TERMMOD, XK_Y, selpaste, {.i = 0} }, @@ -241,6 +248,9 @@ static Shortcut shortcuts[] = { { TERMMOD, XK_Num_Lock, numlock, {.i = 0} }, { ShiftMask, XK_Page_Up, kscrollup, {.i = -1} }, { ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} }, + { TERMMOD, XK_E, externalpipe, { .v = editstdout } }, + { TERMMOD, XK_O, externalpipe, { .v = openurl } }, + { WINMOD, XK_O, externalpipe, { .v = copyurl } }, }; /*