From c8059236bdcb147e333a1af469cd01f696f975ac Mon Sep 17 00:00:00 2001 From: Darshaka Pathirana Date: Wed, 6 Sep 2023 18:37:07 +0200 Subject: [PATCH] .Xresources: Add key binding to switch between fonts without a numeric keypad Modern notebooks lack a numeric keypad, making it hard to use the shifted keypad plus and minus bindings for switching between font sizes. Ctrl-+ (which is actually Ctrl-=) + Ctrl-- allows us to switch between fonts on keyboards without a numeric keypad. --- etc/skel/.Xresources | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/etc/skel/.Xresources b/etc/skel/.Xresources index 9b8b014..73134b7 100644 --- a/etc/skel/.Xresources +++ b/etc/skel/.Xresources @@ -27,11 +27,26 @@ ! ! We have added Ctrl-Shift-c + Ctrl-Shift-v to be able to copy/paste using the ! CLIPBOARD selection type. This is also useful if there is no middle mouse -! button and you are not used to the Shift-Insert shortcut: +! button and you are not used to the Shift-Insert shortcut. +! +! The default bindings to change the font size are Shift-Keypad+ and +! Shift-Keypad- / Shift-Ctrl-Keypad+: +! +! Shift~Ctrl KP_Add:larger-vt-font() \n\ +! Shift Ctrl KP_Add:smaller-vt-font() \n\ +! Shift KP_Subtract:smaller-vt-font() \n\ +! +! Modern notebooks lack a numeric keypad, making it hard to use the shifted +! keypad plus and minus bindings for switching between font sizes. +! +! Ctrl-+ + Ctrl-- allows us to switch between fonts on keyboards without a +! numeric keypad. *VT100.translations: #override \n\ Ctrl Shift V: insert-selection(SELECT, CLIPBOARD) \n\ Ctrl Shift C: copy-selection(CLIPBOARD) \n\ + Ctrl +: larger-vt-font() \n\ + Ctrl -: smaller-vt-font() \n ! If you do not have any iso8859-15 fonts, use iso8859-1 !*font: -misc-fixed-medium-r-normal-*-*-140-*-*-c-*-iso8859-15 -- 2.1.4