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 2014-07-28 21:07:57 +0000

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?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2015-11-29 21:57:19 +0000

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.

edit flag offensive delete link more
0

answered 2014-07-28 21:23:00 +0000

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.

edit flag offensive delete link more

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 ( 2014-07-28 21:26:51 +0000 )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 ( 2014-07-28 21:51:06 +0000 )edit

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

ANOKNUSA gravatar imageANOKNUSA ( 2014-07-31 00:37:30 +0000 )edit

Question Tools

1 follower

Stats

Asked: 2014-07-28 21:07:57 +0000

Seen: 944 times

Last updated: Jul 28 '14