Giter Site home page Giter Site logo

zw963 / linux_key_rebinding Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 17.04 MB

Linux key rebinding tools, config is base on application, individually, can be use out of the box.

Ruby 83.62% Shell 0.11% CSS 0.13% Ragel 0.69% Yacc 15.36% REXX 0.08%

linux_key_rebinding's Introduction

Linux Key Rebinding: Linux key rebinding tools, config is base on application, individually

Thanks

This package is base on following awesome open source project in github.

Improve for old rbindkeys.

  • 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.

How to start

  1. Download package.

    $ git clone https://github.com/zw963/linux_key_rebinding $HOME/linux_key_rebinding
  2. Create and edit your's config file $HOME/.rbindkeys.rb, you can found a sample in example directory.

  3. 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

How to debug

remove --daemon argument, will run rbindkeys in foreground. you will get many useful infomation.

How to stop daemon

$: pkill rbindkeys

linux_key_rebinding's People

Contributors

zw963 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

linux_key_rebinding's Issues

Feature request: binding for same key with different pressed times

Hello sir,
There is a program called xcape. It can generate the Escape key when Left Control is pressed and released on its own. Can you add that to linux_key_rebinding and make it also generate key combinations (such as C-c) if the modifier key is pressed and released on its own.
Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.