diff options
author | Zhang Xianwei <[email protected]> | 2018-10-18 17:16:49 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-10-24 18:19:17 +0200 |
commit | 21469f246d6edb129618dcf8b521267f5bcc45d5 (patch) | |
tree | a9e02af26b9c0c188ebe8715c2db696a8e45728c /plugins/media-keys/acme.h | |
parent | 2b528edce044642edcd388b851f52012b7e09e38 (diff) | |
download | mate-settings-daemon-21469f246d6edb129618dcf8b521267f5bcc45d5.tar.bz2 mate-settings-daemon-21469f246d6edb129618dcf8b521267f5bcc45d5.tar.xz |
media-keys: Add support for Killswitch media keys
Add support for the XF86Bluetooth and XF86WLAN media keys.
The first one will toggle Bluetooth on/off, as the Bluetooth panel
does, the latter one will toggle the global software killswitch.
The reasoning XF86WLAN media key toggling the global software
killswitch is that:
- we don't have a killswitch for only WiFi
- there are very very few laptops with a UWB killswitch button, if
anyone actually remembers what UWB actually is
- there are no XF86 keys for the global killswitch, so they usually
get mislabeled as the WLAN killswitch
from https://github.com/GNOME/gnome-settings-daemon/commit/3fa0f7260a6864dfe67bdbd82b22b168e1e66457
Signed-off-by: Zhang Xianwei <[email protected]>
Diffstat (limited to 'plugins/media-keys/acme.h')
-rw-r--r-- | plugins/media-keys/acme.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/media-keys/acme.h b/plugins/media-keys/acme.h index 64e361c..b209b74 100644 --- a/plugins/media-keys/acme.h +++ b/plugins/media-keys/acme.h @@ -56,6 +56,8 @@ enum { SCREENREADER_KEY, ON_SCREEN_KEYBOARD_KEY, LOGOUT_KEY, + RFKILL_KEY, + BLUETOOTH_RFKILL_KEY, HANDLED_KEYS, }; @@ -96,6 +98,8 @@ static struct { { SCREENREADER_KEY, "screenreader", NULL, NULL }, { ON_SCREEN_KEYBOARD_KEY, "on-screen-keyboard", NULL, NULL }, { LOGOUT_KEY, "logout", NULL, NULL }, + { RFKILL_KEY, NULL, "XF86WLAN", NULL }, + { BLUETOOTH_RFKILL_KEY, NULL, "XF86Bluetooth", NULL } }; #endif /* __ACME_H__ */ |