From c55f33dd9dbca6bda6c3fefe7c15205715c2a8de Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 20 Feb 2014 19:04:09 +0100 Subject: Added screen lock on suspend. --- bin/lid-switch-action | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin/lid-switch-action') diff --git a/bin/lid-switch-action b/bin/lid-switch-action index 94c05c3..b5b7f62 100755 --- a/bin/lid-switch-action +++ b/bin/lid-switch-action @@ -43,6 +43,10 @@ if [ $1 = 0 ];then else echo "Only one screen connected" echo "Suspending." + if [[ -f "/home/dave/.config/awesome/i3lock" ]];then + echo "Using i3lock" + su dave -c "/home/dave/.config/awesome/i3lock" + fi systemctl suspend fi # If the lid was opened -- cgit v1.2.3-54-g00ecf