about summary refs log tree commit diff
path: root/scripts/xmobar/fcitx.sh
blob: 48eefa0a732984ee8e3e6e823bf181094c52d278 (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