Sunday, 4 October 2015

How i changed my keyboard's Space key to Space and Ctrl in Ubuntu 14.04

The thing i wanted was to change my keyboard's behavior like this. When i press Space alone it is Space key. If i pressed with some other key, it is Ctrl.
That is Space+X gives Ctrl+X.

Install needed libs

sudo apt-get install libx11-dev libxtst-dev
Get the source
git clone https://github.com/r0adrunner/Space2Ctrl
Install
cd Space2Ctrl
make
sudo make install

How to use?

Start by typing this in a terminal

s2cctl start

And now Stop by

s2cctl stop

How do i use it?

I added it to ~/.bash_login. So when i login to computer it works.

Reference
https://github.com/r0adrunner/Space2Ctrl