summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkkard2 <[email protected]>2023-07-11 09:10:19 +0200
committerkkard2 <[email protected]>2023-07-11 09:10:19 +0200
commitfa11cfc70e98574930f73884957891db44471af8 (patch)
tree6326a609d57dccb6c1b735a23c17912f759f968e
parentefa0d2fbaf917bf3cd2efd54166caa56d5fb30dc (diff)
parentf8d9727953637e992e220c91f0bba3ae78d9a567 (diff)
Merge branch 'main' of github.com:kkard2/.dotfiles
-rw-r--r--README.md5
-rw-r--r--espanso/.gitignore1
-rw-r--r--espanso/config/default.yml1
-rw-r--r--espanso/match/.gitignore1
-rw-r--r--espanso/match/base.yml1
-rw-r--r--espanso/match/emoji.yml39
-rw-r--r--espanso/match/gif.yml15
-rw-r--r--espanso/match/meth.yml13
-rw-r--r--espanso/match/spelling.yml5
-rw-r--r--espanso/match/sub.yml21
-rw-r--r--espanso/match/sup.yml21
-rw-r--r--espanso/match/utils.yml20
-rw-r--r--espanso/update_from_assets.py20
13 files changed, 163 insertions, 0 deletions
diff --git a/README.md b/README.md
index ddc5497..4e7a206 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,13 @@
# .dotfiles
config stuff (i need to move everything into one place)
+# running
+* run `./espanso/update_from_assets.py`
+
# links for this to work
* `~/.ideavimrc` -> `./idea/.ideavimrc`
+* `$XDG_CONFIG_HOME/espanso` -> `./espanso`
+* `./espanso/assets` -> `<ASSET_DIR>` (asset dir is sth that syncs media)
# windows
* run `./_windows/startup.ps1` on startup (`PowerShell.exe -WindowStyle Hidden -ExecutionPolicy Bypass -File <PATH>`)
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')