From: Samir Benmendil Date: Tue, 26 Jan 2021 00:03:30 +0000 (+0000) Subject: awesome: notify if theme failed to load and fallback to default X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/41acc74fc7173a60012c7f0c64b26b07334356dc?ds=sidebyside awesome: notify if theme failed to load and fallback to default --- 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