From 9afbf5a49f179df1f06a7a60117f9a745298c3a9 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 12 Dec 2013 08:40:47 +0100 Subject: [PATCH] add script to poweroff the system via acpi and lock the screen Signed-off-by: Nico Schottelius --- acpi-poweroff | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 acpi-poweroff diff --git a/acpi-poweroff b/acpi-poweroff new file mode 100755 index 0000000..c3a0c25 --- /dev/null +++ b/acpi-poweroff @@ -0,0 +1,4 @@ +#!/bin/sh + +suspend=~/bin/suspend +su nico -c "DISPLAY=:0.0 $suspend"