ReimuNotMoe / ydotool

Generic command-line automation tool (no X!)
GNU Affero General Public License v3.0
1.52k stars 82 forks source link

Getting Active Window #244

Open Sachin-Bhat opened 5 months ago

Sachin-Bhat commented 5 months ago

Thank you for creating this tool! I was using xdotool to get active window along with maim to take screenshots of an active window. After moving to wayland, it seemed like ydotool was a good alternative. Though it works differently from xdotool, is there a possibility of getting the active window in ydotool using dbus or otherwise. I understand each compositor has different solutions to get an active window. I wonder if it is possible to create a multi-integration like implementation for this for the compositors that support this.

Cheers, Sachin