2 ms·
If you are on GNOME Wayland, try using this shell snippet to close a window with a specified app id. (I used firefox as an example but you can change it) bus
by cycloptic 6y ago
If you are on GNOME Wayland, try using this shell snippet to close a window with a specified app id. (I used firefox as an example but you can change it)
busctl call --user org.gnome.Shell /org/gnome/Shell \
org.gnome.Shell Eval s \
'global.get_window_actors().forEach(w =>
w.meta_window.wm_class == "firefox"
&& w.meta_window.delete(global.get_current_time()))'