Page 1 of 3

Wbar Configuration Centre - v 07

Posted: Wed 10 Feb 2010, 09:07
by trio
Get wbar and dependencies and instructions here http://puppylinux.org/wikka/WbarInstall

Some of the code used is adapted from ptray GUI (thx Zigbert). Made with puppy 431 - JWM

Run fixmenus & restart window manager after install (refresh menus) for puppy version below 4.3.x. Menu item under desktop group

put a wbar line in /root/.xinitrc that points to "/usr/local/wbarcc/wbarexec" or you execute wbar from /root/Startup, you can make a script in /root/Startup or point your startup script to /usr/local/wbarcc/wbarexec. I am not maintaining a thread about "wbar how to". You had to have a running wbar before you install this WBARCC. I took out the pinstall script.

At first run, it will load default settings for icon size & gap, position, bar margin and transparency. So, you need to configure those first before you click apply for the first time. If not, there will be no harm done, but only the default config will be applied.

Also at first run, this wbarcc will create a /root/.wbar.bak (if you don't have one already). This bak file will be used by "revert" function, if something goes wrong (but the original /root/.wbar file has to be a working configs already). Note: icon size & gap, position, bar margin and transparency will not be the original ones but the current ones.

Version 01 - Alpha (for testing), only Launcher Icons config
Version 02 - added Bar & font Config
Version 02.1 - Bugfix release
Version 03 - start/stop button added
Version 04 - icon & gap size, bar margin from screen edge, revert button
- Bugfix: if you put many "#" in original /root/.wbar manually
- Bugfix: if you have command like "c:/usr/local/bin/bla -start"
Version 05 - Vertical right & left position, Load and save profiles
Version 05.1 - Bugfix: when looking for command without path, eq c:firefox
Version 05.2 - Bugfix: hardcoded the /usr/local/wbarcc/createicon in wbarcc
Version 05.3 - Bugfix: sorting & numbering lines in temp file
Version 05.4 - Bugfix: not recognizing if there is a dash "-" profile name
Version 06 final: Named "final" to differ from the v06 test
- added Run multiple profiles at the same time
- few minor cosmetics changes
Version 07: replace up & down button with drag & release action

Note: the whole wbar will not start, if you put wrong path of icon or icon is a symlink

read this post for reference
http://www.murga-linux.com/puppy/viewto ... 1&start=45

Please report for bugs, and enjoy :wink:

Posted: Wed 10 Feb 2010, 16:02
by pri
owh.... an improvement to jwm....

i ll like this trio......


.............................................................
marked...... so i can read it later
.............................................................

Posted: Wed 10 Feb 2010, 22:08
by DMcCunney
pri wrote:owh.... an improvement to jwm....

i ll like this trio......
It's independent of JWM. It can be used in IceWM, Xfce4, or just about any other window manager. (If you use Xfce4, you'll need to pass it the -above-window parameter to get it to display.)
______
Dennis

Posted: Wed 10 Feb 2010, 23:34
by pri
this menu wbar work fine...

DMcCunney :

this is i mean about improvement to jwm :

http://puppylinux.org/wikka/WbarInstall
EDIT 2:
Tip for JWM users
If you are using JWM (default in Puppy) then the wbar may open in a window (see attached image)
you will notice this window in the taskbar.
he he he......

trio :
how about making menu automaticaly from /usr/share/aplications ? then user just need to pick an icon for it, and menu insert icon when cliked automaticaly to /usr/local/lib/X11/pixmaps.

Posted: Thu 11 Feb 2010, 10:08
by sc0ttman
This looks great, I was in the middle middle of making something similar (but much worse!).. :D

I'd love to add this my installs, as I use wbar a lot...

I added wbar to Puppy Arcade, and due to the total width of the bar, it messes the desktop up in resolutions under 1024x768... So I'd like to make a few changes to how wbar is loaded in the next version.. This tool looks perfect! :D Great work...

I'm not on Puppy right now, so can't test... But I have a few questions:

