fixkeyboard
This commit is contained in:
parent
e932f9e3fe
commit
d3ef01a71a
2 changed files with 9 additions and 1 deletions
8
bin/fixkeyboard
Executable file
8
bin/fixkeyboard
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue