Update email autokey script
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
13aab0001d
commit
a50d683f4c
3 changed files with 13 additions and 7 deletions
|
@ -1 +0,0 @@
|
|||
severin@kaderli.dev
|
|
@ -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"
|
||||
}
|
||||
}
|
8
system/.config/autokey/data/Scripts/email.py
Normal file
8
system/.config/autokey/data/Scripts/email.py
Normal file
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue