我正在尝试使用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连接的显示器,我将我的/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"
任何可能导致问题的提示或提示?