aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/hyprland/.local/bin/waybar-date
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/hyprland/.local/bin/waybar-date')
-rwxr-xr-xdotfiles/hyprland/.local/bin/waybar-date19
1 files changed, 0 insertions, 19 deletions
diff --git a/dotfiles/hyprland/.local/bin/waybar-date b/dotfiles/hyprland/.local/bin/waybar-date
deleted file mode 100755
index 260b239..0000000
--- a/dotfiles/hyprland/.local/bin/waybar-date
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-# Waybar date module with two-month calendar tooltip
-DATE=$(date '+%a, %b %d %Y')
-TODAY=$(date '+%-d')
-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>/" | sed '/^[[:space:]]*$/d')
-NEXT=$(cal "$NEXT_M" "$NEXT_Y" | sed '/^[[:space:]]*$/d')
-HIGHLIGHTED=$(printf '%s\n\n%s' "$CUR" "$NEXT")
-
-TOOLTIP="<tt>${HIGHLIGHTED}</tt>"
-
-# Escape for JSON
-TOOLTIP=$(echo "$TOOLTIP" | sed ':a;N;$!ba;s/\n/\\n/g')
-
-printf '{"text": "%s", "tooltip": "%s"}\n' "$DATE" "$TOOLTIP"