aboutsummaryrefslogtreecommitdiffstats
path: root/keyboard_layout.lua
diff options
context:
space:
mode:
authorTeddy Wing2021-09-14 19:59:36 +0200
committerTeddy Wing2021-09-14 19:59:36 +0200
commit20f324ea775636bfb94e1ec8f3214438b146f645 (patch)
tree755b10b6a4f35bf3dbf46cb294d40dc48aca8515 /keyboard_layout.lua
parent52e85e4eb212e5c39a460d10e9c64b2fd3b215c2 (diff)
downloaddothammerspoon-20f324ea775636bfb94e1ec8f3214438b146f645.tar.bz2
keyboard_layout: Fix keyboard condition boolean operators
Made a mistake: the boolean expression wasn't saying what I wanted it to say. All parts should match the USB device in order to continue.
Diffstat (limited to 'keyboard_layout.lua')
-rw-r--r--keyboard_layout.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboard_layout.lua b/keyboard_layout.lua
index a230f9b..34404b7 100644
--- a/keyboard_layout.lua
+++ b/keyboard_layout.lua
@@ -19,8 +19,8 @@
keyboard_usb_watcher = hs.usb.watcher.new(function(event)
if event['productName'] ~= 'iMate, USB To ADB Adaptor'
- and event['vendorID'] ~= 1917
- and event['productID'] ~= 1029
+ or event['vendorID'] ~= 1917
+ or event['productID'] ~= 1029
then
return
end