Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要获取指针的位置(x,y),但我需要来自外部连接(SSH)。在桌面上,使用这个:
xdotool getmouselocation
但是当我从 SSH(远程)运行命令时,给我错误:
Error: Can't open display: (null)
谢谢。
ssh -X使用标志启用 X11 转发。
ssh -X
export DISPLAY=:0.0 && xdotool getmouselocation
只导出显示