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

12 lines
234 B
Lua

local utils = {}
function utils.readfile(command)
local file = io.open(command)
if not file then return nil end
local text = file:read('*all')
file:close()
return text:gsub("^%s*(.-)%s*$", "%1")
end
return utils