diff options
-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 |