From 8d4c137fdefc8f088c6346aab849ef55106d275e Mon Sep 17 00:00:00 2001 From: Trial97 Date: Fri, 25 Mar 2022 20:34:24 +0200 Subject: [PATCH] Reverted battery change --- widget/bat.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/widget/bat.lua b/widget/bat.lua index 5a2a40b..ba2f312 100644 --- a/widget/bat.lua +++ b/widget/bat.lua @@ -1,8 +1,8 @@ --[[ - Licensed under GNU General Public License v2 - * (c) 2013, Luca CPZ - * (c) 2010-2012, Peter Hofmann + Licensed under GNU General Public License v2 + * (c) 2013, Luca CPZ + * (c) 2010-2012, Peter Hofmann --]] @@ -22,7 +22,7 @@ local function factory(args) local pspath = args.pspath or "/sys/class/power_supply/" if not fs.is_dir(pspath) then - naughty.notify { text = tostring(...):match(".*lain") .. ".widget.bat: invalid power supply path", timeout = 0 } + naughty.notify { text = "lain.widget.bat: invalid power supply path", timeout = 0 } return end