aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/lid-switch-action4
1 files changed, 4 insertions, 0 deletions
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