dotfiles/.set_compose_key.sh

12 lines
414 B
Bash
Raw Normal View History

2019-04-26 14:12:45 +02:00
# Since all keyboards does not include the same keys, the compose key
# should be customized. In order to achieve that, this script requires
# a symbolic link to point to a file containing the name of the key that
# will be used as a compose key.
2019-04-28 10:46:03 +02:00
COMPOSE_KEY_FILE="$HOME/.compose_key"
2019-04-26 14:12:45 +02:00
if [ -f "$COMPOSE_KEY_FILE" ]; then
COMPOSE_KEY=$(cat "$COMPOSE_KEY_FILE")
setxkbmap -option "compose:$COMPOSE_KEY"
fi