summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoran S. Diao <0@hairydiode.xyz>2019-11-24 21:34:26 -0800
committerHaoran S. Diao <0@hairydiode.xyz>2019-11-24 21:34:26 -0800
commit846991db0a55519854013f7b32d0e8294531ddfd (patch)
tree7d53513844f8ebe9b518384b444aaea28eb137f8
parent11a4bf7870191f44dc89faabba7197005a017d0f (diff)
Added printout formattingHEADmaster
-rwxr-xr-xcalwrapper4
1 files changed, 3 insertions, 1 deletions
diff --git a/calwrapper b/calwrapper
index da0a46c..c2b3350 100755
--- a/calwrapper
+++ b/calwrapper
@@ -7,6 +7,8 @@ nexttime=$(date +%s)
interval=60
#time before an starts before a notification pops up
remind=900
+#calendar printout format
+cformat="{start-time:.<8}→{end-time:.<10}{title:.<25}{location:.<30}"
#gets username and password
read -p "username:" caluser
export caluser
@@ -35,7 +37,7 @@ while [ "$loop" == true ]; do
nexttime=$(date +%s)
fi
if [ "$input" == "a" ]; then
- khal calendar
+ khal calendar --format="$cformat"
fi
if [ "$input" == "s" ]; then
nexttime=$(date +%s)