summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaumit Dinesan <79687674+Saumit-D@users.noreply.github.com>2021-10-26 13:29:32 +0530
committerGitHub <noreply@github.com>2021-10-26 13:29:32 +0530
commitc73c2da1af2487fe8ce17c08f30c4a13c669bfb2 (patch)
tree1f68148b5ee2061c1f90d5efaabde0b5041c765f
parentcc60f13ff5c5568f30308111642125e977d1e16e (diff)
Update config.def.h
-rw-r--r--config.def.h41
1 files changed, 33 insertions, 8 deletions
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} },
};