Hi 20h, On 29 April 2013 18:34, Christoph Lohmann <2...@r-36.net> wrote: > on my news mailbox something interesting appeared [0]. Applying such a > »display diff« to a dwm tag would be interesting, to only show the new > difference from the last time it was switched to that tag. Making it a > common tool you can use to watch certain displays from one state would > make it more usable everywhere. The gimmick of the webcam would be some > eye tracker which does not need to be combined with the display diff. > > Are here any X11 experts that know how this could be implemented?
You could take a screenshot each time you perform Mod1+{1,...} and then define another key combination like Ctrl-Shift-Mod1+{1...} to take another one and then to call feh with some image diff tool to display the result. Due to the fact that dwm's keypress() function executes all matching key combinations, this would be very easy. Afair there is the compare tool in order to create diffs from screenshots: compare shot1.png shot2.ong -compose src diff.png Best regards, Anselm