diff options
| author | kkard2 <[email protected]> | 2023-07-11 09:10:19 +0200 |
|---|---|---|
| committer | kkard2 <[email protected]> | 2023-07-11 09:10:19 +0200 |
| commit | fa11cfc70e98574930f73884957891db44471af8 (patch) | |
| tree | 6326a609d57dccb6c1b735a23c17912f759f968e /espanso | |
| parent | efa0d2fbaf917bf3cd2efd54166caa56d5fb30dc (diff) | |
| parent | f8d9727953637e992e220c91f0bba3ae78d9a567 (diff) | |
Merge branch 'main' of github.com:kkard2/.dotfiles
Diffstat (limited to 'espanso')
| -rw-r--r-- | espanso/.gitignore | 1 | ||||
| -rw-r--r-- | espanso/config/default.yml | 1 | ||||
| -rw-r--r-- | espanso/match/.gitignore | 1 | ||||
| -rw-r--r-- | espanso/match/base.yml | 1 | ||||
| -rw-r--r-- | espanso/match/emoji.yml | 39 | ||||
| -rw-r--r-- | espanso/match/gif.yml | 15 | ||||
| -rw-r--r-- | espanso/match/meth.yml | 13 | ||||
| -rw-r--r-- | espanso/match/spelling.yml | 5 | ||||
| -rw-r--r-- | espanso/match/sub.yml | 21 | ||||
| -rw-r--r-- | espanso/match/sup.yml | 21 | ||||
| -rw-r--r-- | espanso/match/utils.yml | 20 | ||||
| -rw-r--r-- | espanso/update_from_assets.py | 20 |
12 files changed, 158 insertions, 0 deletions
diff --git a/espanso/.gitignore b/espanso/.gitignore new file mode 100644 index 0000000..d93aea1 --- /dev/null +++ b/espanso/.gitignore @@ -0,0 +1 @@ +/assets diff --git a/espanso/config/default.yml b/espanso/config/default.yml new file mode 100644 index 0000000..0967ef4 --- /dev/null +++ b/espanso/config/default.yml @@ -0,0 +1 @@ +{} diff --git a/espanso/match/.gitignore b/espanso/match/.gitignore new file mode 100644 index 0000000..845e553 --- /dev/null +++ b/espanso/match/.gitignore @@ -0,0 +1 @@ +img.yml diff --git a/espanso/match/base.yml b/espanso/match/base.yml new file mode 100644 index 0000000..eb516ef --- /dev/null +++ b/espanso/match/base.yml @@ -0,0 +1 @@ +matches: diff --git a/espanso/match/emoji.yml b/espanso/match/emoji.yml new file mode 100644 index 0000000..9485971 --- /dev/null +++ b/espanso/match/emoji.yml @@ -0,0 +1,39 @@ +matches: + - trigger: ;;slightsm + replace: π + - trigger: ;;slightfr + replace: π + - trigger: ;;moyai + replace: πΏ + - trigger: ;;thup + replace: π + - trigger: ;;thdown + replace: π + - trigger: ;;skull + replace: π + - trigger: ;;weary + replace: π© + - trigger: ;;nerd + replace: π€ + - trigger: ;;sung + replace: π + - trigger: ;;fire + replace: π₯ + - trigger: ;;eyes + replace: π + - trigger: ;;fax + replace: π + - trigger: ;;whcheck + replace: β
+ - trigger: ;;cross + replace: β + - trigger: ;;pensive + replace: π + - trigger: ;;raisedeye + replace: π€¨ + - trigger: ;;plead + replace: π₯Ί + - trigger: ;;pointup + replace: βοΈ + - trigger: ;;shock + replace: π± diff --git a/espanso/match/gif.yml b/espanso/match/gif.yml new file mode 100644 index 0000000..21fb932 --- /dev/null +++ b/espanso/match/gif.yml @@ -0,0 +1,15 @@ +matches: + - trigger: ;;gblack + image_path: $CONFIG/assets/gif/black.gif + - trigger: ;;gfirewrite + image_path: $CONFIG/assets/gif/firewrite.gif + - trigger: ;;ghilarious + image_path: $CONFIG/assets/gif/hilarious.gif + - trigger: ;;gofc + image_path: $CONFIG/assets/gif/ofc.gif + - trigger: ;;gpipe + image_path: $CONFIG/assets/gif/pipe.gif + - trigger: ;;gwhar + image_path: $CONFIG/assets/gif/whar.gif + - trigger: ;;gwhite + image_path: $CONFIG/assets/gif/white.gif diff --git a/espanso/match/meth.yml b/espanso/match/meth.yml new file mode 100644 index 0000000..0beb698 --- /dev/null +++ b/espanso/match/meth.yml @@ -0,0 +1,13 @@ +matches: + - trigger: ;;\cdot + replace: β
+ - trigger: ;;\degree + replace: Β° + - trigger: ;;\beta + replace: Ξ² + - trigger: ;;\Delta + replace: Ξ + - trigger: ;;\lambda + replace: Ξ» + - trigger: ;;\Omega + replace: Ξ© diff --git a/espanso/match/spelling.yml b/espanso/match/spelling.yml new file mode 100644 index 0000000..655b156 --- /dev/null +++ b/espanso/match/spelling.yml @@ -0,0 +1,5 @@ +matches: + - trigger: "nei" + replace: "nie" + word: true + propagate_case: true diff --git a/espanso/match/sub.yml b/espanso/match/sub.yml new file mode 100644 index 0000000..8c4d11f --- /dev/null +++ b/espanso/match/sub.yml @@ -0,0 +1,21 @@ +matches: + - trigger: ;;_0 + replace: β + - trigger: ;;_1 + replace: β + - trigger: ;;_2 + replace: β + - trigger: ;;_3 + replace: β + - trigger: ;;_4 + replace: β + - trigger: ;;_5 + replace: β
+ - trigger: ;;_6 + replace: β + - trigger: ;;_7 + replace: β + - trigger: ;;_8 + replace: β + - trigger: ;;_9 + replace: β diff --git a/espanso/match/sup.yml b/espanso/match/sup.yml new file mode 100644 index 0000000..b67dfb7 --- /dev/null +++ b/espanso/match/sup.yml @@ -0,0 +1,21 @@ +matches: + - trigger: ;;^0 + replace: β° + - trigger: ;;^1 + replace: ΒΉ + - trigger: ;;^2 + replace: Β² + - trigger: ;;^3 + replace: Β³ + - trigger: ;;^4 + replace: β΄ + - trigger: ;;^5 + replace: β΅ + - trigger: ;;^6 + replace: βΆ + - trigger: ;;^7 + replace: β· + - trigger: ;;^8 + replace: βΈ + - trigger: ;;^9 + replace: βΉ diff --git a/espanso/match/utils.yml b/espanso/match/utils.yml new file mode 100644 index 0000000..e43b7e6 --- /dev/null +++ b/espanso/match/utils.yml @@ -0,0 +1,20 @@ +matches: + - trigger: ;;now + replace: "{{time}}" + vars: + - name: time + type: date + params: + format: "%Y-%m-%d %H:%M:%S" + - trigger: ;;shrug + replace: Β―\_(γ)_/Β― + - trigger: ;;bshrug + replace: Β―\\\_(γ)_/Β― + - trigger: ;;lenny + replace: ( Ν‘Β° ΝΚ Ν‘Β°) + - trigger: ;;flip + replace: (β―Β°β‘Β°)β―οΈ΅ β»ββ» + - trigger: ;;unflip + replace: β¬ββ¬γ( ΒΊ _ ΒΊγ) + - trigger: ;;tm + replace: β’ diff --git a/espanso/update_from_assets.py b/espanso/update_from_assets.py new file mode 100644 index 0000000..e2b76d5 --- /dev/null +++ b/espanso/update_from_assets.py @@ -0,0 +1,20 @@ +import os + + +def generate(path, output_file, prefix): + files = [ + f for f in os.listdir(path) if os.path.isfile(os.path.join(path, f)) + ] + + with open(output_file, 'w') as f: + f.write('matches:\n') + + for file in files: + path_wo_ext = os.path.splitext(file)[0] + f.write(' - trigger: ;;' + prefix + path_wo_ext + '\n') + f.write( + ' image_path: $CONFIG/' + path + '/' + file + '\n') + + +if __name__ == '__main__': + generate('assets/img', 'match/img.yml', 'i') |
