summaryrefslogtreecommitdiff
path: root/kanata/chords.py
diff options
context:
space:
mode:
authorkkard2 <[email protected]>2025-10-30 14:08:15 +0100
committerkkard2 <[email protected]>2026-03-07 14:21:55 +0100
commit3ec7bf19b2be910ee28a89da9487c9725d86fe24 (patch)
treee5b6807a8ea281745a439a2128212e160520ae60 /kanata/chords.py
parenta1b2c814e43161401889d7e0abdea2f46c7ed0ef (diff)
i use linux btw
Diffstat (limited to 'kanata/chords.py')
-rwxr-xr-xkanata/chords.py37
1 files changed, 0 insertions, 37 deletions
diff --git a/kanata/chords.py b/kanata/chords.py
deleted file mode 100755
index b61dd64..0000000
--- a/kanata/chords.py
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/python
-
-chord_data = {
- "praw": "prawdopodobnie",
- "pro": "probably",
- "com": "co masz na myśli",
- "spr": "sprawiedliwe",
- "spa": "spać mi się chce",
-}
-
-output = "(defchordsv2-experimental\n"
-
-for keys, macro in chord_data.items():
- keys_formatted = " ".join(keys)
- first_char_macro = macro[0]
-
- # The rest of the macro characters are used in (unshift x)
- macro_formatted = ""
-
- for char in macro[1:]:
- if char == " ":
- macro_formatted += "(unshift spc) "
- else:
- macro_formatted += f"(unicode {char}) "
-
- macro_formatted = macro_formatted.strip()
- release = "first-release"
-
- chord_line = f" ({keys_formatted}) (macro {first_char_macro} {
- macro_formatted}) 75 {release} (gaming)\n"
- output += chord_line
-
-output += ")\n"
-
-file = open("chords.kbd", "w")
-file.write(output)
-file.close()