feat(jellyfin): add remote playback and config plumbing

This commit is contained in:
2026-02-17 19:00:18 -08:00
parent a6a28f52f3
commit e38a1c945e
42 changed files with 5608 additions and 1013 deletions

View File

@@ -185,11 +185,14 @@ function showRofiIconMenu(
if (initialQuery) rofiArgs.push("-filter", initialQuery);
if (themePath) {
rofiArgs.push("-theme", themePath);
rofiArgs.push("-theme-str", "configuration { show-icons: true; }");
rofiArgs.push("-theme-str", "element-icon { enabled: true; size: 3em; }");
} else {
rofiArgs.push(
"-theme-str",
'configuration { font: "Noto Sans CJK JP Regular 8";}',
'configuration { font: "Noto Sans CJK JP Regular 8"; show-icons: true; }',
);
rofiArgs.push("-theme-str", "element-icon { enabled: true; size: 3em; }");
}
const lines = entries.map((entry) =>
@@ -197,11 +200,12 @@ function showRofiIconMenu(
? `${entry.label}\u0000icon\u001f${entry.iconPath}`
: entry.label
);
const input = Buffer.from(`${lines.join("\n")}\n`, "utf8");
const result = spawnSync(
"rofi",
rofiArgs,
{
input: `${lines.join("\n")}\n`,
input,
encoding: "utf8",
stdio: ["pipe", "pipe", "ignore"],
},