diff --git a/scripts/scripts/laptop_power_plug b/scripts/scripts/udev_power_cord similarity index 91% rename from scripts/scripts/laptop_power_plug rename to scripts/scripts/udev_power_cord index 0863a42..6ae9f88 100755 --- a/scripts/scripts/laptop_power_plug +++ b/scripts/scripts/udev_power_cord @@ -15,7 +15,7 @@ case "$1" in ;; esac -user=$(who | head -n 1 | cut -d" " -f1) +user=$(users | cut -d" " -f1) export XAUTHORITY=/home/$user/.Xauthority