KDE Connect/Tutorials/Useful commands/da: Difference between revisions
(Importing a new version from external source) |
(Importing a new version from external source) |
||
Line 2: | Line 2: | ||
== Liste med eksempler på kommandoer til KDE Connect == | == Liste med eksempler på kommandoer til KDE Connect == | ||
I KDE Connect kan du tilføje dine egne kommandoer og udføre den fra din telefon. Her er nogle nyttige kommandoer. Du er velkommen til at tilføje dine egne. | |||
===Control your computer state=== | ===Control your computer state=== |
Revision as of 10:42, 1 July 2019
Liste med eksempler på kommandoer til KDE Connect
I KDE Connect kan du tilføje dine egne kommandoer og udføre den fra din telefon. Her er nogle nyttige kommandoer. Du er velkommen til at tilføje dine egne.
Control your computer state
- 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 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}