View Single Post
Old 04-03-2018, 04:08 AM   #201
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by ItalianUruguayan View Post
Thank you very much

And is there any way to specify the icon of each entry? I would like to add some icons to them.
You can. But you have to create the menu entries yourself. This is an example:
Code:
selection=$($ksmroot/kobomenu.sh give_me_coffee:gear.png give_me_tea:execute.png )
case $selection in
  give_me_coffee )
   // Do here something, for instance call a script that orders coffee.
  ;;
  give_me_tea )
   // Do here something, for instance call a script that orders tea.
  ;;
esac
You can only use icons that are embedded in the binary file "kobomenu." You can see a list of all available icons by calling menu_icons.sh (Call it by selecting "scripts" > "tests.msh" > "menu icons.sh"; or similar. I do not have my reader with me, and cannot remember exactly.)
tshering is offline   Reply With Quote