xdotool でウィンドウを配置しようとしています。行きたいところに行かない。次のコードを試しました:
terminal=`xdotool getactivewindow`
xdotool getwindowgeometry $terminal
xdotool windowmove $terminal 0 0
xdotool getwindowgeometry $terminal
xdotool windowmove --relative $terminal -10 -10
xdotool getwindowgeometry $terminal
そして、次の出力を得ました:
Window 62914571
Position: 10,80 (screen: 0)
Geometry: 1694x1046
Window 62914571
Position: 10,62 (screen: 0)
Geometry: 1694x1046
Window 62914571
Position: 10,62 (screen: 0)
Geometry: 1694x1046
補足: 私は hdmi1 経由で接続されたラップトップ + 1 台のモニターを使用しており、/etc/lightdm/lightdm.conf を次のように変更しました。
[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
session-setup-script=/home/user/.monitor.sh
.monitor.sh は次のようになります。
cvt 2560 1440 30
xrandr --newmode "2560x1440_30.00" 146.25 2560 2680 2944 3328 1440 1443 1448 1468 - hsync +vsync
xrandr --addmode HDMI1 "2560x1440_30.00"
問題を引き起こす可能性のあるヒントやヒントはありますか?