xwininfo: add page; xkill: update page (#11945)

* xwininfo: add page ant pt_BR translation

* xkill: update page and pt_BR translation

* xwininfo: update pt_BR translation

* xwininfo: fix ID casing and ellipsis

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* xwininfo: fix ID casing in pt_BR

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Isaac Vicente <isaacvicentsocial@gmail.com>
pull/23/head
Vitor Henrique 2024-01-02 16:47:07 -03:00 committed by GitHub
parent bf244b5444
commit 8bd5c25864
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 65 additions and 3 deletions

View File

@ -1,9 +1,17 @@
# xkill
> Termina o cliente associado a um elemento gráfico.
> Utilizado para forçar a terminação de processos que não respondem ou não apresentam botão "fechar".
> Termina uma janela interativamente em uma sessão gráfica.
> Veja também: `kill`, `killall`.
> Mais informações: <https://www.x.org/releases/current/doc/man/man1/xkill.1.xhtml>.
- Ativa um cursor para fechar uma janela com o clique do botão esquerdo do mouse (pressionar qualquer outro botão para cancelar):
`xkill`
- Mostra um cursor para selecionar uma janela pressionando qualquer botão do mouse:
`xkill -button any`
- Fecha uma janela com um id específico (use `xwininfo` para obter informações sobre janelas):
`xkill -id {{id}}`

View File

@ -0,0 +1,25 @@
# xwininfo
> Mostra informações sobre janelas.
> Veja também: `xprop`, `xkill`.
> Mais informações: <https://www.x.org/releases/current/doc/man/man1/xwininfo.1.xhtml>.
- Mostra um cursor para selecionar uma janela para mostrar seus atributos (ID, nome, tamanho, posição...):
`xwininfo`
- Mostra a árvore de todas as janelas:
`xwininfo -tree -root`
- Mostra os atributos de uma janela com um ID específico:
`xwininfo -id {{id}}`
- Mostra os atributos de uma janela com um nome específico:
`xwininfo -name {{nome}}`
- Mostra o ID de uma janela buscando pelo nome:
`xwininfo -tree -root | grep {{palavra_chave}} | head -1 | perl -ne 'print $1 if /(0x[\da-f]+)/ig;'`

View File

@ -1,7 +1,7 @@
# xkill
> Kill a window interactively in a graphical session.
> See also `kill` and `killall`.
> See also: `kill`, `killall`.
> More information: <https://www.x.org/releases/current/doc/man/man1/xkill.1.xhtml>.
- Display a cursor to kill a window when pressing the left mouse button (press any other mouse button to cancel):
@ -11,3 +11,7 @@
- Display a cursor to select a window to kill by pressing any mouse button:
`xkill -button any`
- Kill a window with a specific id (use `xwininfo` to get info about windows):
`xkill -id {{id}}`

25
pages/common/xwininfo.md Normal file
View File

@ -0,0 +1,25 @@
# xwininfo
> Display information about windows.
> See also: `xprop`, `xkill`.
> More information: <https://www.x.org/releases/current/doc/man/man1/xwininfo.1.xhtml>.
- Display a cursor to select a window to display its attributes (id, name, size, position, ...):
`xwininfo`
- Display the tree of all windows:
`xwininfo -tree -root`
- Display the attributes of a window with a specific ID:
`xwininfo -id {{id}}`
- Display the attributes of a window with a specific name:
`xwininfo -name {{name}}`
- Display the ID of a window searching by name:
`xwininfo -tree -root | grep {{keyword}} | head -1 | perl -ne 'print $1 if /(0x[\da-f]+)/ig;'`