dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit caf7be17563448423aa99c274ee331490dde879b
parent df835df512da2b79b4f498568602b63fedac5a76
Author: Chris Bracken <chris@bracken.jp>
Date:   Wed,  8 Sep 2021 17:06:24 -0700

sway: launch via script

Adds a launch script that sources sway-specific environment variables
and launches via systemctl on Linux.

Also sets the required environment variables for IME input via fcitx5.

Diffstat:
A.config/sway/env | 7+++++++
A.local/bin/sway | 10++++++++++
2 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/.config/sway/env b/.config/sway/env @@ -0,0 +1,7 @@ +# Workaround for https://github.com/swaywm/sway/issues/6179 +LIBSEAT_BACKEND=logind + +# Use fcitx5 for IME input. +export GTK_IM_MODULE=fcitx5 +export QT_IM_MODULE=fcitx5 +export XMODIFIERS=@im=fcitx5 diff --git a/.local/bin/sway b/.local/bin/sway @@ -0,0 +1,10 @@ +#!/bin/sh + +SWAY_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/sway" + +# sway-specific environment +if [ -f $SWAY_CONFIG_HOME/env ]; then + . "$SWAY_CONFIG_HOME/env" +fi + +exec systemd-cat --identifier sway dbus-run-session -- /usr/bin/sway "$@"