diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2019-12-04 17:46:36 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2019-12-04 17:46:36 +0100 |
commit | 6b62c5743d95c28d0a69159efea533a200b3d1c9 (patch) | |
tree | eb4b98685ce9f3561d6a349dcfa740ba5a92ec9a /i3blocks | |
parent | 4e54c2eba4d4858c84acefdfbd529d0cc0e2ed98 (diff) | |
download | scripts-6b62c5743d95c28d0a69159efea533a200b3d1c9.tar.gz scripts-6b62c5743d95c28d0a69159efea533a200b3d1c9.zip |
Created i3blocks calcurse script.
Diffstat (limited to 'i3blocks')
-rwxr-xr-x | i3blocks/i3calcurse.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/i3blocks/i3calcurse.sh b/i3blocks/i3calcurse.sh new file mode 100755 index 0000000..b454460 --- /dev/null +++ b/i3blocks/i3calcurse.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +# i3calcurse.sh +# +# Shows number of appointments today and tomorrow + +days="2" # Days to take into account starting from and counting today + +case $BLOCK_BUTTON in + 1) dunstify -r "$(dunstifyIDs.sh "calcurse")" "Calendar" "$(calcurse -d"$days" | + sed 's/^[[:blank:]]*//g')";; +esac + +calcurse -d"$days" --format-apt " * %m\n" | grep -c '^ \*' |