diff options
| author | Craig Jennings <c@cjennings.net> | 2026-02-11 17:51:58 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-02-11 17:51:58 -0600 |
| commit | e6b956fbab19ec4aa9f50a8f298105cd64510052 (patch) | |
| tree | 762d603ba8ddf26109f24c4fc60e64d120d9bf9c /dotfiles | |
| parent | f3d4e26aa16d29bea2cca97f6b50f304642ca6ba (diff) | |
| download | archsetup-e6b956fbab19ec4aa9f50a8f298105cd64510052.tar.gz archsetup-e6b956fbab19ec4aa9f50a8f298105cd64510052.zip | |
fix(waybar): reduce spacing between months in date tooltip
Diffstat (limited to 'dotfiles')
| -rwxr-xr-x | dotfiles/hyprland/.local/bin/waybar-date | 6 |
1 files changed, 3 insertions, 3 deletions
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/<span color='#daa520'><b><u>${TODAY}<\/u><\/b><\/span>/") -NEXT=$(cal "$NEXT_M" "$NEXT_Y") -HIGHLIGHTED=$(printf '%s\n%s' "$CUR" "$NEXT") +CUR=$(cal | sed "s/\b${TODAY}\b/<span color='#daa520'><b><u>${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="<tt>${HIGHLIGHTED}</tt>" |
