Wbar: a fancy launchbar (using Imlib2)

Window managers, icon programs, widgets, etc.
Post Reply
Message
Author
User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

Wbar: a fancy launchbar (using Imlib2)

#1 Post by Dougal »

A while ago some people were asking about a good launch-bar to use with Enlightenment...

At some stage I discovered Wbar: pretty fancy, light and (obviously) not part of the g/K mafia.

Note that I didn't make a dotpet out of it, since you will need to set up the config file (/root/dot.wbar by default).

I've included Imlib2 with it.

You should also run "wbar --help" to see the various ways of running it -- unfortunately a lot of the options have to be supplied when launching it (rather than being set in the config file).
You will need to run it with "-above-desk", so it'll be seen over the Rox pinboard.

Here are two images: one when it's left alone, the other with the cursor over it (all the movement and resizing are controllable).
Attachments
wbar1.jpg
(6.06 KiB) Downloaded 23329 times
wbar2.jpg
(8.65 KiB) Downloaded 23280 times
Last edited by Dougal on Sun 12 Apr 2009, 09:33, edited 1 time in total.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#2 Post by Lobster »

Have placed a link here, which also details the unusual Enlightenment window manager and running it on Puppy
http://puppylinux.org/wikka/EnlightenmentWM
Last edited by Lobster on Sun 23 Jan 2011, 02:12, edited 1 time in total.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
tahaselim
Posts: 48
Joined: Fri 29 Jun 2007, 08:29
Location: Ankara, Turkey

#3 Post by tahaselim »

Dougal

after installing Enlightment dotpup, am I good to go with your taskbar?

or should I do lots o' configurations and launching stuff?

Taha Selim

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#4 Post by HairyWill »

Dougal,
very shiny, nice toy

tahaselim
You don't need enlightenment to use this it, is just similar to the launchbar (?) used in enlightenment.
It is running quite happily for me in jwm.
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

User avatar
tahaselim
Posts: 48
Joined: Fri 29 Jun 2007, 08:29
Location: Ankara, Turkey

#5 Post by tahaselim »

HairyWill wrote:tahaselim
You don't need enlightenment to use this it, is just similar to the launchbar (?) used in enlightenment.
It is running quite happily for me in jwm.
so how do I configure JWM to use it? should I change .jwmrc-taskbar or something?

Taha Selim

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#6 Post by HairyWill »

To get the tray out of the way you can edit .jwmrc-tray and set the tray to autohide=true or you could set the y coordinate to 0 to move it to the top of the screen.

To get it to start on boot is not completely straightforward. It uses fake transparency by recording a picture of what is underneath it when it starts and if it starts before jwm has completed initialising its window ends up with a titlebar and all the other decoration.
I got success by starting it in .xinitrc using

Code: Select all

sleep 3 ; wbar -above-desk &
before the line

Code: Select all

#exec $CURRENTWM
I also made it work by putting a swallow entry in my .jwmrc-tray.

I've tried to put a group declaration .jwmrc to stop it appearing in the tasklist.

Code: Select all

<Group>
        <Name>wbar*</Name>
        <Option>nolist</Option>
</Group>
This doesn't work for me, it may be my misunderstanding of how the declaration should be made or it may be a problem with my JWM version 2.01 or it might be wbar itself.
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

User avatar
tahaselim
Posts: 48
Joined: Fri 29 Jun 2007, 08:29
Location: Ankara, Turkey

#7 Post by tahaselim »

Which means , in fact we have two trays on the screen JWM taskbar and Wbar.

I got how I can configure it to start except for the Swallow entry part.
I also made it work by putting a swallow entry in my .jwmrc-tray.

Taha Selim

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#8 Post by Dougal »

HairyWill wrote:To get the tray out of the way you can edit .jwmrc-tray and set the tray to autohide=true or you could set the y coordinate to 0 to move it to the top of the screen.
There's also the option of running wbar at the top (or one of the sides). Example:

Code: Select all

sleep 3 ; wbar -above-desk -pos top &
Taha: it's best to look at the README file that's included in the package and also at the output of "wbar --help", to see all the available options and how to use them.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

