From 21469f246d6edb129618dcf8b521267f5bcc45d5 Mon Sep 17 00:00:00 2001 From: Zhang Xianwei Date: Thu, 18 Oct 2018 17:16:49 +0800 Subject: 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 --- plugins/media-keys/acme.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/media-keys/acme.h') 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__ */ -- cgit v1.2.1