Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: robc on September 11, 2009, 12:09:23 PM

Title: wbar suggestion
Post by: robc on September 11, 2009, 12:09:23 PM
Could the file /usr/share/wbar/dot.wbar be changed to a symlink to /usr/local/tce.wbar?

This way a user can simply type in wbar in a command prompt if it is not running and still have all the applications loaded in the tray. It just removes the requirement of specifying the config file, plus it will free up a few bytes  :)
Title: Re: wbar suggestion
Post by: roberts on September 11, 2009, 11:26:06 PM
Not sure I follow. /usr/local is empty. PPI mounts there and if it were prepopulated it would not be available.
Title: Re: wbar suggestion
Post by: ^thehatsrule^ on September 12, 2009, 09:14:25 AM
wbar.sh could be used
Title: Re: wbar suggestion
Post by: robc on September 12, 2009, 08:17:34 PM
Quote
wbar.sh could be used
That's true, does it allow args to be passed to wbar? ie -vbar -pos...
Title: Re: wbar suggestion
Post by: Lee on September 12, 2009, 09:32:18 PM
Quote
Quote
wbar.sh could be used
That's true, does it allow args to be passed to wbar? ie -vbar -pos...

I'm still kicking around the idea of storing the args for wbar in specially formatted "comments" at the top of /usr/local/tce.wbar.  There is already a single comment line there and an additional comment line that I added did not get overwritten when loading an extension that adds an icon to the bar.  I should be able to put whatever I want in there and have wbar.sh parse for args to be passed to wbar.  A tce/tcz that replaces wbar.sh shouldn't be too hard to throw together - in my vast spare time.
Title: Re: wbar suggestion
Post by: robc on September 14, 2009, 09:30:54 AM
Quote
I'm still kicking around the idea of storing the args for wbar in specially formatted "comments" at the top of /usr/local/tce.wbar.
I think it would be a lot easier to setup an environment variable or create a file like /etc/sysconfig/iconoptions and put the args in there.
Using the sysconfig file would probably be the easiest to support/modify.

Or this 1 line could be added to bootlocal.sh:
Code: [Select]
sed -i 's!-bpress!-bpress -vbar -pos right!' /usr/bin/wbar.sh
Title: Re: wbar suggestion
Post by: roberts on September 14, 2009, 10:29:14 AM
I have a solution for the next cut, using .wbar file in your home directory.
There just specify any of the wbar config options.
Title: Re: wbar suggestion
Post by: robc on September 14, 2009, 10:30:50 AM
Quote
I have a solution for the next cut, using .wbar file in your home directory.
There just specify any of the wbar config options.
Thank you  :)
Title: Re: wbar suggestion
Post by: Lee on September 14, 2009, 10:50:49 AM
Quote
I have a solution for the next cut, using .wbar file in your home directory.
There just specify any of the wbar config options.

Good things come to those who wait.  :)

Thanks Robert (and to all who have put thought into these things)