From 39eb0da822e1c9e58a5b3525d787009d400f4031 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Thu, 30 Dec 2021 11:59:32 -0500 Subject: [PATCH] X11: Lock screen on 5m of idle use Currently only supported for OpenBSD, since it hardcodes the path to xlock. --- .xinitrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.xinitrc b/.xinitrc index 299b685..6db11e5 100755 --- a/.xinitrc +++ b/.xinitrc @@ -24,6 +24,9 @@ if [ $(uname) = "OpenBSD" ]; then # Prefer UTF-8 in X for unicode character support export LC_CTYPE="en_US.UTF-8" + # Lock on 5m idle + xidle -program "/usr/X11R6/bin/xlock" -timeout 300 & + # xenodm handles ssh-agent for us exec cwm else -- libgit2 1.1.1