Commit 37bb527

xxwhirlpool  ·  2025-12-09 23:08:26 -0500 EST
parent 0b5dc8a
my epic clock
1 files changed,  +15, -0
+15, -0
......@@ -0,0 +1,15 @@
1+#!/usr/bin/env bash
2+
3+livetime() {
4+ TOP=$(echo -e "$(date '+%A, %B %Y' | gum style --foreground '#a6d189' --border-foreground '#99d1db' --border double --width 50 --padding '0 1' --align center)")
5+ BOTTOM=$(echo -e "$(date '+%Y-%m-%d %I:%M%p %Ss' | gum style --foreground '#f4b8e4' --width 50 --padding '0 1' --align center)")
6+ gum join --align center --vertical "$TOP" "$BOTTOM"
7+}
8+
9+while true; do
10+ lines=$(tput lines)
11+ output="$(livetime | head -n $lines)"
12+ clear
13+ echo -e "$output"
14+ sleep 1
15+done