xkbdw

X keyboard device watcher
git clone git://git.rr3.xyz/xkbdw
Log | Files | Refs | README | LICENSE

xkbdw.1 (933B)


      1 .TH "XKBDW" "1" "2024-07-17" "xkbdw" "User Commands"
      2 .SH NAME
      3 xkbdw \- XKB device watcher
      4 .SH SYNOPSIS
      5 \fBxkbdw\fR \fIcmd\fR [\fIargs\fR...]
      6 .SH DESCRIPTION
      7 \fBxkbdw\fR runs the command \fIcmd\fR with arguments \fIargs\fR everytime the
      8 core X keyboard changes.
      9 .SH NOTES
     10 This program was written to deal with the annoying XKB quirk (bug?) that the
     11 XKB keymap resets everytime the core X keyboard changes. So one could, for
     12 example, use the XCB XKB API to write a program \fIinstall\-keymap\fR that
     13 installs a custom keymap, but running it will only use the new keymap
     14 until a different keyboard device is used (which could even be a mouse with
     15 lots of buttons), at which point the keymap needs to be reinstalled. One can
     16 solve this problem with \fBxkbdw\fR by putting the following in
     17 \fI~/.xinitrc\fR:
     18 .EX
     19 
     20 	install-keymap
     21 	xkbdw install-keymap &
     22 
     23 .EE
     24 This is a pretty big hack, and there might be a better solution to the problem.