From e1f096b885f8e1ca68665a075a48f99c4a3ed153 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Thu, 1 Apr 2021 16:02:28 +0100 Subject: [PATCH] Makes right alt my compose key Compose key is used for inputting special characters more easily. See the compose table for examples: https://help.ubuntu.com/community/GtkComposeTable --- shells/shared/aliases | 2 +- x/.xinitrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shells/shared/aliases b/shells/shared/aliases index 80a4badd..079c7f59 100644 --- a/shells/shared/aliases +++ b/shells/shared/aliases @@ -220,7 +220,7 @@ fi # Keyboard - reset # Sometimes, if I turn the screens off, the keyboard resets itself to defaults. Not sure why but this will put my keyboard back to how I like it #alias kb="xmodmap ~/.Xmodmap; xset r rate 200 70; xcape" -alias keys="setxkbmap -layout gb,gb -variant \"colemak,\" -option grp:shifts_toggle; xset r rate 200 70; xinput --list | grep -Ei 'ErgoDox EZ\s+id' | grep -oE 'id=[0-9]+' | cut -d'=' -f2 | xargs -r setxkbmap -layout gb -device" +alias keys="setxkbmap -layout gb,gb -variant \"colemak,\" -option grp:shifts_toggle -option compose:ralt; xset r rate 200 70; xinput --list | grep -Ei 'ErgoDox EZ\s+id' | grep -oE 'id=[0-9]+' | cut -d'=' -f2 | xargs -r setxkbmap -layout gb -device" alias colemak="setxkbmap -layout gb,gb -variant \"colemak,\" -option grp:shifts_toggle" alias qwerty="setxkbmap -layout gb" diff --git a/x/.xinitrc b/x/.xinitrc index 4ba3907a..570eb7c7 100644 --- a/x/.xinitrc +++ b/x/.xinitrc @@ -21,7 +21,7 @@ export CORPPASSCOMMAND="pass IRM/corp" #xset r rate 200 70 # Set keymap to colemak -setxkbmap -layout gb,gb -variant "colemak," -option grp:shifts_toggle +setxkbmap -layout gb,gb -variant "colemak," -option grp:shifts_toggle -option compose:ralt # Set key rate xset r rate 200 70;