From ff97cafa6de5954cc43f03ec19cb76f890faa287 Mon Sep 17 00:00:00 2001 From: Jordan Atwood Date: Thu, 26 May 2022 12:24:03 -0700 Subject: [PATCH] Add Xmodmap config This sets the right Alt key to be the chosen X compose key, and loads it on startup. (and sets GTK_IM_MODULE to enable its use in GTK apps) --- src/.Xmodmap | 1 + src/.bash_profile | 3 +++ src/.bashrc | 3 +++ 3 files changed, 7 insertions(+) create mode 100644 src/.Xmodmap diff --git a/src/.Xmodmap b/src/.Xmodmap new file mode 100644 index 0000000..6782573 --- /dev/null +++ b/src/.Xmodmap @@ -0,0 +1 @@ +keycode 108 = Multi_key NoSymbol Multi_key diff --git a/src/.bash_profile b/src/.bash_profile index 12e17bf..767659f 100755 --- a/src/.bash_profile +++ b/src/.bash_profile @@ -17,6 +17,9 @@ export XDG_DATA_HOME="$HOME/.local/share" export XDG_STATE_HOME="$HOME/.local/state" export XDG_RUNTIME_DIR="/run/user/$UID" +# x settings +export GTK_IM_MODULE="xim" # use x input method for GTK apps + # Default editor hash vim >/dev/null 2>&1 && export EDITOR='vim' VISUAL='vim' diff --git a/src/.bashrc b/src/.bashrc index 5c86ea3..73cb4a0 100755 --- a/src/.bashrc +++ b/src/.bashrc @@ -9,6 +9,9 @@ if [ -f /etc/bashrc ]; then . /etc/bashrc fi +# source x mod map (if any) +[ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap + ### shell options # set shell options