Move application to Monitors from Commandline

Hello,
as the title says, I would like to move an Application to one Screen from Commandline.

I have found three solutions, does anyone have a diffrent idea?

  1. i3 related

  2. via script with wmctrl

  3. via another script with xdotool wmctrl

I am using i3, but i don’t understand why it is so complicated.
Does anyone have a better solution?

Hello,
In the i3config file there can be this entries:

# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

That means, in a dual monitor setup, the focused window will be moved accordingly to the next workspace on the second monitor too, but that depends also on your overall configuration, how you handle the workspaces.

All is documented here i3 - improved tiling wm and is complicated only if you are not familiar with their documentation and functionality of it. Most is done via python, so you do not actually need the last two