aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto E. Vargas Caballero2017-01-25 19:17:38 +0100
committerRoberto E. Vargas Caballero2017-01-25 19:17:38 +0100
commitdb8fcb631a5dec3a72b8444dcb95b53bdb3ad774 (patch)
treec97f90002402a639814d224b99c26622a6a40a47
parent2e2f9d73798b92f15cb672b6a59ee17c9b628344 (diff)
downloadaur-db8fcb631a5dec3a72b8444dcb95b53bdb3ad774.tar.gz
Change default keybindings
CTRL+SHIFT is an impossible combination in the terminal world (0x20 | x & 0x1F), so it is perfect to be used for internals shortcuts of terminals, and being a double combination reduces the prossibility of having comflicts.
-rw-r--r--config.def.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/config.def.h b/config.def.h
index fd80923ad2a3..877afabc66c7 100644
--- a/config.def.h
+++ b/config.def.h
@@ -162,6 +162,7 @@ MouseShortcut mshortcuts[] = {
/* Internal keyboard shortcuts. */
#define MODKEY Mod1Mask
+#define TERMMOD (ControlMask|ShiftMask)
Shortcut shortcuts[] = {
/* mask keysym function argument */
@@ -169,15 +170,14 @@ Shortcut shortcuts[] = {
{ ControlMask, XK_Print, toggleprinter, {.i = 0} },
{ ShiftMask, XK_Print, printscreen, {.i = 0} },
{ XK_ANY_MOD, XK_Print, printsel, {.i = 0} },
- { MODKEY|ShiftMask, XK_Prior, zoom, {.f = +1} },
- { MODKEY|ShiftMask, XK_Next, zoom, {.f = -1} },
- { MODKEY|ShiftMask, XK_Home, zoomreset, {.f = 0} },
- { ShiftMask, XK_Insert, selpaste, {.i = 0} },
- { MODKEY|ShiftMask, XK_Insert, clippaste, {.i = 0} },
- { MODKEY|ShiftMask, XK_C, clipcopy, {.i = 0} },
- { MODKEY|ShiftMask, XK_V, clippaste, {.i = 0} },
- { MODKEY, XK_Num_Lock, numlock, {.i = 0} },
- { MODKEY, XK_Control_L, iso14755, {.i = 0} },
+ { TERMMOD, XK_Prior, zoom, {.f = +1} },
+ { TERMMOD, XK_Next, zoom, {.f = -1} },
+ { TERMMOD, XK_Home, zoomreset, {.f = 0} },
+ { TERMMOD, XK_C, clipcopy, {.i = 0} },
+ { TERMMOD, XK_V, clippaste, {.i = 0} },
+ { TERMMOD, XK_Y, selpaste, {.i = 0} },
+ { TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
+ { TERMMOD, XK_I, iso14755, {.i = 0} },
};
/*