Reply to topic

Command line to send current window to another desktop

clintmeyer
Registered Member
Posts
4
Karma
0
OS
I am trying to get extra buttons on my mouse to do something rather than just sit there and look stupid.

I can not use mouse buttons for shortcuts in my version of KDE (i dont think newest version lets me either).

I am looking for a command line argument to send the active window to a desktop of my choosing.

Using dcop, the following command on the terminal will switch me to another desktop. I can then use xbindkeys to set my mouse button to execute that command.

dcop kwin KWinInterface setCurrentDesktop 4

However I can not find a command to send the current window to another desktop.

Any ideas?
User avatar JanKusanagi
Registered Member
Posts
21
Karma
0
OS
clintmeyer wrote:Using dcop, the following command on the terminal will switch me to another desktop. I can then use xbindkeys to set my mouse button to execute that command.

dcop kwin KWinInterface setCurrentDesktop 4

However I can not find a command to send the current window to another desktop.


If you knew how to control other programs via DCOP, you'll find your way easily using qdbus. Sintax is pretty similar.


Human knowledge belongs to the world
pinotree
KDE Developer
Posts
222
Karma
7
OS
You don't need DCOP nor D-Bus to interact with the window manager -- use the command line application "wmctrl".


Pino Toscano
clintmeyer
Registered Member
Posts
4
Karma
0
OS
Thanks for the help pointing me to qdbus, however my version of KDE is 3.5 (I am using RHEL 5.5). It seems like qdbus is not available until 4.x of KDE. I was hoping there was a way to get dcop to do what I want.

I tried wmctrl before I posted as it seems like a great little utility. I cant install wmctrl, it errors out on my about my glib not being configured properly.

I am in a little over my head here, any ideas?
pinotree
KDE Developer
Posts
222
Karma
7
OS
clintmeyer wrote:It seems like qdbus is not available until 4.x of KDE.

Actually, the qdbus tool is part of Qt 4.x, not KDE.

clintmeyer wrote:I cant install wmctrl, it errors out on my about my glib not being configured properly.

I am in a little over my head here, any ideas?

Yes: ask to your distro about this installation issue.


Pino Toscano
clintmeyer
Registered Member
Posts
4
Karma
0
OS
Well, I installed qt4 and have dbus working. However I am in way over my head. I will try to get wmctrl working, that seems more my speed.

I just wish I could be using a newer OS. I am stuck using RHEL 5.5 because that is the version the industry standard multi million dollar suite of CAD tools supports. Its kind of frustrating.

Thanks for the help.
clintmeyer
Registered Member
Posts
4
Karma
0
OS
Sorry for the spam, but I did get wmctrl installed and it is working perfectly. I just needed to try a little harder to get it installed. It solves my problem, thanks for the nudge

Clint

 
Reply to topic

Bookmarks



Who is online

Registered users: 16777216, Baidu [Spider], Bing [Bot], Buddlespit, eddiej, Exabot [Bot], garthecho, Google [Bot], Hans, housepig, irisuser, La Ninje, Majestic-12 [Bot], neilh, orbmiser, paulmcvay, qwach, searchfgold6789, Sentynel, soldier9599, tparrott, veqz, Yahoo [Bot]