You are not logged in.

#1 Yesterday 15:53:40

tvidal
Member
Registered: 2020-06-18
Posts: 19

focus window or start application on plasma with wayland

Now that we are kind of forced to use Wayland since Plasma 6.4, I have a ton of global shortcuts mapped to scripts like this:

* Meta-F:

wmctrl -xa firefox || exec firefox

* Meta-K:

wmctrl -xa konsole || exec konsole

Since the forced Wayland upgrade, this always starts a new process and does not focus the existing window.

Is there an equivalent way of focusing an application in wayland like we could in Xorg with wmctrl?

Thank you.

Offline

#2 Yesterday 16:00:20

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,216

Re: focus window or start application on plasma with wayland

You are not forced to anything. Nobody is stopping you from keeping using X11.

Offline

#3 Yesterday 16:06:54

tvidal
Member
Registered: 2020-06-18
Posts: 19

Re: focus window or start application on plasma with wayland

Well, I said "kind of", because for the moment I fixed by installing plasma-x11-session as suggested in another topic, but I know that is temporary a temporary solution with Xorg reaching end of support.

Ultimately, I will need to find a better solution to keep these Global Shortcuts working.

Last edited by tvidal (Yesterday 16:10:12)

Offline

#4 Today 04:40:02

dan123
Member
Registered: 2025-05-30
Posts: 8

Re: focus window or start application on plasma with wayland

arojas wrote:

You are not forced to anything. Nobody is stopping you from keeping using X11.

But it is forced. No new features are coming to X11 and some features are Wayland-only. Some DEs are dropping X11 support (and dropping it way too early imo) instead of allowing either graphical session. Making your own DE just to run X11 would be a lot of work.

Global shortcuts for X11 apps are kind of supported depending on DE, but should be a feature of XWayland imo. Not sure if it's even possible to make a script run under an X11 session so that you do get potential global shortcut support. Might be something hacky you could do like executing a script in Xterm. Not tested it myself.

Probably better to add X11 as default choice in SDDM

Offline

Board footer

Powered by FluxBB