From 406aeb2d8f2a65aefaed90942291264619446855 Mon Sep 17 00:00:00 2001 From: Jacob Babor Date: Thu, 16 Jan 2025 02:00:42 -0600 Subject: [PATCH] Update switchsession to lock --- switchsession | 2 ++ 1 file changed, 2 insertions(+) diff --git a/switchsession b/switchsession index 085346c..cc33aa3 100755 --- a/switchsession +++ b/switchsession @@ -6,3 +6,5 @@ which busctl > /dev/null 2>&1 SEAT=$(busctl get-property org.freedesktop.login1 /org/freedesktop/login1/session/auto org.freedesktop.login1.Session Seat | awk '{print $2}' | tr -d '"' | sed 's/^./\U&/') # Call out to switch the current session busctl call org.freedesktop.DisplayManager "/org/freedesktop/DisplayManager/${SEAT}" org.freedesktop.DisplayManager.Seat SwitchToGreeter +# Lock +loginctl lock-session