aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2024-04-23 21:14:22 +0200
committerTeddy Wing2024-04-23 21:14:22 +0200
commit40bd15352dfc60f22f14530de142cbd718ec9249 (patch)
tree08474ac12c72d19c315d05bba61ff02dd233f5db
parent9464388e078d4641b720fb695a19518f86692a5b (diff)
downloaddothammerspoon-master.tar.bz2
keyboard_layout: Add Kyria checkHEADmaster
Include the Kyria keyboard in the keyboard layout switcher.
-rw-r--r--keyboard_layout.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/keyboard_layout.lua b/keyboard_layout.lua
index 8a62be3..915c50c 100644
--- a/keyboard_layout.lua
+++ b/keyboard_layout.lua
@@ -1,4 +1,4 @@
--- Copyright (c) 2021–2022 Teddy Wing
+-- Copyright (c) 2021–2024 Teddy Wing
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
@@ -29,6 +29,11 @@ local function is_keychron(event)
and event['productID'] == 591
end
+local function is_kyria(event)
+ return event['vendorID'] == 36125
+ and event['productID'] == 40349
+end
+
local function is_generic_keyboard(event)
local product_name_contains_word_keyboard = string.find(
string.lower(event['productName']),
@@ -41,6 +46,7 @@ end
keyboard_usb_watcher = hs.usb.watcher.new(function(event)
if not is_imate(event)
and not is_keychron(event)
+ and not is_kyria(event)
and not is_generic_keyboard(event)
then
return