diff options
| author | Alec Goncharow <alec.goncharow@gmail.com> | 2018-10-07 13:54:13 -0400 |
|---|---|---|
| committer | Alec Goncharow <alec.goncharow@gmail.com> | 2018-10-07 13:54:13 -0400 |
| commit | 2825fe0b91dc8f8abb318c83b85f893c35852e69 (patch) | |
| tree | 43cf9cb085692efb7038a7f728263276cae6e0d4 /.config/i3blocks/scripts/rofi-calendar | |
| parent | dc3939e1d6ade0b378837e4f6b427273d4a5c227 (diff) | |
saving desktop config for reinstall
Diffstat (limited to '.config/i3blocks/scripts/rofi-calendar')
| -rwxr-xr-x | .config/i3blocks/scripts/rofi-calendar | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/.config/i3blocks/scripts/rofi-calendar b/.config/i3blocks/scripts/rofi-calendar new file mode 100755 index 0000000..e1f12d0 --- /dev/null +++ b/.config/i3blocks/scripts/rofi-calendar @@ -0,0 +1,28 @@ +#! /bin/sh + +blockdate=$(date '+%a. %d. %b. %Y') + +case "$BLOCK_BUTTON" in + 1|2|3) date=$(date '+%A, %d. %B') +export TERM=xterm +cal --color=always \ + | sed 's/\x1b\[[7;]*m/\<b\>\<u\>/g' \ + | sed 's/\x1b\[[27;]*m/\<\/u\>\<\/b\>/g' \ + | tail -n +2 \ + | rofi \ + -dmenu \ + -markup-rows \ + -no-fullscreen \ + -font "Monospace 6" \ + -hide-scrollbar \ + -bw 2 \ + -m -3 \ + -theme-str '#window {anchor:northeast; location: southeast;}' \ + -eh 1 \ + -width -22 \ + -no-custom \ + -no-config \ + -p "$date" > /dev/null + esac +echo $blockdate +date '+%d.%m.%Y' |
