From 5a6e794f459b3e83b6d665e05d0ab0c8bc6cdfbe Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Fri, 29 Dec 2023 16:06:08 -0500 Subject: [PATCH] option for disabling status for less distraction --- brc2 | 7 +++++++ myi3status | 10 +++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/brc2 b/brc2 index 32ac77a..5f0a5ff 100644 --- 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 diff --git a/myi3status b/myi3status index 189e9f0..7183a8f 100755 --- a/myi3status +++ b/myi3status @@ -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 -- 2.30.2