From 21b54b98ae46a4315e88c4c02d72e6471504fbea Mon Sep 17 00:00:00 2001 From: 0scar Date: Mon, 17 Oct 2022 19:31:04 +0200 Subject: Update statusbar scripts --- .local/bin/statusbar/timeinfo | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to '.local/bin/statusbar/timeinfo') diff --git a/.local/bin/statusbar/timeinfo b/.local/bin/statusbar/timeinfo index fcfc1bd..884e165 100755 --- a/.local/bin/statusbar/timeinfo +++ b/.local/bin/statusbar/timeinfo @@ -2,10 +2,19 @@ ARG=${1:-$BLOCK_BUTTON} +# echo -en '' | xxd -p - +TODAY_BEGIN='3c623e3c753e' +# echo -en '' | xxd -p - +TODAY_END='3c2f753e3c2f623e' + case $ARG in - 1) notify-send --urgency=low \ - "Calendar" \ - "$(cal -w -m)" + 1) notify-send --urgency=low \ + "Calendar" \ + "$(cal -w -m --color=always \ + | xxd -p - \ + | tr -d '\n' \ + | sed -Ee "s/1b5b376d/${TODAY_BEGIN}/g;s/1b5b32376d/${TODAY_END}/g" \ + | xxd -p -r -)" ;; 3) notify-send --urgency=low \ "Weather" \ -- cgit v1.3