How to open a program's child processes in tabbed view?
A lot of the time I work from a terminal and when I need to use a graphical application to edit a file in the current directory it's so
much faster to type prog-name [filename]
instead of launching it
from dmenu
then attempting to navigate to the file.
My problem is when launching graphical applications, logically, half my screen
gets wasted, covered with stdout (of which I rarely need) causing me
to waste time rearranging windows. It would be great if once launched,
a graphical application used the full space of the terminal and
sticks the terminal in a new tab. It can be done manualy,
$mod + v
before launching and
$mod + w
after, creates a tabbed container displaying the launched
program and hiding the terminal in the other tab, it's just
irritating and time-wasting to repeat this every single time.
So, Is there anyway this could be automated?
Can I set i3
to automatically display windows of xfce4-terminal
's
child processes this way? If not, could I even just use a script
(e.g.script-name prog-name [filename]
) to achieve this?