cornerman / i3-easyfocus

Focus and select windows in i3
GNU General Public License v3.0
172 stars 12 forks source link

Support fully customized command-line key maps #25

Open mtalexan opened 5 years ago

mtalexan commented 5 years ago

A continuation of #8, allow for more than just hard coded key maps. I'm not experienced with X11, so I didn't realize there was XStringToKeysym() as an option.

Instead of hard coding values from keysym.h to define a map, require a minimum sized map be provided on the command line if they specifiy --keymap=custom (or something similar), and allow a user to specify the names of keys that can be passed to XSTringToKeysym() as a comma-separated list (or something like that?).

This would require the map function to allow for a dynamically determined map size rather than a pre-defined map size, which is currently a non-trivial task.