diff --git a/pages.pt_BR/common/xkill.md b/pages.pt_BR/common/xkill.md index c104b53b3..621f76ea2 100644 --- a/pages.pt_BR/common/xkill.md +++ b/pages.pt_BR/common/xkill.md @@ -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: . - 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}}` diff --git a/pages.pt_BR/common/xwininfo.md b/pages.pt_BR/common/xwininfo.md new file mode 100644 index 000000000..a730e775f --- /dev/null +++ b/pages.pt_BR/common/xwininfo.md @@ -0,0 +1,25 @@ +# xwininfo + +> Mostra informações sobre janelas. +> Veja também: `xprop`, `xkill`. +> Mais informações: . + +- 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;'` diff --git a/pages/common/xkill.md b/pages/common/xkill.md index 57f9572dd..f86234649 100644 --- a/pages/common/xkill.md +++ b/pages/common/xkill.md @@ -1,7 +1,7 @@ # xkill > Kill a window interactively in a graphical session. -> See also `kill` and `killall`. +> See also: `kill`, `killall`. > More information: . - 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}}` diff --git a/pages/common/xwininfo.md b/pages/common/xwininfo.md new file mode 100644 index 000000000..8ea0d0496 --- /dev/null +++ b/pages/common/xwininfo.md @@ -0,0 +1,25 @@ +# xwininfo + +> Display information about windows. +> See also: `xprop`, `xkill`. +> More information: . + +- 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;'`