From c73c2da1af2487fe8ce17c08f30c4a13c669bfb2 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan <79687674+Saumit-D@users.noreply.github.com> Date: Tue, 26 Oct 2021 13:29:32 +0530 Subject: Update config.def.h --- config.def.h | 41 +++++++++++++++++++++++++++++++++-------- 1 file changed, 33 insertions(+), 8 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 51d0236..44fe3ab 100644 --- a/config.def.h +++ b/config.def.h @@ -5,7 +5,25 @@ * * 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=12:antialias=true:autohint=true"; +//static char *font = "OCRA:pixelsize=22:antialias=true:autohint=true"; +static char *font = "UbuntuMono Nerd Font:pixelsize=22:antialias=true:autohint=true"; +//static char *font = "SF Mono:pixelsize=22:antialias=true:autohint=true" +//static char *font = "JetBrainsMono:pixelsize=22:antialias=true:autohint=true"; +//static char *font = "Terminus:pixelsize=22:antialias=true:autohint=true"; + + +/* Spare fonts */ +static char *font2[] = { + "JoyPixels:pixelsize=22:antialias=true:autohint=true", + "Spoqa Han Sans Neo:pixelsize=18:antialias=true:autohint=true"}; +//"Noto Color Emoji:pixelsize=10:antialias=true:autohint=true", +//"Symbola:pixelsize=10:antialias=true:autohint=true"}; + +/* "Inconsolata for Powerline:pixelsize=12:antialias=true:autohint=true",*/ +/* "Hack Nerd Font Mono:pixelsize=11:antialias=true:autohint=true", */ + static int borderpx = 2; /* @@ -168,25 +186,24 @@ static unsigned int defaultattr = 11; */ static uint forcemousemod = ShiftMask; +/* Internal keyboard shortcuts. */ +#define MODKEY Mod1Mask +#define TERMMOD (ControlMask|ShiftMask) + /* * Internal mouse shortcuts. * Beware that overloading Button1 will disable the selection. */ static MouseShortcut mshortcuts[] = { /* mask button function argument release */ - { ShiftMask, Button4, kscrollup, {.i = 1} }, - { ShiftMask, Button5, kscrolldown, {.i = 1} }, + { MODKEY, Button4, kscrollup, {.i = 1} }, + { MODKEY, Button5, kscrolldown, {.i = 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~"} }, { XK_ANY_MOD, Button5, ttysend, {.s = "\005"} }, }; - -/* Internal keyboard shortcuts. */ -#define MODKEY Mod1Mask -#define TERMMOD (ControlMask|ShiftMask) - static Shortcut shortcuts[] = { /* mask keysym function argument */ { XK_ANY_MOD, XK_Break, sendbreak, {.i = 0} }, @@ -201,6 +218,14 @@ static Shortcut shortcuts[] = { { TERMMOD, XK_Y, selpaste, {.i = 0} }, { ShiftMask, XK_Insert, selpaste, {.i = 0} }, { TERMMOD, XK_Num_Lock, numlock, {.i = 0} }, +//setting vim and arrow keys to scroll line one by one pressing alt + { MODKEY, XK_k, kscrollup, {.i = 1} }, + { MODKEY, XK_Up, kscrollup, {.i = 1} }, + { MODKEY, XK_j, kscrolldown, {.i = 1} }, + { MODKEY, XK_Down, kscrolldown, {.i = 1} }, +//scroll thru page wise + { MODKEY, XK_Page_Up, kscrollup, {.i = -1} }, + { MODKEY, XK_Page_Down, kscrolldown, {.i = -1} }, { ShiftMask, XK_Page_Up, kscrollup, {.i = -1} }, { ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} }, }; -- cgit v1.2.3