diff options
| author | 0scar <qgt268@alumni.ku.dk> | 2022-10-17 17:31:04 +0000 |
|---|---|---|
| committer | 0scar <qgt268@alumni.ku.dk> | 2022-10-17 17:31:04 +0000 |
| commit | 21b54b98ae46a4315e88c4c02d72e6471504fbea (patch) | |
| tree | 830cd8ad415e95e3017f9215955665c7535f2aad /.local/bin/statusbar/timeinfo | |
| parent | 53d73b28d6caa64c80fd59f4bb0cd7087cc2333c (diff) | |
Update statusbar scripts
Diffstat (limited to '.local/bin/statusbar/timeinfo')
| -rwxr-xr-x | .local/bin/statusbar/timeinfo | 15 |
1 files changed, 12 insertions, 3 deletions
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 '<b><u>' | xxd -p - +TODAY_BEGIN='3c623e3c753e' +# echo -en '</b></u>' | 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" \ |
