diff options
| author | Alec Goncharow <Alec.Goncharow@gmail.com> | 2018-08-06 23:17:05 -0400 |
|---|---|---|
| committer | Alec Goncharow <Alec.Goncharow@gmail.com> | 2018-08-06 23:17:05 -0400 |
| commit | 1f03f2b3ed8e9151a06bcb5635a061fb6098ea50 (patch) | |
| tree | 950931c33352c55a41b49e8a80c4f76184efa56c /.config/i3blocks/scripts/myCalendar | |
| parent | cdbc5a4a00526b9963b82efb0651f8a5c5515bb9 (diff) | |
Added some scripts I imported/wrote for my i3blocks
Diffstat (limited to '.config/i3blocks/scripts/myCalendar')
| -rwxr-xr-x | .config/i3blocks/scripts/myCalendar | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.config/i3blocks/scripts/myCalendar b/.config/i3blocks/scripts/myCalendar new file mode 100755 index 0000000..686fd00 --- /dev/null +++ b/.config/i3blocks/scripts/myCalendar @@ -0,0 +1,15 @@ +#!/bin/bash + +datefmt='+%a %Y-%m-%d %H:%M:%S' + +while getopts "f:" opt; do + case $opt in + f) datefmt="$OPTARG" ;; + esac +done + +case "$BLOCK_BUTTON" in 1|2|3) + exec termite -e "bash -c 'cal -Y'" --hold & disown +esac + +date "$datefmt" |
