2020-11-26 16:51:12 +01:00
|
|
|
# word clock widget
|
2020-11-25 15:33:35 +01:00
|
|
|
|
|
|
|
Widget displaying current time using words:
|
|
|
|
|
|
|
|
![screenshot](./screenshots/halfpastthree.png)
|
|
|
|
|
|
|
|
## Customization
|
|
|
|
|
|
|
|
It is possible to customize widget by providing a table with all or some of the following config parameters:
|
|
|
|
|
|
|
|
| Name | Default | Description |
|
|
|
|
|---|---|---|
|
|
|
|
| main_color | `beautiful.fg_normal` | Color of the word on odd position |
|
|
|
|
| accent_color | `beautiful.fg_urgent` | Color of the word on even position |
|
|
|
|
| font | `beautiful.font` | Font (`Play 20`) |
|
|
|
|
| is_human_readable | `false` | _nine fifteen_ or _fifteen past nine_ |
|
|
|
|
| military_time | `false` | 12 or 24 time format |
|
|
|
|
| with_spaces | `false` | Separate words with spaces |
|
|
|
|
|
2020-11-25 15:36:12 +01:00
|
|
|
## Installation
|
|
|
|
|
|
|
|
Clone repo, include widget and use it in **rc.lua**:
|
|
|
|
|
|
|
|
```lua
|
2020-11-26 16:51:12 +01:00
|
|
|
local word_clock = require("awesome-wm-widgets.word-clock-widget.word-clock")
|
2020-11-25 15:36:12 +01:00
|
|
|
...
|
|
|
|
s.mytasklist, -- Middle widget
|
|
|
|
{ -- Right widgets
|
|
|
|
layout = wibox.layout.fixed.horizontal,
|
|
|
|
...
|
2020-11-26 16:51:12 +01:00
|
|
|
word_clock(),
|
2020-11-25 15:36:12 +01:00
|
|
|
...
|
|
|
|
```
|
|
|
|
|
2020-11-25 15:33:35 +01:00
|
|
|
# Screenshots
|
|
|
|
|
|
|
|
```lua
|
2020-11-26 16:51:12 +01:00
|
|
|
word_clock{
|
2020-11-25 15:33:35 +01:00
|
|
|
font = 'Carter One 12',
|
|
|
|
accent_color = '#ff79c6',
|
|
|
|
main_color = '#8be9fd',
|
|
|
|
is_human_readable = true,
|
|
|
|
}
|
|
|
|
```
|
|
|
|
![](./screenshots/halfpastthree_color.png)
|
|
|
|
|
|
|
|
|
|
|
|
```lua
|
2020-11-26 16:51:12 +01:00
|
|
|
word_clock{
|
2020-11-25 15:33:35 +01:00
|
|
|
font = 'Carter One 12',
|
|
|
|
is_human_readable = true,
|
|
|
|
}
|
|
|
|
```
|
|
|
|
![](./screenshots/twentythreepastnine.png)
|
|
|
|
|
|
|
|
|
|
|
|
```lua
|
2020-11-26 16:51:12 +01:00
|
|
|
word_clock{
|
2020-11-25 15:33:35 +01:00
|
|
|
font = 'Carter One 12',
|
|
|
|
is_human_readable = true,
|
|
|
|
military_time = true
|
|
|
|
}
|
|
|
|
```
|
|
|
|
![](./screenshots/twentythreepasttwentyone.png)
|
|
|
|
|
|
|
|
|
2020-11-26 19:28:49 +01:00
|
|
|
```lua
|
|
|
|
word_clock{
|
|
|
|
font = 'Carter One 12',
|
|
|
|
accent_color = '#f00',
|
|
|
|
main_color = '#0f0',
|
|
|
|
}
|
|
|
|
```
|
|
|
|
![](./screenshots/onetwentyseven.png)
|