From ddb52a8e50bf77ffc6ec9f0a6eb2283d5f9cf308 Mon Sep 17 00:00:00 2001
From: streetturtle
Date: Mon, 14 Jun 2021 15:46:05 -0400
Subject: Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 045abea..2e66116 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@
-Set of super simple widgets compatible with Awesome Window Manager v.4+.
+Set of widgets compatible with Awesome Window Manager v.4+.
## Screenshots
--
cgit v1.2.3
From 2a02853947adc89c4c5a7086f60d7dce247076b0 Mon Sep 17 00:00:00 2001
From: streetturtle
Date: Mon, 14 Jun 2021 22:20:57 -0400
Subject: [weather] add version requirement
---
weather-widget/README.md | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/weather-widget/README.md b/weather-widget/README.md
index 91593c8..b21fc1c 100644
--- a/weather-widget/README.md
+++ b/weather-widget/README.md
@@ -8,7 +8,7 @@
-The widget showing current, hourly and daily weather forecast.
+The widget showing current, hourly and daily weather forecast:
@@ -19,6 +19,8 @@ The widget consists of three sections:
- hourly forecast for the next 24 hours
- daily forecast for the next five days
+Note: this widget is compatible with Awesome v4.3+, as it is using [awful.popup](https://awesomewm.org/doc/api/classes/awful.popup.html)
+
## Customization
It is possible to customize widget by providing a table with all or some of the following config parameters:
--
cgit v1.2.3
From 625f6690e7ea6b25d9910cf084abf9bdcd09c925 Mon Sep 17 00:00:00 2001
From: streetturtle
Date: Mon, 14 Jun 2021 22:21:58 -0400
Subject: [cpu] add version requirement
---
cpu-widget/README.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cpu-widget/README.md b/cpu-widget/README.md
index b323f9b..8738ebf 100644
--- a/cpu-widget/README.md
+++ b/cpu-widget/README.md
@@ -6,6 +6,8 @@ This widget shows the average CPU load among all cores of the machine:
![screenshot](./cpu.gif)
+Note: this widget is compatible with Awesome v4.3+, as it is using [awful.popup](https://awesomewm.org/doc/api/classes/awful.popup.html)
+
## How it works
To measure the load I took Paul Colby's bash [script](http://colby.id.au/calculating-cpu-usage-from-proc-stat/) and rewrote it in Lua, which was quite simple.
--
cgit v1.2.3
From f26e848eb154db4682c8f22be9eb223f6ba416b4 Mon Sep 17 00:00:00 2001
From: streetturtle
Date: Mon, 14 Jun 2021 22:25:22 -0400
Subject: [ram] add version requirement
---
ram-widget/README.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ram-widget/README.md b/ram-widget/README.md
index dcbf9ab..6e80976 100644
--- a/ram-widget/README.md
+++ b/ram-widget/README.md
@@ -4,6 +4,8 @@ This widget shows the RAM usage. When clicked another widget appears with more d
![screenshot](./out.gif)
+Note: this widget is compatible with Awesome v4.3+, as it is using [awful.popup](https://awesomewm.org/doc/api/classes/awful.popup.html)
+
## Customization
It is possible to customize widget by providing a table with all or some of the following config parameters:
--
cgit v1.2.3
From 58667d2b58df0c3d2cd404c3cc4abed530b99272 Mon Sep 17 00:00:00 2001
From: streetturtle
Date: Fri, 18 Jun 2021 21:57:41 -0400
Subject: Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 2e66116..9654c5d 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@
-Set of widgets compatible with Awesome Window Manager v.4+.
+Set of widgets compatible with Awesome Window Manager v.4.3+.
## Screenshots
--
cgit v1.2.3
From ce9d9cd6985e7538b7df8834d9e5ce127ebb3b58 Mon Sep 17 00:00:00 2001
From: streetturtle
Date: Fri, 18 Jun 2021 21:58:08 -0400
Subject: Update README.md
---
cpu-widget/README.md | 2 --
1 file changed, 2 deletions(-)
diff --git a/cpu-widget/README.md b/cpu-widget/README.md
index 8738ebf..b323f9b 100644
--- a/cpu-widget/README.md
+++ b/cpu-widget/README.md
@@ -6,8 +6,6 @@ This widget shows the average CPU load among all cores of the machine:
![screenshot](./cpu.gif)
-Note: this widget is compatible with Awesome v4.3+, as it is using [awful.popup](https://awesomewm.org/doc/api/classes/awful.popup.html)
-
## How it works
To measure the load I took Paul Colby's bash [script](http://colby.id.au/calculating-cpu-usage-from-proc-stat/) and rewrote it in Lua, which was quite simple.
--
cgit v1.2.3
From 1b7909485eb5751d88402d8216fdb9ccee74884b Mon Sep 17 00:00:00 2001
From: streetturtle
Date: Fri, 18 Jun 2021 21:58:30 -0400
Subject: Update README.md
---
weather-widget/README.md | 2 --
1 file changed, 2 deletions(-)
diff --git a/weather-widget/README.md b/weather-widget/README.md
index b21fc1c..3bf6228 100644
--- a/weather-widget/README.md
+++ b/weather-widget/README.md
@@ -19,8 +19,6 @@ The widget consists of three sections:
- hourly forecast for the next 24 hours
- daily forecast for the next five days
-Note: this widget is compatible with Awesome v4.3+, as it is using [awful.popup](https://awesomewm.org/doc/api/classes/awful.popup.html)
-
## Customization
It is possible to customize widget by providing a table with all or some of the following config parameters:
--
cgit v1.2.3
From 7bb5c8cdfa8bd8cbf888e2be3cae542cf3d62b51 Mon Sep 17 00:00:00 2001
From: LordDot <34166725+LordDot@users.noreply.github.com>
Date: Sat, 26 Jun 2021 14:32:20 +0200
Subject: Fix #279 Calendar uses year for today
---
calendar-widget/calendar.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/calendar-widget/calendar.lua b/calendar-widget/calendar.lua
index b39b563..81c28a9 100644
--- a/calendar-widget/calendar.lua
+++ b/calendar-widget/calendar.lua
@@ -142,7 +142,7 @@ local function worker(user_args)
-- highlight only today's day
if flag == 'focus' then
local today = os.date('*t')
- if today.month ~= date.month then
+ if not (today.month == date.month and today.year == date.year) then
flag = 'normal'
end
end
--
cgit v1.2.3
From deeae5945f6c16e49eb871ee06c909f546edef75 Mon Sep 17 00:00:00 2001
From: cobacdavid
Date: Tue, 20 Jul 2021 14:07:33 +0200
Subject: [github-contributions] requests api address change
---
github-contributions-widget/github-contributions-widget.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/github-contributions-widget/github-contributions-widget.lua b/github-contributions-widget/github-contributions-widget.lua
index aecc966..1d135a0 100644
--- a/github-contributions-widget/github-contributions-widget.lua
+++ b/github-contributions-widget/github-contributions-widget.lua
@@ -13,7 +13,7 @@ local naughty = require("naughty")
local wibox = require("wibox")
local widget_themes = require("awesome-wm-widgets.github-contributions-widget.themes")
-local GET_CONTRIBUTIONS_CMD = [[bash -c "curl -s https://github-contributions.now.sh/api/v1/%s]]
+local GET_CONTRIBUTIONS_CMD = [[bash -c "curl -s https://github-contributions.vercel.app/api/v1/%s]]
.. [[ | jq -r '[.contributions[] ]]
.. [[ | select ( .date | strptime(\"%%Y-%%m-%%d\") | mktime < now)][:%s]| .[].intensity'"]]
--
cgit v1.2.3
From 1437626e907d9128d5b96f3b7a2785f15ccadb35 Mon Sep 17 00:00:00 2001
From: cobacdavid
Date: Tue, 20 Jul 2021 14:47:40 +0200
Subject: [github-contributions] bad day_idx init.
---
github-contributions-widget/github-contributions-widget.lua | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/github-contributions-widget/github-contributions-widget.lua b/github-contributions-widget/github-contributions-widget.lua
index aecc966..028b547 100644
--- a/github-contributions-widget/github-contributions-widget.lua
+++ b/github-contributions-widget/github-contributions-widget.lua
@@ -13,7 +13,7 @@ local naughty = require("naughty")
local wibox = require("wibox")
local widget_themes = require("awesome-wm-widgets.github-contributions-widget.themes")
-local GET_CONTRIBUTIONS_CMD = [[bash -c "curl -s https://github-contributions.now.sh/api/v1/%s]]
+local GET_CONTRIBUTIONS_CMD = [[bash -c "curl -s https://github-contributions.vercel.app/api/v1/%s]]
.. [[ | jq -r '[.contributions[] ]]
.. [[ | select ( .date | strptime(\"%%Y-%%m-%%d\") | mktime < now)][:%s]| .[].intensity'"]]
@@ -78,8 +78,8 @@ local function worker(user_args)
local col = {layout = wibox.layout.fixed.vertical}
local row = {layout = wibox.layout.fixed.horizontal}
- local day_idx = 5 - os.date('%w')
- for _ = 0, day_idx do
+ local day_idx = 6 - os.date('%w')
+ for _ = 1, day_idx do
table.insert(col, get_square(color_of_empty_cells))
end
--
cgit v1.2.3
From f3d1b82fdfa20a0e6a667ffc757fac7e291e5981 Mon Sep 17 00:00:00 2001
From: cobacdavid
Date: Tue, 20 Jul 2021 16:34:18 +0200
Subject: [github-contributions] color management
---
.../github-contributions-widget.lua | 22 +++++++---------------
1 file changed, 7 insertions(+), 15 deletions(-)
diff --git a/github-contributions-widget/github-contributions-widget.lua b/github-contributions-widget/github-contributions-widget.lua
index 028b547..113d474 100644
--- a/github-contributions-widget/github-contributions-widget.lua
+++ b/github-contributions-widget/github-contributions-widget.lua
@@ -11,6 +11,7 @@
local awful = require("awful")
local naughty = require("naughty")
local wibox = require("wibox")
+local gears = require("gears")
local widget_themes = require("awesome-wm-widgets.github-contributions-widget.themes")
local GET_CONTRIBUTIONS_CMD = [[bash -c "curl -s https://github-contributions.vercel.app/api/v1/%s]]
@@ -35,7 +36,6 @@ end
local function worker(user_args)
local args = user_args or {}
-
local username = args.username or 'streetturtle'
local days = args.days or 365
local color_of_empty_cells = args.color_of_empty_cells
@@ -50,25 +50,17 @@ local function worker(user_args)
if with_border == nil then with_border = true end
- local function hex2rgb(hex)
- if color_of_empty_cells ~= nil and hex == widget_themes[theme][0] then
- hex = color_of_empty_cells
- end
- hex = tostring(hex):gsub('#','')
- return tonumber('0x' .. hex:sub(1, 2)),
- tonumber('0x' .. hex:sub(3, 4)),
- tonumber('0x' .. hex:sub(5, 6))
- end
-
local function get_square(color)
- local r, g, b = hex2rgb(color)
+ if color_of_empty_cells ~= nil and color == widget_themes[theme][0] then
+ color = color_of_empty_cells
+ end
return wibox.widget{
fit = function()
return 3, 3
end,
draw = function(_, _, cr, _, _)
- cr:set_source_rgb(r/255, g/255, b/255)
+ cr:set_source(gears.color(color))
cr:rectangle(0, 0, with_border and 2 or 3, with_border and 2 or 3)
cr:fill()
end,
@@ -78,8 +70,8 @@ local function worker(user_args)
local col = {layout = wibox.layout.fixed.vertical}
local row = {layout = wibox.layout.fixed.horizontal}
- local day_idx = 6 - os.date('%w')
- for _ = 1, day_idx do
+ local day_idx = 5 - os.date('%w')
+ for _ = 0, day_idx do
table.insert(col, get_square(color_of_empty_cells))
end
--
cgit v1.2.3