X from thing
For example, bind the F11 key to
action trigger f11 in your favorite window manager and
while action bind f11; do screenshot; done
in your favorite terminal emulator when you're working with something you want to screenshot.
Note that the
f11 string is arbitrary, i.e. go crazy, what about