about summary refs log tree commit diff
path: root/scripts/xmobar/fcitx.sh
blob: ddf18260d7343d49855730895593d26706b0d907 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

status="$(fcitx-remote)"
set out

if   [[ "$status" = 0 ]]
then
    out="Off"
elif [[ "$status" = 1 ]]
then
    out="Disabled"
else 
    out="Enabled"
fi

echo -e "$out"

Consider giving Nix/NixOS a try! <3