xpra icon
Bug tracker and wiki

Ticket #50: xmodmap

File xmodmap, 425 bytes (added by Heroxbd, 9 years ago)

xmodmap wrapper

Line 
1#!/bin/bash
2
3# this is a xmodmap wrapper that wraps xmodmaps -pke output to take
4# account of the modifiers
5
6XMODMAP=`which -a xmodmap | sed -n '2p'`
7
8if [ "$1" == '-pke' ];
9then
10    echo \
11"clear Lock
12clear Ctrl
13clear mod1
14clear mod4
15clear shift"
16    ${XMODMAP} -pke
17    echo \
18"add Ctrl = Control_L Control_R
19add mod1 = Alt_L Alt_R
20add mod4 = Super_L Super_R
21add shift = Shift_L Shift_R"
22else
23    exec ${XMODMAP} "$@"
24fi
25
26