summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorben <ben@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2009-01-15 21:37:27 +0000
committerben <ben@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2009-01-15 21:37:27 +0000
commitb75100b02793cfe94fe1a14a9e0e8fbd7e1a9eed (patch)
treea198f77322ab3551f52cc4c35dc40b97b0a07007
parent1a43a8ed39071772c7f6101a25bce1e6fef495f2 (diff)
caps lock ausschalten sollte in asdf erst später sein
git-svn-id: https://svn.neo-layout.org@1458 b9310e46-f624-0410-8ea1-cfbb3a30dc96
Diffstat (limited to '')
-rwxr-xr-xlinux/bin/asdf11
1 files changed, 7 insertions, 4 deletions
diff --git a/linux/bin/asdf b/linux/bin/asdf
index e169e62..b4842c8 100755
--- a/linux/bin/asdf
+++ b/linux/bin/asdf
@@ -5,9 +5,6 @@
# Copyright 2008 Erik Streb del Toro
# Distributed under the terms of the GNU General Public License v3
-#prevent CapsLock while ›asdf‹ is running
-xmodmap -e "clear Lock" 2> /dev/null
-
# colour definitions
normal="\033[0m"
red="\033[31m"
@@ -128,9 +125,15 @@ fi
if [ -z ${DISPLAY} ]; then
setleds +num || numlock_manually an
- setleds -caps
set_keymap "${NEO_CONSOLE_KEYMAP}"
+ # schalte versehentlich angeschaltetes CapsLock aus
+ # keymap hat nur shiftlock => man kommt nicht mehr raus…
+ setleds -caps
else
+ # versuche in letzter Sekunde versehentliches CapsLock anschalten zu verhindern
+ # xmodmap hat nur shiftlock => man kommt nicht mehr raus…
+ xmodmap -e "clear Lock"
+
numlockx off || numlock_manually aus
for modifier in 51 94; do