diff options
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 43 |
1 files changed, 28 insertions, 15 deletions
diff --git a/config.def.h b/config.def.h index 26a1779..f882aae 100644 --- a/config.def.h +++ b/config.def.h @@ -5,11 +5,12 @@ * * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html */ -static char *font = "Liberation Mono:pixelsize=12:antialias=true:autohint=true"; +static char *font = "Liberation Mono:pixelsize=16: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", */ + "Noto Color Emoji:pixelsize=12:antialias=true:autohint=true" }; static int borderpx = 2; @@ -79,7 +80,7 @@ static unsigned int cursorthickness = 2; * 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 = 0; +const int boxdraw = 1; const int boxdraw_bold = 0; /* braille (U28XX): 1: render as adjacent "pixels", 0: use font */ @@ -194,7 +195,11 @@ static uint forcemousemod = ShiftMask; */ static MouseShortcut mshortcuts[] = { /* mask button function argument release */ - { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 }, + { XK_NO_MOD, Button4, kscrollup, {.i = 2} }, + { XK_NO_MOD, Button5, kscrolldown, {.i = 2} }, + { ControlMask, Button4, zoom, {.f = +1} }, + { ControlMask, Button5, zoom, {.f = -1} }, + { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 }, { ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} }, { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} }, { ShiftMask, Button5, ttysend, {.s = "\033[6;2~"} }, @@ -202,25 +207,33 @@ static MouseShortcut mshortcuts[] = { }; /* Internal keyboard shortcuts. */ -#define MODKEY Mod1Mask +#define MODKEY Mod4Mask #define TERMMOD (ControlMask|ShiftMask) +static char *copyurlcmd[] = { "/bin/sh", "-c", "st-urlhandler", "externalpipe", NULL }; +static char *copyoutput[] = { "/bin/sh", "-c", "st-copyout", "externalpipe", NULL }; + static Shortcut shortcuts[] = { /* mask keysym function argument */ - { XK_ANY_MOD, XK_Break, sendbreak, {.i = 0} }, - { 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} }, + { ShiftMask, XK_Insert, selpaste, {.i = 0} }, + { ShiftMask, XK_Page_Up, kscrollup, {.i = -1} }, + { ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} }, { 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_K, kscrollup, {.i = 1} }, + { TERMMOD, XK_J, kscrolldown, {.i = 1} }, + { TERMMOD, XK_Up, kscrollup, {.i = 1} }, + { TERMMOD, XK_Down, kscrolldown, {.i = 1} }, + { ControlMask, XK_0, zoomreset, {.f = 0} }, + { ControlMask, XK_plus, zoom, {.f = +1} }, + { ControlMask, XK_minus, zoom, {.f = -1} }, + { TERMMOD, XK_Right, zoom, {.f = +1} }, + { TERMMOD, XK_Left, zoom, {.f = -1} }, + { TERMMOD, XK_L, zoom, {.f = +1} }, + { TERMMOD, XK_H, zoom, {.f = -1} }, { TERMMOD, XK_Num_Lock, numlock, {.i = 0} }, - { ShiftMask, XK_Page_Up, kscrollup, {.i = -1} }, - { ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} }, + { MODKEY, XK_o, externalpipe, {.v = copyoutput} }, + { MODKEY, XK_p, externalpipe, {.v = copyurlcmd} }, }; /* |
