Skip to main content

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

Popular posts from this blog

How to install python and configure django on a CentOS 6.7 Linux server with CPanel?

I recently had a chance to play with CentOS 6.7 server. My task was to re-install(reconfigure) run a Django site on it. Actually it was done by my around 2 years before. Then some system admin guy updated the system (especially PHP related stuff), and essentially he screwed up my (ie. I worked tm.) django website. I had lost the track on installing those things. So I would like to share my experience on reaching the point. First of all I tried to locate the apache config file. My initial thoughts were about this file. /etc/apache2/apache.conf I roamed here and there, to get some idea about the system.Here are my commands which I use these sort of tasks. which httpd which apache which apache2 type httpd locate apache.conf locate httpd.conf whatis httpd  Sure, You should use man pages to get more info of these commands like which,type and locate. Try `man man` to know what man is. Anyway, I got some ideas regarding where the conf files lies, especially with the help of locate

Brython: Python in Browser

Brython is python in browser. Yes, You can just run it in the browser. What you need is to get brython.js from their github. https://raw.githubusercontent.com/brython-dev/brython/master/www/src/brython.js And put it into some folder of your choice. Now create a html file and call that js. <html> <head> <script src= "brython.js" ></script> </head> <body onload= "brython()" > <script type= "text/python" > from browser import document , alert, console def echo(ev) : alert( document [ "zone" ].value) console.log( 'Hi, this is from python' ) document [ 'mybutton' ].bind( 'click' ,echo) </script> <input id= "zone" ><button id= "mybutton" > click ! </button> </body> </html> Here is piece of code i copied from their website (Infact, modified a little bit). What is important? 1. including &