Add menu item to disable notebook

This commit is contained in:
2025-09-02 14:35:46 +02:00
parent f13f3a18d2
commit cf38a6b194
2 changed files with 23 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/sh
# Script to disable Kobo notebook functionality
CONFIG_FILE="/mnt/onboard/.kobo/Kobo/Kobo eReader.conf"
# Replace StylusUsageDetected setting if it exists
if grep -q "^StylusUsageDetected=" "$CONFIG_FILE"; then
sed -i 's/^StylusUsageDetected=.*/StylusUsageDetected=false/' "$CONFIG_FILE"
echo "Notebook tab disabled."
else
echo "Could not find StylusUsageDetected. Skipped."
fi