aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2022-10-27 13:01:41 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2022-10-27 13:01:41 +0200
commitf6314400471c60cf0a77591346d0614a3b8f6242 (patch)
tree8cbe114e5ac062fe143f816c28e7900b1149085b
parent906f684632f863c9e81c9a3b7af224c7637d49d3 (diff)
downloadscripts-f6314400471c60cf0a77591346d0614a3b8f6242.tar.gz
scripts-f6314400471c60cf0a77591346d0614a3b8f6242.zip
Template for lemonbar and a sed script.
-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
+}