Difference between revisions of "KDE Connect/Tutorials/Useful commands/da"

(Importing a new version from external source)
(Importing a new version from external source)
Line 6: Line 6:
 
=== Kontrollér din computers tilstand ===
 
=== Kontrollér din computers tilstand ===
  
* Shutdown: {{Output|1=<nowiki>systemctl poweroff</nowiki>}}
+
* Luk ned: {{Output|1=<nowiki>systemctl poweroff</nowiki>}}
 
* Reboot: {{Output|1=<nowiki>systemctl reboot</nowiki>}}
 
* Reboot: {{Output|1=<nowiki>systemctl reboot</nowiki>}}
* Suspend: {{Output|1=<nowiki>systemctl suspend</nowiki>}}
+
* Suspendér: {{Output|1=<nowiki>systemctl suspend</nowiki>}}
* Hibernate: {{Output|1=<nowiki>systemctl hibernate</nowiki>}}
+
* Dvale: {{Output|1=<nowiki>systemctl hibernate</nowiki>}}
* Lock screen: {{Output|1=<nowiki>loginctl lock-session</nowiki>}}
+
* Låseskærm: {{Output|1=<nowiki>loginctl lock-session</nowiki>}}
* Unlock screen: {{Output|1=<nowiki>loginctl unlock-session</nowiki>}}
+
* Lås op: {{Output|1=<nowiki>loginctl unlock-session</nowiki>}}
* Turn off screen: {{Output|1=<nowiki>xset dpms force off</nowiki>}}
+
* Sluk skærm: {{Output|1=<nowiki>xset dpms force off</nowiki>}}
* Turn on screen: {{Output|1=<nowiki>xset dpms force on</nowiki>}}
+
* Tænd skærm: {{Output|1=<nowiki>xset dpms force on</nowiki>}}
* Lock keyboard and mouse (not the screen): {{Output|1=<nowiki>pyxtrlock</nowiki>}}
+
* Lås tastatur og mus (ikke skærmen): {{Output|1=<nowiki>pyxtrlock</nowiki>}}
* Unlock keyboard and mouse: {{Output|1=<nowiki>pkill pyxtrlock</nowiki>}}
+
* Lås tastatur og mus op: {{Output|1=<nowiki>pkill pyxtrlock</nowiki>}}
  
 
===Volume control===
 
===Volume control===

Revision as of 10:42, 1 July 2019

Other languages:
English • ‎català • ‎dansk • ‎français • ‎português do Brasil • ‎українська

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.

Kontrollér din computers tilstand

  • Luk ned:
    systemctl poweroff
  • Reboot:
    systemctl reboot
  • Suspendér:
    systemctl suspend
  • Dvale:
    systemctl hibernate
  • Låseskærm:
    loginctl lock-session
  • Lås op:
    loginctl unlock-session
  • Sluk skærm:
    xset dpms force off
  • Tænd skærm:
    xset dpms force on
  • Lås tastatur og mus (ikke skærmen):
    pyxtrlock
  • Lås tastatur og mus op:
    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}

This page was last edited on 1 July 2019, at 10:42. Content is available under Creative Commons License SA 4.0 unless otherwise noted.