Skip to content

Instantly share code, notes, and snippets.

@brianc118
Created November 2, 2019 11:35
Show Gist options
  • Save brianc118/1941254d178289634de037a6ae128415 to your computer and use it in GitHub Desktop.
Save brianc118/1941254d178289634de037a6ae128415 to your computer and use it in GitHub Desktop.
caps2esc
#!/bin/bash
# Ubuntu
sudo apt install libevdev-dev libudev-dev build-essential ruby curl -y
git clone git@github.com:oblitum/caps2esc.git
cd caps2esc
# git checkout 5dc8546c20ac7f0feb6ef4a8c4f53187ebef44b4
gcc caps2esc.c -o caps2esc -I/usr/include/libevdev-1.0 -levdev -ludev
sudo mv ./caps2esc /usr/local/bin/caps2esc
sudo cp ../caps2esc.service /etc/systemd/system/caps2esc.service
sudo systemctl enable caps2esc
sudo systemctl start caps2esc
cd ..
rm -rf caps2esc/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment