A simple launcher 06/01/21
------------------------------------------------------------
I enjoy the ability to launch things simply. I want
something like dmenu, but haven't found it yet. the bar
program doesn't work for me... It compiles and runs, but
won't launch anything, no matter what I do.
I settled for the solution below, which I called launch.c...
if you've looked at the source for bar, you'll see I lifted
their placement function (modified to only one placement).
Before I paste launch.c, let me tell you how I use it. I
created $home/bin/rc/launcher, an rc script, which takes the
output from launch and runs stuff with it. This means I can
use any keyboard key (launch reports the keycode), to launch
any program etc. awk takes the stdout and uses it to launch.
In practice, I have a square at the top-right where I can
click, then hit a key to launch a few things.