random-scripts/eww/eww-fcitx5-toggle

7 lines
142 B
Plaintext
Raw Permalink Normal View History

2023-09-12 02:07:05 -07:00
#!/bin/sh
2024-04-27 14:23:43 -07:00
if [ "${#}" -gt 0 ]; then
config_flags="-c ${1}"
fi
2023-09-12 02:07:05 -07:00
fcitx5-remote -t
2024-04-27 14:23:43 -07:00
eww ${config_flags} update fcitx5-state="$(fcitx5-remote)"