summaryrefslogtreecommitdiff
path: root/widgets
diff options
context:
space:
mode:
authorTim Keller <tjkeller.xyz>2025-02-10 17:53:39 -0600
committerTim Keller <tjkeller.xyz>2025-02-10 17:53:39 -0600
commit681e5e7f0a949c96e41d219c06885175f3307ae6 (patch)
tree02dd8106777cd62946bb8fd7ede5025740c9126f /widgets
parente6c7aea915e876912eca37f42253f9395e03356b (diff)
downloadawesome-681e5e7f0a949c96e41d219c06885175f3307ae6.tar.xz
awesome-681e5e7f0a949c96e41d219c06885175f3307ae6.zip
ensure pavolctld is loaded before using its functionalityHEADmaster
Diffstat (limited to 'widgets')
-rw-r--r--widgets/pavolctld.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/pavolctld.lua b/widgets/pavolctld.lua
index 3697465..fb3c5e5 100644
--- a/widgets/pavolctld.lua
+++ b/widgets/pavolctld.lua
@@ -4,6 +4,10 @@ local wibox = require("wibox")
local beautiful = require("beautiful")
local menubar = require("menubar")
local pavolctld = require("lib.pavolctld")
+local naughty = require("naughty")
+
+-- ensure pavolctld loaded
+if not pavolctld then return wibox.widget.textbox("err") end
-- return table
local widget = {}