aboutsummaryrefslogtreecommitdiff
path: root/swaymsg
diff options
context:
space:
mode:
Diffstat (limited to 'swaymsg')
-rw-r--r--swaymsg/main.c2
-rw-r--r--swaymsg/swaymsg.1.txt3
2 files changed, 5 insertions, 0 deletions
diff --git a/swaymsg/main.c b/swaymsg/main.c
index dac84a9b..22572b6f 100644
--- a/swaymsg/main.c
+++ b/swaymsg/main.c
@@ -87,6 +87,8 @@ int main(int argc, char **argv) {
type = IPC_COMMAND;
} else if (strcasecmp(cmdtype, "get_workspaces") == 0) {
type = IPC_GET_WORKSPACES;
+ } else if (strcasecmp(cmdtype, "get_inputs") == 0) {
+ type = IPC_GET_INPUTS;
} else if (strcasecmp(cmdtype, "get_outputs") == 0) {
type = IPC_GET_OUTPUTS;
} else if (strcasecmp(cmdtype, "get_tree") == 0) {
diff --git a/swaymsg/swaymsg.1.txt b/swaymsg/swaymsg.1.txt
index 984780fa..c3af28d5 100644
--- a/swaymsg/swaymsg.1.txt
+++ b/swaymsg/swaymsg.1.txt
@@ -43,6 +43,9 @@ IPC Message Types
*get_workspaces*::
Gets a JSON-encoded list of workspaces and their status.
+*get_inputs*::
+ Gets a JSON-encoded list of current inputs.
+
*get_outputs*::
Gets a JSON-encoded list of current outputs.