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 (797B)
       ---
            1 quitprompt
            2 ===========
            3 
            4 Description
            5 -----------
            6 This patch replaces the default quit behavior with a dmenu prompt.
            7 Options are "yes", "no" and "restart".
            8 
            9 ![](quitprompt.png)
           10 
           11 The additional confirmation can protect unsaved work from accidentally hitting the quit key by requiring two additional keystrokes (y/yes and RET).
           12 
           13 Additionally, it allows for restarting / reloading dwm without ending the xsession and closing all x windows.
           14 To abort, press ESC or n/no and RET.
           15 
           16 Download
           17 --------
           18 * [dwm-quitprompt-20220718-6613d9f.diff](dwm-quitprompt-20220718-6613d9f.diff)
           19 
           20 Configuration
           21 ---------------------
           22 This patch replaces the default quit keybinding in `config.def.h` to quitprompt.
           23 
           24         { MODKEY|ShiftMask, XK_q, quitprompt, {0} },
           25 
           26 Author
           27 ------
           28 * Laurenz Foglia - <lerrrtaste@protonmail.com>