Start sway with the compose key

This commit is contained in:
Rodolphe Breard 2019-06-17 22:58:08 +02:00
parent 0e2cc5c3cf
commit a5f797067b

13
bin/sway Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
set -euo pipefail
IFS=$'\n\t'
COMPOSE_KEY_FILE="$HOME/.compose_key"
if [ -f "$COMPOSE_KEY_FILE" ]; then
COMPOSE_KEY=$(cat "$COMPOSE_KEY_FILE")
export XKB_DEFAULT_OPTIONS="compose:$COMPOSE_KEY"
fi
/usr/bin/sway $*