about summary refs log tree commit diff
path: root/scripts/xmobar
diff options
context:
space:
mode:
Diffstat (limited to '')
-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