User avatar
tahaselim
Posts: 48
Joined: Fri 29 Jun 2007, 08:29
Location: Ankara, Turkey

#9 Post by tahaselim »

Dougal wrote:
Taha: it's best to look at the README file that's included in the package and also at the output of "wbar --help", to see all the available options and how to use them.
thanks Dougal

Maybe starting wbar as a quick launch tray would be better.

Taha Selim

dasch
Posts: 13
Joined: Sat 25 Mar 2006, 17:21

#10 Post by dasch »

just wondering on the questions regarding a launchbar for enlightentment. what about engage?

dreamlinux looks great having combined engage with xfce.

User avatar
Rhino
Posts: 263
Joined: Wed 04 May 2005, 13:28
Location: Cincinnati, OH, USA
Contact:

#11 Post by Rhino »

I must say that I am very impressed with wbar. It appears to be fairly simple to configure, stable and works well. To get it to work properly on startup with jwm I used swallow in the tray to get it to render properly.

Just add the following code to /root/.jwmrc-tray between xload and minixcal.

Code: Select all

<Swallow name="wbar">
	wbar -pos top &
</Swallow>
You can also edit the icons to use the default Puppy icons and clear away a lot of the desktop clutter by editing dot.wbar!

Rhino
Visit the Puppy Linux Video Tutorials @ http://rhinoweb.us

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#12 Post by HairyWill »

I wrote a small script that parses your PuppyPin file and creates a wbar config file based on your desktop icons. You can then edit PuppyPin and remove the icons from your desktop.

Code: Select all

#!/bin/sh
echo "# The Bar && Font
i: /usr/share/wbar/wbar.icons/osxbarback.png
t: /usr/share/wbar/wbar.icons/VeraBd/9
c:
" > /root/.wbar
sed  '/label/!d ; s/\(\(.*\)label="\)\(.*\)">\(.*\)<\/icon>/\3\n\4\n/g' /root/Choices/ROX-Filer/PuppyPin > /tmp/wbar
while read LABEL
do
	read COMMAND
	ICON=`grep -A1 -B1 "$COMMAND" /root/Choices/ROX-Filer/globicons | sed '/<icon>/!d ; s/<icon>\(.*\)<\/icon>/\1/'`
	if [ -f "$ICON" ] && [ `which $COMMAND` ]; then
		echo i:"$ICON" >> /root/.wbar
		echo c:"$COMMAND" >> /root/.wbar
		echo t:"$LABEL" >> /root/.wbar
		echo  >> /root/.wbar
	fi
	read LABEL
done < /tmp/wbar
No guarantees its not buggy. If it can't find an icon or the executable then it doesn't create an entry, it doesn't do folders. If it generates more icons than can fit across your screen rox and jwm start misbehaving. I can get 25 icons on my 1024 width screen.

Has anyone got jwm not to show an entry in the tasklist for it.
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#13 Post by Dougal »

dasch wrote:just wondering on the questions regarding a launchbar for enlightentment. what about engage?
When I tried Engage (cvs ~ last November) it had some functionality problems.

It also depends on the Enlightenment core libraries, which means a whole bunch of dependencies.

I don't see the point in using Engage with XFCE -- you've got the XFCE panel, which is much better.

I find E17 quite unusable in general -- they've kinf of lost the plot and gone too far in the eye-candy direction (unlike E16).
They ruined the iconbox!
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

User avatar
Rhino
Posts: 263
Joined: Wed 04 May 2005, 13:28
Location: Cincinnati, OH, USA
Contact:

#14 Post by Rhino »

Has anyone got jwm not to show an entry in the tasklist for it.
Do you mean just down in the taskbar while it is running? If so, yes. If that is not what you mean, pardon my inability to grasp simple concepts :-)

Here is a my current desktop with it running.

Image

I got that to work using the swallow command in the .jwmrc-tray as indicated above.

Nice job with the pinboard parsing script...I will try that out!

Rhino
Visit the Puppy Linux Video Tutorials @ http://rhinoweb.us

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#15 Post by HairyWill »

