diff --git a/system/.config/autokey/data/Phrases/E-Mail.txt b/system/.config/autokey/data/Phrases/E-Mail.txt deleted file mode 100644 index e0f1385..0000000 --- a/system/.config/autokey/data/Phrases/E-Mail.txt +++ /dev/null @@ -1 +0,0 @@ -severin@kaderli.dev \ No newline at end of file diff --git a/system/.config/autokey/data/Phrases/.E-Mail.json b/system/.config/autokey/data/Scripts/.email.json similarity index 79% rename from system/.config/autokey/data/Phrases/.E-Mail.json rename to system/.config/autokey/data/Scripts/.email.json index 092d699..410c08e 100644 --- a/system/.config/autokey/data/Phrases/.E-Mail.json +++ b/system/.config/autokey/data/Scripts/.email.json @@ -1,13 +1,13 @@ { - "type": "phrase", - "description": "E-Mail", + "type": "script", + "description": "email", + "store": {}, "modes": [ 1 ], - "usageCount": 58, + "usageCount": 6, "prompt": false, "omitTrigger": false, - "matchCase": false, "showInTrayMenu": false, "abbreviation": { "abbreviations": [ @@ -26,6 +26,5 @@ "filter": { "regex": null, "isRecursive": false - }, - "sendMode": "kb" + } } \ No newline at end of file diff --git a/system/.config/autokey/data/Scripts/email.py b/system/.config/autokey/data/Scripts/email.py new file mode 100644 index 0000000..9f26e63 --- /dev/null +++ b/system/.config/autokey/data/Scripts/email.py @@ -0,0 +1,8 @@ +import socket +private_email = "severin@kaderli.dev" +work_email = "severin@serious.com" + +if socket.gethostname() == "loki": + keyboard.send_keys(work_email) +else: + keyboard.send_keys(private_email) \ No newline at end of file