From 329fae95c14337aada635431381baa469dcd108f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mevl=C3=BCt=20Canvar?= Date: Wed, 6 Jan 2021 02:01:50 +0300 Subject: [PATCH] refactors tilde-switch plugin --- plugins/tilde-switch/tilde-switch.plugin.zsh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/plugins/tilde-switch/tilde-switch.plugin.zsh b/plugins/tilde-switch/tilde-switch.plugin.zsh index 9705a159d..60587877b 100644 --- a/plugins/tilde-switch/tilde-switch.plugin.zsh +++ b/plugins/tilde-switch/tilde-switch.plugin.zsh @@ -19,4 +19,21 @@ # # This solution taken from here: https://apple.stackexchange.com/a/353941 # -hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000035,"HIDKeyboardModifierMappingDst":0x700000064},{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000035}]}' > /dev/null + +MAPPING=$(cat < /dev/null