diff --git a/README.md b/README.md index 013e722..0f31a9b 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,22 @@ Currently it only supports 2 layouts (the ones I use) #### Layout supported + - US Qwerty - US ALT INT - US Colemak-DH - IT - ES - FR - PL + - PT-BR - DE + - JP + - HEB + - RU + - SE + - SLV + - CH + - ALB + - BLR + - DK + - NL diff --git a/main.py b/main.py index bf45e16..55a7831 100644 --- a/main.py +++ b/main.py @@ -19,6 +19,8 @@ def on_event(self, event, extension): query = event.get_query().strip() if query == extension.preferences['kus']: subprocess.Popen(['setxkbmap', 'us', '-variant', 'alt-intl']) + if query == extension.preferences['kusa']: + subprocess.Popen(['setxkbmap', 'us']) elif query == extension.preferences['kit']: subprocess.Popen(['setxkbmap', 'it']) elif query == extension.preferences['kes']: @@ -53,8 +55,10 @@ def on_event(self, event, extension): subprocess.Popen(['setxkbmap', 'da']) elif query == extension.preferences['nl']: subprocess.Popen(['setxkbmap', 'nl']) + elif query == extension.preferences['kbr']: + subprocess.Popen(['setxkbmap', 'br']) return HideWindowAction() - + if __name__ == '__main__': KeyboardLayoutChange().run() diff --git a/manifest.json b/manifest.json index d4bd663..f2ceb8c 100644 --- a/manifest.json +++ b/manifest.json @@ -96,7 +96,7 @@ "id": "ch", "type": "keyword", "name": "ch", - "description": "Switch to ch iso keyboard layout", + "description": "Switch to Switzerland iso keyboard layout", "default_value": "ch" }, { @@ -126,6 +126,20 @@ "name": "nl", "description": "Switch to Dutch iso keyboard layout", "default_value": "nl" + }, + { + "id": "kusa", + "type": "keyword", + "name": "kusa", + "description": "Switch to Qwerty US iso keyboard layout", + "default_value": "kusa" + }, + { + "id": "kbr", + "type": "keyword", + "name": "kbr", + "description": "Switch to Qwerty Brazillian iso keyboard layout", + "default_value": "kbr" } ] }