Closed vKnmnn closed 7 years ago
so here's what i have now
#! /bin/bash
date=$(date '+%A, %d. %B')
#set TERM so cal --color-always will work as intended
export TERM=xterm
# translate ANSI escapes to pango markup
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:southeast; location: northwest;}' \
-eh 1 \
-width -22 \
-no-custom \
-p "$date"
hey man, i reused your rofi-calendar and wanted to let you know that it is now possible to highlight characters in rofi with pango, so you could actually highlight the current day
thanks for sharing your script, man!