i3-msg
sends commands to a running i3 window manager
TLDR
Switch workspace
$ i3-msg workspace [3]
Move windowcopy
$ i3-msg move left
Execute commandcopy
$ i3-msg exec [firefox]
Reload configcopy
$ i3-msg reload
Get workspacescopy
$ i3-msg -t get_workspaces
Change layoutcopy
$ i3-msg layout [tabbed]
copy
SYNOPSIS
i3-msg [options] command
DESCRIPTION
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.
PARAMETERS
COMMAND
i3 command to execute.-t TYPE
Message type (command, get_workspaces).-s SOCKET
Socket path.-q
Quiet mode.--help
Display help information.
CAVEATS
Requires running i3. Socket must be accessible. Commands must be valid i3 syntax.
HISTORY
i3-msg is part of the i3 window manager project for IPC communication.