diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-03-25 11:33:11 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-03-25 11:33:11 -0300 |
commit | 20b5ba61d518bebc5f2a28b4dfa66c8c6294d3f5 (patch) | |
tree | 872e136f76be7b0c34f1966838faecec424b2823 /modules/awesome/config.dot/awesome.link | |
parent | 76e8cb847f4bfc0474263687586050e010e7a3b6 (diff) | |
download | dotfiles-20b5ba61d518bebc5f2a28b4dfa66c8c6294d3f5.tar.gz dotfiles-20b5ba61d518bebc5f2a28b4dfa66c8c6294d3f5.tar.bz2 |
Adding awesompd only if config exists
Diffstat (limited to 'modules/awesome/config.dot/awesome.link')
-rw-r--r-- | modules/awesome/config.dot/awesome.link/functions.lua | 4 | ||||
-rw-r--r-- | modules/awesome/config.dot/awesome.link/rc.lua | 9 |
2 files changed, 12 insertions, 1 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 diff --git a/modules/awesome/config.dot/awesome.link/rc.lua b/modules/awesome/config.dot/awesome.link/rc.lua index cdb2c69..b4a1db2 100644 --- a/modules/awesome/config.dot/awesome.link/rc.lua +++ b/modules/awesome/config.dot/awesome.link/rc.lua @@ -52,11 +52,18 @@ layouts = } -- }}} +-- {{{ Misc functions +dofile(configdir .. "/functions.lua") +-- }}} + -- {{{ Widgets -- Leds dofile(configdir .. "/leds.lua") -dofile(configdir .. "/awesompd.lua") dofile(configdir .. "/volume.lua") + +if file_exists(homedir .. "/.custom/awesome/awesompd.lua") then + dofile(configdir .. "/awesompd.lua") +end -- }}} -- {{{ Tags |