#!/bin/sh
logger "Locking screen..."
+. /usr/local/bin/getXenv.inc
+getXconsole
+
LOG=/var/log/btn-lock.log
date >> $LOG
/usr/local/bin/lockkde.sh
echo "Locked..." >> $LOG
-. /usr/local/bin/getXenv.inc
-
#Thinkpad acceleration alert
-su $user -c /usr/local/bin/tp_alert.sh >> $LOG 2>&1
-
-
+su $XUSER -c /usr/local/bin/tp_alert.sh >> $LOG 2>&1
#!/bin/sh
. /usr/local/bin/getXenv.inc
+getXconsole
if (synclient -l | grep TouchpadOff | grep -q 0) ; then
echo "touchpad on, turning it off"
- su $user -c "synclient TouchpadOff=1"
+ su $XUSER -c "synclient TouchpadOff=1"
else
echo "touchpad off, turning it on"
- su $user -c "synclient TouchpadOff=0"
+ su $XUSER -c "synclient TouchpadOff=0"
fi
#! /bin/sh
. /usr/local/bin/getXenv.inc
+getXconsole
STATEFILE="/var/run/vgastate"
LVDS1_defaultmode="1366x768"
#! /bin/bash
+
. /usr/local/bin/getXenv.inc
+getXconsole
logger "Disabeling VGA"
xrandr --output VGA1 --off
--- /dev/null
+/root/bin/getXenv.inc
\ No newline at end of file
--- /dev/null
+/root/bin/tp_alert.sh
\ No newline at end of file