r/archlinux • u/engelmarkus • 1d ago
SHARE hyprland: Detect programs using XWayland
I wanted to find all software still using XWayland on my system, so I added some lines to my hyprland.lua config file. That's probably trivial for the most of you, but I still wanted to share it. Just add this to the end of your config file and you'll get a notification whenever a software opens a window that relies on XWayland:
hl.on("window.open", function(w)
if w.xwayland then
hl.notification.create({ text = "Window uses XWayland: " .. w.title, timeout = 5000, icon = "warning" })
end
end)
What I found so far:
- steam (and every menu it opens)
- vlc
- ...
1
u/Embark10 20h ago
sway version:
for_window [shell="xwayland"] title_format "<span background='#FFA0A0' foreground='#000000'>%title (%shell)</span>"
3
u/ManoDu57 23h ago
Could've used xlsclients to list all Xwayland processes. Simpler, honestly