aboutsummaryrefslogtreecommitdiff
path: root/modules/awesome/config.dot/awesome.link/functions.lua
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-03-25 11:33:11 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-03-25 11:33:11 -0300
commit20b5ba61d518bebc5f2a28b4dfa66c8c6294d3f5 (patch)
tree872e136f76be7b0c34f1966838faecec424b2823 /modules/awesome/config.dot/awesome.link/functions.lua
parent76e8cb847f4bfc0474263687586050e010e7a3b6 (diff)
downloaddotfiles-20b5ba61d518bebc5f2a28b4dfa66c8c6294d3f5.tar.gz
dotfiles-20b5ba61d518bebc5f2a28b4dfa66c8c6294d3f5.tar.bz2
Adding awesompd only if config exists
Diffstat (limited to 'modules/awesome/config.dot/awesome.link/functions.lua')
-rw-r--r--modules/awesome/config.dot/awesome.link/functions.lua4
1 files changed, 4 insertions, 0 deletions
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