summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--battery-widget/battery.lua2
-rw-r--r--batteryarc-widget/batteryarc.lua2
-rw-r--r--brightness-widget/README.md2
-rw-r--r--brightness-widget/brightness.lua3
-rw-r--r--calendar-widget/calendar_start_sunday.pngbin0 -> 8410 bytes
5 files changed, 5 insertions, 4 deletions
diff --git a/battery-widget/battery.lua b/battery-widget/battery.lua
index f7f76b5..452d7ef 100644
--- a/battery-widget/battery.lua
+++ b/battery-widget/battery.lua
@@ -125,7 +125,7 @@ local function worker(user_args)
local battery_info = {}
local capacities = {}
for s in stdout:gmatch("[^\r\n]+") do
- local status, charge_str, _ = string.match(s, '.+: (%a+), (%d?%d?%d)%%,?(.*)')
+ local status, charge_str, _ = string.match(s, '.+: ([%a%s]+), (%d?%d?%d)%%,?(.*)')
if status ~= nil then
table.insert(battery_info, {status = status, charge = tonumber(charge_str)})
else
diff --git a/batteryarc-widget/batteryarc.lua b/batteryarc-widget/batteryarc.lua
index 161e114..55a7694 100644
--- a/batteryarc-widget/batteryarc.lua
+++ b/batteryarc-widget/batteryarc.lua
@@ -90,7 +90,7 @@ local function worker(user_args)
local charge = 0
local status
for s in stdout:gmatch("[^\r\n]+") do
- local cur_status, charge_str, _ = string.match(s, '.+: (%a+), (%d?%d?%d)%%,?(.*)')
+ local cur_status, charge_str, _ = string.match(s, '.+: ([%a%s]+), (%d?%d?%d)%%,?(.*)')
if cur_status ~= nil and charge_str ~=nil then
local cur_charge = tonumber(charge_str)
if cur_charge > charge then
diff --git a/brightness-widget/README.md b/brightness-widget/README.md
index 156d109..0cdb774 100644
--- a/brightness-widget/README.md
+++ b/brightness-widget/README.md
@@ -13,7 +13,7 @@ It is possible to customize widget by providing a table with all or some of the
| `step` | 5 | Step |
| `base` | 20 | Base level to set brightness to on left click. |
| `path_to_icon` | `/usr/share/icons/Arc/status/symbolic/display-brightness-symbolic.svg` | Path to the icon |
-| `font` | `Play 9` | Font |
+| `font` | `beautiful.font` | Font name and size, like `Play 12` |
| `timeout` | 1 | How often in seconds the widget refreshes. Check the note below |
| `tooltip` | false | Display brightness level in a tooltip when the mouse cursor hovers the widget |
| `percentage` | false | Display a '%' character after the brightness level |
diff --git a/brightness-widget/brightness.lua b/brightness-widget/brightness.lua
index b0d98cf..3a77a44 100644
--- a/brightness-widget/brightness.lua
+++ b/brightness-widget/brightness.lua
@@ -13,6 +13,7 @@ local wibox = require("wibox")
local watch = require("awful.widget.watch")
local spawn = require("awful.spawn")
local naughty = require("naughty")
+local beautiful = require("beautiful")
local ICON_DIR = os.getenv("HOME") .. '/.config/awesome/awesome-wm-widgets/brightness-widget/'
local get_brightness_cmd
@@ -35,7 +36,7 @@ local function worker(user_args)
local type = args.type or 'arc' -- arc or icon_and_text
local path_to_icon = args.path_to_icon or ICON_DIR .. 'brightness.svg'
- local font = args.font or 'Play 9'
+ local font = args.font or beautiful.font
local timeout = args.timeout or 100
local program = args.program or 'light'
diff --git a/calendar-widget/calendar_start_sunday.png b/calendar-widget/calendar_start_sunday.png
new file mode 100644
index 0000000..126a218
--- /dev/null
+++ b/calendar-widget/calendar_start_sunday.png
Binary files differ