aboutsummaryrefslogtreecommitdiffstats
path: root/sway/sway-ipc.7.scd
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-07-17 17:12:20 -0400
committerLibravatar Simon Ser <contact@emersion.fr>2019-07-23 20:45:46 +0300
commit6effca7b61e87c7d17885d007d94e556a0137651 (patch)
tree686cc1e219d8236f8c9864c9992b3cb6b44c9583 /sway/sway-ipc.7.scd
parentinput_cmd_xkb_switch_layout: support input types (diff)
downloadsway-6effca7b61e87c7d17885d007d94e556a0137651.tar.gz
sway-6effca7b61e87c7d17885d007d94e556a0137651.tar.zst
sway-6effca7b61e87c7d17885d007d94e556a0137651.zip
ipc: add an input event
This adds an ipc event related to input devices. Currently the following changes are supported: - added: when an input device becomes available - removed: when an input device is no longer available - xkb_keymap_changed: (keyboards only) the keymap changed - xkb_layout_changed: (keyboards only) the effective layout changed
Diffstat (limited to 'sway/sway-ipc.7.scd')
-rw-r--r--sway/sway-ipc.7.scd53
1 files changed, 53 insertions, 0 deletions
diff --git a/sway/sway-ipc.7.scd b/sway/sway-ipc.7.scd
index 3657dcd6..4688e46d 100644
--- a/sway/sway-ipc.7.scd
+++ b/sway/sway-ipc.7.scd
@@ -1371,6 +1371,9 @@ available:
1371|- 0x80000014 1371|- 0x80000014
1372: bar_status_update 1372: bar_status_update
1373: Send when the visibility of a bar should change due to a modifier 1373: Send when the visibility of a bar should change due to a modifier
1374|- 0x80000015
1375: input
1376: Sent when something related to input devices changes
1374 1377
1375 1378
1376## 0x80000000. WORKSPACE 1379## 0x80000000. WORKSPACE
@@ -1702,6 +1705,56 @@ event is a single object with the following properties:
1702} 1705}
1703``` 1706```
1704 1707
1708## 0x80000015. INPUT
1709
1710Sent when something related to the input devices changes. The event is a single
1711object with the following properties:
1712
1713[- *PROPERTY*
1714:- *DATA TYPE*
1715:- *DESCRIPTION*
1716|- change
1717: string
1718:[ What has changed
1719|- input
1720: object
1721: An object representing the input that is identical the ones GET_INPUTS gives
1722
1723The following change types are currently available:
1724[- *TYPE*
1725:- *DESCRIPTION*
1726|- added
1727:[ The input device became available
1728|- removed
1729: The input device is no longer available
1730|- xkb_keymap
1731: (Keyboards only) The keymap for the keyboard has changed
1732|- xkb_layout
1733: (Keyboards only) The effective layout in the keymap has changed
1734
1735*Example Event:*
1736```
1737{
1738 "change": "xkb_layout",
1739 "input": {
1740 "identifier": "1:1:AT_Translated_Set_2_keyboard",
1741 "name": "AT Translated Set 2 keyboard",
1742 "vendor": 1,
1743 "product": 1,
1744 "type": "keyboard",
1745 "xkb_layout_names": [
1746 "English (US)",
1747 "English (Dvorak)"
1748 ],
1749 "xkb_active_layout_index": 1,
1750 "xkb_active_layout_name": "English (Dvorak)",
1751 "libinput": {
1752 "send_events": "enabled"
1753 }
1754 }
1755}
1756```
1757
1705# SEE ALSO 1758# SEE ALSO
1706 1759
1707*sway*(1) *sway*(5) *sway-bar*(5) *swaymsg*(1) *sway-input*(5) *sway-output*(5) 1760*sway*(1) *sway*(5) *sway-bar*(5) *swaymsg*(1) *sway-input*(5) *sway-output*(5)