mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
29 lines
588 B
Markdown
29 lines
588 B
Markdown
![]() |
# xdotool
|
||
|
|
||
|
> X11을 위한 명령줄 자동화 도구.
|
||
|
> 더 많은 정보: <https://manned.org/xdotool>.
|
||
|
|
||
|
- 실행 중인 Firefox 창의 X-Windows 창 ID 검색:
|
||
|
|
||
|
`xdotool search --onlyvisible --name {{firefox}}`
|
||
|
|
||
|
- 오른쪽 마우스 버튼 클릭:
|
||
|
|
||
|
`xdotool click {{3}}`
|
||
|
|
||
|
- 현재 활성 창의 ID 가져오기:
|
||
|
|
||
|
`xdotool getactivewindow`
|
||
|
|
||
|
- ID가 12345인 창에 포커스 맞추기:
|
||
|
|
||
|
`xdotool windowfocus --sync {{12345}}`
|
||
|
|
||
|
- 각 글자마다 500ms 지연을 두고 메시지 입력:
|
||
|
|
||
|
`xdotool type --delay {{500}} "Hello world"`
|
||
|
|
||
|
- Enter 키 누르기:
|
||
|
|
||
|
`xdotool key {{KP_Enter}}`
|