- Can be use out of the box in X86_64 linux, i386 is current not support, but it easy to extension.
- No compile is need in X86_64 linux.
- Refactor old(not active)rebindkeys, keep going ...
- Lots of functions improve.
-
Download package.
$ git clone https://github.com/zw963/linux_key_rebinding $HOME/linux_key_rebinding
-
Create and edit your's config file $HOME/.rbindkeys.rb, you can found a sample in example directory.
-
Start as daemon with
$: $HOME/linux_key_rebinding/bin/rbindkeys 'Your keyboard description' --daemon
For boot autorun with no sudo password, you need add' current user to /etc/sudoers with following command:' this need sudo privilege, if you want boot autorun with no sudo password, you need add current user to /etc/sudoers with following command:
$: echo $USER ALL=(ALL) NOPASSWD: ALL |sudo tee -a /etc/sudoers
your keybaord description can be found with:
$: rbindkeys -l /dev/input/event0: AT Translated Set 2 keyboard (BUS_I8042) /dev/input/event1: PS/2 Generic Mouse (BUS_I8042) /dev/input/event2: Sleep Button (BUS_HOST) /dev/input/event3: Lid Switch (BUS_HOST) ...
Here
AT Translated Set 2 keyboard
is your keyboard description. it is not changed when you switch diffrence linux distribtion or use same plug-in external keyboard.HINT: you can export a environment variable to simplify startup process
$: export keyboard_description='You keyboard description' # add this to your's .bashrc. $ : rbindkeys --daemon
remove --daemon argument, will run rbindkeys in foreground. you will get many useful infomation.
$: pkill rbindkeys