Giter Club home page Giter Club logo

caps-lock-auto-switch's Introduction

Caps Lock Auto Switch

Rust Debian GitHub Release Status GitHub Build Status License Gitmoji

Use case : as any boomer, I sometimes type while looking at the keyboard. And I end up starting sentences having the case all wrong.

This small service listens to keyboard events and detects words like hELLO . Then the caps lock is toggled and the word is retyped.

This package is written in Rust and uses rdev crate. It won't work with Wayland windowing system.

Warning

๐Ÿšง Debian package under construction

Install

Run the following commands to install the package:

VERSION=$(curl "https://api.github.com/repos/ad2ien/caps-lock-auto-switch/tags" | jq -r '.[0].name')
curl -L "https://github.com/ad2ien/caps-lock-auto-switch/releases/download/${VERSION}/capslock-auto-switch_${VERSION#v}-1_all.deb -o capslock-auto-switch_${VERSION#v}-1_all.deb"
sudo dpkg -i capslock-auto-switch_${VERSION#v}-1_all.deb
rm capslock-auto-switch_${VERSION#v}-1_all.deb

Dev

Pre requisites:

sudo apt-get install libx11-dev xorg-dev libxdo-dev

Run:

cargo run

Build debian package

./debian-build.sh --lint 

Off course lint arg is optional

Test

Only tried on Pop!_OS 22.04 LTS. Should work on any Debian based distri with X11.

TODO

  • debian package lint warnings
  • remove test from build script
  • readme badges rust & lint
  • commands : help, edit configuration...
  • check install/remove, upgrade on a clean system
  • only define project variable once : description licence version..
  • manage languages special characters
  • dockerize build
  • logs
  • docker image project for dch
  • Have a debian repository to enable apt-get install capslock-auto-switch

caps-lock-auto-switch's People

Contributors

ad2ien avatar github-actions[bot] avatar

Stargazers

Javed Khan 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.