From e885129e442d30a55e391420ac82ab958bb65090 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 27 Oct 2021 15:27:24 +0300 Subject: polybar: habit script --- .config/polybar/scripts/habit | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 .config/polybar/scripts/habit (limited to '.config/polybar/scripts') diff --git a/.config/polybar/scripts/habit b/.config/polybar/scripts/habit new file mode 100755 index 0000000..e6380c6 --- /dev/null +++ b/.config/polybar/scripts/habit @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +RES=" " + +if [[ $(dijo --list | grep anki) ]]; then + RES="${RES}" +fi + +if [[ $(dijo --list | grep walking) ]]; then + RES="${RES} " +fi + +echo "${RES}" + -- cgit v1.2.3-70-g09d2