WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: wbar suggestion  (Read 3222 times)

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
wbar suggestion
« on: September 11, 2009, 03: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  :)
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: wbar suggestion
« Reply #1 on: September 12, 2009, 02:26:06 AM »
Not sure I follow. /usr/local is empty. PPI mounts there and if it were prepopulated it would not be available.
10+ Years Contributing to Linux Open Source Projects.

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: wbar suggestion
« Reply #2 on: September 12, 2009, 12:14:25 PM »
wbar.sh could be used

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: wbar suggestion
« Reply #3 on: September 12, 2009, 11:17:34 PM »
Quote
wbar.sh could be used
That's true, does it allow args to be passed to wbar? ie -vbar -pos...
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline Lee

  • Hero Member
  • *****
  • Posts: 645
    • My Core wiki user page
Re: wbar suggestion
« Reply #4 on: September 13, 2009, 12:32:18 AM »
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.
32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: wbar suggestion
« Reply #5 on: September 14, 2009, 12:30:54 PM »
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
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: wbar suggestion
« Reply #6 on: September 14, 2009, 01:29:14 PM »
I have a solution for the next cut, using .wbar file in your home directory.
There just specify any of the wbar config options.
10+ Years Contributing to Linux Open Source Projects.

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: wbar suggestion
« Reply #7 on: September 14, 2009, 01:30:50 PM »
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  :)
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline Lee

  • Hero Member
  • *****
  • Posts: 645
    • My Core wiki user page
Re: wbar suggestion
« Reply #8 on: September 14, 2009, 01:50:49 PM »
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)
32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar