]> git.rmz.io Git - dotfiles.git/commitdiff
awesome: notify if theme failed to load and fallback to default
authorSamir Benmendil <me@rmz.io>
Tue, 26 Jan 2021 00:03:30 +0000 (00:03 +0000)
committerSamir Benmendil <me@rmz.io>
Tue, 26 Jan 2021 00:25:01 +0000 (00:25 +0000)
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