From 044b22671aae3b63e6c9cd7055996c3a97310502 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Wed, 11 Feb 2026 17:51:58 -0600 Subject: fix(waybar): reduce spacing between months in date tooltip --- dotfiles/hyprland/.local/bin/waybar-date | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dotfiles/hyprland/.local') diff --git a/dotfiles/hyprland/.local/bin/waybar-date b/dotfiles/hyprland/.local/bin/waybar-date index 72a0000..260b239 100755 --- a/dotfiles/hyprland/.local/bin/waybar-date +++ b/dotfiles/hyprland/.local/bin/waybar-date @@ -7,9 +7,9 @@ MONTH=$(date '+%B %Y') # Generate current month (with today highlighted) stacked above next month NEXT_M=$(date -d 'next month' '+%-m') NEXT_Y=$(date -d 'next month' '+%Y') -CUR=$(cal | sed "s/\b${TODAY}\b/${TODAY}<\/u><\/b><\/span>/") -NEXT=$(cal "$NEXT_M" "$NEXT_Y") -HIGHLIGHTED=$(printf '%s\n%s' "$CUR" "$NEXT") +CUR=$(cal | sed "s/\b${TODAY}\b/${TODAY}<\/u><\/b><\/span>/" | sed '/^[[:space:]]*$/d') +NEXT=$(cal "$NEXT_M" "$NEXT_Y" | sed '/^[[:space:]]*$/d') +HIGHLIGHTED=$(printf '%s\n\n%s' "$CUR" "$NEXT") TOOLTIP="${HIGHLIGHTED}" -- cgit v1.2.3