aboutsummaryrefslogtreecommitdiffstats
path: root/swaymsg
diff options
context:
space:
mode:
authorLibravatar Ian Fan <ianfan0@gmail.com>2018-07-08 20:32:42 +0100
committerLibravatar Ian Fan <ianfan0@gmail.com>2018-07-10 12:03:46 +0100
commit5fd36164a008f931def993413facf9058c56641d (patch)
tree5714600f0fd8b8f1a2570cad4d7bc8ab48e7eb1e /swaymsg
parentMerge pull request #2236 from kupospelov/fix-stacked-layout (diff)
downloadsway-5fd36164a008f931def993413facf9058c56641d.tar.gz
sway-5fd36164a008f931def993413facf9058c56641d.tar.zst
sway-5fd36164a008f931def993413facf9058c56641d.zip
Add get_binding_modes message type to ipc
Diffstat (limited to 'swaymsg')
-rw-r--r--swaymsg/main.c2
-rw-r--r--swaymsg/swaymsg.1.scd3
2 files changed, 5 insertions, 0 deletions
diff --git a/swaymsg/main.c b/swaymsg/main.c
index 542ca819..42e488f3 100644
--- a/swaymsg/main.c
+++ b/swaymsg/main.c
@@ -407,6 +407,8 @@ int main(int argc, char **argv) {
407 type = IPC_GET_BAR_CONFIG; 407 type = IPC_GET_BAR_CONFIG;
408 } else if (strcasecmp(cmdtype, "get_version") == 0) { 408 } else if (strcasecmp(cmdtype, "get_version") == 0) {
409 type = IPC_GET_VERSION; 409 type = IPC_GET_VERSION;
410 } else if (strcasecmp(cmdtype, "get_binding_modes") == 0) {
411 type = IPC_GET_BINDING_MODES;
410 } else if (strcasecmp(cmdtype, "get_clipboard") == 0) { 412 } else if (strcasecmp(cmdtype, "get_clipboard") == 0) {
411 type = IPC_GET_CLIPBOARD; 413 type = IPC_GET_CLIPBOARD;
412 } else { 414 } else {
diff --git a/swaymsg/swaymsg.1.scd b/swaymsg/swaymsg.1.scd
index 1aa6a1b0..f9b600b9 100644
--- a/swaymsg/swaymsg.1.scd
+++ b/swaymsg/swaymsg.1.scd
@@ -59,6 +59,9 @@ _swaymsg_ [options...] [message]
59*get\_version* 59*get\_version*
60 Get JSON-encoded version information for the running instance of sway. 60 Get JSON-encoded version information for the running instance of sway.
61 61
62*get\_binding\_modes*
63 Gets a JSON-encoded list of currently configured binding modes.
64
62*get\_clipboard* 65*get\_clipboard*
63 Get JSON-encoded information about the clipboard. 66 Get JSON-encoded information about the clipboard.
64 Returns the current clipboard mime-types if called without 67 Returns the current clipboard mime-types if called without