dotfiles/sway/toggle_fcitx.sh

9 lines
135 B
Bash
Raw Normal View History

2022-09-06 23:34:19 -06:00
#!/usr/bin/env bash
CURRENT_ID="$(pgrep ^fcitx5$)"
if [[ -n "$CURRENT_ID" ]]; then
kill "$CURRENT_ID"
else
fcitx5 -d --replace
fi