about summary refs log tree commit diff
path: root/scripts/xmobar/fcitx.sh
blob: 5538f50630799783539ec7a45a505413373d3d54 (plain) (blame)
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