Manage windows from terminal

To keep   minimized after closing its current tab (according to OP, see the comment) use the following commands in a terminal, How it works

To know more about these see   and

Alias for above command

You can make an alias for the above commands, say the alias name be   ( Close Firefox Current Tab) in   or better in   from a terminal as, If you don't have   replace   in the above commands with

Usage

open a terminal and enter And it will close Firefox’s current tab instantaneously.

Note:  You need to have   and   installed in your system. To install them use,

Keep xkill to kill whatever you want!

To get window class string type xprop WM_CLASS | grep -o '"[^"]*"' | head -n 1