Giter VIP home page Giter VIP logo

pyk290-fnkeyctl's Introduction

pyk290-fnkeyctl

Reconfigures the way the function keys on Logitech K290 keyboards works. This is a python port of https://github.com/milgner/k290-fnkeyctl

Requires python-libusb1, to install sudo pip3 install libusb1

or sudo apt install python3-libusb1

Works with python 2 and python 3

Tested on Ubuntu 15.04, 16.04, 17.04 and 18.04

Running it

Manually

Opening the device with libusb requires advanced permissions, so run it with

    sudo python3 k290_fnkeyctl.py
or
    sudo ./k290_fnkeyctl.py

Afterwards, you'll have regular function key behaviour. If you want to switch back, just append -r or --reset.

Automatically (udev)

To automatically run the program when the device is plugged in, you can use the included udev rules script as a template. Or just automatically install them along with the executable with

sudo ./install.sh

Which will copy the executable to /usr/local/sbin and install the udev rules into /etc/udev/rules.d. Now you'll just need to tell udev to apply the new rules:

sudo udevadm control --reload-rules
sudo udevadm trigger --subsystem-match=input

pyk290-fnkeyctl's People

Contributors

doudz avatar

Stargazers

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