LinuxCommandLibrary

i3-msg

sends commands to a running i3 window manager

TLDR

Switch workspace

$ i3-msg workspace [3]
copy
Move window
$ i3-msg move left
copy
Execute command
$ i3-msg exec [firefox]
copy
Reload config
$ i3-msg reload
copy
Get workspaces
$ i3-msg -t get_workspaces
copy
Change layout
$ 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.

SEE ALSO

i3(1), swaymsg(1), i3lock(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community