From b91c3d65643d7d0cb0c16262a174a888e8234391 Mon Sep 17 00:00:00 2001 From: Joseph Groocock Date: Sun, 1 May 2016 14:10:06 +0100 Subject: [PATCH] Open a year calendar when clicking on the clock --- .config/i3/blocks/clock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/i3/blocks/clock b/.config/i3/blocks/clock index e9b3192..cc33a64 100755 --- a/.config/i3/blocks/clock +++ b/.config/i3/blocks/clock @@ -1,5 +1,5 @@ case $BLOCK_BUTTON in 1) printf " "$(date '+%d/%m/%y') ; exit ;; + 2|3) i3-sensible-terminal -e "$SHELL -c 'cal -y $(date +'%Y')';$SHELL" &;; + *) printf " "$(date '+%H:%M') esac - -printf " "$(date '+%H:%M')