Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| wiki:creating_personal_icons [2011/04/18 07:25] – external edit 127.0.0.1 | wiki:creating_personal_icons [2011/05/03 14:16] (current) – gutmensch | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | | + | This guide will help you create an extension with a wbar icon and/or menu entry for a command. |
| - | The extension is name zzzmymount.tcz | + | |
| - | ==== #Create a temporary dir to work from ==== | + | ==== Create a temporary dir to work from ==== |
| - | ^tc@box:~$ mkdir / | + | < |
| - | ==== #Write the script ==== | + | |
| - | Use your favorite editor (for me its nano) | + | ==== Write the script ==== |
| - | ^tc@box:/ | + | Use your favorite editor (for me its nano) |
| - | tc@box:/ | + | < |
| - | ^#!/bin/sh | + | tc@box:/ |
| - | |[[[ -d / | + | tc@box:/ |
| - | sudo mount -t cifs // | + | </ |
| - | Dont forget to make it executable | + | |
| - | ^tc@box:~$ chmod +x usr/ | + | < |
| - | ==== #Create the menu entry ==== | + | #!/bin/sh |
| + | [ -d / | ||
| + | sudo mount -t cifs // | ||
| + | </ | ||
| + | |||
| + | Dont forget to make it executable | ||
| + | < | ||
| + | tc@box:~$ chmod +x usr/ | ||
| + | </ | ||
| + | |||
| + | ==== Create the menu entry ==== | ||
| (note: even if you do not wish to have a menu entry, you must have a menu file to trigger the setup) | (note: even if you do not wish to have a menu entry, you must have a menu file to trigger the setup) | ||
| - | ^tc@box:/ | + | < |
| + | tc@box:/ | ||
| + | </ | ||
| If you do not want a menu entry: | If you do not want a menu entry: | ||
| - | ^tc@box:/ | + | < |
| + | tc@box:/ | ||
| + | </ | ||
| If you do: | If you do: | ||
| - | ^tc@box:/ | + | < |
| - | ^<JWM> | + | tc@box:/ |
| + | </ | ||
| + | < | ||
| + | <JWM> | ||
| <Program label=" | <Program label=" | ||
| - | </ | + | </ |
| + | </ | ||
| (note: capitalization is important in the tags) | (note: capitalization is important in the tags) | ||
| - | ==== #Create icon entry ==== | + | |
| - | ^tc@box:/ | + | ==== Create icon entry ==== |
| - | tc@box:/ | + | < |
| - | ^i: / | + | tc@box:/ |
| + | tc@box:/ | ||
| + | </ | ||
| + | < | ||
| + | i: / | ||
| t: Mount MP3s | t: Mount MP3s | ||
| c: / | c: / | ||
| - | + | </ | |
| - | ^ | + | |
| (note: make sure this file end in a newline. most editors do this automatically) | (note: make sure this file end in a newline. most editors do this automatically) | ||
| - | ==== # Add the icon ==== | + | |
| + | ==== Add the icon ==== | ||
| Search around the web for an icon you like. A good place to look is: | Search around the web for an icon you like. A good place to look is: | ||
| [[http:// | [[http:// | ||
| - | ^tc@box:/ | + | < |
| - | ==== #Check permissions and ownership ==== | + | tc@box:/ |
| - | ^tc@box:/ | + | </ |
| + | |||
| + | ==== Check permissions and ownership ====< | ||
| + | < | ||
| + | tc@box:/ | ||
| tc@box:/ | tc@box:/ | ||
| - | tc@box:/ | + | tc@box:/ |
| - | ==== # Create the exension | + | </ |
| - | (note: this requires squashfs-tools-4.0.tcz) | + | |
| - | ^tc@box:/ | + | ==== Create the exension |
| + | (note: this requires squashfs-tools-4.x.tcz) | ||
| + | < | ||
| + | tc@box:/ | ||
| + | </ | ||
| The extension will be in /tmp. You can now load it to test it out: | The extension will be in /tmp. You can now load it to test it out: | ||
| - | ^tc@box:/ | + | < |
| + | tc@box:/ | ||
| + | </ | ||
| The icon and menu should now be visible and usable. | The icon and menu should now be visible and usable. | ||
| Finally move the new extension into your personal repo: | Finally move the new extension into your personal repo: | ||
| - | ^tc@box:/ | + | < |
| + | tc@box:/ | ||
| + | </ | ||
| - | ==== # Troubleshooting ==== | + | ==== Troubleshooting ==== |
| If you are creating icons for a package, pre-existing freedesktop configuration files may conflict with custom wbar icon files and settings. Check for a pre-existing freedesktop configuration at: / | If you are creating icons for a package, pre-existing freedesktop configuration files may conflict with custom wbar icon files and settings. Check for a pre-existing freedesktop configuration at: / | ||
| For details on how to configure that file for Tiny Core, read [[iconmenuinfo]]. | For details on how to configure that file for Tiny Core, read [[iconmenuinfo]]. | ||