화면을 잠그는 Konsole 명령은 무엇입니까

화면을 잠그는 Konsole 명령은 무엇입니까

사용 중인데 OpenSuse Leap 42.1키보드를 다시 매핑하고 싶습니다. 이제 Sleep전체 컴퓨터를 절전 모드로 전환하는 대신 화면을 잠그기 위해 키(The key)를 다시 매핑하고 싶습니다 . 그러므로 Konsole-Command화면을 잠가야 합니다. Google에서 검색해 본 명령만 찾았 지만 Ubuntu/Debian/Fedora/KDE4내 버전에서는 찾을 수 OpenSuse없었 습니다. 몇 가지 제안을 해주실 수 있나요?

답변1

이는 Unity 또는 GNOME에서 작동합니다.

dbus-sendUnity 또는 GNOME에서는 다음을 사용하여 화면을 잠글 수 있습니다.

dbus-send --type=method_call --dest=org.gnome.ScreenSaver /org/gnome/ScreenSaver org.gnome.ScreenSaver.Lock

설명하다:

The --type=method_call tells dbus-send to call a method.
The --dest=org.gnome.ScreenSaver tells it the command is in org.gnome.ScreenSaver.
The org.gnome.ScreenSaver.Lock tells it to lock the screen.

답변2

KDE의 경우 다음을 사용합니다.

loginctl lock-session

관련 정보