debian/61imwheel_load-xmodmap
raw| 1 | #!/bin/sh |
| 2 | # Runs xmodmap if mappings are found. Useful for re-arranging mouse buttons. |
| 3 | # Place this file in /etc/X11/Xsession.d. |
| 4 | # Based on the example script in the Xsession manpage. |
| 5 | |
| 6 | SYSMODMAP=/etc/X11/Xmodmap |
| 7 | USRMODMAP=$HOME/.Xmodmap |
| 8 | |
| 9 | if [ -x /usr/bin/X11/xmodmap ]; then |
| 10 | if [ -f $SYSMODMAP ]; then |
| 11 | xmodmap $SYSMODMAP |
| 12 | fi |
| 13 | fi |
| 14 | |
| 15 | if [ -x /usr/bin/X11/xmodmap ]; then |
| 16 | if [ -f $USRMODMAP ]; then |
| 17 | xmodmap $USRMODMAP |
| 18 | fi |
| 19 | fi |