From 359f49402f1056a30fc450a8001405c8a7a1ff99 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Sun, 4 Nov 2012 11:13:48 -0800 Subject: [PATCH] Ignore capslock key with setxkbmap --- bash/environment | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bash/environment b/bash/environment index 402ba13..2b34d6b 100644 --- a/bash/environment +++ b/bash/environment @@ -1,5 +1,10 @@ #!/usr/bin/env bash +# Disable capslock +if [[ -x `which setxkbmap` ]]; then + setxkbmap -option ctrl:nocaps +fi + # don't put duplicate lines in the history. See bash(1) for more options # ... or force ignoredups and ignorespace HISTCONTROL=ignoredups:ignorespace