From 94d68ccaea8adf22fa6a21ccddfa773741ec45ac Mon Sep 17 00:00:00 2001 From: streetturtle Date: Mon, 18 May 2020 22:19:57 -0400 Subject: [PATCH] Fix #138 --- todo-widget/checkbox-checked-symbolic.svg | 148 ++++++++++++++++++++ todo-widget/list-add-symbolic.svg | 157 ++++++++++++++++++++++ todo-widget/todo.lua | 10 +- todo-widget/window-close-symbolic.svg | 95 +++++++++++++ 4 files changed, 405 insertions(+), 5 deletions(-) create mode 100644 todo-widget/checkbox-checked-symbolic.svg create mode 100644 todo-widget/list-add-symbolic.svg create mode 100644 todo-widget/window-close-symbolic.svg diff --git a/todo-widget/checkbox-checked-symbolic.svg b/todo-widget/checkbox-checked-symbolic.svg new file mode 100644 index 0000000..afeca62 --- /dev/null +++ b/todo-widget/checkbox-checked-symbolic.svg @@ -0,0 +1,148 @@ + + + + + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + + diff --git a/todo-widget/list-add-symbolic.svg b/todo-widget/list-add-symbolic.svg new file mode 100644 index 0000000..9cc2d3a --- /dev/null +++ b/todo-widget/list-add-symbolic.svg @@ -0,0 +1,157 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + diff --git a/todo-widget/todo.lua b/todo-widget/todo.lua index f8e2977..befe51e 100644 --- a/todo-widget/todo.lua +++ b/todo-widget/todo.lua @@ -17,12 +17,12 @@ local beautiful = require("beautiful") local gfs = require("gears.filesystem") local HOME_DIR = os.getenv("HOME") - +local WIDGET_DIR = HOME_DIR .. '/.config/awesome/awesome-wm-widgets/todo-widget' local STORAGE = HOME_DIR .. '/.cache/awmw/todo-widget/todos.json' + local GET_TODO_ITEMS = 'bash -c "cat ' .. STORAGE .. '"' local rows = { layout = wibox.layout.fixed.vertical } - local todo_widget = {} todo_widget.widget = wibox.widget { @@ -74,7 +74,7 @@ local popup = awful.popup{ local add_button = wibox.widget { { { - image = '/usr/share/icons/Arc/actions/symbolic/list-add-symbolic.svg', + image = WIDGET_DIR .. '/list-add-symbolic.svg', resize = false, widget = wibox.widget.imagebox }, @@ -130,7 +130,7 @@ local function worker(args) local args = args or {} - local icon = args.icon or '/usr/share/icons/Arc/status/symbolic/checkbox-checked-symbolic.svg' + local icon = args.icon or WIDGET_DIR .. '/checkbox-checked-symbolic.svg' todo_widget.widget:set_icon(icon) @@ -185,7 +185,7 @@ local function worker(args) local trash_button = wibox.widget { { - { image = '/usr/share/icons/Arc/actions/symbolic/window-close-symbolic.svg', + { image = WIDGET_DIR .. '/window-close-symbolic.svg', resize = false, widget = wibox.widget.imagebox }, diff --git a/todo-widget/window-close-symbolic.svg b/todo-widget/window-close-symbolic.svg new file mode 100644 index 0000000..46ff888 --- /dev/null +++ b/todo-widget/window-close-symbolic.svg @@ -0,0 +1,95 @@ + + + + + + + + Gnome Symbolic Icon Theme + + + + image/svg+xml + + Gnome Symbolic Icon Theme + + + + + + + + + + + + + + + + + +