commit 7ae0c51614d709b64ebb0c2a9f4f80ecf4e8e35d parent b3b9ebc5181dcc87105ac39365cc5094da8f9e64 Author: Chris Bracken <chris@bracken.jp> Date: Mon, 9 Oct 2023 15:18:20 -0700 Inline xmodmap commands to .xinitrc This avoids relying on distro-specific loading of this file. Diffstat:
D | .Xmodmap | | | 2 | -- |
M | .xinitrc | | | 8 | ++++++++ |
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/.Xmodmap b/.Xmodmap @@ -1,2 +0,0 @@ -keycode 108 = Multi_key Alt_R Meta_R Alt_R Meta_R -pointer = 1 2 3 5 4 6 7 8 9 10 11 12 diff --git a/.xinitrc b/.xinitrc @@ -1,6 +1,14 @@ +#!/bin/sh + # Use ibus for Japanese IME. export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS=@im=fcitx +# Assign the right AltGr key to keycode 108 (compose). +xmodmap -e "keycode 108 = Multi_key Alt_R Meta_R Alt_R Meta_R" + +# Use inverted "natural" scrolling (swap mouse buttons 4 and 5). +xmodmap -e "pointer = 1 2 3 5 4 6 7 8 9 10 11 12" + exec /usr/local/bin/i3