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

How to launch terminal application directly?

asked Jul 28 '14

Seba gravatar image

How do I launch any terminal application (think of mc, aptitude, tin, screen, vim, etc.) directly in i3 without manually opening a terminal first?

2 answers

Sort by » oldest newest most voted
0

answered Nov 29 '15

nscott32 gravatar image

I use it to launch ranger file manager with a shortcut to exec termite -e ranger, I want to be able to launch it from a special directory but I have some troubles with exec termite -e 'ranger ~/mydirectory', a termite window open and close immediately...

I've tried it directly in a terminal, not with binding keys, it does the same thing.

0

answered Jul 28 '14

Seba gravatar image

Ok, found out by myself in case of terminal is xterm:

exec xterm -e vim

If you have parameters for the terminal application, it should become:

exec xterm -e "screen -R -D"

This also works for keybindings, etc.

Comments

Name a terminal emulator. Any one at all. The command is almost certainly "[terminal name] -e [command]." No offense, but this is elementary stuff; web searches are your friend.

ANOKNUSA gravatar imageANOKNUSA (Jul 28 '14)edit

Guess what, my first try was xterm -e, but I did not correctly quote the parameters and so nothing happened. Unfortunately, you don't see the error message. The window goes simply away. That makes it hard for an i3 novice to debug the situation.

Seba gravatar imageSeba (Jul 28 '14)edit

i3 has built-in [logging capabilities](http://i3wm.org/docs/userguide.html#shmlog).

ANOKNUSA gravatar imageANOKNUSA (Jul 31 '14)edit

Question Tools

1 follower

Stats

Asked: Jul 28 '14

Seen: 944 times

Last updated: Jul 28 '14