kitowall 1.0.1 → 1.0.2

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/init.js +21 -0
  2. package/package.json +1 -1
package/dist/core/init.js CHANGED
@@ -129,10 +129,31 @@ RestartSec=1
129
129
  WantedBy=graphical-session.target
130
130
  `.trimStart();
131
131
  (0, node_fs_1.writeFileSync)((0, node_path_1.join)(userDir, 'kitowall-watch.service'), kitowallWatchService, 'utf8');
132
+ // 4) kitowall-login-apply.service (apply once on login to avoid gray background)
133
+ const loginApplyExec = `/bin/sh -lc ${esc(`sleep 2; ${nodePath} ${esc(cliPath)} ${esc('rotate-now')} ${esc('--namespace')} ${esc(ns)} ${esc('--force')}`)}`;
134
+ const kitowallLoginApplyService = `
135
+ [Unit]
136
+ Description=Kitowall apply wallpapers on session start
137
+ After=graphical-session.target swww-daemon@${ns}.service
138
+ Requires=swww-daemon@${ns}.service
139
+ PartOf=graphical-session.target
140
+
141
+ [Service]
142
+ Type=oneshot
143
+ Environment=PATH=${pathEnv}
144
+ Environment=WAYLAND_DISPLAY=${waylandDisplay}
145
+ Environment=XDG_RUNTIME_DIR=${xdgRuntimeDir}
146
+ ExecStart=${loginApplyExec}
147
+
148
+ [Install]
149
+ WantedBy=graphical-session.target
150
+ `.trimStart();
151
+ (0, node_fs_1.writeFileSync)((0, node_path_1.join)(userDir, 'kitowall-login-apply.service'), kitowallLoginApplyService, 'utf8');
132
152
  // Activación
133
153
  await (0, exec_1.run)('systemctl', ['--user', 'daemon-reload']);
134
154
  await (0, exec_1.run)('systemctl', ['--user', 'enable', '--now', `swww-daemon@${ns}.service`]);
135
155
  await (0, exec_1.run)('systemctl', ['--user', 'enable', '--now', 'kitowall-watch.service']);
156
+ await (0, exec_1.run)('systemctl', ['--user', 'enable', '--now', 'kitowall-login-apply.service']);
136
157
  // Si quieres: aplicar una vez ahora mismo
137
158
  if (opts.apply) {
138
159
  const controller = new controller_1.Controller(config, state);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitowall",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "CLI/daemon for Hyprland wallpapers using swww with pack-based rotation.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "type": "commonjs",