Xfce Forum

Sub domains
 

You are not logged in.

#1 2013-11-09 23:24:31

nostyia
Member
From: Argentina
Registered: 2013-11-09
Posts: 1

[Solved] Move windows between monitors (newbie)

hello, I wonder if there is any way I can move windows between two monitors using xfce keybinding. I was looking that in Gnome3 you can use an extension put window but did not find anything similar for xfce. I would appreciate any help, thanks.

PD: I'm using xfce with a nvidia video card and it works perfect the 2 monitors, I just like to add to move between the two monitors.

Sry for my english.

--------------------------------------------------------------------------------------------------------------------------------------------------------

Possible solution: install xdotool and use the following script.

#!/bin/bash
if [ $1 -eq 2 ]
then
POS1=1280
POS2=0
else
POS1=0
POS2=0
fi
/usr/bin/xdotool windowmove `/usr/bin/xdotool getwindowfocus` $POS1 $POS2
exit 0


save as move.sh o whatever.sh and chmox +x move.sh

bind key move.sh 1  <-- to move left and move.sh 2 to move right.

Nostyia Shortcuts

Last edited by nostyia (2013-11-10 17:55:27)

Offline

Board footer

Powered by FluxBB