#!/bin/sh setxkbmap "us,tr" -option caps:escape # Set keyboard layout. map CapsLock to Esc xset r rate 180 40 xmodmap -e "clear control" -e "add control = Control_L" -e "clear mod3" -e "add mod3 = Control_R" # Map right Ctrl to Mod3Mask