KDE Connect/Tutorials/Useful commands/fr: Difference between revisions
Appearance
ChristianW (talk | contribs) No edit summary |
ChristianW (talk | contribs) Created page with "=== Modifier la présentation et l'aspect ===" |
||
Line 32: | Line 32: | ||
* Mute/Unmute: {{Output|1=<nowiki>pactl set-sink-mute $(pactl list short sinks | grep RUNNING | cut -f1) toggle</nowiki>}} | * Mute/Unmute: {{Output|1=<nowiki>pactl set-sink-mute $(pactl list short sinks | grep RUNNING | cut -f1) toggle</nowiki>}} | ||
=== | === Modifier la présentation et l'aspect === | ||
* 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>}} |
Revision as of 07:43, 28 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
Contrôle du volume
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
Modifier la présentation et l'aspect
- Breeze (Light) theme:
lookandfeeltool -a 'org.kde.breeze.desktop'
- Breeze (Dark) theme:
lookandfeeltool -a 'org.kde.breezedark.desktop'
Configuration de la luminosité
- 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}