diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..cb2cde9 --- /dev/null +++ b/README.md | |||
| @@ -0,0 +1,76 @@ | |||
| 1 | i3lock - improved screen locker | ||
| 2 | =============================== | ||
| 3 | [i3lock](https://i3wm.org/i3lock/)> is a simple screen locker like slock. | ||
| 4 | After starting it, you will see a white screen (you can configure the | ||
| 5 | color/an image). You can return to your screen by entering your password. | ||
| 6 | |||
| 7 | Many little improvements have been made to i3lock over time: | ||
| 8 | |||
| 9 | - i3lock forks, so you can combine it with an alias to suspend to RAM | ||
| 10 | (run "i3lock && echo mem > /sys/power/state" to get a locked screen | ||
| 11 | after waking up your computer from suspend to RAM) | ||
| 12 | |||
| 13 | - You can specify either a background color or a PNG image which will be | ||
| 14 | displayed while your screen is locked. Note that i3lock is not an image | ||
| 15 | manipulation software. If you need to resize the image to fill the screen | ||
| 16 | or similar, use existing tooling to do this before passing it to i3lock. | ||
| 17 | |||
| 18 | - You can specify whether i3lock should bell upon a wrong password. | ||
| 19 | |||
| 20 | - i3lock uses PAM and therefore is compatible with LDAP etc. | ||
| 21 | On OpenBSD i3lock uses the bsd_auth(3) framework. | ||
| 22 | |||
| 23 | Install | ||
| 24 | ------- | ||
| 25 | |||
| 26 | See [the i3lock home page](https://i3wm.org/i3lock/). | ||
| 27 | |||
| 28 | Requirements | ||
| 29 | ------------ | ||
| 30 | - pkg-config | ||
| 31 | - libxcb | ||
| 32 | - libxcb-util | ||
| 33 | - libpam-dev | ||
| 34 | - libcairo-dev | ||
| 35 | - libxcb-xinerama | ||
| 36 | - libxcb-randr | ||
| 37 | - libev | ||
| 38 | - libx11-dev | ||
| 39 | - libx11-xcb-dev | ||
| 40 | - libxkbcommon >= 0.5.0 | ||
| 41 | - libxkbcommon-x11 >= 0.5.0 | ||
| 42 | - libxcb-image | ||
| 43 | - libxcb-xrm | ||
| 44 | |||
| 45 | Running i3lock | ||
| 46 | ------------- | ||
| 47 | Simply invoke the 'i3lock' command. To get out of it, enter your password and | ||
| 48 | press enter. | ||
| 49 | |||
| 50 | On OpenBSD the `i3lock` binary needs to be setgid `auth` to call the | ||
| 51 | authentication helpers, e.g. `/usr/libexec/auth/login_passwd`. | ||
| 52 | |||
| 53 | Building i3lock | ||
| 54 | --------------- | ||
| 55 | We recommend you use the provided package from your distribution. Do not build | ||
| 56 | i3lock unless you have a reason to do so. | ||
| 57 | |||
| 58 | First install the dependencies listed in requirements section, then run these | ||
| 59 | commands (might need to be adapted to your OS): | ||
| 60 | ``` | ||
| 61 | autoreconf --force --install | ||
| 62 | |||
| 63 | rm -rf build/ | ||
| 64 | mkdir -p build && cd build/ | ||
| 65 | |||
| 66 | ../configure \ | ||
| 67 | --prefix=/usr \ | ||
| 68 | --sysconfdir=/etc \ | ||
| 69 | --disable-sanitizers | ||
| 70 | |||
| 71 | make | ||
| 72 | ``` | ||
| 73 | |||
| 74 | Upstream | ||
| 75 | -------- | ||
| 76 | Please submit pull requests to https://github.com/i3/i3lock | ||
