diff options
Diffstat (limited to 'scripts/xmobar/fcitx.sh')
-rwxr-xr-x | scripts/xmobar/fcitx.sh | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/scripts/xmobar/fcitx.sh b/scripts/xmobar/fcitx.sh index ddf1826..5538f50 100755 --- a/scripts/xmobar/fcitx.sh +++ b/scripts/xmobar/fcitx.sh @@ -1,16 +1,15 @@ -#!/usr/bin/env bash +#!/bin/sh -status="$(fcitx-remote)" -set out +STATUS="$(fcitx-remote)" -if [[ "$status" = 0 ]] +if [ "$STATUS" = 0 ] then - out="Off" -elif [[ "$status" = 1 ]] + OUT="Off" +elif [ "$STATUS" = 1 ] then - out="Disabled" -else - out="Enabled" + OUT="Disabled" +else + OUT="Enabled" fi -echo -e "$out" +echo "$OUT" |