From f06bb1dff6fc35f1450858c89b2b670829179a0d Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Wed, 30 Jan 2019 22:30:24 +0100 Subject: [PATCH] Add AutoKey configuration Signed-off-by: Severin Kaderli --- README.md | 7 ++- install.sh | 1 + system/.config/autokey/autokey.json | 46 +++++++++++++++++++ system/.config/autokey/autokey.json~ | 46 +++++++++++++++++++ .../.config/autokey/data/Phrases/.E-Mail.json | 31 +++++++++++++ .../.config/autokey/data/Phrases/.folder.json | 27 +++++++++++ .../.config/autokey/data/Phrases/E-Mail.txt | 1 + .../autokey/data/Scripts/.current_date.json | 30 ++++++++++++ .../.config/autokey/data/Scripts/.folder.json | 23 ++++++++++ .../autokey/data/Scripts/current_date.py | 3 ++ system/.config/i3/config | 3 +- 11 files changed, 215 insertions(+), 3 deletions(-) create mode 100644 system/.config/autokey/autokey.json create mode 100644 system/.config/autokey/autokey.json~ create mode 100644 system/.config/autokey/data/Phrases/.E-Mail.json create mode 100644 system/.config/autokey/data/Phrases/.folder.json create mode 100644 system/.config/autokey/data/Phrases/E-Mail.txt create mode 100644 system/.config/autokey/data/Scripts/.current_date.json create mode 100644 system/.config/autokey/data/Scripts/.folder.json create mode 100644 system/.config/autokey/data/Scripts/current_date.py diff --git a/README.md b/README.md index 1d2f9ec..d1522c4 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,9 @@ The main content of this repository can be found in the `system` folder. It contains all configurations files, directories and scripts that mostly get symlinked by my install script. +### `.config/autokey` +This folder contains my phrases and scripts for [AutoKey](https://github.com/autokey/autokey). + ### `.config/dconf` This folder contains my configurations that are stored in dconf by applications. These are getting loaded on boot in `.bash_profile`. @@ -63,7 +66,7 @@ functions that I use in other scripts. ### `udev` This folder contains my custom udev rules. They are moved to -`/etc/udev/rules.d/` by my installation script. +`/etc/udev/rules.d/` by the installation script. ### `.aliases` This file contains my aliases that I use on a regular basis. I also use it to replace some standard commands wiht alternatives, like using `exa` instead of `ls`. @@ -102,7 +105,7 @@ This file contains my [Vim](https://www.vim.org/) configuration. This file is called when a new x-server is started manually. It loads the contents of `.xsetup` and then starts i3. ### `.xprofile` -This file is used by LightDM to load my normal `.bash_profile` file and `.xsetup`. +This file is used by some display managers to load my normal `.bash_profile` file and `.xsetup`. ### `.Xresources` This file currently contains my color configuration for [Rofi](https://github.com/DaveDavenport/rofi). diff --git a/install.sh b/install.sh index c835df6..f572218 100755 --- a/install.sh +++ b/install.sh @@ -34,6 +34,7 @@ LINKED_FILES_HOME=( ".bash_logout" ".bash_profile" ".bashrc" + ".config/autokey" ".config/compton.conf" ".config/dconf" ".config/dunst" diff --git a/system/.config/autokey/autokey.json b/system/.config/autokey/autokey.json new file mode 100644 index 0000000..ca68a17 --- /dev/null +++ b/system/.config/autokey/autokey.json @@ -0,0 +1,46 @@ +{ + "version": "0.95.4", + "userCodeDir": null, + "settings": { + "isFirstRun": true, + "serviceRunning": true, + "menuTakesFocus": false, + "showTrayIcon": true, + "sortByUsageCount": true, + "promptToSave": false, + "enableQT4Workaround": false, + "interfaceType": "XRecord", + "undoUsingBackspace": true, + "windowDefaultSize": [ + 955, + 1010 + ], + "hPanePosition": 240, + "columnWidths": [ + 150, + 50, + 100 + ], + "showToolbar": true, + "notificationIcon": "autokey-status", + "workAroundApps": ".*VirtualBox.*|krdc.Krdc", + "triggerItemByInitial": false, + "scriptGlobals": {} + }, + "folders": [], + "toggleServiceHotkey": { + "enabled": true, + "modifiers": [ + "", + "" + ], + "hotKey": "k" + }, + "configHotkey": { + "enabled": true, + "modifiers": [ + "" + ], + "hotKey": "k" + } +} \ No newline at end of file diff --git a/system/.config/autokey/autokey.json~ b/system/.config/autokey/autokey.json~ new file mode 100644 index 0000000..ca68a17 --- /dev/null +++ b/system/.config/autokey/autokey.json~ @@ -0,0 +1,46 @@ +{ + "version": "0.95.4", + "userCodeDir": null, + "settings": { + "isFirstRun": true, + "serviceRunning": true, + "menuTakesFocus": false, + "showTrayIcon": true, + "sortByUsageCount": true, + "promptToSave": false, + "enableQT4Workaround": false, + "interfaceType": "XRecord", + "undoUsingBackspace": true, + "windowDefaultSize": [ + 955, + 1010 + ], + "hPanePosition": 240, + "columnWidths": [ + 150, + 50, + 100 + ], + "showToolbar": true, + "notificationIcon": "autokey-status", + "workAroundApps": ".*VirtualBox.*|krdc.Krdc", + "triggerItemByInitial": false, + "scriptGlobals": {} + }, + "folders": [], + "toggleServiceHotkey": { + "enabled": true, + "modifiers": [ + "", + "" + ], + "hotKey": "k" + }, + "configHotkey": { + "enabled": true, + "modifiers": [ + "" + ], + "hotKey": "k" + } +} \ No newline at end of file diff --git a/system/.config/autokey/data/Phrases/.E-Mail.json b/system/.config/autokey/data/Phrases/.E-Mail.json new file mode 100644 index 0000000..70f56b6 --- /dev/null +++ b/system/.config/autokey/data/Phrases/.E-Mail.json @@ -0,0 +1,31 @@ +{ + "type": "phrase", + "description": "E-Mail", + "modes": [ + 1 + ], + "usageCount": 58, + "prompt": false, + "omitTrigger": false, + "matchCase": false, + "showInTrayMenu": false, + "abbreviation": { + "abbreviations": [ + "#@" + ], + "backspace": true, + "ignoreCase": false, + "immediate": true, + "triggerInside": false, + "wordChars": "[\\w]" + }, + "hotkey": { + "modifiers": [], + "hotKey": null + }, + "filter": { + "regex": null, + "isRecursive": false + }, + "sendMode": "kb" +} \ No newline at end of file diff --git a/system/.config/autokey/data/Phrases/.folder.json b/system/.config/autokey/data/Phrases/.folder.json new file mode 100644 index 0000000..665e926 --- /dev/null +++ b/system/.config/autokey/data/Phrases/.folder.json @@ -0,0 +1,27 @@ +{ + "type": "folder", + "title": "Phrases", + "modes": [ + 3 + ], + "usageCount": 4, + "showInTrayMenu": false, + "abbreviation": { + "abbreviations": [], + "backspace": true, + "ignoreCase": false, + "immediate": false, + "triggerInside": false, + "wordChars": "[\\w]" + }, + "hotkey": { + "modifiers": [ + "" + ], + "hotKey": "" + }, + "filter": { + "regex": null, + "isRecursive": false + } +} \ No newline at end of file diff --git a/system/.config/autokey/data/Phrases/E-Mail.txt b/system/.config/autokey/data/Phrases/E-Mail.txt new file mode 100644 index 0000000..b0fad9f --- /dev/null +++ b/system/.config/autokey/data/Phrases/E-Mail.txt @@ -0,0 +1 @@ +severin.kaderli@gmail.com \ No newline at end of file diff --git a/system/.config/autokey/data/Scripts/.current_date.json b/system/.config/autokey/data/Scripts/.current_date.json new file mode 100644 index 0000000..1c2d16f --- /dev/null +++ b/system/.config/autokey/data/Scripts/.current_date.json @@ -0,0 +1,30 @@ +{ + "type": "script", + "description": "current_date", + "store": {}, + "modes": [ + 1 + ], + "usageCount": 12, + "prompt": false, + "omitTrigger": false, + "showInTrayMenu": false, + "abbreviation": { + "abbreviations": [ + "#d" + ], + "backspace": true, + "ignoreCase": false, + "immediate": true, + "triggerInside": false, + "wordChars": "[\\w]" + }, + "hotkey": { + "modifiers": [], + "hotKey": null + }, + "filter": { + "regex": null, + "isRecursive": false + } +} \ No newline at end of file diff --git a/system/.config/autokey/data/Scripts/.folder.json b/system/.config/autokey/data/Scripts/.folder.json new file mode 100644 index 0000000..dba05fe --- /dev/null +++ b/system/.config/autokey/data/Scripts/.folder.json @@ -0,0 +1,23 @@ +{ + "type": "folder", + "title": "Scripts", + "modes": [], + "usageCount": 16, + "showInTrayMenu": false, + "abbreviation": { + "abbreviations": [], + "backspace": true, + "ignoreCase": false, + "immediate": false, + "triggerInside": false, + "wordChars": "[\\w]" + }, + "hotkey": { + "modifiers": [], + "hotKey": null + }, + "filter": { + "regex": null, + "isRecursive": false + } +} \ No newline at end of file diff --git a/system/.config/autokey/data/Scripts/current_date.py b/system/.config/autokey/data/Scripts/current_date.py new file mode 100644 index 0000000..176a64e --- /dev/null +++ b/system/.config/autokey/data/Scripts/current_date.py @@ -0,0 +1,3 @@ +import datetime +current_date = datetime.datetime.now() +keyboard.send_keys(current_date.strftime("%Y-%m-%d")) \ No newline at end of file diff --git a/system/.config/i3/config b/system/.config/i3/config index 139b696..b80b42c 100644 --- a/system/.config/i3/config +++ b/system/.config/i3/config @@ -202,7 +202,7 @@ bindsym $mod+$alt+Right move workspace to output right # Startup applications ####################################### # Dunst - exec --no-startup-id dunst +exec --no-startup-id dunst # Compton exec --no-startup-id compton -b @@ -214,6 +214,7 @@ exec_always --no-startup-id feh --bg-fill $HOME/GoogleDrive/02_Media/Images/01_W exec_always --no-startup-id $HOME/bin/resolution.sh # Other applications +exec autokey-gtk exec google-chrome-beta exec termite exec discord