Re: can't place progs in their workspaces (NEW CASE)
Brought to you by:
captnmark
From: Marius F. <al...@n0...> - 2006-02-24 17:12:57
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bayrouni wrote: > Adam Pribyl wrote: >> The only solution is to define alias to alsamixer somethink like alias >> alsamixer="xterm -name alsamixer -e alsamixer" and then define window >> option for alsamixer to be open on desired workspace. What Adam presented is an implementation of what Thomas explained you in your former request (setting WM_CLASS). The "-name" argument does this magic. OK, "name" is confusing (comparing to a hypothetic "-class") but that our heritage. :) > I put this in my .bashrc: > alias mixer="aterm -name alsamixer -e alsamixer" > if I type mixer in xterm, it works. > > Just if I want to do this in .xbindkeyrc: > "mixer" alt + m > I have nothing. "alias" it's an internal (ba)sh command. Placing it inside its RC file won't help you, as this file is read only when spawning that shell in "interactive" mode (for more info, if it's "bash", check out the "INVOCATION" section on "man bash"). That's why "mixer" won't work "outside" bash. If you really need this functionality to work in whatever case, then you should bake a shell script somewhere in a folder included in your $PATH. For instance: mkdir -p ~/bin cat > ~/bin/mixer <<EOF #!/bin/sh exec /usr/bin/aterm -name alsamixer -e /usr/bin/alsamixer EOF chmod u+x ~/bin/mixer > But I am very happy, because I can launch my mixer (for example), and I > am automatically transferred to workspace 4. I have no idea how this adds any extra usability to your, but, OFC, YMMV. I for one can't stand transient windows that shift my workspace. Maybe you'll get to the same conclusion once you discover KeySysWorkspaceLast and already are working on two workspaces when such a window decides to appear and disrupt your work. - -- Marius Feraru -----BEGIN PGP SIGNATURE----- iD8DBQFD/z6HtZHp/AYZiNkRAhkWAJ9sQ5LeEeGYbkLobYw9rXLgloxW3QCgrvQ1 PI24NplncvdOUCljjARSIE8= =Nd3H -----END PGP SIGNATURE----- |