mirror of
https://github.com/nicoverbruggen/kobo-config.git
synced 2025-11-04 23:40:06 +01:00
14 lines
454 B
Bash
Executable File
14 lines
454 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Script to disable Kobo notebook functionality.
|
|
# This hides the Notebook tab on Kobo Libra Color.
|
|
|
|
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 |