summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGianni Ceccarelli <gceccarelli@veritone.com>2023-10-16 10:01:01 +0100
committerGianni Ceccarelli <gceccarelli@veritone.com>2023-10-16 10:01:01 +0100
commitafc9a3ed29aac24d9de712d513268bf4661005cd (patch)
tree42a60fe2f67dcd65ba9d07e2462e620e2ada394b
parentstarship: gnu screen (diff)
downloaddotfiles-afc9a3ed29aac24d9de712d513268bf4661005cd.tar.gz
dotfiles-afc9a3ed29aac24d9de712d513268bf4661005cd.tar.bz2
dotfiles-afc9a3ed29aac24d9de712d513268bf4661005cd.zip
starship: fancy clock face
-rw-r--r--.config/starship.toml10
1 files changed, 8 insertions, 2 deletions
diff --git a/.config/starship.toml b/.config/starship.toml
index 0eee1ed..504346c 100644
--- a/.config/starship.toml
+++ b/.config/starship.toml
@@ -10,7 +10,7 @@ $username[@](bg:user fg:user_fg)$hostname${custom.screen}\
[](fg:user bg:dir)\
$directory\
[](bg:time fg:dir)\
-$time\
+${custom.clockface}$time\
[](fg:time)\n\
([](fg:vcs)\
$vcsh\
@@ -177,7 +177,7 @@ format = '[as $symbol]($style)'
disabled = false
time_format = "%F %T"
style = "bg:time fg:time_fg"
-format = '[ 🕙 $time ]($style)'
+format = '[ $time ]($style)'
[username]
format = '[$user]($style)'
@@ -199,3 +199,9 @@ style = "bg:user fg:screen_fg"
when = '[[ "$TERM" == screen ]]'
command = 'echo $WINDOW'
format = '[ 󰹑$output]($style)'
+
+[custom.clockface]
+style = "bg:time fg:time_fg"
+when = true
+command = ''' echo -e '\xf0\x9f\x95\x'"$(eval "$(date +'m=%-M;h=%-I')";printf %x $[143+($m<25?$h:$m<55?$h+12:$h%12+1)])" '''
+format = '[ $output]($style)'