From f06f25cffc05ab3a050432cc859c966cd91485f1 Mon Sep 17 00:00:00 2001 From: tiyn Date: Tue, 24 Oct 2023 18:48:10 +0200 Subject: [PATCH] added background-image patch to config --- .gitignore | 3 +++ README.md | 8 +++++++- config.def.h | 5 ++++- 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..45da11a --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +slock +*.o +config.h diff --git a/README.md b/README.md index 33937dc..170e433 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,15 @@ This is my patched version of slock. The base version is directly from suckless.org. +## Patches + +The list below shows the currently applied patches to the master branch. + +- slock-background-image-20220318-1c5a538.diff (shows a background image in locked state) + ## Installation The most basic way is to clone the repository and then invoke make. -- `git clone https://github.com/tiyn/st-0.9.0` +- `git clone https://github.com/tiyn/slock` - `make clean install` diff --git a/config.def.h b/config.def.h index 27cc2d0..041c31f 100644 --- a/config.def.h +++ b/config.def.h @@ -1,5 +1,5 @@ /* user and group to drop privileges to */ -static const char *user = "nobody"; +static const char *user = "user"; static const char *group = "nobody"; static const char *colorname[NUMCOLS] = { @@ -10,3 +10,6 @@ static const char *colorname[NUMCOLS] = { /* treat a cleared input like a wrong password (color) */ static const int failonclear = 1; + +/* Background image path, should be available to the user above */ +static const char* background_image = "/home/user/.config/lock.png";