The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
2

Start application in window where command issued

asked 2013-04-29 10:17:38 +0000

foobar gravatar image

I would like to open a new terminal, type a command and expect the application to be run within the same window. However, a new window is opened, and I have to take care not to kill the parent, or I need to disown the process. How do I achieve this? Thanks in advance!

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2013-04-29 17:31:03 +0000

Michael gravatar image

I’d love this feature, too. Do you have any suggestion on how to implement it? It’s non-trivial unfortunately, at least with i3 v4.5.1. Possibly, the future layout saving can be used for this. I suggest to re-visit this feature request in a year or so.

edit flag offensive delete link more
0

answered 2013-04-30 04:56:31 +0000

joepd gravatar image

exec fullfills my needs, e.g. exec gvim. Works with bash and zsh. In stead of forking a new process from the shell, the current shell is replaced by the new process. See man bash | less +'/^ +exec '.

As a side effect, the X-window gets killed, and i3 happens to do The Right Thing automatically: the new window takes place of the old one.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-04-29 10:17:38 +0000

Seen: 237 times

Last updated: Apr 30 '13