resurrecting-open-source-projects / scrot

SCReenshOT - command line screen capture utility
Other
512 stars 51 forks source link

Add new format specifier: $W #181

Closed daltomi closed 2 years ago

daltomi commented 2 years ago

The FILE parameters can take a new format specifier: $W The name of the window (only for --select and --focused)

Ex: $ scrot --focused mytitle$W.png

daltomi commented 2 years ago

We have a lot of global state and adding a feature means being aware of the entire source code and making changes in multiple different places, I recommend that adding a feature should come with adapting scrot's design to it

If you want to redesign the whole project, go ahead, but we can't do it here in this PR.