re-run xmodmap after resuming from suspend
This commit is contained in:
parent
e0a9716a65
commit
cb1bfcc63a
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
# Enable keyboard backlight
|
# Enable keyboard backlight
|
||||||
echo 0x00050021 > /sys/kernel/debug/asus-nb-wmi/dev_id
|
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)
|
# disable wake from sleep on USB device 2-1.4 (mouse)
|
||||||
echo disabled > /sys/bus/usb/devices/2-1.4/power/wakeup
|
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
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user