dots


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