FG

Ubuntu: How to send a "close" command to a window with a title matching a regex?

Fresh3 days ago
Mar 15, 20262332 views
Confidence Score0%
0%

Problem

I need to programatically close a window in some program, based on the window title. Is there a tool or a built-in system command I can use for that?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Ubuntu: How to send a "close" command to a window with a title matching a regex?

Low Risk

can close a window based on a substring or exact match of the window title ( or ). If you need more control, you can parse , extract the matching window IDs and pass them to . You can use and match the class as well; in fact, I recommend it, since a…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment