re-run xmodmap after resuming from suspend

This commit is contained in:
Josh Holtrop 2012-09-08 08:26:01 -04:00
parent e0a9716a65
commit cb1bfcc63a

View File

@ -1,4 +1,4 @@
#!/bin/sh -e
#!/bin/bash -e
# Enable keyboard backlight
echo 0x00050021 > /sys/kernel/debug/asus-nb-wmi/dev_id
@ -8,4 +8,8 @@ cat /sys/kernel/debug/asus-nb-wmi/devs > /dev/null
# disable wake from sleep on USB device 2-1.4 (mouse)
echo disabled > /sys/bus/usb/devices/2-1.4/power/wakeup
# run xmodmap
export DISPLAY=:0
/bin/su josh -c "sleep 3; /usr/bin/xmodmap /home/josh/.xmodmap" &
exit 0