1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh STATUS="$(fcitx-remote)" if [ "$STATUS" = 0 ] then OUT="Off" elif [ "$STATUS" = 1 ] then OUT="Disabled" else OUT="Enabled" fi echo "$OUT"
Consider giving Nix/NixOS a try! <3