-
Notifications
You must be signed in to change notification settings - Fork 0
/
.Xmodmap
38 lines (37 loc) · 1.34 KB
/
.Xmodmap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
! STEP-1: First of all, install:
! $ sudo apt install x11-xserver-utils xkeycaps
!
! STEP-2: After that, create the .Xmodmap file
! $ touch ~/.Xmodmap
!
! STEP-3: Put the code in the session below in the ".Xmodmap" file in home dir.
!
! STEP-4: Run the code below to update the modemap
! $ xmodmap ~/.Xmodmap
!
! STEP-5: Create a script to run on loading
! $ touch ~/remapkeys.sh
! $ chmod u+x remapkeys.sh
! - add this two lines of code
! #!/usr/bin/bash
! xmodmap $HOME/.Xmodmap
! - after that, move the file into autorun folder
! - the KDE autorun folder is in
! - $HOME/.kde/autorun or
! - $HOME/.config/autostart
! - the XSever is in
! - $HOME/.config/autostart
!
! For more information the source:
!https://en.jveweb.net/archives/2010/11/making-better-use-of-the-caps-lock-key-in-linux.html#:~:text=ESC%20and%20CapsLock-,Change%20or%20swap%20the%20Caps%20Lock%20key%20functionality%20in%20KDE,the%20CapsLock%20key%20behavior%20section.
!==============================================================================
!-------------------- CODE TO PUT IN .Xmodmap file ----------------------------
!==============================================================================
! Swap Caps_Lock and Control_L
!
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L