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",
|
"type": "script",
|
||||||
"description": "E-Mail",
|
"description": "email",
|
||||||
|
"store": {},
|
||||||
"modes": [
|
"modes": [
|
||||||
1
|
1
|
||||||
],
|
],
|
||||||
"usageCount": 58,
|
"usageCount": 6,
|
||||||
"prompt": false,
|
"prompt": false,
|
||||||
"omitTrigger": false,
|
"omitTrigger": false,
|
||||||
"matchCase": false,
|
|
||||||
"showInTrayMenu": false,
|
"showInTrayMenu": false,
|
||||||
"abbreviation": {
|
"abbreviation": {
|
||||||
"abbreviations": [
|
"abbreviations": [
|
||||||
|
@ -26,6 +26,5 @@
|
||||||
"filter": {
|
"filter": {
|
||||||
"regex": null,
|
"regex": null,
|
||||||
"isRecursive": false
|
"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