update from master

This commit is contained in:
Pavel Makhov 2020-04-30 20:58:02 -04:00
parent 6c5c5c6b4f
commit fb3a3990e6
4 changed files with 13 additions and 8 deletions

View File

@ -58,7 +58,7 @@ First you need to get the current brightness level. There are two options:
Then clone this repo under **~/.config/awesome/**: Then clone this repo under **~/.config/awesome/**:
```bash ```bash
git clone https://github.com/streetturtle/awesome-wm-widgets.git ~/.config/awesome/ git clone https://github.com/streetturtle/awesome-wm-widgets.git ~/.config/awesome/awesome-wm-widgets
``` ```
Require widget at the beginning of **rc.lua**: Require widget at the beginning of **rc.lua**:

View File

@ -60,7 +60,7 @@ First you need to get the current brightness level. There are two options:
Then clone this repo under **~/.config/awesome/**: Then clone this repo under **~/.config/awesome/**:
```bash ```bash
git clone https://github.com/streetturtle/awesome-wm-widgets.git ~/.config/awesome/ git clone https://github.com/streetturtle/awesome-wm-widgets.git ~/.config/awesome/awesome-wm-widgets
``` ```
Require widget at the beginning of **rc.lua**: Require widget at the beginning of **rc.lua**:

View File

@ -1,17 +1,17 @@
--- ---
layout: page layout: page
--- ---
# ToDo Widget (in progress) # ToDo Widget
This widget displays a list of to do items and allows to mark item as done/undone, delete an item and create a new ones: This widget displays a list of to do items and allows to mark item as done/undone, delete an item and create new ones:
![screenshot](../awesome-wm-widgets/assets/img/screenshots/todo-widget/todo.gif) ![screenshot](../awesome-wm-widgets/assets/img/screenshots/todo-widget/todo.gif)
# Installation # Installation
Put a **json.lua** from this repository: https://github.com/rxi/json.lua under ~/.config/awesone folder. And don't forget to start a repo :) 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 :)
Then clone this repo under **~/.config/awesome/** and add the widget in **rc.lua**: Then clone this repository under **~/.config/awesome/** and add the widget in **rc.lua**:
```lua ```lua
local todo_widget = require("awesome-wm-widgets.todo-widget.todo") local todo_widget = require("awesome-wm-widgets.todo-widget.todo")
@ -24,3 +24,8 @@ s.mytasklist, -- Middle widget
todo_widget(), todo_widget(),
... ...
``` ```
Also note that widget uses [Arc Icons](../awesome-wm-widgets/assets/img/screenshots/todo-widgetttps://github.com/horst3180/arc-icon-theme) and expects them to be installed under `/usr/share/icons/Arc/`.
# Theming
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 a widget parameters.

View File

@ -49,13 +49,13 @@ The config above results in the following widget:
1. Clone this repo under **~/.config/awesome/** 1. Clone this repo under **~/.config/awesome/**
```bash ```bash
git clone https://github.com/streetturtle/awesome-wm-widgets.git ~/.config/awesome/ git clone https://github.com/streetturtle/awesome-wm-widgets.git ~/.config/awesome/awesome-wm-widgets
``` ```
1. Require volumearc widget at the beginning of **rc.lua**: 1. Require volumearc widget at the beginning of **rc.lua**:
```lua ```lua
require("volumearc") local volumearc_widget = require("awesome-wm-widgets.volumearc-widget.volumearc")
... ...
s.mytasklist, -- Middle widget s.mytasklist, -- Middle widget
{ -- Right widgets { -- Right widgets