From e7d1e8d9b88a8bd95ca6e8d42ac9e12187b0cef1 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 24 Mar 2018 10:51:49 -0300 Subject: Adds custom Xmodmap --- Xmodmap.dot.link | 15 +++++++++++++++ xsessionrc.dot.link | 5 +++++ 2 files changed, 20 insertions(+) create mode 100644 Xmodmap.dot.link diff --git a/Xmodmap.dot.link b/Xmodmap.dot.link new file mode 100644 index 0000000..1028fa2 --- /dev/null +++ b/Xmodmap.dot.link @@ -0,0 +1,15 @@ +! Map Menu into Super_L +keycode 135 = Super_L + +! Map AltGr into Alt_L +keycode 108 = Alt_L + +! XF86Back +keycode 166 = Prior + +! XF86Next +keycode 167 = Next + +! Make Shift work like Control +!clear lock +!keycode 66 = Control_L diff --git a/xsessionrc.dot.link b/xsessionrc.dot.link index f91821b..0febb1f 100755 --- a/xsessionrc.dot.link +++ b/xsessionrc.dot.link @@ -82,6 +82,11 @@ for program in $PROGRAMS; do $program & done +# Apply default keyboard configuration +if [ -f "$HOME/.Xmodmap" ]; then + xmodmap $HOME/.Xmodmap +fi + # Apply custom keyboard configuration if [ -f "$HOME/.Xmodmaps/$HOSTNAME" ]; then xmodmap $HOME/.Xmodmaps/$HOSTNAME -- cgit v1.2.3