Beruflich Dokumente
Kultur Dokumente
==== Installation
$ sudo apt-get install xdotool
$ sudo apt-get install wmctrl
------------------------------
Open any text editor and copy/write down the follow shell:
-------------------------------------------------------
#!/bin/sh
#
# Move the current window to the next monitor.
#
# Only works on a horizontal monitor setup.
# Also works only on one X screen (which is the most common case).
#
# Props to
# http://icyrock.com/blog/2012/05/xubuntu-moving-windows-between-monitors/
#
# Unfortunately, both "xdotool getwindowgeometry --shell $window_id" and
# checking "-geometry" of "xwininfo -id $window_id" are not sufficient, as
# the first command does not respect panel/decoration offsets and the second
# will sometimes give a "-0-0" geometry. This is why we resort to "xwininfo".
screen_width=`xdpyinfo | awk '/dimensions:/ { print $2; exit }' | cut -d"x" -f1`
display_width=`xdotool getdisplaygeometry | cut -d" " -f1`
window_id=`xdotool getactivewindow`
# If we would move off the right-most monitor, we set it to the left one.
# We also respect the window's width here: moving a window off more than half its
width won't happen.
width=`xdotool getwindowgeometry $window_id | awk '/Geometry:/ { print $2 }'|cut
-d"x" -f1`
if [ `expr $new_x + $width / 2` -gt $screen_width ]; then
new_x=`expr $new_x - $screen_width`
fi
Finhish: now you can move you window terminal to another screen - enjoy
-------------- How to use
----Open terminal
---- type shellname
e.g:
ctrl+alt+T
$ shellname
==================================================
https://makandracards.com/makandra/12447-how-to-move-a-window-to-the-next-monitor-
on-xfce-xubuntu