Re: slit functionality...

2002-04-05 Thread Roman Neuhauser

 From: Kevin Geiss [EMAIL PROTECTED]
 Date: Thu, 4 Apr 2002 22:01:59 -0700
 To: [EMAIL PROTECTED]
 Subject: Re: slit functionality...
 
 check out xtoolwait!

where can we get it?

-- 
FreeBSD 4.4-STABLE
10:50AM up 11 days, 17:35, 31 users, load averages: 0.12, 0.06, 0.02



Re: slit functionality...

2002-04-05 Thread Derek Cunningham

On Fri, Apr05,02 10:50, Roman Neuhauser wrote:
  From: Kevin Geiss [EMAIL PROTECTED]
  Date: Thu, 4 Apr 2002 22:01:59 -0700
  To: [EMAIL PROTECTED]
  Subject: Re: slit functionality...
  
  check out xtoolwait!
 
 where can we get it?


Google, where else?!

http://www.google.com/search?hl=enq=xtoolwait

DC

-- 
Derek Cunningham
[EMAIL PROTECTED]

Human beings act intelligently only after they have
exhausted the alternatives -- Abba Eban

Registered Linux User Number 195825



Re: slit functionality...

2002-04-04 Thread Kevin Geiss

check out xtoolwait!
here's my .xinitrc.  it takes the dockapps a little
longer to start up, but i don't have to fiddle with sleeps, and they always
start in the correct order.

non-slit programs start up immediately, so blackbox and my xterm are up
immediately, so i can be typing while the last couple dockapps come up.

#!/bin/bash

host=`hostname -s`

xhost +
$HOME/progs/perl/xmodmap_kludge ~/.dvorak | xmodmap -
/usr/X11R6/bin/xmodmap -e keycode 223 = F30 # Sleep key
/usr/X11R6/bin/xmodmap -e keycode 165 = F33 # calculator key
/usr/X11R6/bin/xmodmap -e keysym Super_L = Meta_L Super_L
/usr/X11R6/bin/xmodmap -e keysym Super_R = Meta_R Super_R
$HOME/progs/perl/t n _logged in
xrdb $HOME/.Xdefaults
xtoolwait='/usr/X11R6/bin/xtoolwait -timeout 1'
export QT_XFT=true
if [[ $host == raven ]]; then
  export LD_PRELOAD=/usr/lib/libgdkxft.so
fi

#
# Startup the window manager first
#
/usr/local/bin/blackbox 
wmpid=$!
$xtoolwait -mappings 2 bbkeys -t
#
# Do _not_ put xtoolwait in the background
#
xtoolwait xterm -j -fa 'nimbus mono' -ls -g 80x24+0-16 -bg black -bd red -cr yellow 
-fg yellow -sb -sl 5000 +ah -name Run

$xtoolwait bbappconf -d
$xtoolwait lavaps

$xtoolwait wmmon
$xtoolwait asmon
$xtoolwait wmfire -L1 -s -B0
if [[ $host == raven ]]; then
  $xtoolwait wmgtemp -s fahrenheit -g block -M 45
fi
$xtoolwait aterm -sh 60 -tr -ls -fn 6x10 -g 10x6 -cr green -fg green +sb -name dockterm
$xtoolwait /usr/local/bin/wmswallow -focus -geom 64x64 dockterm
$xtoolwait wmnet -w -t blue -r red -x 1000 -l -W eth0
$xtoolwait asclock -theme $HOME/.asclock/Freeamp -d -12 -noblink
$xtoolwait wmMoonClock -lat 33.40133 -lon 111.55625
$xtoolwait wmSun -lat 33.40 -lon 111.556

$xtoolwait $HOME/scripts/keys

if [[ $host == raven ]]; then
  $xtoolwait ssh ocotillo /usr/local/bin/bbmail -w
else
  $xtoolwait bbmail -w
fi
xset m 20/10 4 s 0 dpms 300 1200 1500

wait $wmpid


