dotfiles/bin/sway
2022-05-08 11:54:07 +02:00

13 lines
247 B
Bash
Executable file

#!/usr/bin/env bash
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 "$@"