internal: refactor for packaging

Package using python-build, python-installer and hatch
This commit is contained in:
2 * r + 2 * t
2025-06-11 00:41:05 +10:00
parent 63d9381734
commit f663e6f690
42 changed files with 525 additions and 8 deletions
+18
View File
@@ -0,0 +1,18 @@
from argparse import Namespace
from caelestia.utils import hypr
class Command:
args: Namespace
def __init__(self, args: Namespace) -> None:
self.args = args
def run(self) -> None:
active_ws = hypr.message("activeworkspace")["id"]
if self.args.group:
hypr.dispatch(self.args.dispatcher, (self.args.workspace - 1) * 10 + active_ws % 10)
else:
hypr.dispatch(self.args.dispatcher, int((active_ws - 1) / 10) * 10 + self.args.workspace)