summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkhal-list10
1 files changed, 9 insertions, 1 deletions
diff --git a/khal-list b/khal-list
index f756f72..8308f6c 100755
--- a/khal-list
+++ b/khal-list
@@ -1,6 +1,14 @@
#!/bin/bash
-script -qefc '/usr/bin/khal list today '"$(date +%F -d@$(($(date +%s)+6*24*60*60)))" /dev/null </dev/null \
+date_format='%F %H:%M'
+
+script -qefc '/usr/bin/khal list '"$(
+ date +"${date_format}"
+)"' '"$(
+ date +"${date_format}" -d@$((
+ $(date +%s)+6*24*60*60
+ ))
+)" /dev/null </dev/null \
| /usr/src/skripte/ansi-color-to-conky-color/ansi-color-to-conky-color \
| sed '
s@\xe2\x9f\xb3@@g