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