aboutsummaryrefslogtreecommitdiff
path: root/swaymsg
diff options
context:
space:
mode:
authorCole Mickens <cole.mickens@gmail.com>2016-01-17 02:53:37 -0800
committerCole Mickens <cole.mickens@gmail.com>2016-01-19 06:51:36 -0800
commit28081b76891ddbbb825dee6c202037d78aa8f164 (patch)
tree6b7412f626f5d9f10dba8920a2543dfd3c5a662e /swaymsg
parentfe241126bb8d696d45dd30fc975da022f79c9928 (diff)
libinput
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.