diff --git a/bin/sway b/bin/sway new file mode 100755 index 0000000..214e949 --- /dev/null +++ b/bin/sway @@ -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 $*