From: Ian Kelling Date: Fri, 29 Dec 2023 21:06:08 +0000 (-0500) Subject: option for disabling status for less distraction X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=commitdiff_plain;h=5a6e794f459b3e83b6d665e05d0ab0c8bc6cdfbe option for disabling status for less distraction --- 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