<div dir="ltr"><div>Hi all,</div><div><br></div><div>I am running KDE Plasma Wayland on Fedora 34.</div><div><br></div><div>I want to write a script / create a shortcut to raise a window if it exists or open a new one otherwise.</div><div><br></div><div><br></div><div>With KDE Plasma X11, I can use <b>wmctrl</b> to write a simple script i.e. <b>wmctrl -l </b>to list the windows and then <b>wmctrl -a</b> to raise the necessary window if it exists.</div><div><br></div><div>I am wondering if we have a similar CLI tool to use with Wayland.<br></div><div><br></div><div>If there's no straightforward solution with Wayland how can I use kWin to get this job done ?</div><div>I will be pleased if someone can point me to the Xlib/XCB corresponding C/C++ api in Wayland.<br></div><div><br></div><div>Any ideas/suggestions would be appreciated.</div><div><br></div><div>Thanks,</div><div>Amila.<br></div><div><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><u>                                                                                                                                      </u></div><div><u><br></u></div><b>Amila Perera.</b><br></div></div></div></div>