From c12e737a4f3bb78bf6b77c9b2bfd93610be2937f Mon Sep 17 00:00:00 2001 From: azahi Date: Wed, 4 Sep 2019 00:37:09 +0300 Subject: Bump 0.15.4 --- scripts/xmobar/fcitx.sh | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'scripts/xmobar') 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" -- cgit 1.4.1