Linux command
i3-msg 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Switch workspace
i3-msg workspace [3]
Move window
i3-msg move left
Execute command
i3-msg exec [firefox]
Reload config
i3-msg reload
Get workspaces
i3-msg -t get_workspaces
Change layout
i3-msg layout [tabbed]
说明
i3-msg sends commands to a running i3 window manager. It provides scriptable control over windows, workspaces, and layouts. The tool can execute any i3 command and query state information. It's essential for scripting and automation.
参数
- -t _TYPE_
- Message type (command, get_workspaces).
- -s _SOCKET_
- Socket path.
- -q
- Quiet mode.
- --help
- Display help information.
FAQ
What is the i3-msg command used for?
i3-msg sends commands to a running i3 window manager. It provides scriptable control over windows, workspaces, and layouts. The tool can execute any i3 command and query state information. It's essential for scripting and automation.
How do I run a basic i3-msg example?
Run `i3-msg workspace [3]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -t _TYPE_ do in i3-msg?
Message type (command, get_workspaces).