feat(theme,display,wm,power,make): add Anodized theme, editors, multi-monitor arrangement, power timeouts, bar compaction, and replace state preservation

- Replace deprecated AnodeDefault with dark-silvery Anodized default theme
- Add interactive theme editor, duplicator, and non-standard .xth importer to anode-themes (+ CLI --install)
- Fix multi-monitor dwm/lock/vkbd/EDID edge cases and integrate monitor arrangement + 15s revert into anode-display and anode-apply-display
- Gate anode-touchd behind WITH_TOUCHD=1 (keeping anode-vkbd unconditional) and add help/rebuild/install-touch/install-system targets to Makefile
- Add idle screen dim, lock, suspend, and suspend-on-AC timeout controls to anode-power and anode-display backed by power.conf + SIGUSR1
- Prevent lockscreen subtitle overflow and progressively compact status bar segments so focused window titles remain visible
- Preserve workspaces, active desktop, monitor state, floating/fullscreen states, and focus across anode-replace and restarts
This commit is contained in:
Luxferre committed 2026-11-27 08:31:35 +02:00
1 parent bb81541b42
commit 4ec3f59e02
40 files changed
+5843 -768

No files matched your search

+50
View File
@@ -51,6 +51,7 @@ def check_scripts() -> None:
script_files = [
"scripts/detect-env.sh",
"scripts/anode-apply-scale",
"scripts/anode-apply-display",
"scripts/anode-apply-theme",
"scripts/anode-sync-gtk-theme",
"scripts/anode-sync-dunst-theme",
@@ -91,7 +92,56 @@ def check_scripts() -> None:
assert not re.search(pat, code), f"{rel}:{lineno}: {desc}: {line}"
def test_optional_touchd_staged_install() -> None:
import tempfile
with tempfile.TemporaryDirectory() as tmp:
dest0 = os.path.join(tmp, "d0")
res0 = subprocess.run(
["make", "install", f"DESTDIR={dest0}", "PREFIX=/usr/local", "XSESSIONSDIR=/usr/share/xsessions"],
cwd=ROOT, capture_output=True, text=True,
)
assert res0.returncode == 0, f"default install failed: {res0.stderr}"
assert not os.path.exists(os.path.join(dest0, "usr", "local", "bin", "anode-touchd"))
assert os.path.isfile(os.path.join(dest0, "usr", "local", "bin", "anode-vkbd"))
assert os.path.isfile(os.path.join(dest0, "usr", "local", "bin", "anode-apply-display"))
assert os.path.isfile(os.path.join(dest0, "usr", "local", "share", "anode", "themes", "Anodized.xth"))
assert not os.path.exists(os.path.join(dest0, "usr", "local", "share", "anode", "themes", "AnodeDefault.xth"))
dest1 = os.path.join(tmp, "d1")
res1 = subprocess.run(
["make", "WITH_TOUCHD=1", "install", f"DESTDIR={dest1}", "PREFIX=/usr/local", "XSESSIONSDIR=/usr/share/xsessions"],
cwd=ROOT, capture_output=True, text=True,
)
assert res1.returncode == 0, f"WITH_TOUCHD=1 install failed: {res1.stderr}"
assert os.path.isfile(os.path.join(dest1, "usr", "local", "bin", "anode-touchd"))
assert os.path.isfile(os.path.join(dest1, "usr", "local", "bin", "anode-vkbd"))
hres = subprocess.run(["make", "help"], cwd=ROOT, capture_output=True, text=True)
assert hres.returncode == 0, f"make help failed: {hres.stderr}"
for kw in ("rebuild", "install-touch", "install-system", "WITH_TOUCHD"):
assert kw in hres.stdout, f"make help missing {kw!r}: {hres.stdout}"
dest2 = os.path.join(tmp, "d2")
res2 = subprocess.run(
["make", "install-touch", f"DESTDIR={dest2}", "PREFIX=/usr/local"],
cwd=ROOT, capture_output=True, text=True,
)
assert res2.returncode == 0, f"install-touch failed: {res2.stderr}"
assert os.path.isfile(os.path.join(dest2, "usr", "local", "bin", "anode-touchd"))
assert os.path.isfile(os.path.join(dest2, "usr", "local", "bin", "anode-vkbd"))
dest3 = os.path.join(tmp, "d3")
res3 = subprocess.run(
["make", "install-system", f"DESTDIR={dest3}", "PREFIX=/usr/local"],
cwd=ROOT, capture_output=True, text=True,
)
assert res3.returncode == 0, f"install-system failed: {res3.stderr}"
assert os.path.isfile(os.path.join(dest3, "usr", "share", "xsessions", "anode.desktop"))
assert not os.path.exists(os.path.join(dest3, "usr", "local", "bin", "anode-touchd"))
if __name__ == "__main__":
check_makefile()
check_scripts()
test_optional_touchd_staged_install()
print("test_posix_make: OK")