Skip to content

beProsto/share-a-keyboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

23aaae2 · Jul 5, 2024

History

63 Commits
Oct 23, 2023
Oct 30, 2023
Oct 22, 2023
Oct 23, 2023
Nov 12, 2023
Dec 21, 2023
Oct 23, 2023
Oct 30, 2023
Oct 22, 2023
Oct 30, 2023
Jul 5, 2024

Repository files navigation

share-a-keyboard

I might have sort of destroyed my main PC's keyboard with water damage... This program is going to be a really simple way to share a keyboard between two computers. You just need to run the server on the computer with a keyboard and the client on the computer without one. Simple as.

Note; make sure you have Python 3 installed.

To build the full package on your system simply:

cmake -B ./build
cmake --build ./build

Both the server and the client for your operating system will now be located in ./build/ under the very unassuming filenames of "server" and "client".

The server will read the keystrokes from your machine, when you run it you just need to provide it with a port it should work under:

# run server on port 2138
./server 2138

The client receives the keystrokes from the server and emulates them on the machine it's running on. To run it we need the server's IP address and port:

# connect to a server on machine 10.1.1.12 on port 2138
./client 10.1.1.12 2138

Now you may realise that you cannot close the server via linux signals (ctrl+c or ctrl+z). This is fully intentional behaviour. These keystrokes are often used and needed in programming (which is what I need this keyboard for, after all), so I disabled their default behaviour. The connection is meant to be broken on the client's side; after that the server will quit.

Works on both Linux and Windows. ^^

About

Share your keyboard between two computers!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published