I've recently watched a BBC documentary about the history of music and recall an episode where they talk about music that has two distinct tempos (and possibly time signatures) at the same time for different sets of instruments.

Still, I can't remember how this is called and who are the famous composers that composed that way (Stravinsky?).


Question: How can I open a window on a different monitor?
Answer: I did come across this method which makes use of xdotool, xprop, &amp; wmctrl.

Here’s what the below script will do:


Find the active window
Get its maximized state and remember it
Remove maximization
Get its geometry
Calculate the new position
Move it
Maximize based on the previous state
Raise it
Here’s a script that does that:


script

This will move the active window to the other monitor. It can only handle a side by side, aka. horizontal, configuration of monitors.

wid=`xdotool getactivewindow`
max_state=`xprop -id $wid _NET_WM_STATE`

wmctrl -ir $wid -b remove,maximized_vert,maximized_horz
eval `xdotool getwindowgeometry --shell $wid`

new_x=1600
if [[ "$X" -ge "$new_x" ]]; then
  new_x=0
fi

xdotool windowmove $wid $new_x $Y
if [ -z "${max_state/*_NET_WM_STATE_MAXIMIZED_*/}" ]; then
  wmctrl -ir $wid -b add,maximized_vert,maximized_horz
fi

xdotool windowraise $wid


Source: Xubuntu – moving windows between monitors