xxwhirlpool
·
2025-12-09
clock
1#!/usr/bin/env bash
2
3livetime() {
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
9while true; do
10 lines=$(tput lines)
11 output="$(livetime | head -n $lines)"
12 clear
13 echo -e "$output"
14 sleep 1
15done