X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=system-status;h=606ac7f881e37a6bfdcfc0b49e8a8540b12b390c;hb=12cab163424e3a7b0815646d1d4407f9b5839bcb;hp=477eade3a72ebeca68bd77dbd367b565b6417de4;hpb=aa9cb10514e29340a6d6a194ee189fa4364f1f2e;p=distro-setup diff --git a/system-status b/system-status index 477eade..606ac7f 100644 --- a/system-status +++ b/system-status @@ -53,6 +53,27 @@ write-status() { fi fi + + # this is for tracking dns over tls issue, which + # fixvpndns() in brc2 fixes. + stat=$(resolvectl dnsovertls tunfsf 2>/dev/null ||: ) + read _ _ _ istls <<<"$stat" + case $istls in + no) : ;; + *) + printf "%s\n" "$istls" | ts >> /tmp/istls.log + chars+=("T:$istls") + ;; + esac + + + if pgrep -G iank -u iank -f 'emacs --daemon' &>/dev/null; then + emacsfiles="$(emacsclient --eval "$(cat /usr/local/bin/unsaved-buffers.el)"| sed '/^"nil"$/d;s/^"(/E: /;s/)"$//')" + if [[ $emacsfiles ]]; then + chars+=("$emacsfiles") + fi + fi + glob=(/nocow/btrfs-stale/*) if [[ -e ${glob[0]} ]]; then chars+=("STALE") @@ -144,6 +165,7 @@ write-status() { fi for d in /a/bin/distro-setup /p/c; do + [[ -d $d ]] || continue cd $d if [[ ! -e .git ]]; then # some hosts i dont push all of /p/c