From 9653a82647b73c29b62d198b5eae381d079c175e Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 21 Mar 2017 19:40:27 +0100 Subject: [PATCH] X11 lock down: Disable the Control keys via xmodmap. --- bin/midori-display | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/midori-display b/bin/midori-display index 602715a..1584e51 100755 --- a/bin/midori-display +++ b/bin/midori-display @@ -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