random-scripts/eww-fcitx5-toggle

7 lines
142 B
Bash
Executable File

#!/bin/sh
if [ "${#}" -gt 0 ]; then
config_flags="-c ${1}"
fi
fcitx5-remote -t
eww ${config_flags} update fcitx5-state="$(fcitx5-remote)"