WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Step-by-step instructions how to add or remove wbar entries (tcl-3.3)  (Read 27076 times)

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Step-by-step instructions how to add or remove wbar entries for tc 3.3 or later

To add stuff:

1. Create a calling script eg myscript (no extension) for your app/function and drop this script (or a hyperlink to your app or script)  in /tce/ondemand. (If you have trouble finding /tce/ondemand, it is created with any ondemand items.)

2. Create an icon with exact matching name, except for the extension, eg myscript.img. Drop this icon (or a hyperlink to it) in /tce/ondemand. Make sure the icon will be available when wbar starts, and that the name is an exact match, or wbar will not start at all.

Note that anything you add like this, will also appear in the window manager's right-click ondemand menu.

3. Restart X to have the new entries effected.

To remove entries which you have added before:

Start AppsAudit, and use OnDemand. Simply click on the entries in the right column to blow them away.

To hide icons for items you added, or any icons:

Start wbarconfig, and click on entries in the left column. To unhide them click on entries in the right column.
« Last Edit: November 24, 2010, 03:46:39 PM by jur »

Offline vishrut_n_shah

  • Newbie
  • *
  • Posts: 26
Re: Step-by-step instructions how to hack wbar to remove (or add) entries
« Reply #1 on: October 16, 2010, 02:50:06 AM »

Thanks a lot... :D :D :D :D
There is never a wrong time to do right things !!

Offline gd102

  • Newbie
  • *
  • Posts: 1
Re: Step-by-step instructions how to hack wbar to remove (or add) entries
« Reply #2 on: November 01, 2010, 12:48:22 AM »
Thanks :D

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: Step-by-step instructions how to hack wbar to remove (or add) entries
« Reply #3 on: November 01, 2010, 02:51:07 AM »
The original instructions have been obsoleted by the new tools in tcl-3.3. The first post has been updated with current instructions.
« Last Edit: November 05, 2010, 08:44:51 PM by jur »

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: Step-by-step instructions how to add or remove wbar entries (tcl-3.3)
« Reply #4 on: January 02, 2011, 05:07:46 PM »
Can I change the icon of an app which doesn't use ondemand?

Eventually I would like to have two icons calling the same app, but with different options and icons.

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: Step-by-step instructions how to add or remove wbar entries (tcl-3.3)
« Reply #5 on: January 02, 2011, 08:27:30 PM »
Apps which are not OnDemand use the built-in app icon - you can't selectively change the icon for these.

Perhaps it would be best to make wrapper scripts for each case for your particular app and drop these in tce/ondemand as described in the first post. I do exactly that for rox filer - I have two icons in wbar, one for normal use and a red one for sudo.

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: Step-by-step instructions how to add or remove wbar entries (tcl-3.3)
« Reply #6 on: January 02, 2011, 09:13:00 PM »
And if I want to create an extension including two icons? I don't think I can squash the ondemand dir, is there no alternative?

Offline Raschid

  • Newbie
  • *
  • Posts: 10
Re: Step-by-step instructions how to add or remove wbar entries (tcl-3.3)
« Reply #7 on: February 26, 2012, 08:05:04 AM »
Does this still work for TC4.x?
Try as I might I cannot get it to work:
- script and icon with matching names in /tce/ondemand
- script appears in rightclick/ondemand menu and works as advertised
- icon does not show in wbar

any ideas?

thx,
   raschid

nomer

  • Guest
Re: Step-by-step instructions how to add or remove wbar entries (tcl-3.3)
« Reply #8 on: March 05, 2012, 08:40:40 PM »
&Raschid
It works for me running TinyCore 4.1
What does this command give you?
Quote
ls `cat /opt/.tce_dir`/ondemand
Here is what it looks like on my system:
Quote
asunder      calc.img   homebank            notify-python-2.7   tango-icon-theme  wine
asunder.img  compiletc  inkscape-tutorials  obconf              wesnoth           xarchiver
boost        geany      intltool            scons               wesnoth.img       xarchiver.img
calc         geany.img  libglade            squashfs-tools-4.x  wget
"calc" and "calc.img" are the custom items that I've created. Also "wesnoth.img" is a image that was placed by me instead of TC.

