mirror of
https://github.com/nicoverbruggen/kobo-config.git
synced 2025-11-05 07:50:05 +01:00
Add KF fonts, toggle for optimize legibility
This commit is contained in:
@@ -12,7 +12,10 @@ menu_item :main :Screensaver :cmd_output :500 :quiet :test -e /mnt/onboard/.kobo
|
||||
menu_item :main :Screenshots :nickel_setting :toggle :screenshots
|
||||
menu_item :main :Auto USB :nickel_setting :toggle :auto_usb_gadget
|
||||
|
||||
menu_item :main :Disable Pencil :cmd_output :500 :/mnt/onboard/.adds/scripts/disable_notebook.sh
|
||||
menu_item :main :Hide Notebook :cmd_output :500 :/mnt/onboard/.adds/scripts/disable_notebook.sh
|
||||
chain_success :power :reboot
|
||||
|
||||
menu_item :main :Toggle Legibility :cmd_output :500 :/mnt/onboard/.adds/scripts/toggle_wk_rendering.sh
|
||||
chain_success :power :reboot
|
||||
|
||||
menu_item :main :IP Address :cmd_output :500:/sbin/ifconfig | /usr/bin/awk '/inet addr/{print substr($2,6)}'
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Script to disable Kobo notebook functionality
|
||||
# Script to disable Kobo notebook functionality.
|
||||
# This hides the Notebook tab on Kobo Libra Color.
|
||||
|
||||
CONFIG_FILE="/mnt/onboard/.kobo/Kobo/Kobo eReader.conf"
|
||||
|
||||
|
||||
21
.adds/scripts/toggle_wk_rendering.sh
Normal file
21
.adds/scripts/toggle_wk_rendering.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Script to toggle webkitTextRendering setting.
|
||||
# This causes certain font features to work in kepub files.
|
||||
|
||||
CONFIG_FILE="/mnt/onboard/.kobo/Kobo/Kobo eReader.conf"
|
||||
|
||||
# Check if the setting exists
|
||||
if grep -q "^webkitTextRendering=optimizeLegibility" "$CONFIG_FILE"; then
|
||||
# Remove the line
|
||||
sed -i '/^webkitTextRendering=optimizeLegibility/d' "$CONFIG_FILE"
|
||||
echo "WebKit text rendering disabled."
|
||||
else
|
||||
# Add the line below [Reading] section
|
||||
if grep -q "^\[Reading\]" "$CONFIG_FILE"; then
|
||||
sed -i '/^\[Reading\]/a webkitTextRendering=optimizeLegibility' "$CONFIG_FILE"
|
||||
echo "WebKit text rendering enabled."
|
||||
else
|
||||
echo "Could not find [Reading] section. Skipped."
|
||||
fi
|
||||
fi
|
||||
BIN
fonts/KC_Charter-Bold.ttf → fonts/KF_Charter-Bold.ttf
Normal file → Executable file
BIN
fonts/KC_Charter-Bold.ttf → fonts/KF_Charter-Bold.ttf
Normal file → Executable file
Binary file not shown.
BIN
fonts/KC_Charter-BoldItalic.ttf → fonts/KF_Charter-BoldItalic.ttf
Normal file → Executable file
BIN
fonts/KC_Charter-BoldItalic.ttf → fonts/KF_Charter-BoldItalic.ttf
Normal file → Executable file
Binary file not shown.
BIN
fonts/KC_Charter-Italic.ttf → fonts/KF_Charter-Italic.ttf
Normal file → Executable file
BIN
fonts/KC_Charter-Italic.ttf → fonts/KF_Charter-Italic.ttf
Normal file → Executable file
Binary file not shown.
BIN
fonts/KC_Charter-Roman.ttf → fonts/KF_Charter-Regular.ttf
Normal file → Executable file
BIN
fonts/KC_Charter-Roman.ttf → fonts/KF_Charter-Regular.ttf
Normal file → Executable file
Binary file not shown.
BIN
fonts/KF_Garamond-Bold.ttf
Executable file
BIN
fonts/KF_Garamond-Bold.ttf
Executable file
Binary file not shown.
BIN
fonts/KF_Garamond-BoldItalic.ttf
Executable file
BIN
fonts/KF_Garamond-BoldItalic.ttf
Executable file
Binary file not shown.
BIN
fonts/KF_Garamond-Italic.ttf
Executable file
BIN
fonts/KF_Garamond-Italic.ttf
Executable file
Binary file not shown.
BIN
fonts/KF_Garamond-Regular.ttf
Executable file
BIN
fonts/KF_Garamond-Regular.ttf
Executable file
Binary file not shown.
BIN
fonts/KF_Jost-Bold.ttf
Executable file
BIN
fonts/KF_Jost-Bold.ttf
Executable file
Binary file not shown.
BIN
fonts/KF_Jost-BoldItalic.ttf
Executable file
BIN
fonts/KF_Jost-BoldItalic.ttf
Executable file
Binary file not shown.
BIN
fonts/KF_Jost-Italic.ttf
Executable file
BIN
fonts/KF_Jost-Italic.ttf
Executable file
Binary file not shown.
BIN
fonts/KF_Jost-Regular.ttf
Executable file
BIN
fonts/KF_Jost-Regular.ttf
Executable file
Binary file not shown.
Reference in New Issue
Block a user