option for disabling status for less distraction
[distro-setup] / myi3status
index d8c5d22e7c020280231c927ab784c1519b38860c..7183a8ff7eec6360277ed807bfad2befc7925ca4 100755 (executable)
@@ -52,7 +52,7 @@
 #
 if [ -z "$BASH_VERSION" ]; then echo "error: shell is not bash" >&2; exit 1; fi
 
-source /a/bin/errhandle/err
+source /a/bin/bash-bear-trap/bash-bear
 
 shopt -s nullglob
 shopt -s dotglob
@@ -294,9 +294,13 @@ if (( $# )); then
 else
   printf '{ "version": 1, "click_events": true }\n['
   while true; do
-    main
-    line=
-    read -r -t 3 line ||:
+    if [[ -e /tmp/noi3bar ]]; then
+      sleep 10
+    else
+      main
+      line=
+      read -r -t 3 line ||:
+    fi
   done
 fi