Browse Source

changing hotkeys

master
TiynGER 9 months ago
parent
commit
b17543b46e
3 changed files with 19 additions and 23 deletions
  1. +5
    -5
      README.md
  2. +7
    -9
      config.def.h
  3. +7
    -9
      config.h

+ 5
- 5
README.md

@ -14,15 +14,15 @@ The list below shows the currently applied patches to the master branch.
There are various shortcuts and hotkeys used in this version. Included in my build are the following. There are various shortcuts and hotkeys used in this version. Included in my build are the following.
``` ```
Alt + Break -> Send break Alt + Break -> Send break
Ctr + Print -> Toggle printer
Shift + Print -> Print screen
Shift + Insert -> Clipboard paste
Alt + Print -> Toggle printer
Alt + Print -> Print screen
Shift + Insert -> Clipboard paste
Alt + c -> Clipboard copy Alt + c -> Clipboard copy
Alt + v -> Clipboard paste Alt + v -> Clipboard paste
Alt + p -> Selected paste Alt + p -> Selected paste
Alt + NumLock -> Toggle Numlock Alt + NumLock -> Toggle Numlock
Alt + k -> Scroll up Alt + k -> Scroll up
Alt + j -> Scroll down Alt + j -> Scroll down
Ctr + Shift + u -> Zoom in
Ctr + Shift + i -> Zoom out
Alt + Shift + u -> Zoom in
Alt + Shift + i -> Zoom out
``` ```

+ 7
- 9
config.def.h

@ -6,7 +6,7 @@
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/ */
static char *font = "mono:pixelsize=16:antialias=true:autohint=true"; static char *font = "mono:pixelsize=16:antialias=true:autohint=true";
static char *font2[] = { "IBM Plex Mono:pixelsize=16:antialias=true:autohint=true" };
static char *font2[] = "IBM Plex Mono:pixelsize=16:antialias=true:autohint=true";
static int borderpx = 2; static int borderpx = 2;
/* /*
@ -114,7 +114,6 @@ static const char *colorname[] = {
/* more colors can be added after 255 to use with DefaultXX */ /* more colors can be added after 255 to use with DefaultXX */
"#cccccc", "#cccccc",
"#555555", "#555555",
"black",
}; };
@ -179,10 +178,9 @@ static MouseShortcut mshortcuts[] = {
static Shortcut shortcuts[] = { static Shortcut shortcuts[] = {
/* mask keysym function argument */ /* 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} },
{ MODKEY, XK_Break, sendbreak, {.i = 0} },
{ MODKEY, XK_Print, toggleprinter, {.i = 0} },
{ MODKEY, XK_Print, printscreen, {.i = 0} },
{ ShiftMask, XK_Insert, clippaste, {.i = 0} }, { ShiftMask, XK_Insert, clippaste, {.i = 0} },
{ MODKEY, XK_c, clipcopy, {.i = 0} }, { MODKEY, XK_c, clipcopy, {.i = 0} },
{ MODKEY, XK_v, clippaste, {.i = 0} }, { MODKEY, XK_v, clippaste, {.i = 0} },
@ -190,9 +188,9 @@ static Shortcut shortcuts[] = {
{ MODKEY, XK_Num_Lock, numlock, {.i = 0} }, { MODKEY, XK_Num_Lock, numlock, {.i = 0} },
{ MODKEY, XK_k, kscrollup, {.i = 1} }, { MODKEY, XK_k, kscrollup, {.i = 1} },
{ MODKEY, XK_j, kscrolldown, {.i = 1} }, { MODKEY, XK_j, kscrolldown, {.i = 1} },
{ TERMMOD, XK_U, zoom, {.f = +1} },
{ TERMMOD, XK_U, zoom, {.f = +1} },
{ TERMMOD, XK_I, zoom, {.f = -1} },
{ MODKEY, XK_U, zoom, {.f = +1} },
{ MODKEY, XK_U, zoom, {.f = +1} },
{ MODKEY, XK_I, zoom, {.f = -1} },
}; };
/* /*

+ 7
- 9
config.h

@ -6,7 +6,7 @@
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/ */
static char *font = "mono:pixelsize=16:antialias=true:autohint=true"; static char *font = "mono:pixelsize=16:antialias=true:autohint=true";
static char *font2[] = { "IBM Plex Mono:pixelsize=16:antialias=true:autohint=true" };
static char *font2[] = "IBM Plex Mono:pixelsize=16:antialias=true:autohint=true";
static int borderpx = 2; static int borderpx = 2;
/* /*
@ -114,7 +114,6 @@ static const char *colorname[] = {
/* more colors can be added after 255 to use with DefaultXX */ /* more colors can be added after 255 to use with DefaultXX */
"#cccccc", "#cccccc",
"#555555", "#555555",
"black",
}; };
@ -179,10 +178,9 @@ static MouseShortcut mshortcuts[] = {
static Shortcut shortcuts[] = { static Shortcut shortcuts[] = {
/* mask keysym function argument */ /* 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} },
{ MODKEY, XK_Break, sendbreak, {.i = 0} },
{ MODKEY, XK_Print, toggleprinter, {.i = 0} },
{ MODKEY, XK_Print, printscreen, {.i = 0} },
{ ShiftMask, XK_Insert, clippaste, {.i = 0} }, { ShiftMask, XK_Insert, clippaste, {.i = 0} },
{ MODKEY, XK_c, clipcopy, {.i = 0} }, { MODKEY, XK_c, clipcopy, {.i = 0} },
{ MODKEY, XK_v, clippaste, {.i = 0} }, { MODKEY, XK_v, clippaste, {.i = 0} },
@ -190,9 +188,9 @@ static Shortcut shortcuts[] = {
{ MODKEY, XK_Num_Lock, numlock, {.i = 0} }, { MODKEY, XK_Num_Lock, numlock, {.i = 0} },
{ MODKEY, XK_k, kscrollup, {.i = 1} }, { MODKEY, XK_k, kscrollup, {.i = 1} },
{ MODKEY, XK_j, kscrolldown, {.i = 1} }, { MODKEY, XK_j, kscrolldown, {.i = 1} },
{ TERMMOD, XK_U, zoom, {.f = +1} },
{ TERMMOD, XK_U, zoom, {.f = +1} },
{ TERMMOD, XK_I, zoom, {.f = -1} },
{ MODKEY, XK_U, zoom, {.f = +1} },
{ MODKEY, XK_U, zoom, {.f = +1} },
{ MODKEY, XK_I, zoom, {.f = -1} },
}; };
/* /*

Loading…
Cancel
Save