diff options
author | Daniel Weipert <code@drogueronin.de> | 2022-11-01 08:09:47 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-10-30 09:52:23 +0100 |
commit | 35ac00c60fcf34910d676d21285491e9dcdcca2a (patch) | |
tree | d7f4f483ee6996cb015cee72f042548b53b9ae29 | |
parent | 7dc418d2cd468ca8e1c624839b5db3771f61688d (diff) |
[fcitx5] add systemd config
-rwxr-xr-x | .config/fcitx5/systemd/fcitx5-systemd | 3 | ||||
-rw-r--r-- | .config/fcitx5/systemd/fcitx5@.service | 9 | ||||
-rwxr-xr-x | .config/yadm/bootstrap | 9 |
3 files changed, 21 insertions, 0 deletions
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 |