Skip to content

Instantly share code, notes, and snippets.

@dev-pmartins
Last active June 4, 2019 15:31
Show Gist options
  • Save dev-pmartins/7be0396f9d93edd2976a2d43f27a6977 to your computer and use it in GitHub Desktop.
Save dev-pmartins/7be0396f9d93edd2976a2d43f27a6977 to your computer and use it in GitHub Desktop.
# - - ( On debian )
# This script resolve the font case DeLaY by use capslock
## Font: https://ubuntuforums.org/showthread.php?t=1462333&page=3&p=12328951#post12328951
# Run:
xkbcomp -xkb $DISPLAY /home/$(whoami)/myxkbmap
# Open for edit the generated file, like:
sudo vim /home/$(whoami)/myxkbmap
# On editor, find something like:
# "key <CAPS>"
# Replace by:
# "key <CAPS> { repeat=no, type[group1]="ALPHABETIC", symbols[group1]=[ Caps_Lock, Caps_Lock ], actions[group1]=[ LockMods(modifiers=Lock), Private(type=3,data[0]=1,data[1]=3,data[2]=3) ] };"
# Save changes, and set var:
xkbcomp /home/$(whoami)/myxkbmap $DISPLAY
# Add new script on /etc/ini config changes on boot
sudo vim /etc/inid.d/cutom-boot.sh
# Write on file:
## #!/bin/sh
##
## xkbcomp /home/username/myxkbmap $DISPLAY
# Save script, and change file to executable.
sudo chmod +x /etc/init.d/custom-boot.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment