option for disabling status for less distraction
authorIan Kelling <ian@iankelling.org>
Fri, 29 Dec 2023 21:06:08 +0000 (16:06 -0500)
committerIan Kelling <ian@iankelling.org>
Fri, 29 Dec 2023 21:06:08 +0000 (16:06 -0500)
brc2
myi3status

diff --git a/brc2 b/brc2
index 32ac77a4219ff33b15dbe858ac7d05903c51f46b..5f0a5ff45f5ee11430b1d232c6fed78473686b2a 100644 (file)
--- a/brc2
+++ b/brc2
@@ -4255,6 +4255,13 @@ hssh-update() {
   fi
 }
 
+noi3bar() {
+  touch /tmp/noi3bar
+}
+i3bar() {
+  rm -fv /tmp/noi3bar
+}
+
 
 export BASEFILE_DIR=/a/bin/fai-basefiles
 
index 189e9f03ab7e6034106a26d3f53755a0a5fa2b6d..7183a8ff7eec6360277ed807bfad2befc7925ca4 100755 (executable)
@@ -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