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

i3-msg vs i3

asked 2013-08-22 11:46:25 +0000

notalex gravatar image

updated 2013-08-22 11:47:24 +0000

Using i3 for sending commands to current i3 instance works. I found that i3-msg can also be used.

For e.g. while in an xterm window the following two commands do the same thing:

$ i3 border none
$ i3-msg border none

I would like to know if there is a difference between the two approaches.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
2

answered 2013-08-22 13:55:49 +0000

badboy_ gravatar image

It's effectively the same. As you will see when using i3 border none the output includes Additional arguments passed. Sending them as a command to i3, which is exactly the same i3-msg does. i3-msg was the original client that came with i3 (and still is), the main binary was later switched to also send commands

edit flag offensive delete link more

Comments

2

Note that i3-msg allows you to use other message types, not just COMMAND. E.g. i3-msg -t get_workspaces

Michael gravatar imageMichael ( 2013-08-27 06:54:36 +0000 )edit

Question Tools

Stats

Asked: 2013-08-22 11:46:25 +0000

Seen: 344 times

Last updated: Aug 22 '13