Skip to content

Instantly share code, notes, and snippets.

@mallomar
mallomar / 2-unified-auto-sync.lua
Created November 14, 2025 02:51
Automatically sync Reading Statistics, Vocabulary Builder and Highlight Sync at user configurable events (e.g. open, close, suspend) - requires HighlightSync plugin (https://github.com/gitalexcampos/koreader-Highlight-Sync)
-- 2-unified-autosync.lua - KOReader Auto Sync Patch
-- Place in /storage/emulated/0/koreader/patches/
--
-- Features:
-- - Syncs Highlightsync, Statistics, and Vocabulary Builder automatically
-- - Smart reload detection prevents infinite sync loops
-- - Immediate execution on close/suspend (no more missed syncs!)
-- - Fixed Vocabulary Builder module path
-- - 30-second cooldown between syncs (configurable)
-- - Configurable triggers (open, close, suspend)
@ebanDev
ebanDev / 2-foldercover.lua
Last active November 15, 2025 00:58
FolderCover patch for KOReader
--[[
FolderCover patch for KOReader (v3.0)
========================================
Features:
- Automatically detects cover images in directories
- Supports multiple image formats (jpg, jpeg, png, webp, gif)
- Configurable folder name and file count display with positioning options
- Rounded corners and proper image cropping
- Settings integration with BookInfoManager
@sebdelsol
sebdelsol / 2-filemanager-title-bar.lua
Last active November 10, 2025 02:42
KOReader userpatch to show info in the file browser title with autorefresh_time
-- **MOVED to https://github.com/sebdelsol/KOReader.patches**
-- KOReader userpatch to show info in the file manager title bar
-- based on https://gist.github.com/hius07/c53bc1ed00e0490cb1a0709c5ed6e735#file-2-fm-title-info-lua
-- Menu added in the File browser menu (1st icon) to change all the settings and rearrange the items in the title bar
-- Items added: Custom text, Brightness Level, Warmth Level, Up time, Time spent awake, Time in suspend
-- Settings added: Auto refresh clock, Custom separator, Number of spaces around separator, Show wifi when disabled, Show frontlight when off, Show path
-- Fix screen rotation (path was disappearing)
-- Arrange items reorders the items the menu