Add day of week

This commit is contained in:
akp 2023-12-24 02:12:41 +00:00
parent d0d79694ea
commit a4a91801ee
No known key found for this signature in database
GPG key ID: CF8D58F3DEB20755

View file

@ -26,7 +26,7 @@ func (g *DateTime) Block(*i3bar.ColorSet) (*i3bar.Block, error) {
return &i3bar.Block{
Name: g.name,
FullText: cTime.Format("2006-01-02 15:04:05"),
FullText: cTime.Weekday().String()[:2] + cTime.Format(" 2006-01-02 15:04:05"),
ShortText: cTime.Format("15:04:05"),
}, nil
}