From 0a0196482891ce4b02c2d8a03859c64128ee890b Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 20 Feb 2014 02:16:36 +0100 Subject: Fixing script for root usage with exports of DISPLAY and XAUTHORITY --- bin/lid-switch-action | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bin/lid-switch-action') diff --git a/bin/lid-switch-action b/bin/lid-switch-action index 4b91d48..e8376aa 100755 --- a/bin/lid-switch-action +++ b/bin/lid-switch-action @@ -5,6 +5,9 @@ # Call this script from /etc/acpi/handler.sh (or other properly set up script # for handling button/lid acpi event) with parameter 0 and 1 for close and open respectively +export DISPLAY=:0 +export XAUTHORITY=/home/dave/.Xauthority + # Check whether first parameter is a number re='^[0-9]+$' if ! [[ $1 =~ $re ]]; then -- cgit v1.2.3-54-g00ecf