File: 40custom_load-xmodmap

package info (click to toggle)
i8kutils 1.25
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 216 kB
  • ctags: 159
  • sloc: ansic: 1,203; sh: 748; makefile: 105
file content (17 lines) | stat: -rw-r--r-- 345 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# /etc/X11/Xsession.d/40custom_xmodmap

# Load system-wide Xmodmap
if [ -x /usr/bin/X11/xmodmap ]; then
  if [ -f $SYSMODMAP ]; then
    xmodmap $SYSMODMAP
  fi
fi

# Load user .Xmodmap
if [ -x /usr/bin/X11/xmodmap ]; then
  if grep -qs ^allow-user-modmap $OPTIONFILE; then
    if [ -f $USRMODMAP ]; then
      xmodmap $USRMODMAP
    fi
  fi
fi