dotfiles/sway/toggle_fcitx.sh
Akemi Izuko de244f9ea7
Init again
The dotfiles are back
2023-12-23 20:13:47 -07:00

9 lines
135 B
Bash
Executable file

#!/usr/bin/env bash
CURRENT_ID="$(pgrep ^fcitx5$)"
if [[ -n "$CURRENT_ID" ]]; then
kill "$CURRENT_ID"
else
fcitx5 -d --replace
fi