I'm running Linux Mint 17.1 (KDE). I know that I'm able to move windows from one desktop space to another by right-clicking in the title bar. I also know I'm able to do so from the command line with wmctrl, which first requires me to know the window ID. In my case, I can do this:
This lists open windows with their respective IDs:
0x04c00012 0 laptop2 Downloads – Dolphin
0x00800015 -1 laptop2 Yakuake
0x03800012 1 laptop2 sh-format.sh – Kate
(along with several others).
If I then type:
wmctrl -i -r 0x03800012 -t 1
then I can move the Kate window to desktop 2.
My question is this: I would like to either (1) set up a keyboard shortcut to move the active window to a different desktop (I'm willing to set up separate shortcuts per desktop), or (2) identify the window ID for the active window, so that I can script a shortcut.
Is there a way to do this?