internal: refactor scheme

Also use a single file to store scheme data
This commit is contained in:
2 * r + 2 * t
2025-06-11 17:37:04 +10:00
parent a4f5138d41
commit dc855e1b01
6 changed files with 211 additions and 124 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
import subprocess
from argparse import Namespace
from caelestia import data
from caelestia.utils import paths
class Command:
@@ -25,7 +25,7 @@ class Command:
self.shell()
def shell(self, *args: list[str]) -> str:
return subprocess.check_output(["qs", "-p", data.c_data_dir / "shell", *args], text=True)
return subprocess.check_output(["qs", "-p", paths.c_data_dir / "shell", *args], text=True)
def print_ipc(self) -> None:
print(self.shell("ipc", "show"), end="")