KDE Connect/Tutorials/Useful commands/pt-br: Difference between revisions

From KDE Wiki Sandbox
(Created page with "KDE Connect/Tutorials/Comandos úteis")
 
(Updating to match new version of source page)
 
(22 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<languages />
<languages />
==List of example commands for KDE Connect==
== Lista de exemplos de comandos do KDE Connect ==


In KDE Connect, you can add your own commands and execute them from your phone. Here are some useful commands. Feel free to add your own!
No KDE Connect, você pode adicionar seus próprios comandos e executá-los a partir do seu telefone. Aqui estão alguns comandos úteis. Sinta-se livre para adicionar o seu próprio!


===Control your computer state===
=== Controle o estado do seu computador ===


* Shutdown: {{Output|1=<nowiki>systemctl poweroff</nowiki>}}
<div class="mw-translate-fuzzy">
* Reboot: {{Output|1=<nowiki>systemctl reboot</nowiki>}}
* Desligar: {{Output|1=<nowiki>systemctl poweroff</nowiki>}}
* Suspend: {{Output|1=<nowiki>systemctl suspend</nowiki>}}
* Reiniciarː {{Output|1=<nowiki>systemctl reboot</nowiki>}}
* Hibernate: {{Output|1=<nowiki>systemctl hibernate</nowiki>}}
* Suspender: {{Output|1=<nowiki>systemctl suspend</nowiki>}}
* Lock screen: {{Output|1=<nowiki>loginctl lock-session</nowiki>}}
* Hibernar: {{Output|1=<nowiki>systemctl hibernate</nowiki>}}
* Unlock screen: {{Output|1=<nowiki>loginctl unlock-session</nowiki>}}
* Bloquear a tela: {{Output|1=<nowiki>loginctl lock-session</nowiki>}}
* Turn off screen: {{Output|1=<nowiki>xset dpms force off</nowiki>}}
* Desbloquear a tela: {{Output|1=<nowiki>loginctl unlock-session</nowiki>}}
* Turn on screen: {{Output|1=<nowiki>xset dpms force on</nowiki>}}
* Desligar a tela: {{Output|1=<nowiki>xset dpms force off</nowiki>}}
* Lock keyboard and mouse (not the screen): {{Output|1=<nowiki>pyxtrlock</nowiki>}}
* Ligar a Tela: {{Output|1=<nowiki>xset dpms force on</nowiki>}}
* Unlock keyboard and mouse: {{Output|1=<nowiki>pkill pyxtrlock</nowiki>}}
* Travar o teclado e o mouse (não a tela): {{Output|1=<nowiki>pyxtrlock</nowiki>}}
* Desbloquear o teclado e o mouse: {{Output|1=<nowiki>pkill pyxtrlock</nowiki>}}
</div>
 
=== Controle o volume ===


===Volume control===


====Plasma====
====Plasma====


* Volume down: {{Output|1=<nowiki>qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "decrease_volume"</nowiki>}}
* Abaixar o volume: {{Output|1=<nowiki>qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "decrease_volume"</nowiki>}}
* Volume up: {{Output|1=<nowiki>qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "increase_volume"</nowiki>}}
* Aumentar o volume: {{Output|1=<nowiki>qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "increase_volume"</nowiki>}}
* Mute: {{Output|1=<nowiki>qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "mute"</nowiki>}}
* Silenciar: {{Output|1=<nowiki>qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "mute"</nowiki>}}
* Mute microphone: {{Output|1=<nowiki>qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "mic_mute"</nowiki>}}
* Silenciar o microfone: {{Output|1=<nowiki>qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "mic_mute"</nowiki>}}
 
==== Outros DE/WM (com pactl) ====
 
<div class="mw-translate-fuzzy">
* Abaixar volume: {{Output|1=<nowiki>pactl set-sink-volume $(pactl list short sinks | grep RUNNING | cut -f1) -10%</nowiki>}}
* Aumentar volume: {{Output|1=<nowiki>pactl set-sink-volume $(pactl list short sinks | grep RUNNING | cut -f1) +10%</nowiki>}}
* Mutar/Desmutar: {{Output|1=<nowiki>pactl set-sink-mute $(pactl list short sinks | grep RUNNING | cut -f1) toggle</nowiki>}}
</div>
 
* Volume up: {{Output|1=<nowiki>
pactl set-sink-volume @DEFAULT_SINK@ +10%
## OR
pactl set-sink-volume $(pactl list short sinks | grep RUNNING | cut -f1) +10%
</nowiki>}}
 
* Mute/Unmute: {{Output|1=<nowiki>
pactl set-sink-mute @DEFAULT_SINK@ toggle
## OR
pactl set-sink-mute $(pactl list short sinks | grep RUNNING | cut -f1) toggle
</nowiki>}}
 
====Outros DE/WM (com amixer)====
 
* Abaixar volume: {{Output|1=<nowiki>amixer -q sset Master 10%-</nowiki>}}
* Aumentar volume: {{Output|1=<nowiki>amixer -q sset Master 10%+</nowiki>}}
Outros comandos podem ser criados usando [https://linux.die.net/man/1/amixer amixer]
 
===Mudar a aparência===


====Other DE/WM (with pactl)====
* Tema Breeze (Claro) {{Output|1=<nowiki>lookandfeeltool -a 'org.kde.breeze.desktop'</nowiki>}}
* Tema Breeze (Escuro) theme: {{Output|1=<nowiki>lookandfeeltool -a 'org.kde.breezedark.desktop'</nowiki>}}


* Volume down: {{Output|1=<nowiki>pactl set-sink-volume $(pactl list short sinks | grep RUNNING | cut -f1) -10%</nowiki>}}
=== Configurações de brilho ===
* Volume up: {{Output|1=<nowiki>pactl set-sink-volume $(pactl list short sinks | grep RUNNING | cut -f1) +10%</nowiki>}}
* Mute/Unmute: {{Output|1=<nowiki>pactl set-sink-mute $(pactl list short sinks | grep RUNNING | cut -f1) toggle</nowiki>}}


===Change look and feel===
* Aumentar Brilho: {{Output|1=<nowiki>qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness $(expr $(qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightness) + 375)</nowiki>}}
* Diminuir Brilho: {{Output|1=<nowiki>qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness $(expr $(qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightness) - 375)</nowiki>}}


* Breeze (Light) theme: {{Output|1=<nowiki>lookandfeeltool -a 'org.kde.breeze.desktop'</nowiki>}}
<div class="mw-translate-fuzzy">
* Breeze (Dark) theme: {{Output|1=<nowiki>lookandfeeltool -a 'org.kde.breezedark.desktop'</nowiki>}}
===Captura de Tela===
</div>


===Brightness settings===
<div class="mw-translate-fuzzy">
* Salvar Localmente: {{Output|1=<nowiki>spectacle -b</nowiki>}}
* Enviar para o smartphone: {{Output|1=<nowiki>file=/tmp/$(hostname)_$(date "+%Y%m%d_%H%M%S").png; spectacle -bo "${file}" && kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --share ${file}</nowiki>}}
</div>


* Brightness Up: {{Output|1=<nowiki>qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness $(expr $(qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightness) + 375)</nowiki>}}
===Send output of any command to your phone===
* Brightness Down: {{Output|1=<nowiki>qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness $(expr $(qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightness) - 375)</nowiki>}}


===Screenshot===
* Check the status of baloo indexing: {{Output|1=<nowiki>kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --ping-msg "$(balooctl status)"</nowiki>}}
* Check lines 5, 7 and 9 of speedtest-cli: {{Output|1=<nowiki>kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --ping-msg "$(speedtest-cli|awk 'NR==5;NR==7;NR==9 {print;exit}')"</nowiki>}}
* Check whether service sshd is running: {{Output|1=<nowiki>kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --ping-msg "$(systemctl status sshd|grep Active)"</nowiki>}}
* Check the top 5 applications using most RAM: {{Output|1=<nowiki>kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --ping-msg "$(ps -eo pid,%mem,cmd --sort=-%mem | head -n 6)"</nowiki>}}


* Save locally: {{Output|1=<nowiki>spectacle -b</nowiki>}}
[[Category:Tutoriais/pt-br]]
* Send to phone: {{Output|1=<nowiki>file=/tmp/$(hostname)_$(date "+%Y%m%d_%H%M%S").png; spectacle -bo "${file}" && kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --share ${file}</nowiki>}}

Latest revision as of 23:07, 23 September 2022

Other languages:

Lista de exemplos de comandos do KDE Connect

No KDE Connect, você pode adicionar seus próprios comandos e executá-los a partir do seu telefone. Aqui estão alguns comandos úteis. Sinta-se livre para adicionar o seu próprio!

Controle o estado do seu computador

  • Desligar:
    systemctl poweroff
  • Reiniciarː
    systemctl reboot
  • Suspender:
    systemctl suspend
  • Hibernar:
    systemctl hibernate
  • Bloquear a tela:
    loginctl lock-session
  • Desbloquear a tela:
    loginctl unlock-session
  • Desligar a tela:
    xset dpms force off
  • Ligar a Tela:
    xset dpms force on
  • Travar o teclado e o mouse (não a tela):
    pyxtrlock
  • Desbloquear o teclado e o mouse:
    pkill pyxtrlock

Controle o volume

Plasma

  • Abaixar o volume:
    qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "decrease_volume"
  • Aumentar o volume:
    qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "increase_volume"
  • Silenciar:
    qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "mute"
  • Silenciar o microfone:
    qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "mic_mute"

Outros DE/WM (com pactl)

  • Abaixar volume:
    pactl set-sink-volume $(pactl list short sinks | grep RUNNING | cut -f1) -10%
  • Aumentar volume:
    pactl set-sink-volume $(pactl list short sinks | grep RUNNING | cut -f1) +10%
  • Mutar/Desmutar:
    pactl set-sink-mute $(pactl list short sinks | grep RUNNING | cut -f1) toggle
  • Volume up:
    pactl set-sink-volume @DEFAULT_SINK@ +10%
    ## OR
    pactl set-sink-volume $(pactl list short sinks | grep RUNNING | cut -f1) +10%
    
  • Mute/Unmute:
    pactl set-sink-mute @DEFAULT_SINK@ toggle
    ## OR
    pactl set-sink-mute $(pactl list short sinks | grep RUNNING | cut -f1) toggle
    

Outros DE/WM (com amixer)

  • Abaixar volume:
    amixer -q sset Master 10%-
  • Aumentar volume:
    amixer -q sset Master 10%+

Outros comandos podem ser criados usando amixer

Mudar a aparência

  • Tema Breeze (Claro)
    lookandfeeltool -a 'org.kde.breeze.desktop'
  • Tema Breeze (Escuro) theme:
    lookandfeeltool -a 'org.kde.breezedark.desktop'

Configurações de brilho

  • Aumentar Brilho:
    qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness $(expr $(qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightness) + 375)
  • Diminuir Brilho:
    qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness $(expr $(qdbus org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/Actions/BrightnessControl org.kde.Solid.PowerManagement.Actions.BrightnessControl.brightness) - 375)

Captura de Tela

  • Salvar Localmente:
    spectacle -b
  • Enviar para o smartphone:
    file=/tmp/$(hostname)_$(date "+%Y%m%d_%H%M%S").png; spectacle -bo "${file}" && kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --share ${file}

Send output of any command to your phone

  • Check the status of baloo indexing:
    kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --ping-msg "$(balooctl status)"
  • Check lines 5, 7 and 9 of speedtest-cli:
    kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --ping-msg "$(speedtest-cli|awk 'NR==5;NR==7;NR==9 {print;exit}')"
  • Check whether service sshd is running:
    kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --ping-msg "$(systemctl status sshd|grep Active)"
  • Check the top 5 applications using most RAM:
    kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --ping-msg "$(ps -eo pid,%mem,cmd --sort=-%mem | head -n 6)"