KDE Connect/Tutorials/Useful commands/ca: Difference between revisions

From KDE UserBase Wiki
(Created page with "===Controlar el volum===")
(Created page with "* Abaixa el volum: {{Output|1=<nowiki>qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "decrease_volume"</nowiki>}} * Apuja el volum: {{Output|1=<nowiki>qdbus org.kde...")
Line 21: Line 21:
====Plasma====
====Plasma====


* Volume down: {{Output|1=<nowiki>qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "decrease_volume"</nowiki>}}
* Abaixa el volum: {{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>}}
* Apuja el volum: {{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>}}
* Silencia: {{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>}}
* Silencia el micròfon: {{Output|1=<nowiki>qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "mic_mute"</nowiki>}}


====Other DE/WM (with pactl)====
====Other DE/WM (with pactl)====

Revision as of 16:42, 8 October 2018

Llista de les ordres d'exemple per al KDE Connect

Al KDE Connect, podeu afegir les vostres propies ordres i executar-les des del vostre telèfon. Aquestes són algunes de les més útils. No dubteu a afegir-hi la vostra.

Controlar l'estat de l'ordinador

  • Atura:
    systemctl poweroff
  • Reinicia:
    systemctl reboot
  • Suspèn:
    systemctl suspend
  • Hibernate:
    systemctl hibernate
  • Bloqueja la pantalla:
    loginctl lock-session
  • Desbloqueja la pantalla:
    loginctl unlock-session
  • Apaga la pantalla:
    xset dpms force off
  • Encèn la pantalla:
    xset dpms force on
  • Bloqueja el teclat i el ratolí (no la pantalla):
    pyxtrlock
  • Desbloqueja el teclat i el ratolí:
    pkill pyxtrlock

Controlar el volum

Plasma

  • Abaixa el volum:
    qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "decrease_volume"
  • Apuja el volum:
    qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "increase_volume"
  • Silencia:
    qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "mute"
  • Silencia el micròfon:
    qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "mic_mute"

Other DE/WM (with pactl)

  • Volume down:
    pactl set-sink-volume $(pactl list short sinks | grep RUNNING | cut -f1) -10%
  • Volume up:
    pactl set-sink-volume $(pactl list short sinks | grep RUNNING | cut -f1) +10%
  • Mute/Unmute:
    pactl set-sink-mute $(pactl list short sinks | grep RUNNING | cut -f1) toggle

Change look and feel

  • Breeze (Light) theme:
    lookandfeeltool -a 'org.kde.breeze.desktop'
  • Breeze (Dark) theme:
    lookandfeeltool -a 'org.kde.breezedark.desktop'

Brightness settings

  • Brightness Up:
    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)
  • Brightness Down:
    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.brightness) + 375)

Screenshot

  • Save locally:
    spectacle -b
  • Send to phone:
    file=/tmp/$(hostname)_$(date "+%Y%m%d_%H%M%S").png; spectacle -bo "${file}" && kdeconnect-cli -d $(kdeconnect-cli -a --id-only) --share ${file}