Files
blomarchy/bin/blob-restart-xcompose
T

11 lines
464 B
Bash
Executable File

#!/bin/bash
# blob:summary=Restart the XCompose input method service (fcitx5) to apply new compose key settings.
# A fcitx5 running outside the unit owns org.fcitx.Fcitx5, so the unit's
# instance would exit on arrival and the stale process would keep serving the
# old ~/.XCompose -- a restart that reports success and changes nothing.
systemctl --user stop blob-fcitx5.service
pkill -x fcitx5 >/dev/null 2>&1 || true
systemctl --user start blob-fcitx5.service