local awful = require("awful")
local gfs = require('gears.filesystem')

local lock_screen = {}

local config_dir = gfs.get_configuration_dir()
package.cpath = package.cpath .. ";" .. config_dir .. "ui/lockscreen/lib/?.so;"

lock_screen.init = function()
    local pam = require("liblua_pam")
    lock_screen.authenticate = function(password)
        return pam.auth_current_user(password)
        -- return password == "awesome"
    end
    require("ui.lockscreen.lockscreen")
end

return lock_screen
