about summary refs log tree commit diff
path: root/scripts/xmobar/fcitx.sh
diff options
context:
space:
mode:
authorazahi <azahi@teknik.io>2019-09-04 00:37:09 +0300
committerazahi <azahi@teknik.io>2019-09-04 00:37:09 +0300
commitc12e737a4f3bb78bf6b77c9b2bfd93610be2937f (patch)
tree41ef9ae2238e96c1fc4b12b4a00ec05e4a39e064 /scripts/xmobar/fcitx.sh
parentReplace alsa-mixer with external shell alternative (diff)
Bump 0.15.4
Diffstat (limited to 'scripts/xmobar/fcitx.sh')
-rwxr-xr-xscripts/xmobar/fcitx.sh19
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"

Consider giving Nix/NixOS a try! <3