about summary refs log tree commit diff
path: root/scripts/xmobar/fcitx.sh
blob: f159c415e25868a7834632d67bd966293c6e8203 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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