xkbdw

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

README (1083B)


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