How to run two different Wbars at the Same Time

2 min read

Deviation Actions

ElderVLaCoste's avatar
Published:
1.5K Views
This is a little tip on how to run two different instances of wbar simultaneously.*  In this case one is horizontal on the bottom center of the screen and the other one is vertical on the left side of the screen.

1.  Set up your two configuration files and save them in your ~/ directory.  

2. If not already there, create a folder in your home directory called "scripts".

3.  Create a document to hold an executable script in the "scripts" directory named "StartWbars.sh" (or something similar).

4.  Copy and paste the following code into the document (StartWbars.sh) and save it.

#!/bin/sh
sleep 5s
wbar -config ./Horizontal.wbar -bpress -above-desk -balfa 50 nanim 5.0 -pos bottom -idist 8 -isize 32.0 -zoomf 1.1 &
sleep 3s
wbar -config ./Vertical.wbar2 -vbar -bpress -above-desk -balfa 60 nanim 5.0 -pos left -idist 8 -isize 32.0 -zoomf 1.1 &  

5.  Make it executable (chmod +x file, or in most modern Linux distros you can "right click" on the file and choose the option to make it executable).

6.  In Fluxbox you can now add the following line to your "startup" file located in the ./.fluxbox folder.

##  Start Wbars Script
~/scripts/StartWbars.sh
  
Alternatively, you can just copy and past the four lines above into the "startup" file beginning with "sleep 5s".  

The reason to have a startup script is that some window managers require it (Xfce).  It also it makes it easier to add it to a menu as an option.  

The "-config" command is the key to making it work and telling Wbar which config files to use.

* This doesn't seem to work on the SlimPup version of Puppy linux at this time but it should work on almost everything else.
© 2012 - 2024 ElderVLaCoste
Comments8
Join the community to add your comment. Already a deviant? Log In
sajuaro's avatar
How do you set up "the two configuration files"?
Don't they have to have different names?

Thanks....