X11 lock down: Disable the Control keys via xmodmap.

This commit is contained in:
Mike Gabriel 2017-03-21 19:40:27 +01:00
parent 2e2c2f91e5
commit 9653a82647
1 changed files with 4 additions and 0 deletions

View File

@ -132,6 +132,10 @@ if which xmodmap 1>/dev/null; then
[ $count_buttons_pointer_button_map -lt 32 ]; then
xmodmap -e "pointer = $POINTER_BUTTON_MAP"
fi
# furthermore... let's deactivate the "Control" modifier key to disable most hotkeys in Midori
xmodmap -e "clear Control"
else
$OUTPUT "WARNING: Cannot strip down mouse/pointer button functionality. Make sure 'xmodmap' is installed."
fi