1
0

Updated preset options ("features")

This commit is contained in:
2026-03-22 10:35:09 +01:00
parent 36014eb349
commit 993443be9e
6 changed files with 58 additions and 31 deletions

View File

@@ -0,0 +1,15 @@
export default {
id: 'hide-notices',
title: 'Hide home screen notices',
description: 'Hides the third row on the home screen that shows notices below your books, such as reading time, release notes for updates, and Kobo Plus or Store promotions.',
default: false,
postProcess(files) {
const items = files.find(f => f.path === '.adds/nm/items');
if (!items || typeof items.data !== 'string') return files;
items.data += '\nexperimental:hide_home_row3_enabled:1\n';
return files;
},
};

View File

@@ -0,0 +1,15 @@
export default {
id: 'hide-recommendations',
title: 'Hide home screen recommendations',
description: 'Hides the recommendations column next to your current read on the home screen. Useful if you are only reading one book at a time.',
default: false,
postProcess(files) {
const items = files.find(f => f.path === '.adds/nm/items');
if (!items || typeof items.data !== 'string') return files;
items.data += '\nexperimental:hide_home_row1col2_enabled:1\n';
return files;
},
};

View File

@@ -3,7 +3,7 @@ import JSZip from 'jszip';
export default {
id: 'koreader',
title: 'Install KOReader',
description: 'Installs KOReader, an alternative e-book reader with advanced features like PDF reflow, customizable fonts, and more.',
description: 'Installs KOReader, an alternative e-book reader with advanced features like PDF reflow, customizable fonts, and more. Installing this requires many files to be copied and that can take a bit, so please be patient when transferring this to your Kobo.',
default: false,
available: false, // set to true at runtime if KOReader assets exist
@@ -40,11 +40,14 @@ export default {
});
}
// Add NickelMenu launcher config
files.push({
path: '.adds/nm/koreader',
data: 'menu_item:main:KOReader:cmd_spawn:quiet:exec /mnt/onboard/.adds/koreader/koreader.sh\n',
});
return files;
},
postProcess(files) {
const items = files.find(f => f.path === '.adds/nm/items');
if (!items || typeof items.data !== 'string') return files;
items.data = 'menu_item:main:KOReader:cmd_spawn:quiet:exec /mnt/onboard/.adds/koreader/koreader.sh\n\n' + items.data;
return files;
},

View File

@@ -1,15 +0,0 @@
export default {
id: 'simplify-home',
title: 'Hide certain home screen elements',
description: 'If you are reading only one book, no recommendations will appear next to your current read, and third row on your homescreen with advertisements for Kobo Plus and the Kobo Store will be hidden. For minimalists who want fewer distractions.',
default: false,
postProcess(files) {
const items = files.find(f => f.path === '.adds/nm/items');
if (!items || typeof items.data !== 'string') return files;
items.data += '\nexperimental:hide_home_row1col2_enabled:1\nexperimental:hide_home_row3_enabled:1\n';
return files;
},
};

View File

@@ -4,7 +4,8 @@ import customMenu from './features/custom-menu/index.js';
import readerlyFonts from './features/readerly-fonts/index.js';
import koreader from './features/koreader/index.js';
import simplifyTabs from './features/simplify-tabs/index.js';
import simplifyHome from './features/simplify-home/index.js';
import hideRecommendations from './features/hide-recommendations/index.js';
import hideNotices from './features/hide-notices/index.js';
import screensaver from './features/screensaver/index.js';
/**
@@ -15,9 +16,10 @@ import screensaver from './features/screensaver/index.js';
export const ALL_FEATURES = [
customMenu,
readerlyFonts,
koreader,
simplifyTabs,
simplifyHome,
hideRecommendations,
hideNotices,
koreader,
screensaver,
];