summaryrefslogtreecommitdiffstats
path: root/slock/README.md
diff options
context:
space:
mode:
authorkj-sh6042024-06-30 07:12:18 -0400
committerkj-sh6042024-06-30 07:12:18 -0400
commit563f062c439396cf25f0d0f0c27cea6af8571306 (patch)
tree38d5826191793ee2e940df49bf7011a44d3dd039 /slock/README.md
parent4845a54b10b72987d5cf085dabccfc77de1f29d7 (diff)
kj-gitbot: slock/
Diffstat (limited to 'slock/README.md')
-rw-r--r--slock/README.md51
1 files changed, 51 insertions, 0 deletions
diff --git a/slock/README.md b/slock/README.md
new file mode 100644
index 0000000..3e7bf5c
--- /dev/null
+++ b/slock/README.md
@@ -0,0 +1,51 @@
+# suckless `slock` (Simple X display locker)
+
+simple screen locker utility for X
+
+I just migrated to slock from i3lock-fancy so nothing too creative on this build just yet. All that has been replaced are the default colors, which are as follows:
+
+
+```c
+static const char *colorname[NUMCOLS] = {
+ [INIT] = "#303030", /* after initialization */
+ [INPUT] = "#11427E", /* during input */
+ [FAILED] = "#7d4c10", /* wrong password */
+};
+```
+
+
+Might get more creative with this in the future, but for right now — let's pretend that it's all for #MiniMUHlism 😎 and not because I'm too lazy to write/apply patches for it 😬
+
+## Requirements
+
+In order to build slock you need the Xlib header files.
+
+## Installation
+
+Edit config.mk to match your local setup (slock is installed into the /usr/local namespace by default).
+
+Afterwards enter the following command to build and install slock
+(if necessary as root):
+
+```bash
+make clean install
+```
+
+
+If you're on Arch Linux you can also just run `makepkg -s` on this git directory and you might be able to just magically get an Arch Package build in this directory, albeit with a little bit of file redundancy
+
+## Running slock
+
+Simply invoke the `slock` command. To get out of it, enter your password.
+
+## Autolock
+
+`slock` can be started after a specific period of user inactivity using xautolock. The command syntax is:
+
+```bash
+xautolock -time 10 -locker slock
+```
+
+Simpler alternatives to `xautolock` might be `xssstate` or my personal favorite, `xss-lock`.
+
+Just use `xss-lock`…