From 41acc74fc7173a60012c7f0c64b26b07334356dc Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Tue, 26 Jan 2021 00:03:30 +0000 Subject: [PATCH] awesome: notify if theme failed to load and fallback to default --- awesome/rc.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/awesome/rc.lua b/awesome/rc.lua index 6e139d3..b60ab46 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -40,6 +40,9 @@ local theme_path = gfs.get_dir("config").."/themes/"..theme.."/theme.lua" if not beautiful.init(theme_path) then -- we failed to load the theme, load default instead + naughty.notify({ preset = naughty.config.presets.warning, + title = "Could not load theme, fallback to default", + text = "theme_path = '"..theme_path.."'" }) beautiful.init(gfs.get_themes_dir() .. "default/theme.lua") end -- 2.48.1