From 37b61e4f07bf1e9d96897c3da3a3820472de5f83 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Fri, 19 May 2023 19:24:25 +0200 Subject: [PATCH] Update xmobar scripts --- .bin/sb-pomo | 2 +- .bin/sb-project | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.bin/sb-pomo b/.bin/sb-pomo index 2f65e0e..676c17c 100755 --- a/.bin/sb-pomo +++ b/.bin/sb-pomo @@ -1,3 +1,3 @@ #!/usr/bin/env bash -cat /tmp/pomo +[ -f "/tmp/pomo" ] && cat /tmp/pomo || echo "" diff --git a/.bin/sb-project b/.bin/sb-project index 4d302b7..a009c7e 100755 --- a/.bin/sb-project +++ b/.bin/sb-project @@ -1,3 +1,4 @@ #!/usr/bin/env bash -cat "$HOME/.project" +# Render contents of $HOME/.project if present +[ -f "$HOME/.project" ] && cat "$HOME/.project" || echo ""