On Tue, Apr 02, 2002 at 02:38:40PM -0500, Matthew Weier O'Phinney wrote:
 I've only been using blackbox for a few months, but it is certainly my 
 favorite WM in the more than two years I've been using Linux. My only beef 
 with it so far is the slit... and not so much how it looks or works, but how 
 programs are loaded into it.
 
 I've searched through the archives, and seen the hacks people have done to 
 get dockapps, bbtools, and whatnot to load in a specified order, and to date 
 I have been unable to get 100% compliance on my machine. About 1 in 4 times 
 or more, the apps I load into it come in a randy order.
 
 I saw somewhere, when I was first trying out blackbox, a little application 
 somebody had written to insure that apps came in in the appropriate order... 
 but since I didn't know what that meant at the time, I ignored it and 
 promptly lost the URL. 
 
 I've tried hacks like:
   bbrun 
   sleep 1  bbpager 
   sleep 1  wmusic 
 etc., but these are not consistent.
 
 Any _other_ ideas anyone?
 
 Thanks,
 Matthew



Re: slit functionality...

2002-04-03 Thread Mads Martin Jørgensen

* Sean 'Shaleh' Perry [EMAIL PROTECTED] [Apr 02. 2002 21:53]:
  
  I've tried hacks like:
bbrun 
sleep 1  bbpager 
sleep 1  wmusic 
  etc., but these are not consistent.
  
  Any _other_ ideas anyone?
  
 
 There is no good way.  The slit is given windows as they are opened
 and it basically adds them to the bottom of the stack.  The only sure
 fire way is to force the programs to load in the order you want.
 Which means icky sleep/delay tricks.

I perform these tricks with the following little 'slit' script. That way
you only have to do 'slit start' in .xinitrc and if I want to change the
contents it's easy to restart it. Maybe someone could use it?

#!/bin/bash

declare -a apps
apps[4]=wmweather -s EDDN -metric -mmHg -beaufort
apps[3]=wmfire -B
apps[2]=wmcalclock -24
apps[1]=wmbiff

num_apps=${#apps[@]}

case $1 in
  start)
  while [ $num_apps -gt 0 ]; do
${apps[$num_apps]} 
sleep 1
let num_apps -= 1
  done
;;

  stop)
  while [ $num_apps -gt 0 ]; do
killall $(echo ${apps[$num_apps]} | awk '{print $1}') 
let num_apps -= 1
  done

;;
  restart)
  $0 stop
  $0 start
  ;;
  *)
echo Usage: $0 {start|stop|restart}
exit 1
  ;;
esac

exit 0


The script was originally written by my friend Christopher Mahmood, just
to set the record straight :)

-- 
Mads Martin Jørgensen, http://mmj.dk
Why make things difficult, when it is possible to make them cryptic
 and totally illogic, with just a little bit more effort?
-- A. P. J.



Re: slit functionality...

2002-04-03 Thread Mr. Brigham Young

--- Mads Martin Jørgensen [EMAIL PROTECTED] wrote:
 * Sean 'Shaleh' Perry [EMAIL PROTECTED] [Apr 02. 2002 21:53]:
   
   I've tried hacks like:
 bbrun 
 sleep 1  bbpager 
 sleep 1  wmusic 
   etc., but these are not consistent.
   
   Any _other_ ideas anyone?
   
  
  There is no good way.  The slit is given windows as they are opened
  and it basically adds them to the bottom of the stack.  The only sure
  fire way is to force the programs to load in the order you want.
  Which means icky sleep/delay tricks.
 
 I perform these tricks with the following little 'slit' script. That way
 you only have to do 'slit start' in .xinitrc and if I want to change the
 contents it's easy to restart it. Maybe someone could use it?
 
 #!/bin/bash
 
 declare -a apps
 apps[4]=wmweather -s EDDN -metric -mmHg -beaufort
 apps[3]=wmfire -B
 apps[2]=wmcalclock -24
 apps[1]=wmbiff
 
 num_apps=${#apps[@]}
 
 case $1 in
   start)
   while [ $num_apps -gt 0 ]; do
 ${apps[$num_apps]} 
 sleep 1
 let num_apps -= 1
   done
 ;;
 
   stop)
   while [ $num_apps -gt 0 ]; do
 killall $(echo ${apps[$num_apps]} | awk '{print $1}') 
 let num_apps -= 1
   done
 
 ;;
   restart)
   $0 stop
   $0 start
   ;;
   *)
 echo Usage: $0 {start|stop|restart}
 exit 1
   ;;
 esac
 
 exit 0
 
 
 The script was originally written by my friend Christopher Mahmood, just
 to set the record straight :)
 
 -- 
 Mads Martin Jørgensen, http://mmj.dk
 Why make things difficult, when it is possible to make them cryptic
  and totally illogic, with just a little bit more effort?
 -- A. P. J.


