From 6539f389ee0945aa38c5ac13155629ebf7219f81 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Mon, 29 Jun 2015 02:36:08 +0200 Subject: [PATCH] small wallpaper fix --- .config/awesome/themes/hanez/theme.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.config/awesome/themes/hanez/theme.lua b/.config/awesome/themes/hanez/theme.lua index cd2299fe..2e65ffd4 100644 --- a/.config/awesome/themes/hanez/theme.lua +++ b/.config/awesome/themes/hanez/theme.lua @@ -1,6 +1,10 @@ ------------------------- -- Hanez awesome theme -- ------------------------- +function file_exists(name) + local f=io.open(name,"r") + if f~=nil then io.close(f) return true else return false end +end theme = {} @@ -75,7 +79,9 @@ theme.titlebar_maximized_button_focus_active = "~/.config/awesome/themes/hanez/ -- Dont add wallpapers to the repo because of licensing issues; you need to set -- this yourself. -theme.wallpaper = "~/images/31c3-saal-3.jpg" +if file_exists("~/images/background.png") then + theme.wallpaper = "~/images/background.png" +end -- You can use your own layout icons like this: theme.layout_fairh = "~/.config/awesome/themes/hanez/layouts/fairhw.png"