- Updated name in readme, updated install to check for blank usbid.

This commit is contained in:
Ryan Reaves
2019-07-27 12:13:47 -05:00
parent d4a28b2d3b
commit 31ddec584f
2 changed files with 11 additions and 6 deletions

View File

@@ -1,9 +1,9 @@
# Kinto # K!nt
[![GitHub release](https://img.shields.io/github/release/rbreaves/kinto.svg)](https://github.com/rbreaves/kinto/releases) [![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. 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. 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 - 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. - 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 ## How to install

View File

@@ -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 # 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') 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) print("Internal Keyboard ID: " + internalid + "USB Keyboard ID: " + usbid)