=
-- Brigham Young
Senior Project Leader CAUSMIS
Senior Technician, MRAM etching
University of Idaho
Office 208.885.5313 
Plasma Lab 208.885.7934 
Minerals Lab 208.885.5308

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/



slit functionality...

2002-04-02 Thread Matthew Weier O'Phinney

I've only been using blackbox for a few months, but it is certainly my 
favorite WM in the more than two years I've been using Linux. My only beef 
with it so far is the slit... and not so much how it looks or works, but how 
programs are loaded into it.

I've searched through the archives, and seen the hacks people have done to 
get dockapps, bbtools, and whatnot to load in a specified order, and to date 
I have been unable to get 100% compliance on my machine. About 1 in 4 times 
or more, the apps I load into it come in a randy order.

I saw somewhere, when I was first trying out blackbox, a little application 
somebody had written to insure that apps came in in the appropriate order... 
but since I didn't know what that meant at the time, I ignored it and 
promptly lost the URL. 

I've tried hacks like:
  bbrun 
  sleep 1  bbpager 
  sleep 1  wmusic 
etc., but these are not consistent.

Any _other_ ideas anyone?

Thanks,
Matthew



Re: slit functionality...

2002-04-02 Thread Derek Cunningham

On Tue, Apr02,02 14:38, Matthew Weier O'Phinney wrote:
 I've only been using blackbox for a few months, but it is certainly my 
 favorite WM in the more than two years I've been using Linux. My only beef 
 with it so far is the slit... and not so much how it looks or works, but how 
 programs are loaded into it.
 
 I've searched through the archives, and seen the hacks people have done to 
 get dockapps, bbtools, and whatnot to load in a specified order, and to date 
 I have been unable to get 100% compliance on my machine. About 1 in 4 times 
 or more, the apps I load into it come in a randy order.
 
 I saw somewhere, when I was first trying out blackbox, a little application 
 somebody had written to insure that apps came in in the appropriate order... 
 but since I didn't know what that meant at the time, I ignored it and 
 promptly lost the URL. 
 
 I've tried hacks like:
   bbrun 
   sleep 1  bbpager 
   sleep 1  wmusic 
 etc., but these are not consistent.

 Any _other_ ideas anyone?
 

bbrun 
sleep 1  bbpager 
sleep 3  wmusic 
...

This gives bbpager enough time to load first, then wmusic, and then any
other apps after that.

DC

-- 
Derek Cunningham
[EMAIL PROTECTED]

Human beings act intelligently only after they have
exhausted the alternatives -- Abba Eban

Registered Linux User Number 195825



Re: slit functionality...

2002-04-02 Thread Sean 'Shaleh' Perry

 
 I've tried hacks like:
   bbrun 
   sleep 1  bbpager 
   sleep 1  wmusic 
 etc., but these are not consistent.
 
 Any _other_ ideas anyone?
 

There is no good way.  The slit is given windows as they are opened and it
basically adds them to the bottom of the stack.  The only sure fire way is to
force the programs to load in the order you want.  Which means icky sleep/delay
tricks.

Window Maker solves this in two ways.  First, you can drag the docked apps
around and second it remembers their order and their command lines and starts
them for you next time.

I have been loathe to implement that second option, I am not against the first.



Re: slit functionality...

2002-04-02 Thread Derek Cunningham

On Tue, Apr02,02 11:52, Sean 'Shaleh' Perry wrote:
  
  I've tried hacks like:
bbrun 
sleep 1  bbpager 
sleep 1  wmusic 
  etc., but these are not consistent.
  
  Any _other_ ideas anyone?
  
 
 There is no good way.  The slit is given windows as they are opened and it
 basically adds them to the bottom of the stack.  The only sure fire way is to
 force the programs to load in the order you want.  Which means icky sleep/delay
 tricks.
 
 Window Maker solves this in two ways.  First, you can drag the docked apps
 around and second it remembers their order and their command lines and starts
 them for you next time.
 
 I have been loathe to implement that second option, I am not against the first.

Maybe bblaunch could be modified (with some source code modification in BB
as well) to specify which position a dockable app should be in?

Just an idea... expand on it as you see fit. :)

