public wiki contents of
git clone git://
Log | Files | Refs (1819B)

      1 scratchpads
      2 ===========
      4 Description
      5 -----------
      6 This patch enables multiple scratchpads, each with one asigned window.
      7 This enables the same scratchpad workflow that you have in i3.
      9 Scratchpads are implemented as special tags, whose mask does not
     10 apply to new spawned windows. To assign a window to a scratchpad you
     11 have to set up a rule, as you do with regular tags.
     13 Windows tagged with scratchpad tags can be set floating or not in the
     14 rules array. Most users would probably want them floating (i3 style),
     15 but having them tiled does also perfectly work and might fit better the
     16 DWM approach. In case they are set floating, the patch moves them to the
     17 center of the screen whenever they are shown. The patch can easily be
     18 modified to make this last feature configurable in the rules array (see
     19 the center patch).
     21 The togglescratch function, borrowed from the previous scratchpad patch
     22 and slightly modified, can be used to spawn a registered scratchpad
     23 process or toggle its view. This function looks for a window tagged with
     24 the selected scratchpad tag. If it is found its view is toggled. If it is
     25 not found the corresponding registered command is spawned. The
     26 config.def.h shows three examples of its use to spawn a terminal in the
     27 first scratchpad tag, a second terminal running ranger on the second
     28 scratchpad tag and the keepassxc application to manage passwords on a
     29 third scratchpad tag.
     31 If you prefer to spawn your scratchpad applications from the startup
     32 script, you might opt for binding keys to toggleview instead, as
     33 scratchpads are just special tags (you may even extend the TAGKEYS macro
     34 to generalize the key bindings).
     38 Download
     39 --------
     40 * [dwm-scratchpads-20200414-728d397b.diff](dwm-scratchpads-20200414-728d397b.diff)
     42 Authors
     43 -------
     44 * Christian Tenllado <> (2020-04-14)