dotfiles/bin/fixkeyboard
2020-02-06 13:28:20 -08:00

8 lines
353 B
Bash
Executable file

#!/bin/bash
#python -c 'from ctypes import *; X11 = cdll.LoadLibrary("libX11.so.6"); display = X11.XOpenDisplay(None); X11.XkbLockModifiers(display, c_uint(0x0100), c_uint(2), c_uint(0)); X11.XCloseDisplay(display)'
setxkbmap -option ctrl:nocaps
if which notify-send >/dev/null; then
notify-send -t 1500 -a fixkeyboard "Fixed" "CapsLock Disbled"
fi