aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorRoberto E. Vargas Caballero <k0ga@shike2.com>2017-01-25 19:17:38 +0100
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2017-01-25 19:17:38 +0100
commit20f713548de451b67db3306cf8cf7b2f38fee05c (patch)
treed71ffccca7129b5fd31190e9aaac5ae91825f695 /config.def.h
parente2ee5ee6114eb74bb08cb9abe5a3020203e92688 (diff)
downloadst-patched-20f713548de451b67db3306cf8cf7b2f38fee05c.tar.bz2
st-patched-20f713548de451b67db3306cf8cf7b2f38fee05c.tar.xz
st-patched-20f713548de451b67db3306cf8cf7b2f38fee05c.zip
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.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/config.def.h b/config.def.h
index fd80923..877afab 100644
--- a/config.def.h
+++ b/config.def.h
@@ -162,6 +162,7 @@ MouseShortcut mshortcuts[] = {
162 162
163/* Internal keyboard shortcuts. */ 163/* Internal keyboard shortcuts. */
164#define MODKEY Mod1Mask 164#define MODKEY Mod1Mask
165#define TERMMOD (ControlMask|ShiftMask)
165 166
166Shortcut shortcuts[] = { 167Shortcut shortcuts[] = {
167 /* mask keysym function argument */ 168 /* mask keysym function argument */
@@ -169,15 +170,14 @@ Shortcut shortcuts[] = {
169 { ControlMask, XK_Print, toggleprinter, {.i = 0} }, 170 { ControlMask, XK_Print, toggleprinter, {.i = 0} },
170 { ShiftMask, XK_Print, printscreen, {.i = 0} }, 171 { ShiftMask, XK_Print, printscreen, {.i = 0} },
171 { XK_ANY_MOD, XK_Print, printsel, {.i = 0} }, 172 { XK_ANY_MOD, XK_Print, printsel, {.i = 0} },
172 { MODKEY|ShiftMask, XK_Prior, zoom, {.f = +1} }, 173 { TERMMOD, XK_Prior, zoom, {.f = +1} },
173 { MODKEY|ShiftMask, XK_Next, zoom, {.f = -1} }, 174 { TERMMOD, XK_Next, zoom, {.f = -1} },
174 { MODKEY|ShiftMask, XK_Home, zoomreset, {.f = 0} }, 175 { TERMMOD, XK_Home, zoomreset, {.f = 0} },
175 { ShiftMask, XK_Insert, selpaste, {.i = 0} }, 176 { TERMMOD, XK_C, clipcopy, {.i = 0} },
176 { MODKEY|ShiftMask, XK_Insert, clippaste, {.i = 0} }, 177 { TERMMOD, XK_V, clippaste, {.i = 0} },
177 { MODKEY|ShiftMask, XK_C, clipcopy, {.i = 0} }, 178 { TERMMOD, XK_Y, selpaste, {.i = 0} },
178 { MODKEY|ShiftMask, XK_V, clippaste, {.i = 0} }, 179 { TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
179 { MODKEY, XK_Num_Lock, numlock, {.i = 0} }, 180 { TERMMOD, XK_I, iso14755, {.i = 0} },
180 { MODKEY, XK_Control_L, iso14755, {.i = 0} },
181}; 181};
182 182
183/* 183/*