## 13 Interacting With X11 ¶

Function: set-x-selection text &optional selection ¶

  Default Values:

        selection  stumpwm:*default-selections*

  Set the X11 selection string to string.

Function: get-x-selection &optional timeout selection ¶

  Default Values:

        timeout    nil
        selection  stumpwm:*default-selections*

  Return the x selection no matter which client owns it.

Variable: *default-selections* ¶

  A keyword or list, one of: :primary or ’(:primary) uses only the "primary" selection :clipboard or ’(:clipboard) uses only the "clipboard" selection Both can be specified in a list like ’(:primary :clipboard). In this case, set-x-selection will clobber both, and get-x-selection will default to the first item.

Variable: *x-selection* ¶

  This is a plist of stumpwm’s current selections. The different properties are generally set when killing text in the input bar.