From bcd3e89a1144f23a95f11e0243fedb2b7c1eaab9 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sun, 25 Nov 2018 13:54:19 +0100 Subject: Add binding to change keyboard --- bin/.local/bin/keyboard-us | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 bin/.local/bin/keyboard-us (limited to 'bin/.local') diff --git a/bin/.local/bin/keyboard-us b/bin/.local/bin/keyboard-us new file mode 100755 index 0000000..8f93f66 --- /dev/null +++ b/bin/.local/bin/keyboard-us @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +# Key repeat rate +xset r rate 400 50 + +# Xcape settings +killall -9 xcape + +# Set keyboard to US +setxkbmap us + +# Make Caps_Lock (Control_L, Escape) +xmodmap -e "clear Lock" +xmodmap -e "keysym Caps_Lock = Control_L Control_L" +xmodmap -e "add Control = Control_L" + +# Make space (Super_L, space) +xmodmap -e "keysym space = Super_L" +xmodmap -e "add mod4 = Super_L" +xmodmap -e "keycode any = space" +xcape -e 'Super_L=space' -- cgit v1.2.3