Wbar Configuration Centre - v 07

Window managers, icon programs, widgets, etc.
Message
Author
User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

Wbar Configuration Centre - v 07

#1 Post 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:
Attachments
wbarcc07.jpg
(59.5 KiB) Downloaded 10731 times
wbarcc-06final.jpg
(51.16 KiB) Downloaded 9767 times
wbarcc05-barfont.jpg
(61.85 KiB) Downloaded 11627 times
wbarcc-07_non_pinstall.pet
will not break xinitrc file
(5.16 KiB) Downloaded 3404 times
Last edited by trio on Mon 13 Jun 2016, 14:19, edited 35 times in total.

User avatar
pri
Posts: 342
Joined: Fri 09 Oct 2009, 18:31
Location: Bandung Indonesia
Contact:

#2 Post by pri »

owh.... an improvement to jwm....

i ll like this trio......


.............................................................
marked...... so i can read it later
.............................................................
Learning by Doing

DMcCunney
Posts: 889
Joined: Tue 03 Feb 2009, 00:45

#3 Post 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

User avatar
pri
Posts: 342
Joined: Fri 09 Oct 2009, 18:31
Location: Bandung Indonesia
Contact:

#4 Post 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.
Learning by Doing

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#5 Post 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!
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#6 Post 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

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#7 Post by trio »

Version 02.1 uploaded - Bugfix release

User avatar
`f00
Posts: 807
Joined: Thu 06 Nov 2008, 19:13
Location: the Western Reserve

#8 Post 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)...
Last edited by `f00 on Thu 11 Feb 2010, 16:33, edited 1 time in total.

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#9 Post by trio »

Version 03 uploaded - added start/stop button

DMcCunney
Posts: 889
Joined: Tue 03 Feb 2009, 00:45

#10 Post 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

DMcCunney
Posts: 889
Joined: Tue 03 Feb 2009, 00:45

#11 Post 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

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#12 Post 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...
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#13 Post 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

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#14 Post by trio »

Preview of work in progress (version4)
Attachments
version4-icon.jpg
(50.71 KiB) Downloaded 9883 times
version4-barandfont.jpg
(60.75 KiB) Downloaded 9871 times

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#15 Post 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

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#16 Post 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
Last edited by trio on Sat 13 Feb 2010, 00:30, edited 1 time in total.

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#17 Post by trio »

Version 5 uploaded - main post

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#18 Post 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.....
Attachments
wbarcc-arcade.jpg
(62.25 KiB) Downloaded 1908 times
Last edited by trio on Sat 13 Feb 2010, 08:10, edited 2 times in total.

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#19 Post by trio »

Version 05.1 uploaded (main post)

User avatar
trio
Posts: 2076
Joined: Sun 21 Dec 2008, 15:50
Location: अनà¥￾मोदना

#20 Post 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:

Post Reply