Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8037

General discussion • Focus set with wlrctl

$
0
0
Hi all,

The following link brought me to wlrctl as it is known that wmctrl no longer works on wayland.
viewtopic.php?p=2224585&hilit=wayland+wmctrl#p2224585

With

Code:

wlrctl toplevel list
I get the following list

Code:

pi@raspberrypi:~/Downloads/wlrctl $ wlrctl toplevel listchromium: Welcome to Farnell Global | Global Electronic Component Distributor - Chromiumpcmanfm: pichromium: Raspberry Pi - Chromiumlxterminal: pi@raspberrypi: ~/Downloads/wlrctl
For example with

Code:

wlrctl toplevel focus pcmanfm
I can give any application the focus.

How can I use

Code:

wlrctl toplevel focus
to select a window which is mentioned twice by name. Here in the example chromium. How can this be done?

You are also welcome to name another tool or method with which I can focus a window via the command line. I don't want to switch to X11. With X11, the video content does not work under Chromium in kiosk mode.

OS: Raspberry Pi OS with desktop
Release date: November 19th 2024
System: 64-bit
Kernel version: 6.6
Debian version: 12 (bookworm)

Compositor: Wayland, LabWC

Code:

pi@raspberrypi:~/Downloads/wlrctl $ wlrctl -vwlrctl v0.2.2

Thanks for any hints

NFstoney

Statistics: Posted by nfstoney — Tue Feb 25, 2025 1:56 pm



Viewing all articles
Browse latest Browse all 8037

Trending Articles