move compose key to menu (from lwin)

Closes #90
This commit is contained in:
Aminda Suomalainen 2017-09-18 22:05:12 +03:00
parent 06820d58b9
commit 73d3d51377
No known key found for this signature in database
GPG Key ID: 0C207F07B2F32B67
3 changed files with 5 additions and 5 deletions

View File

@ -4,5 +4,5 @@ Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "fi"
Option "XkbModel" "compose:lwin"
Option "XkbModel" "compose:menu"
EndSection

View File

@ -1,6 +1,6 @@
# Map compose to left Windows key and kill x with ctrl alt backspace and
# Map compose to left menu and kill x with ctrl alt backspace and
# disable unbreakable space
setxkbmap -option compose:lwin -option terminate:ctrl_alt_bksp -option nbsp:none
setxkbmap -option compose:menu -option terminate:ctrl_alt_bksp -option nbsp:none
# Set TZ as the current timezone. This is supposed to be sent over SSH.
TZ=$(date +%Z)

View File

@ -6,9 +6,9 @@ if hash ruby 2>/dev/null; then
PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"
fi
# Set compose to left Super/Windows, kill X with ctrl-alt-backspace,
# Set compose to menu, kill X with ctrl-alt-backspace,
# disable nbsp (still available with compose-space-space.
setxkbmap -option compose:lwin -option terminate:ctrl_alt_bksp -option nbsp:none
setxkbmap -option compose:menu -option terminate:ctrl_alt_bksp -option nbsp:none
# Removes duplicates from $PATH. Copied from http://unix.stackexchange.com/a/14896
PATH=$(echo "$PATH" | awk -v RS=':' -v ORS=":" '!a[$1]++{if (NR > 1) printf ORS; printf $a[$1]}')