can I bind an app to a workspace, using slackware 12.2, and xfce4?
Hello Bob:
I was just wondering if there was a way (perhaps by creating ~/.config/xfce4/xfwm4/xfwm4rc and adding appropriate lines) to bind applications to always use the same workspace. In other words, no matter which workspace I happen to be in when I click on an app, say konsole, I want it always to open up in my first workspace... then I could bind my browser to the second, my mail client to the third, and the other apps that I generally keep open to their own workspace. Searching these forums, I have found that it can be done with icewm, but I'm not trying to start a wm flame thread, and don't want to know how other wm gets the job done... just want to know if xfce4 can do this. If anyone knows how, here is a chance to get some votes, kudos, thumbs-ups, praise, and otherwise show off your tux erudition. I am running slackware 12.2! |
Which window-manager are you using? With Kwin it is possible to do it in two ways: via dcop/dbus-call (Disadvantage is: you need to script it) and in the window specific settings (reachable via context menu of the title bar.)
An example is for the dbus-call is: Code:
CURDESK=$(qdbus org.kde.kwin /KWin currentDesktop) Maybe it helps. cu |
Try using something like devilspie. If you would rather not have a daemon running then you could use something like wmctrl by creating custom launcher scripts for the applications you want to customize.
Both programs should work regardless of the desktop environment/window manager (assuming the WM follows certain standards). |
both wmctl and devilspie bind apps to workspaces -- thankyou
Thankyou bonaire and shadowsnipes for contributing to this thread. Unfortunately, bonaire, qdbus was not installed by default on my xfce4 system (maybe I needed to install all the kde packages) so I was unable to test your suggestion. However, the tools suggested by shadowsnipes both were able to get the job done.
I created some s-expressions of the form: Code:
(if (contains (application_name) "Konsole") (set_workspace 2)) Code:
** (devilspie:3205): CRITICAL **: e_sexp_eval: assertion `f->tree != NULL' failed Thanks again. SOLVED by shadowsnipes! |
All times are GMT -5. The time now is 08:39 AM. |