summaryrefslogtreecommitdiff
path: root/.local/bin/dwmbar/dwmb-dotfiles
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2020-10-08 01:53:07 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2020-10-08 01:53:07 -0400
commite860d9a8f7ca586fa88ba2f0b1325377ebb14615 (patch)
tree22775fb8343e95ae56b26a8207b6a31c857ee419 /.local/bin/dwmbar/dwmb-dotfiles
parentc295d8331ff5193cb97b1e3f6b15836654b010cc (diff)
dwmblocks scripts
Diffstat (limited to '.local/bin/dwmbar/dwmb-dotfiles')
-rwxr-xr-x.local/bin/dwmbar/dwmb-dotfiles15
1 files changed, 15 insertions, 0 deletions
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"