diff --git a/README.md b/README.md index 2d956ca..cf1eaab 100644 --- a/README.md +++ b/README.md @@ -130,10 +130,10 @@ Here are the instructions you should follow to replicate my AwesomeWM setup. Instead of authenticating with a custom password stored in plain text inside your configuration files, it is possible to use [PAM](https://wiki.archlinux.org/index.php/PAM) in order to do it using your regular user password in a secure way. [lua-pam](https://github.com/RMTT/lua-pam) allows us to use PAM from within AwesomeWM. You will need to install the `pam` package through your distribution's package manager and then follow the [instructions to build lua-pam](https://github.com/RMTT/lua-pam). - After building it, you can simply copy the resulting `liblua_pam.so` file to the lock screen configuration directory, like so: + After building it, you can simply copy the resulting `liblua_pam.so` file to your configuration directory, like so: ```shell - cp liblua_pam.so ~/.config/awesome/elemental/lock_screen/ + cp liblua_pam.so ~/.config/awesome/ ``` If you do not want to install it, no worries! diff --git a/config/awesome/elemental/lock_screen/init.lua b/config/awesome/elemental/lock_screen/init.lua index 1525b56..82ec393 100644 --- a/config/awesome/elemental/lock_screen/init.lua +++ b/config/awesome/elemental/lock_screen/init.lua @@ -3,8 +3,7 @@ local helpers = require("helpers") local lock_screen = {} --- local lua_pam_path = os.getenv("HOME").."/.config/awesome/elemental/lock_screen/liblua_pam.so" -local lua_pam_path = helpers.this_dir().."liblua_pam.so" +local lua_pam_path = os.getenv("HOME").."/.config/awesome/liblua_pam.so" lock_screen.init = function () -- Initialize authentication method based on whether lua-pam has been