From f6314400471c60cf0a77591346d0614a3b8f6242 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Thu, 27 Oct 2022 13:01:41 +0200 Subject: Template for lemonbar and a sed script. --- i3blocks/lemon | 8 ++++++++ sed/paragraphJoiner | 4 ++++ 2 files changed, 12 insertions(+) create mode 100755 i3blocks/lemon create mode 100644 sed/paragraphJoiner diff --git a/i3blocks/lemon b/i3blocks/lemon new file mode 100755 index 0000000..16fb18e --- /dev/null +++ b/i3blocks/lemon @@ -0,0 +1,8 @@ +while true; do + text="" + for file in *.sh; do + text="$text | $("$file" | sed 1q)" + done + echo "$text" + sleep 1 +done | lemonbar diff --git a/sed/paragraphJoiner b/sed/paragraphJoiner new file mode 100644 index 0000000..47fdb0c --- /dev/null +++ b/sed/paragraphJoiner @@ -0,0 +1,4 @@ +/^..*$/{ + N + s/\n/ /g +} -- cgit v1.2.1