diff options
| author | venomade <venomade@venomade.com> | 2026-02-11 11:42:58 +0000 |
|---|---|---|
| committer | venomade <venomade@venomade.com> | 2026-02-11 11:42:58 +0000 |
| commit | 0bd150185551b6d8835d022c15a5f6e832d51113 (patch) | |
| tree | 10bf3f3443df49a44eb47b328b73b7e76b0a4924 /.config/luastatus/time-date.lua | |
| parent | 8d688d1107c46b6dfdcaf02fa5c9c4c8a4640e65 (diff) | |
Asahi
Soft reset of dotfiles specific to Asahi, Sway and Neovim.
Diffstat (limited to '.config/luastatus/time-date.lua')
| -rw-r--r-- | .config/luastatus/time-date.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.config/luastatus/time-date.lua b/.config/luastatus/time-date.lua new file mode 100644 index 0000000..8d5bfe7 --- /dev/null +++ b/.config/luastatus/time-date.lua @@ -0,0 +1,13 @@ +local months = {'Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Sep', 'Out', 'Nov', 'Dez'} +local days = {'Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', ''} + +widget = { + plugin = 'timer', + cb = function() + local d = os.date('*t') + return { + {full_text = string.format('%s %d %s', days[d.wday] , d.day, months[d.month])}, + {full_text = string.format('%02d:%02d ', d.hour, d.min)}, + } + end, +} |
