]> git.rmz.io Git - dotfiles.git/blobdiff - awesome/rc.lua
awesome: notify if theme failed to load and fallback to default
[dotfiles.git] / awesome / rc.lua
index 6e139d30f38c165b1f69245d56333fa48caa0f9c..b60ab460fdd2a1bb29c197d0e7952777332177b1 100644 (file)
@@ -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