From e860d9a8f7ca586fa88ba2f0b1325377ebb14615 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Thu, 8 Oct 2020 01:53:07 -0400 Subject: dwmblocks scripts --- .local/bin/dwmbar/dwmb-dotfiles | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 .local/bin/dwmbar/dwmb-dotfiles (limited to '.local/bin/dwmbar/dwmb-dotfiles') diff --git a/.local/bin/dwmbar/dwmb-dotfiles b/.local/bin/dwmbar/dwmb-dotfiles new file mode 100755 index 0000000..9c9c34d --- /dev/null +++ b/.local/bin/dwmbar/dwmb-dotfiles @@ -0,0 +1,15 @@ +#!/bin/bash + +dotfiles=$(yadm status | sed '1,3d; + 5,$d; + s/.$//g') + +if [[ ${dotfiles:0:1} == "n" ]]; then + warn="" +else + warn="  " +fi + + + +echo " $warn" -- cgit v1.2.3