index.md (1474B)
1 Foreground or Background 2 ======================== 3 4 Description 5 ----------- 6 This patch combines the features of blur-pixelated-screen and dwmlogo; it changes the background of slock to a blurred or pixelated version of your current desktop and the foreground of slock to a dwm logo that changes color based on the state. 7 8 Notes 9 ----- 10 The size of the logo is configurable with `logosize` in the `config.h`. 11 12 This patch is not limited by the dwm logo. 13 By changing the `rectangles` variable in `config.h` you can create any figure based on rectangles. 14 15 Define either `BLUR` (default) or `PIXELATION` to set which type of masking you want applied to the screen. You can also change the blur radius and pixel size with `blurRadius` and `pixelSize`, respectively. 16 17 With the `dpms` patch there is a conflict in the `main` function. 18 This is easly fixed by editing the `main` function in `slock.c` 19 so it looks like this, for it to work properly: 20 21 main(int argc, char **argv){ 22 ... 23 XFreeGC(dpy, locks[s]->gc); 24 } 25 26 /* reset DPMS values to inital ones */ 27 DPMSSetTimeouts(dpy, standby, suspend, off); 28 XSync(dpy, 0); 29 XCloseDisplay(dpy); 30 31 return 0; 32 } 33 34 Download 35 -------- 36 * [slock-foreground-and-background-20210611-35633d4.diff](slock-foreground-and-background-20210611-35633d4.diff) 37 38 Authors 39 ------- 40 * KNIX 3 - <nki3@protonmail.com> 41 * Arie Boven - <ar.boven@protonmail.com> 42 * Lars Niesen - <lars.niesen@gmx.de>