From a5f797067bda3bac07b8ced765b73bb85a21681c Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Mon, 17 Jun 2019 22:58:08 +0200 Subject: [PATCH] Start sway with the compose key --- bin/sway | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 bin/sway 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 $*