alols / xcape

Linux utility to configure modifier keys to act as other keys when pressed and released on their own.
GNU General Public License v3.0
2.1k stars 117 forks source link

xcape with Ubuntu 14 #53

Closed geo7 closed 9 years ago

geo7 commented 9 years ago

Installed using the given method but doesn't seem to work for me. I'm not getting the error here, I'm just not getting anything.

Installed using :

    cd ~
    sudo apt-get install git gcc make pkg-config libx11-dev libxtst-dev libxi-dev
    mkdir xcape
    cd xcape
    git clone https://github.com/alols/xcape.git .
    make

This is the output of the install:

Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc is already the newest version.
libx11-dev is already the newest version.
libxtst-dev is already the newest version.
make is already the newest version.
pkg-config is already the newest version.
libxi-dev is already the newest version.
git is already the newest version.
The following packages were automatically installed and are no longer required:
  fonts-font-awesome fonts-mathjax ipython-notebook-common libjs-highlight
  libjs-jquery-ui libjs-marked libjs-mathjax libpgm-5.1-0 libx265-49 libzmq3
  python-mysqldb python-simplegeneric python-tornado python-zmq
  vlc-plugin-pulse

I have the file xcape in ~/xcape

└─[$]› file xcape
xcape: ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=88b6cd9cb4aabc502ba59d897c8b3a4e60a563ab, not st
ripped

If I run this file with ./xcape I see no output, and which doesn't return anything either

[$]› ./xcape 

[$]› which xcape

If I then load a new terminal with the following in bashrc

xmodmap -e "clear lock"
xmodmap -e "remove control = Control_L"
xmodmap -e "keycode 66 = Control_L"
xmodmap -e "add control = Control_L"

xcape -e "Control_L=Escape"

I get the output :

xmodmap:  please release the following keys within 2 seconds:
    Return (keysym 0xff0d, keycode 36)
    Super_L (keysym 0xffeb, keycode 133)
xcape: command not found
xcape: command not found

After restarting the machine I still get the error

xcape: command not found
xcape: command not found

I'm not sure if this is something to do with the distro or what - are there known issues for particular distros?

jdwolin commented 9 years ago

Running Mint 17.2 with the same exact issue. Also wanted to comment that you are scratching an itch I've had for a long time in developing this!

alols commented 9 years ago

You also need to run sudo make install if you want to be able to launch xcape in the way you are doing.