ipc: implement GET_VERSION to find out the i3 version
This is useful for third-party scripts which require certain features and want to error out cleanly when they are run with an old i3 version. Additionally, i3 --version might be different from what’s actually running (an old version of the binary), so i3-msg -t get_version will be the best way to figure out the i3 version you are actually running from this commit on.
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
i3-msg(1)
|
||||
=========
|
||||
Michael Stapelberg <michael+i3@stapelberg.de>
|
||||
v4.2, January 2012
|
||||
Michael Stapelberg <michael@i3wm.org>
|
||||
v4.2, August 2012
|
||||
|
||||
== NAME
|
||||
|
||||
@ -38,6 +38,9 @@ get_bar_config::
|
||||
Gets the configuration (as JSON map) of the workspace bar with the given ID. If
|
||||
no ID is provided, an array with all configured bar IDs is returned instead.
|
||||
|
||||
get_version::
|
||||
Gets the version of i3. The reply will be a JSON-encoded dictionary with the
|
||||
major, minor, patch and human-readable version.
|
||||
|
||||
== DESCRIPTION
|
||||
|
||||
|
Reference in New Issue
Block a user