2017-05-08 20:27:00 +00:00
|
|
|
# Set the keyboard layout for the current X session
|
|
|
|
setxkbmap -layout "us,ru"
|
|
|
|
setxkbmap -option "grp:caps_toggle,grp_led:scroll,compose:ralt"
|
2018-01-28 11:07:22 +00:00
|
|
|
|
|
|
|
# Configure compose
|
|
|
|
git clone https://github.com/kragen/xcompose/
|
|
|
|
cd xcompose
|
|
|
|
bash install
|
|
|
|
cat <<EOF >> ~/.profile
|
|
|
|
input_module=xim
|
|
|
|
export GTK_IM_MODULE=$input_module
|
|
|
|
export XMODIFIERS=@im=$input_module
|
|
|
|
export QT_IM_MODULE=$input_module
|
|
|
|
EOF
|
2018-01-28 11:20:44 +00:00
|
|
|
# And you probly need to start:
|
|
|
|
# ibus-daemon --xim --verbose --daemonize --replace
|
2018-01-28 11:07:22 +00:00
|
|
|
|