This commit is contained in:
2026-04-25 20:41:31 +02:00
parent 88c522e9d1
commit 12d3fdcaa5
26 changed files with 81 additions and 77 deletions
-23
View File
@@ -66,12 +66,6 @@ PKGS = {
"niri": NIRI_PKGS,
}
SESSION_NAME = {
"hyprland": "Hyprland",
"niri": "niri",
"default": "default",
}
PKGS_PATH = Path(__file__).resolve().parent.resolve() / "config"
DEST_PATH = Path.home().expanduser()
@@ -107,12 +101,6 @@ def unstow(pkg: str):
)
def switch(session: str):
subprocess.run(
[str(Path("~/.local/scripts/config-switch").expanduser()), session], check=True
)
def main():
if not check_deps():
exit(1)
@@ -147,17 +135,6 @@ def main():
if is_unstow:
return # No need to switch session if we're just unstowing
if args.package in SESSION_NAME:
session = SESSION_NAME[args.package]
else:
session = SESSION_NAME["default"]
try:
switch(session)
_log("INFO", f"Switched to session profile '{session}'.")
except subprocess.CalledProcessError as e:
_log("ERROR", f"Failed to switch session profile '{session}': {e}")
if __name__ == "__main__":
main()