StumpWM's Data Directory (StumpWM Manual)

### 14.3 StumpWM’s Data Directory ¶

If you want to store StumpWM data between sessions, the recommended method is to store them in `~/.stumpwm.d/`. StumpWM supplies some functions to make doing this easier.

Variable: *data-dir* ¶

  The directory used by stumpwm to store data between sessions.

Function: data-dir-file name &optional type ¶

  Default Values:

        type  nil

  Return a pathname inside stumpwm’s data dir with the specified name and type

Macro: with-data-file (s file &rest keys &key (if-exists supersede) &allow-other-keys) &body body ¶

  Open a file in StumpWM’s data directory. keyword arguments are sent directly to OPEN. Note that IF-EXISTS defaults to :supersede, instead of :error.