From 35ac00c60fcf34910d676d21285491e9dcdcca2a Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 1 Nov 2022 08:09:47 +0100 Subject: [fcitx5] add systemd config --- .config/fcitx5/systemd/fcitx5-systemd | 3 +++ .config/fcitx5/systemd/fcitx5@.service | 9 +++++++++ .config/yadm/bootstrap | 9 +++++++++ 3 files changed, 21 insertions(+) create mode 100755 .config/fcitx5/systemd/fcitx5-systemd create mode 100644 .config/fcitx5/systemd/fcitx5@.service diff --git a/.config/fcitx5/systemd/fcitx5-systemd b/.config/fcitx5/systemd/fcitx5-systemd new file mode 100755 index 0000000..b529eff --- /dev/null +++ b/.config/fcitx5/systemd/fcitx5-systemd @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +WAYLAND_DISPLAY=wayland-1 XDG_RUNTIME_DIR=/run/user/$(id -u) GTK_IM_MODULE=fcitx QT_IM_MODULE=fcitx XMODIFIERS=@im=fcitx /usr/bin/fcitx5 diff --git a/.config/fcitx5/systemd/fcitx5@.service b/.config/fcitx5/systemd/fcitx5@.service new file mode 100644 index 0000000..1ab45d9 --- /dev/null +++ b/.config/fcitx5/systemd/fcitx5@.service @@ -0,0 +1,9 @@ +[Unit] +Description=fcitx5 + +[Service] +User=%i +ExecStart=fcitx5-systemd + +[Install] +WantedBy=graphical.target diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap index b9b1cb3..91f2152 100755 --- a/.config/yadm/bootstrap +++ b/.config/yadm/bootstrap @@ -37,3 +37,12 @@ if command -v gammastep > /dev/null 2>&1; then sudo systemctl enable "gammastep@$USER" --now fi +# # +# fcitx5 +# # + +if command -v fcitx5 > /dev/null 2>&1; then + sudo ln -s "$HOME/.config/fcitx5/systemd/fcitx5@.service" /etc/systemd/system/ + sudo ln -s "$HOME/.config/fcitx5/systemd/fcitx5-systemd" /usr/local/bin/ + sudo systemctl enable "fcitx5@$USER" --now +fi -- cgit v1.2.3