Scriptlets
As part of the Universal Hotfix released with Winterbreak, a method of running programs was introduced: Scriptlets
Scriptlets are handled by the SH_Integration.
Essentially, any .sh
file in the Kindle’s documents
folder (/mnt/us/documents
) will be indexed as though it were a book and get added to the library.
From here, it can be clicked on to run it.
Scriptlet Metadata
How these Scriptlets appear can be customised in the file itself by adding specific lines to the start of the file:
#!/bin/sh
# Name: Test Script
# Author: Hackerdude
echo "Hello, World!"
When this Scriptlet is added to a Kindle, it will appear in the library with the name of Test Script
and the author of Hackerdude
.
Icons
Scriptlets can be given an Icon via the # Icon:
flag, the value can either be an absolute path to the image file, or a base64 encoded image as shown:
#!/bin/sh
# Name: KoReader
# Author: Hackerdude
# Icon: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAJYCAMAAACJuGjuAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAACXBIWXMAACISAAAiEgG/ZH/cAAACx1BMVEVMaXEAqJwAqJwAqJyI1tGK19IApp0AqJxTw72G1dEAqJwAqZkAqJwSqqgXtZuG0s4AqJwAqJwAp5wAra0AqJwAqJ0AqJwAqKKo4N8AqJwAqJwAs5kAqJwAqJsAqJwAqZ0AppwAqJwAqJwAqJwAqJ4AqZwAqZwAqJsAp5up390AqJwAqJwAqJwAqJwAqJ0Ap5wAqZwAqJwAqJwAqZ0AqJwAqJwAqJwAqJ2V3NYAqJwAqJwAqJwAqZwAp5wAqJyb29mD1NBVxcAAqZwAqJwAqJyE1MyL19Pf9POJ1tCI1NG86OWr4t6e39rP7+3Q7+0yuLC96OaF4Nbh9fSR2tWF1tFjycSE0s7///8AqJwOraFUxb3l9vU3u7GI1tEBqJz+//8Fqp4LrKESrqMZsab8/v4CqZ39/v7w+vn1/PsDqZ0Iq58+vbQ1urFAvrUgs6iA1M7t+fnj9fT4/fwEqZ530cpFwLfp9/bW8e8yubAUr6QWsKXr+PdYxr8rt60csq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k3I44zvyxyhQbO6OWh9CQTrGh2wLgPs2qcdNTpPGJIVNGsQc4oiQmWnoSPfIRNwyI/r/W2wWJvGOSSslgt9nTlIQwc/NHNYDyQrmQpYV3rfSnhO8+M6YSRi8MyhzFl6+mEbUeqAYJEZZtTbAUYLKrRfeR8IT4Oh05jj1H/Wg4GHE0CwdhO5F8Ym9K6M+x/7NT+XCk89IY8NZ07U6Ef098N2IFiRewOVDX7cBbXFoult7q5D+5DRzKl6UodWXjQQrG9ogNWbjsJTpzWG74rqqukLHj+FOVlTJmtCDxeBYNW7KXC1uuefxTWXNXfRgrSuZ8GgXzkbq7saN3aglNg7kREOUT00J65Zu0W69EpXrmLg2HCmgvpP72yVPosEi0K+MGt/z1omKjSRnfVHF3U+6gT3m96fKaPwGf3unbZuIMFKSFUfrJ7UsKUXbxLvn3E7lndNhxwwrA9TTONGjA/hrgIkWT+oD5bRPoG4NRXviSerjPK1nVSFTBgVzpRUWMSMv/4F+GC4Wfnj+yUj6Zz0AxWfCC3OmQfKl3fMkAkOnTAjIowprT/P/uMffv+n36xDkKX8El+/dn5t2Jxzubj4k45TVVn9mrrymtairHvn9AH9Hnl5ZMRQRkdhb7zxU1GvvPLzX3Ro9uxf/8QfvfozxfWqTwtm/+63oot/e+21Pp2a2DeMBRSQUvo/bv0iwN/NPbsAAAAASUVORK5CYII=
echo "Hello, World!"
Note that some converters use the wrong filetype when generating the base64 string, ensure the filetype matches the actual data
Hooks
The # UseHooks
flag allows Scriptlets to have functions that are called when certain events happen to the Scriptlet, as opposed to the entire script being called once when it is ran:
#!/bin/sh
# Name: Test For Evnets
# Author: HackerDude
# UseHooks
on_install() {
echo "on_install called!" >> /mnt/us/test.log
}
on_remove() {
echo "on_remove called!" >> /mnt/us/test.log
}
on_run() {
echo "on_run called!" >> /mnt/us/test.log
}
DontUseFbink
By default, the script’s stdout and stderr are both piped to FBink to display on the Kindle, if you do not want this behaviour, then add the # DontUseFBInk
flag to your script as such:
#!/bin/sh
# Name: Silent Script
# Author: HackerDude
# DontUseFBInk
echo "A user won't see this"
Examples
For more Scriptlet examples or to share your own, please check the scriptlets
channel in the Kindle Modding Community Discord server.