Script Kit Logo
Script Kit
by John Lindquist

Scripts by kkoscielniak

Arc: Use default theme

kkoscielniak's avatar
Krystian Kościelniak
// Name: arc-default-theme
// Description: Pick an Arc Browser's Space and set its theme for all the other Arc Spaces. Tested with Arc v1.10.1.
// Note: This script modifies Arc Browser's `StorableSidebar.json` file. Use at your peril.
import "@johnlindquist/kit";
import { readdir, readFile, writeFile } from "node:fs/promises";
import { homedir } from "node:os";
import { join } from "node:path";
const { rimraf } = await npm("rimraf");
const psList = await npm("ps-list");
const ARC_LIBRARY_PATH = join(
homedir(),
"Library",
"Application Support",
"Arc"
);
async function listSidebarCacheFiles(): Promise<string[]> {
219 lines below • View full script