aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xi3blocks/lemon8
-rw-r--r--sed/paragraphJoiner4
2 files changed, 12 insertions, 0 deletions
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
+}