From 3ec7bf19b2be910ee28a89da9487c9725d86fe24 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Thu, 30 Oct 2025 14:08:15 +0100 Subject: i use linux btw --- kanata/chords.py | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100755 kanata/chords.py (limited to 'kanata/chords.py') 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() -- cgit v1.3.1