DC

-- 
Derek Cunningham
[EMAIL PROTECTED]

Human beings act intelligently only after they have
exhausted the alternatives -- Abba Eban

Registered Linux User Number 195825



Re: slit functionality...

2002-04-02 Thread Sean 'Shaleh' Perry

 
 Maybe bblaunch could be modified (with some source code modification in BB
 as well) to specify which position a dockable app should be in?
 
 Just an idea... expand on it as you see fit. :)
 

we would have to come up with some way to tell blackbox where to put it.  Seems
icky:

put bbpal at +64
put wmmix at +96
put bbpager at + 238

etc.



Re: slit functionality...

2002-04-02 Thread Derek Cunningham

On Tue, Apr02,02 12:02, Sean 'Shaleh' Perry wrote:
  
  Maybe bblaunch could be modified (with some source code modification in BB
  as well) to specify which position a dockable app should be in?
  
  Just an idea... expand on it as you see fit. :)
  
 
 we would have to come up with some way to tell blackbox where to put it.  
 Seems icky:


Agreed... _I_ don't really care anymore, since I've found gkrellm, it solves
all of my problems (well, except for bbpager, and bbkeys is iconified).

The whole :

sleep n  program1 
sleep n+1  program 2 
sleep n+n  program 3 

worked for me quite well when I was still using 10 different apps in my slit.

DC

-- 
Derek Cunningham
[EMAIL PROTECTED]

Human beings act intelligently only after they have
exhausted the alternatives -- Abba Eban

Registered Linux User Number 195825



Re: slit functionality...

2002-04-02 Thread Matthew Weier O'Phinney

On Tuesday 02 April 2002 15:08, Derek Cunningham wrote:
 Agreed... _I_ don't really care anymore, since I've found gkrellm, it
 solves all of my problems (well, except for bbpager, and bbkeys is
 iconified).
 ...
 DC

Last I'd tried GKrellM, I hated it -- but I just checked it out again, and I 
have to say I'm very impressed -- I'm able to do everything I was doing with 
dockapps inside it, and then some (except for bbpager, which you also noted).

However, I _would_ like to put this in the slit as I use multiple workspaces. 
I just tried wmswallow as follows:
wmswallow gkrellm gkrellm
...and got a truncated gkrellm inside the slit. How do I get the full app to 
show up?

--Matthew



Re: slit functionality...

2002-04-02 Thread Jason 'vanRijn' Kasper

In blackbox, only, use the code I contributed to gkrellm.  =:) 
*injuring arm patting self on back*.  First, make sure that you have
remember screen location at exit amd move to it at next startup
UN-checked in gkrellm's configuration.  Then, restart gkrellm with
gkrellm -w and gkrellm will fit quite nicely in blackbox's slit.

On Tue, 2002-04-02 at 16:37, Matthew Weier O'Phinney wrote:
 On Tuesday 02 April 2002 15:08, Derek Cunningham wrote:
  Agreed... _I_ don't really care anymore, since I've found gkrellm, it
  solves all of my problems (well, except for bbpager, and bbkeys is
  iconified).
  ...
  DC
 
 Last I'd tried GKrellM, I hated it -- but I just checked it out again, and I 
 have to say I'm very impressed -- I'm able to do everything I was doing with 
 dockapps inside it, and then some (except for bbpager, which you also noted).
 
 However, I _would_ like to put this in the slit as I use multiple workspaces. 
 I just tried wmswallow as follows:
 wmswallow gkrellm gkrellm
 and got a truncated gkrellm inside the slit. How do I get the full app to 
 show up?
 
 --Matthew
 
-- 
%--%
Jason 'vanRijn' Kasper
bash$ :(){ :|:};:
Numbers 6:24-26



Re: slit functionality...

2002-04-02 Thread Jamin W . Collins

On Tue, 2 Apr 2002 16:37:34 -0500
Matthew Weier O'Phinney [EMAIL PROTECTED] wrote:

 However, I _would_ like to put this in the slit as I use multiple
 workspaces. I just tried wmswallow as follows:
 wmswallow gkrellm gkrellm
 ...and got a truncated gkrellm inside the slit. How do I get the full
 app to show up?

Nothing fancy needed, just add a -w (withdrawn) to the command line:

   gkrellm -w


-- 
Jamin W. Collins