mirror of
https://github.com/nicoverbruggen/kobo-config.git
synced 2025-11-05 07:50:05 +01:00
Add menu item to disable notebook
This commit is contained in:
13
.adds/scripts/disable_notebook.sh
Executable file
13
.adds/scripts/disable_notebook.sh
Executable 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
|
||||
Reference in New Issue
Block a user