kitowall 6.1.0 → 6.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/core/live.js +17 -3
  2. package/package.json +1 -1
package/dist/core/live.js CHANGED
@@ -1864,11 +1864,9 @@ async function liveApply(opts) {
1864
1864
  '--video', item.file_path
1865
1865
  ];
1866
1866
  let coexistEntered = false;
1867
+ let snapshotId;
1867
1868
  try {
1868
1869
  await (0, exec_1.run)(bin, setVideoArgs, { timeoutMs: 120000 });
1869
- // Live mode owns wallpaper state: stop only Kitowall static wallpaper services.
1870
- await (0, workshop_1.workshopCoexistenceEnter)();
1871
- coexistEntered = true;
1872
1870
  // Keep live authority persistent across session restarts.
1873
1871
  if (integratedRendercoreMode()) {
1874
1872
  integratedRendercoreStart(bin);
@@ -1888,6 +1886,22 @@ async function liveApply(opts) {
1888
1886
  await runSystemctlUser(['start', 'kitsune-rendercore.service']);
1889
1887
  await waitForRendercoreServiceActive();
1890
1888
  }
1889
+ // Switch wallpaper authority only after rendercore is confirmed active.
1890
+ const coexist = await (0, workshop_1.workshopCoexistenceEnter)();
1891
+ coexistEntered = true;
1892
+ snapshotId = coexist.snapshot_id;
1893
+ (0, workshop_1.workshopSetActive)({
1894
+ mode: 'livewallpaper',
1895
+ started_at: Date.now(),
1896
+ snapshot_id: snapshotId,
1897
+ instances: {
1898
+ [monitor]: {
1899
+ id: item.id,
1900
+ backend: 'rendercore',
1901
+ type: 'video'
1902
+ }
1903
+ }
1904
+ });
1891
1905
  withLiveLock(() => {
1892
1906
  const current = readIndex();
1893
1907
  const updatedItems = current.items.map(v => (v.id === item.id ? { ...v, last_applied_at: nowUnix() } : v));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitowall",
3
- "version": "6.1.0",
3
+ "version": "6.3.0",
4
4
  "description": "CLI/daemon for Hyprland wallpapers using swww with pack-based rotation.",
5
5
  "repository": {
6
6
  "type": "git",