This repository has been archived on 2021-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/home/.config/awesome/utils.lua

13 lines
225 B
Lua
Raw Normal View History

2018-10-28 14:14:27 +01:00
local utils = {}
2019-02-16 17:37:01 +01:00
function utils.file_exists(name)
local f=io.open(name,"r")
if f~=nil then io.close(f) return true else return false end
end
function utils.home()
return os.getenv("HOME") .. "/"
end
2018-10-28 14:14:27 +01:00
return utils