diff --git a/.dotbot.conf.yaml b/.dotbot.conf.yaml index 9d8f424..95ee9a6 100644 --- a/.dotbot.conf.yaml +++ b/.dotbot.conf.yaml @@ -11,6 +11,7 @@ ~/.config/alacritty: alacritty ~/.config/base16-shell: .base16-shell ~/.config/cava: cava + ~/.config/espanso: espanso ~/.config/fish: fish ~/.config/gh/config.yml: github/config.yml ~/.config/karabiner: karabiner diff --git a/.gitmodules b/.gitmodules index 718b111..c2d2b3d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -8,3 +8,6 @@ [submodule ".base16-shell"] path = .base16-shell url = https://github.com/chriskempson/base16-shell.git +[submodule "private/espanso"] + path = private/espanso + url = git@github.com:kogakure/espanso-snippets.git diff --git a/espanso/config/default.yml b/espanso/config/default.yml new file mode 100644 index 0000000..cf96993 --- /dev/null +++ b/espanso/config/default.yml @@ -0,0 +1,16 @@ +# Toggle key + +toggle_key: RIGHT_ALT +search_shortcut: ALT+SHIFT+SPACE + +# Injection Backend + +backend: Clipboard + +# Auto-restart + +auto_restart: true + +# Clipboard threshold + +clipboard_threshold: 100 diff --git a/espanso/match/base.yml b/espanso/match/base.yml new file mode 100644 index 0000000..d001df5 --- /dev/null +++ b/espanso/match/base.yml @@ -0,0 +1,16 @@ +imports: + - "../../private/espanso/finance.yml" + +matches: + # Simple text replacement + - trigger: ":espanso" + replace: "Hello World" + + # Print the output of a shell command + - trigger: ":shell" + replace: "{{output}}" + vars: + - name: output + type: shell + params: + cmd: "echo 'Hello from your shell'" diff --git a/espanso/match/datetime.yml b/espanso/match/datetime.yml new file mode 100644 index 0000000..99b9888 --- /dev/null +++ b/espanso/match/datetime.yml @@ -0,0 +1,12 @@ +matches: + - trigger: ":ddt" + replace: "datetime" + + # Print the current date + - trigger: ":date" + replace: "{{mydate}}" + vars: + - name: mydate + type: date + params: + format: "%m/%d/%Y" diff --git a/espanso/match/japanese.yml b/espanso/match/japanese.yml new file mode 100644 index 0000000..2e98ba1 --- /dev/null +++ b/espanso/match/japanese.yml @@ -0,0 +1,9 @@ +matches: + - trigger: "OO" + label: Japanisches Längenzeichen Ō + replace: "Ō" + word: true + - trigger: "oo" + label: Japanisches Längenzeichen ō + replace: "ō" + word: true diff --git a/private/espanso b/private/espanso new file mode 160000 index 0000000..8f5afda --- /dev/null +++ b/private/espanso @@ -0,0 +1 @@ +Subproject commit 8f5afdadcc6c2e41ddb209067cee9998a2dff538