awesome-wm-widgets/_widgets/todo-widget.md

32 lines
1.1 KiB
Markdown
Raw Normal View History

2020-04-03 04:23:07 +02:00
---
layout: page
---
2020-05-01 02:58:02 +02:00
# ToDo Widget
2020-04-03 04:23:07 +02:00
2022-01-24 01:17:02 +01:00
This widget displays a list of todo items and allows marking item as done/undone, delete an item and create new ones:
2020-04-03 04:23:07 +02:00
2022-01-24 01:17:02 +01:00
![screenshot](./todo.gif)
2020-04-03 04:23:07 +02:00
# Installation
2020-05-01 02:58:02 +02:00
Widget persists todo items as a JSON, so in order to simplify JSON serialisation/deserialisation download a **json.lua** from this repository: https://github.com/rxi/json.lua under `~/.config/awesone` folder. And don't forget to star a repo :)
2020-04-13 21:43:50 +02:00
2020-05-01 02:58:02 +02:00
Then clone this repository under **~/.config/awesome/** and add the widget in **rc.lua**:
2020-04-03 04:23:07 +02:00
```lua
local todo_widget = require("awesome-wm-widgets.todo-widget.todo")
...
s.mytasklist, -- Middle widget
{ -- Right widgets
layout = wibox.layout.fixed.horizontal,
...
-- default
todo_widget(),
...
2020-04-13 21:43:50 +02:00
```
2020-11-15 03:26:34 +01:00
Also note that widget uses [Arc Icons](https://github.com/horst3180/arc-icon-theme) and expects them to be installed under `/usr/share/icons/Arc/`.
2020-05-01 02:58:02 +02:00
# Theming
2022-01-24 01:17:02 +01:00
Widget uses your theme's colors. In case you want to have different colors, without changing your theme, please create an issue for it. I'll extract them as widget parameters.