문제

As some super users would know:

gnome-open /home/username/somefile.txt

will open a window in gnome.

Is it possible to open a window and place it a corner of the window from the command line?

gnome-open /home/username/somefile.txt -top -left

(I know the command is made up) This would be the equivalent of opening the file and pressing ctrl + alt + num9.

Thank you all

도움이 되었습니까?

해결책

You could try this, but it will not always work:

gnome-open file.txt && sleep 2 && wmctrl -r ":ACTIVE:" -e 1,0,0,-1,-1

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top