From 20b5ba61d518bebc5f2a28b4dfa66c8c6294d3f5 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 25 Mar 2013 11:33:11 -0300 Subject: Adding awesompd only if config exists --- modules/awesome/config.dot/awesome.link/functions.lua | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 modules/awesome/config.dot/awesome.link/functions.lua (limited to 'modules/awesome/config.dot/awesome.link/functions.lua') diff --git a/modules/awesome/config.dot/awesome.link/functions.lua b/modules/awesome/config.dot/awesome.link/functions.lua new file mode 100644 index 0000000..aa98502 --- /dev/null +++ b/modules/awesome/config.dot/awesome.link/functions.lua @@ -0,0 +1,4 @@ +function file_exists(name) + local f=io.open(name,"r") + if f~=nil then io.close(f) return true else return false end +end -- cgit v1.2.3