KDE Connect/Tutorials/Useful commands/fr: Difference between revisions
Appearance
ChristianW (talk | contribs) Created page with "== Captures d'écran == * Save locally: {{Output|1=<nowiki>spectacle -b</nowiki>}} * Send to phone: {{Output|1=<nowiki>file=/tmp/$(hostname)_$(date "+%Y%m%d_%H%M%S").png; spec..." |
Created page with "* Save locally: {{Output|1=<nowiki>spectacle -b</nowiki>}} * Send to phone: {{Output|1=<nowiki>file=/tmp/$(hostname)_$(date "+%Y%m%d_%H%M%S").png; spectacle -bo "${file}" && k..." |
||
Line 18: | Line 18: | ||
==Volume control== | ==Volume control== | ||
===Plasma=== | ===Plasma=== | ||
* Volume down: {{Output|1=<nowiki>qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "decrease_volume"</nowiki>}} | * Volume down: {{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>}} | * Volume up: {{Output|1=<nowiki>qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "increase_volume"</nowiki>}} | ||
Line 25: | Line 27: | ||
===Other DE/WM (with pactl)=== | ===Other DE/WM (with pactl)=== | ||
* Volume down: {{Output|1=<nowiki>pactl set-sink-volume $(pactl list short sinks | grep RUNNING | cut -f1) -10%</nowiki>}} | * Volume down: {{Output|1=<nowiki>pactl set-sink-volume $(pactl list short sinks | grep RUNNING | cut -f1) -10%</nowiki>}} | ||
* Volume up: {{Output|1=<nowiki>pactl set-sink-volume $(pactl list short sinks | grep RUNNING | cut -f1) +10%</nowiki>}} | * Volume up: {{Output|1=<nowiki>pactl set-sink-volume $(pactl list short sinks | grep RUNNING | cut -f1) +10%</nowiki>}} | ||
Line 30: | Line 33: | ||
==Change look and feel== | ==Change look and feel== | ||
* Breeze (Light) theme: {{Output|1=<nowiki>lookandfeeltool -a 'org.kde.breeze.desktop'</nowiki>}} | * Breeze (Light) theme: {{Output|1=<nowiki>lookandfeeltool -a 'org.kde.breeze.desktop'</nowiki>}} | ||
* Breeze (Dark) theme: {{Output|1=<nowiki>lookandfeeltool -a 'org.kde.breezedark.desktop'</nowiki>}} | * Breeze (Dark) theme: {{Output|1=<nowiki>lookandfeeltool -a 'org.kde.breezedark.desktop'</nowiki>}} | ||
==Brightness settings== | ==Brightness settings== | ||
* 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>}} | * 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>}} | ||
* 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.brightness) + 375)</nowiki>}} | * 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.brightness) + 375)</nowiki>}} | ||
== Captures d'écran == | == Captures d'écran == | ||
* Save locally: {{Output|1=<nowiki>spectacle -b</nowiki>}} | |||
* 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>}} | |||
* Save locally: {{Output|1=<nowiki>spectacle -b</nowiki>}} | * Save locally: {{Output|1=<nowiki>spectacle -b</nowiki>}} | ||
* 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>}} | * 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>}} |
Revision as of 04:56, 27 September 2018
Liste d'exemples de commandes pour KDE Connect
Dans KDE Connect, vous pouvez ajouter vos propres commandes et les exécuter à partir de votre téléphone. Vous trouverez ici quelques commandes utiles. N'hésitez pas à y ajouter les vôtres !
Contrôlez l'état de votre ordinateur
- Shutdown:
systemctl poweroff
- Reboot:
systemctl reboot
- Suspend:
systemctl suspend
- Hibernate:
systemctl hibernate
- Lock screen:
loginctl lock-session
- Unlock screen:
loginctl unlock-session
- Turn off screen:
xset dpms force off
- Turn on screen:
xset dpms force on
- Lock keyboard and mouse (not the screen):
pyxtrlock
- Unlock keyboard and mouse:
pkill pyxtrlock
Volume control
Plasma
- Volume down:
qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "decrease_volume"
- Volume up:
qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "increase_volume"
- Mute:
qdbus org.kde.kglobalaccel /component/kmix invokeShortcut "mute"
- Mute microphone:
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)
Captures d'écran
- 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}
- 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}