Offline Solev

  • Newbie
  • *
  • Posts: 1
Re: Step-by-step instructions how to add or remove wbar entries (tcl-3.3)
« Reply #9 on: March 09, 2012, 09:22:48 AM »
Same problem than Raschid : no icon in wbar.

An idea ?

Thanks.

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
Re: Step-by-step instructions how to add or remove wbar entries (tcl-3.3)
« Reply #10 on: March 09, 2012, 01:29:45 PM »
Can I change the icon of an app which doesn't use ondemand?

Eventually I would like to have two icons calling the same app, but with different options and icons.
if there is extension which has a name for example extension.tcz
and which has icon /usr/local/share/pixmaps/extension.png
and desktop-file /usr/local/share/application/extension.desktop

to change its icon should do the following
# 1. make exchange folder in your backup directory /opt
mkdir /opt/exchange
# 2. copy any icon that you want to replace the extension.png to /opt/exchange folder
cp -f any_icon.png /opt/exchange/extension.png
# 3. add string cp -f /opt/exchange/extension.png /usr/local/share/pixmaps to /opt/bootlocal.sh
echo "cp -f /opt/exchange/extension.png /usr/local/share/pixmaps" >> /opt/bootlocal.sh

to add a second icon should do the following
# 1. copy any icon that you want make as second icon to /opt/exchange named it as extension-2.png
cp -f any_icon.png /opt/exchange/extension-2.png
# 2. copy existing extension.desktop following by link to /opt/exchange named it as extension-2.desktop
cp -H /usr/local/share/applications/extension.desktop /opt/exchange/extension-2.desktop
# 3. add string cp -f /opt/exchange/extension-2.png /usr/local/share/pixmaps to /opt/bootlocal.sh
echo "cp -f /opt/exchange/extension-2.png /usr/local/share/pixmaps" >> /opt/bootlocal.sh
# 4. add string cp -f /opt/exchange/extension-2.desktop /usr/local/share/applications to /opt/bootlocal.sh
echo "cp -f /opt/exchange/extension-2.desktop /usr/local/share/applications" >> /opt/bootlocal.sh

now should make the following changes in the file /opt/exchange/extension-2.desktop
replace all entries extension.png to extension-2.png
change entry Icon=extension to Icon=extension-2
make sure that following line is present
X-FullPathIcon=/usr/local/share/pixmaps/extension-2.png
add needed options to line Exec=extension

and finally
make sure that /opt/exchange will be backed up
save changes by command
filetool.sh -b
or do reboot with backup
and see results

guaranteed work in version tc4+
about tc3+ does not know
« Last Edit: March 10, 2012, 12:39:29 PM by AbNoRMiS »
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: Step-by-step instructions how to add or remove wbar entries (tcl-3.3)
« Reply #11 on: March 09, 2012, 02:20:59 PM »
Abnormis: There's something strange with your text format. I can't read this in neither Chrome nor dillo.

Technically: not everyone has persistant opt.

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
Re: Step-by-step instructions how to add or remove wbar entries (tcl-3.3)
« Reply #12 on: March 09, 2012, 02:42:03 PM »
sorry, this is because of too long lines
monitor 24" :)
thanks, now will correct
Technically: not everyone has persistant opt.
this also can be simply solved
echo "opt/exchange" >> /opt/.filetool.lst
also now correct
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Step-by-step instructions how to add or remove wbar entries (tcl-3.3)
« Reply #13 on: March 09, 2012, 02:53:59 PM »
All of opt is backed up with V4.
There is no need to add it to .filetool.lst.

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: Step-by-step instructions how to add or remove wbar entries (tcl-3.3)
« Reply #14 on: March 09, 2012, 02:57:26 PM »
Oh, shit, I didn't know. Thanks