#!/bin/bash # Resets custom keyboard modifications. This is usefull when # pluggin/unplugging external keyboards to fix possible bugs. # Keys modification applied: # - CAPS-LOCK fix: modifies the CAPS-LOCK behaviour so that it send an # signal on release and a CTRL signal when hold. # - CAPS-LOCK is (de)activated pressing both shift keys. setxkbmap -option ctrl:nocaps -option shift:both_capslock xcape -e 'Control_L=Escape'