Hello there,

You may want to look at closures, such as

        (let (state)
          (define-stumpwm-type :custom (input prompt)
            (do something (and (setf state (argument-pop-or-read input
prompt))))))

I sent a patch with screen commands using this technique some days ago. One
example: "sgother other" which is the same as "gother" but works on the
"other" screen. In this case, the group part has to know about which screen
was selected earlier. I don't know any other way to do this currently than
using closures or special bindings.

Enjoy.


_______________________________________________
Stumpwm-devel mailing list
Stumpwm-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/stumpwm-devel

Reply via email to