Git Product home page Git Product logo

secondary-control-keyboard's Introduction

== Premise ==

Welcome to Keyboard Control Panel, or KeyCoP

This program turns your second keyboard into your personal physical control panel. It intercepts all events from specified device(s) and lets me program it to whatever I might want.

Currently it allows me to switch between my virtual desktops.

Additionally it will run executables at '~/.config/keycop/bind/just/' provided that they're there and execute permissions are set. For instance, to trigger system reboot upon pressing key [,] ("comma") make a symbolic link to your reboot binary as such:

ln -s $(which reboot) ~/.config/keycop/bind/just/comma

More generally you can put any executable there, and it will spawn asynchronously and will share the stdin, stdout and stderr with the keycop process

== Building ==

Requires x11-devel (Fedora) or equivalent XOrg headers. Requires libxdo-devel (Fedora) or equivalend libxdo headers.

== Running ==

To run this with full functionality you need to:

  • add your user to "input" group (Fedora) or whichever group grants you read permissions on /dev/input/event* files
  • have a second keyboard plugged in
  • change the id string of keyboard to your keyboard
  • run compiz window decorator with both "Expo" and "D-Bus" plugins enabled
  • have virtual desktops configured in a grid (currently hardcoded 2 rows by 3 columns)
  • run the program, and keep it running

== TO DO ==

  • make keyboard identifier configurable
  • add more functionality!
  • add GUI configurator

secondary-control-keyboard's People

Contributors

st92 avatar

Watchers

 avatar

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.