Thats interesting Rhino, I've tried using swallow but it is still on the tasklist. It may be because I am using jwm 2.01 I presume you are using the stock 1.8. I also notice that you haven't put in the -above-desk switch but it is still being shown above the pinboard.
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

dasch
Posts: 13
Joined: Sat 25 Mar 2006, 17:21

#16 Post by dasch »

@ dougal
guessed as much. makes the find you made all the more important and relevant now. with the rising popularity of dreamlinux and it's engage bar it does lead to people asking whether puppy does or have something suitable like that? and of course the answer is yes !

OT
@rhino
you know i like your art and taste in visuals quite a fair bit. Hope you don't mind. Have linked your desktop pic in the puppy logo thread over here...
http://www.murga-linux.com/puppy/viewto ... 1&start=75

User avatar
willhunt
Posts: 495
Joined: Wed 05 Oct 2005, 18:19

#17 Post by willhunt »

when I run it with swallow evertime I restart jwm a new copy of wbar start
too not a good thing I think I noticed blinky and volume app never change d colors does anyone know how?
Image
[url=http://hostfile.org/icepak.pet]176 Icewm Themes :!:[/url]
[url=http://tinyurl.com/39fl3x]vlc-0.8.6c-i586.pet[/url]
[url=http://tinyurl.com/2q7cbp]vlc-0.8.6c-i586.pet[/url]

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

#18 Post by HairyWill »

willhunt try changing the swallow entry to
killall wbar ; wbar ........
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

User avatar
Rhino
Posts: 263
Joined: Wed 04 May 2005, 13:28
Location: Cincinnati, OH, USA
Contact:

#19 Post by Rhino »

I am using a version of Puppy 2.16 unleashed, so there may be an improvement in JWM somewhere in there that allows swallow to work better, I'm not really sure though.

Getting Blinky to change color is a little tougher since it is an application embedded in the tray. The best I can give you is to edit the .jwmrc-tray file to change the colors of the xload indicator from red to some other color. You can also change its backgroundcolor. I think you may be able to edit the volume background as well in the same file.

I tried the -above desk switch but I kept having trouble with it rendering the faux transparency. After taking it off, it seems to work correctly. However this way, it does tend to get buried under open windows.

@Dasch
I take no credit for artistic flare ;-) The wallpaper is from Pizzasgood but I did design the JWM theme. It is called jwm-vu and is buried deep somewhere here on the forum. Thanks for the link to the other thread!
Visit the Puppy Linux Video Tutorials @ http://rhinoweb.us

User avatar
willhunt
Posts: 495
Joined: Wed 05 Oct 2005, 18:19

#20 Post by willhunt »

I found it the way to change the color of the swallow apps
background you must edit the file /root/.jwm/jwmrc-personal
Image
<TrayStyle>
<Font>DejaVu Sans 12</Font>
<Background>#0a99f9</Background>
<Foreground>yellow</Foreground>
</TrayStyle>
<!-- Additional Swallow attribute: height -->
<Swallow name="blinky">
blinkydelayed -bg blue
</Swallow>
<Swallow name="wbar" >
killall wbar;wbar -above-desk -pos top
</Swallow>
<Swallow name="mini-volume.tcl">
mini-volume.tcl -bg #0a99f9 -mixer pvolume-mixer.tcl
</Swallow>

<Swallow name="freememapplet" width="48">
<!-- freememappletdelayed -->
freememapplet
</Swallow>
<Swallow name="xload" width="32">
xload -nolabel -bg "#0a99f9" -fg red -hl white
</Swallow>
it seems blinky does not like the numbers it wants the color name I think the numbers did not work but the color name did :)
and the bar seems not to stay on top of other windows
[url=http://hostfile.org/icepak.pet]176 Icewm Themes :!:[/url]
[url=http://tinyurl.com/39fl3x]vlc-0.8.6c-i586.pet[/url]
[url=http://tinyurl.com/2q7cbp]vlc-0.8.6c-i586.pet[/url]

Post Reply