Does this script handle how wbar is started? Or can it only be used after the normal install is completed, (after it's added it to /root/.xinitrc or /root/Startup)??

Does it allow you to add your own icons and apps? Or read them from a fixed list or directory such as /usr/local/lib/X11/pixmaps ?

I would love to be able to do the following:

1. add my own apps and icons to the bar, and rename/sort them
2. configure the bar itself (position, icon size, etc)
3. choose whether or not to load it automatically at startup

Sorry for all the questions, but some answers would be lovely!

Posted: Thu 11 Feb 2010, 14:09
by trio
Version 02 - uploaded (main post)

Pri:
You can also create with whatever icon path and whatever command easily, just browse to the path and click. I don't think I want to make it auto.

Scottman:
1. This pet includes pinstall.sh which will change the wbar line in /root/.xinitrc to /usr/local/wbarcc/wbarexec
2. Yes, it allows you to add/delete available icons to use and also add/remove/move-up/move-down current (showed) icons list
3. You can also create with whatever icon path and whatever command easily, just browse to the path and click. You want to go to /usr/local/lib/X11/pixmaps, just browse there
4. Your wishes:
- Start/stop button - will be in v 03
- Icon and gap size - will be in v 03
- add my own apps and icons to the bar, and rename/sort them - already there in v 02 (already answered above)

Cheers

Posted: Thu 11 Feb 2010, 15:23
by trio
Version 02.1 uploaded - Bugfix release

Posted: Thu 11 Feb 2010, 16:00
by `f00
(enlightenment addendum to Dennis' post above) ..also for e16 (don't believe shelves were available pre-e17, shelves may be a trifle tricky to set up properly anyway if I recall rightly ;) ) use that above-desk option as well if you want wbar on the various e-desk(s), without that option it'll only show on the one desk .. fine as-is in afterstep :)

mm, 'important' .. probably jumpsize, #animation steps, alpha(s) and filtertype/tint (only alphas and filtertype/tint really, most users stick to one basic look) .. throw in profiles for customizing to various bg's and/or wms :lol: erm, may be better to put in /root/Startup as a few wms may not use .xinitrc (like wmx)...

Posted: Thu 11 Feb 2010, 16:01
by trio
Version 03 uploaded - added start/stop button

Posted: Thu 11 Feb 2010, 19:22
by DMcCunney
pri wrote:this menu wbar work fine...

DMcCunney :

this is i mean about improvement to jwm :

http://puppylinux.org/wikka/WbarInstall
EDIT 2:
Tip for JWM users
If you are using JWM (default in Puppy) then the wbar may open in a window (see attached image)
you will notice this window in the taskbar.
Doesn't matter. Those are instructions assuming JWM as the window manager, but wbar can be used in other WMs as well.

I wound up rewriting part of .xinitrc to make things like wbar or idesk only load if I ran a WM in which I wanted them, instead of always run when X-Windows was started. I detailed my approach in the HOW-TO, here:
http://www.murga-linux.com/puppy/viewto ... 80&t=39119
______
Dennis

Posted: Thu 11 Feb 2010, 19:25
by DMcCunney
`f00 wrote:(enlightenment addendum to Dennis' post above) ..also for e16 (don't believe shelves were available pre-e17, shelves may be a trifle tricky to set up properly anyway if I recall rightly ;) ) use that above-desk option as well if you want wbar on the various e-desk(s), without that option it'll only show on the one desk .. fine as-is in afterstep :)
I haven't tried using it in Enlightenment, so that's good to know.

I don't bother in Xfce4, since I can do essentially the same thing with an Xfce4 panel.
______
Dennis

Posted: Thu 11 Feb 2010, 22:52
by sc0ttman
Thanks trio.. Still not on a Puppy install, but really wanna test it!
It sounds great...

One more feature request though (sorry)...

It would be really lovely if you could preview (for 10 seconds or whatever) the new wbar config - because if wbar is too tall or wide it messes up the desktop and if any icons aren't found, wbar won't load at all (as I'm sure you know)..

When editing wbar, I've often tested changes by starting wbar in the terminal to read for any error messsages... If these messages could somehow be shown in the GUI before a optionally continuing to a 10 second preview, it would be fantastic...

Also, why use /root/.xinitrc? Is it better than using /root/Startup ??

Just wondering...

Great work already though...

Posted: Fri 12 Feb 2010, 00:34
by trio
Scottman:

I use /root/.xinitrc because it is common for a long time (as instructed by websites how to install wbar in puppy), so by modifying xinitrc with pinstall.sh script, I don't have to give instructions to many people.

As for preview, it is not necessary, when you click apply, it will instantly restart wbar so you can see the changes. As for error message, I'll think about it (but if it doesn't show up, you know something is wrong, you may have to revert back to previous config file). Maybe a revert button is more appropriate, as tools like this is more intended for newbies

Cheers

Posted: Fri 12 Feb 2010, 04:35
by trio
Preview of work in progress (version4)

Posted: Fri 12 Feb 2010, 12:28
by aragon
trio wrote:I use /root/.xinitrc because it is common for a long time (as instructed by websites how to install wbar in puppy), so by modifying xinitrc with pinstall.sh script, I don't have to give instructions to many people.
hi trio, yes that is correct but i think it would be better, if we 'break' with this habit... /root/Startup is very 'transparent'... in xinitrc we (as an example) also have starters for lxpanel/fbpanel which don't have to be there ....

but it's just my opinion...

arargon

Posted: Fri 12 Feb 2010, 14:04
by trio
@aragon:
Yeah, I put a little instruction up there in main post

@all:
Version 04 uploaded in main post

@scottman:
Tried using this in your puppy arcade - weird things happens, I haven't got time to look deeper

Posted: Sat 13 Feb 2010, 00:30
by trio
Version 5 uploaded - main post

Posted: Sat 13 Feb 2010, 00:50
by trio
scottman:

great news, version 5 is working ok in puppy arcade. what you need to do is:
1. install the pet
2. cp /root/.emubar to /root/.wbar
3. change your "wbar line" in .root/xinitrc to /usr/local/wbarcc/wbarexec

:lol: now playwith it!

Note: at first go, the default position is at horizontal-top etc....you have to set all parameters and click apply first time

EDIT (again): Use version 05.1 - I fixed the bug, hopefully. See picture, I set the wbar at top with small icons

EDIT: Yup, the icons are set, and you can click it and command running, but the STRANGE thing is, it is not the right command

I have no problem using this with included in .pet /root/.wbar config file.....

Posted: Sat 13 Feb 2010, 01:40
by trio
Version 05.1 uploaded (main post)

Posted: Sat 13 Feb 2010, 09:02
by trio
Version 05.3 - Bugfix uploaded

Scottman: this bugfix release is especially for puppy arcade (and others), now it works good, try it :lol: