From 9712983581b6af6f58aa452b06f11d7659503ad2 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 31 Jul 2014 20:25:55 +0900 Subject: [PATCH] xprograms: add functions for locking on sleep --- xprograms | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xprograms b/xprograms index 7a5c2d4..2885c6b 100755 --- a/xprograms +++ b/xprograms @@ -77,6 +77,15 @@ _lxpolkit(){ (sleep 1s && /usr/lib/lxpolkit/lxpolkit) & } +_xscreensaver(){ + (sleep 1s && xscreensaver -no-splash) & +} + +_xsslock(){ + # run _xscreensaver then this to enable locking on sleep + (sleep 3s && xss-lock -- xscreensaver-command -lock) & +} + for p in $@ do _$p