From 31ddec584fd59609af3a370277c0cececcce9af2 Mon Sep 17 00:00:00 2001 From: Ryan Reaves Date: Sat, 27 Jul 2019 12:13:47 -0500 Subject: [PATCH] - Updated name in readme, updated install to check for blank usbid. --- README.md | 14 ++++++++------ install.py | 3 +++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5b77aef..fc06fdd 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# Kinto +# K!nt◎ [![GitHub release](https://img.shields.io/github/release/rbreaves/kinto.svg)](https://github.com/rbreaves/kinto/releases) -- Fix the damn keyboard. - +\- Fix the damn keyboard. - -When memory muscle matters (for programmers and developers). +Memory muscle matters for programmers and developers. (For linux) This project is only about one thing, remapping the control key to be next to your space bar no matter what keyboard you swap into your workflow and to do it without mastering xmodmap, setxkbmap or modifying system files. @@ -11,9 +11,11 @@ This project is only about one thing, remapping the control key to be next to yo Remaps your keyboard to behave more like you're on a mac again and below is how the keymap will behave. -Normal apps - Alt will be Ctrl, Win/Super will be Alt, Ctrl will be Win/Super -Terminal apps (optional) - Alt will be Win/Super, Win/Super will be Alt, Ctrl will be Ctrl -Modify existing Terminal app keymap profiles (optional and with confirmation) - Copy, Paste, New Tab, etc will be remapped to user Win/Super in the physical Command (or Alt key) position. +- Normal apps - Alt will be Ctrl, Win/Super will be Alt, Ctrl will be Win/Super + +- Terminal apps (optional) - Alt will be Win/Super, Win/Super will be Alt, Ctrl will be Ctrl + +- Modify existing Terminal app keymap profiles (optional and with confirmation) - Copy, Paste, New Tab, etc will be remapped to use Win/Super in the physical Command (or Alt key) position. ## How to install diff --git a/install.py b/install.py index bdb76cc..f58f1c0 100755 --- a/install.py +++ b/install.py @@ -61,6 +61,9 @@ internalid = subprocess.check_output('xinput list | grep -iv "Virtual\|USB" | gr # Loop the following to ensure the id is picked up after 5-10 tries usbid = subprocess.check_output('udevadm info -e | stdbuf -oL grep -o -P "(?<=event-kbd /dev/input/by-path/pci-0000:00:).*(?=.0-usb)";exit 0', shell=True).decode('utf-8') +if usbid == "": + usbid = "none found" + print("Internal Keyboard ID: " + internalid + "USB Keyboard ID: " + usbid)