summaryrefslogtreecommitdiff
path: root/.config/fcitx5
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2022-11-13 14:07:24 +0100
committerDaniel Weipert <code@drogueronin.de>2023-10-30 09:52:23 +0100
commite4e9e3b440bc915b15abee33aeeb23f8194dd298 (patch)
tree6ae44af87c2e2b29486e030159e42b02640a3694 /.config/fcitx5
parentb54b546c793cd989f975e699197c20522f73e3f4 (diff)
[sway+gammastep+fcitx5] start sway via systemd service on login and adjust gammastep and fcitx5 services to run after sway-session.target
Diffstat (limited to '.config/fcitx5')
-rwxr-xr-x.config/fcitx5/systemd/fcitx5-systemd3
-rw-r--r--.config/fcitx5/systemd/fcitx5-user.service6
-rw-r--r--.config/fcitx5/systemd/fcitx5-user.timer5
-rw-r--r--.config/fcitx5/systemd/fcitx5@.service9
4 files changed, 11 insertions, 12 deletions
diff --git a/.config/fcitx5/systemd/fcitx5-systemd b/.config/fcitx5/systemd/fcitx5-systemd
deleted file mode 100755
index b529eff..0000000
--- a/.config/fcitx5/systemd/fcitx5-systemd
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/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-user.service b/.config/fcitx5/systemd/fcitx5-user.service
new file mode 100644
index 0000000..c077504
--- /dev/null
+++ b/.config/fcitx5/systemd/fcitx5-user.service
@@ -0,0 +1,6 @@
+[Unit]
+Description=fcitx5
+
+[Service]
+ExecStart=/usr/bin/fcitx5
+Environment="GTK_IM_MODULE=fcitx" "QT_IM_MODULE=fcitx" "XMODIFIERS=@im-fcitx"
diff --git a/.config/fcitx5/systemd/fcitx5-user.timer b/.config/fcitx5/systemd/fcitx5-user.timer
new file mode 100644
index 0000000..614f6a2
--- /dev/null
+++ b/.config/fcitx5/systemd/fcitx5-user.timer
@@ -0,0 +1,5 @@
+[Timer]
+OnActiveSec=5s
+
+[Install]
+WantedBy=sway-session.target
diff --git a/.config/fcitx5/systemd/fcitx5@.service b/.config/fcitx5/systemd/fcitx5@.service
deleted file mode 100644
index 1ab45d9..0000000
--- a/.config/fcitx5/systemd/fcitx5@.service
+++ /dev/null
@@ -1,9 +0,0 @@
-[Unit]
-Description=fcitx5
-
-[Service]
-User=%i
-ExecStart=fcitx5-systemd
-
-[Install]
-WantedBy=graphical.target