aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-03-24 10:51:49 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-03-24 10:51:49 -0300
commite7d1e8d9b88a8bd95ca6e8d42ac9e12187b0cef1 (patch)
treea02879cb8e6a3b63116bbc9b39a6f50da5d170ac
parente23e70ff27eac89b3f8998d77f88dc5e1d5b33a3 (diff)
downloadxsession-e7d1e8d9b88a8bd95ca6e8d42ac9e12187b0cef1.tar.gz
xsession-e7d1e8d9b88a8bd95ca6e8d42ac9e12187b0cef1.tar.bz2
Adds custom Xmodmap
-rw-r--r--Xmodmap.dot.link15
-rwxr-xr-xxsessionrc.dot.link5
2 files changed, 20 insertions, 0 deletions
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