diff options
author | David Runge <david.runge@frqrec.com> | 2014-02-20 19:04:09 +0100 |
---|---|---|
committer | David Runge <david.runge@frqrec.com> | 2014-02-20 19:04:09 +0100 |
commit | c55f33dd9dbca6bda6c3fefe7c15205715c2a8de (patch) | |
tree | 1449d8d68a9b669de3dbaaf1e8caca2f01e7da59 | |
parent | caf523eb653bf75c18f9c6d227fbd454a0c497a3 (diff) | |
download | dotfiles-c55f33dd9dbca6bda6c3fefe7c15205715c2a8de.tar.gz dotfiles-c55f33dd9dbca6bda6c3fefe7c15205715c2a8de.tar.bz2 dotfiles-c55f33dd9dbca6bda6c3fefe7c15205715c2a8de.tar.xz dotfiles-c55f33dd9dbca6bda6c3fefe7c15205715c2a8de.zip |
Added screen lock on suspend.
-rwxr-xr-x | bin/lid-switch-action | 4 |
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 |