FG
💻 Software

Xmonad idle lock after X minutes

Fresh5 days ago
Mar 15, 20266077 views
Confidence Score0%
0%

Problem

Using Ubuntu 10.10. I use XMonad window manager as primary. I have CommandKey+S mapped to a bash file that shows a screensaver and locks, and puts the PC to sleep (on resume I have to enter password). This works fine. However I'd like XMonad to automatically run that script (i.e. lock screen and su…

Error Output

#/bin/bash

gnome-screensaver-command -a
gnome-screensaver-command -l
dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Xmonad idle lock after X minutes

Low Risk

You can use xautolock to do this. For example, This will lock your screen after 1 minute of idle time and will give you a notification (lasting 5 seconds) 10 seconds before it locks. This works fine for me in Xmonad. To use notify-send you may need …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment