index.md - sites - public wiki contents of suckless.org
 (HTM) git clone git://git.suckless.org/sites
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
       index.md (1033B)
       ---
            1 Dwm logo
            2 ========
            3 
            4 Description
            5 -----------
            6 Instead of using the colors for the whole screen based on the state,
            7 this patch draws the dwm logo which changes color based on the state.
            8 
            9 Notes
           10 -----
           11 The size of the logo is configurable with `logosize` in the `config.h`.
           12 
           13 With the `dpms` patch there is a conflict in the `main` function. 
           14 This is easly fixed by editing the `main` function in `slock.c`
           15 so it looks like this, for it to work properly:
           16 
           17     main(int argc, char **argv){
           18         ...
           19             XFreeGC(dpy, locks[s]->gc);
           20         }
           21 
           22         /* reset DPMS values to inital ones */
           23         DPMSSetTimeouts(dpy, standby, suspend, off);
           24         XSync(dpy, 0);
           25         XCloseDisplay(dpy);
           26     
           27         return 0;
           28     }
           29 
           30 Customization
           31 -------------
           32 This patch is not limited by the dwm logo.
           33 By changing the `rectangles` variable in `config.h` you can create any figure based on rectangles.
           34 
           35 Download
           36 --------
           37 * [slock-dwmlogo-20210324.diff](slock-dwmlogo-20210324.diff)
           38 
           39 Authors
           40 -------
           41 * Arie Boven - <ar.boven@protonmail.com>