diff --git a/other/lockscreen.service b/other/lockscreen.service new file mode 100644 index 0000000..a0d3122 --- /dev/null +++ b/other/lockscreen.service @@ -0,0 +1,10 @@ +[Unit] +Description=Lock session after login +After=graphical-session.target + +[Service] +Type=oneshot +ExecStart=/bin/sh -c 'sleep 2; /usr/bin/loginctl lock-session' + +[Install] +WantedBy=graphical-session.target