View difference between Paste ID: ySMRJe8A and yuxeEUv1
SHOW: | | - or go back to the newest paste.
1
#!/bin/bash
2-
# Entfernt die Capslock-Funktionalität
2+
# Removes standard function of the Capslock key
3-
# und bindet die Capslock-Taste auf Steuerung (links)
3+
# Capslock now behaves like a normal Shift key
4
#
5-
# Sollte in die Liste der automatisch-gestarteten Programme
5+
# If you don't know what "bash" is then don't
6-
# der Desktop-Umgebung gelegt werden
6+
# use this script
7
#
8-
# Author: Michael Koch (Emkay443) (m<DOT>koch<AT>emkay443<DOT>de)
8+
# --- HOW TO USE ---
9-
# Version: 2013-08-31
9+
10-
# License: GNU General Public License v3 (http://www.gnu.de/documents/gpl-3.0.en.html)
10+
# Save the contents of this paste into a .sh file
11
# then mark the file as executable (either with
12-
setxkbmap -config ctrl:nocaps
12+
# chmod +x or with the file properties dialogue)
13
#
14
# Put the file into the list of programs which are
15
# started when you boot or login
16
# Changes will take effect on relogin
17
#
18
# --- CREDITS ---
19
#
20
# Original Author: Michael Koch
21
# (m<DOT>koch<AT>emkay443<DOT>de)
22
# remapped Capslock to a Ctrl key
23
# from 2013-08-23
24
#
25
# Edited by: Marko Milse
26
# (marko<DOT>milse<AT>yahoo<DOT>com)
27
# Version: 2013-08-25
28
#
29
# License: Copyleft
30
31
xmodmap -e "remove Lock = Caps_Lock"
32
xmodmap -e "keycode 0x42 = Shift_L"
33
xmodmap -e "add Shift = Shift_L"
34
exit 0