Created
November 2, 2019 11:35
-
-
Save brianc118/1941254d178289634de037a6ae128415 to your computer and use it in GitHub Desktop.
caps2esc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Ubuntu | |
sudo apt install libevdev-dev libudev-dev build-essential ruby curl -y | |
git clone [email protected]: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