EnglishFrenchSpanish

OnWorks favicon

xcape - Online in the Cloud

Run xcape in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command xcape that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


xcape - use a modifier key as another key

SYNOPSIS


xcape [-d] [-t timeout] [-e map-expression]

DESCRIPTION


xcape allows a modifier key to be used as another key when it is pressed and released on
its own. The default behaviour is to generate the Escape key in place of Control_L (Left
Control).

OPTIONS


-d Debug mode. Will run as a foreground process.

-t timeout
Give a timeout in milliseconds. If you hold a key longer than timeout a key event
will not be generated.

-e map-expression
Use map-expression as the expression(s).

EXPRESSION SYNTAX


Expression syntax is ´ModKey=Key[|OtherKey]´. Multiple expressions can be passed,
delimited by semi-colons (;).

A list of keysyms can be found in the header file <X11/keysymdef.h> (without the XK_
prefix).

Note that shifted keys must be specified as a shift key followed by the key to be pressed
rather than the actual name of the character. For example to generate "{" the expression
´ModKey=Shift_L|bracketleft´ could be used (assuming that you have a key with ´{´ above
´[´).

You can also specify ModKey in decimal (prefix #), octal (#0), or hexadecimal (#0x). It
will be interpreted as a keycode unless no corresponding key name is found.

EXAMPLES


Make Left Shift generate Escape when pressed and released on it's own, and Left Control
generate Ctrl-O combination when pressed and released on it's own:
xcape -e 'Shift_L=Escape;Control_L=Control_L|O'

In conjugation with xmodmap it is possible to make an ordinary key act as an extra
modifier. First map the key to the modifier with xmodmap and then the modifier back to the
key with xcape. As an example, we can make the space bar work as an additional ctrl key
when held with the following sequence of commands:

First, map an unused modifier's keysym to the spacebar's keycode and make it a control
modifier. It needs to be an existing key so that emacs won't spazz out when you press it.
Hyper_L is a good candidate.

spare_modifier="Hyper_L"
xmoadmap -e "keycode 65 = $spare_modifier"
xmoadmap -e "remove mod4 = $spare_modifier"
# hyper_l is mod4 by default
xmoadmap -e "add Control = $spare_modifier"

Next, map space to an unused keycode (to keep it around for xcape to use).

xmodmap -e "keycode any = space"

Finally use xcape to cause the space bar to generate a space when tapped.

xcape -e "$spare_modifier=space"

Use xcape online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    OfficeFloor
    OfficeFloor
    OfficeFloor provides inversion of
    coupling control, with its: - dependency
    injection - continuation injection -
    thread injection For more information
    visit the...
    Download OfficeFloor
  • 2
    DivKit
    DivKit
    DivKit is an open source Server-Driven
    UI (SDUI) framework. It allows you to
    roll out server-sourced updates to
    different app versions. Also, it can be
    used fo...
    Download DivKit
  • 3
    subconverter
    subconverter
    Utility to convert between various
    subscription format. Shadowrocket users
    should use ss, ssr or v2ray as target.
    You can add &remark= to
    Telegram-liked HT...
    Download subconverter
  • 4
    SWASH
    SWASH
    SWASH is a general-purpose numerical
    tool for simulating unsteady,
    non-hydrostatic, free-surface,
    rotational flow and transport phenomena
    in coastal waters as ...
    Download SWASH
  • 5
    VBA-M (Archived - Now on Github)
    VBA-M (Archived - Now on Github)
    Project has moved to
    https://github.com/visualboyadvance-m/visualboyadvance-m
    Features:Cheat creationsave statesmulti
    system, supports gba, gbc, gb, sgb,
    sgb2Tu...
    Download VBA-M (Archived - Now on Github)
  • 6
    Stacer
    Stacer
    Linux System Optimizer and Monitoring
    Github Repository:
    https://github.com/oguzhaninan/Stacer.
    Audience: End Users/Desktop. User
    interface: Qt. Programming La...
    Download Stacer
  • More »

Linux commands

  • 1
    7za
    7za
    7za - A file archiver with highest
    compression ratio ...
    Run 7za
  • 2
    7zr
    7zr
    7zr - A file archiver with highest
    compression ratio ...
    Run 7zr
  • 3
    cpan
    cpan
    cpan - easily interact with CPAN from
    the command line ...
    Run cpan
  • 4
    cpan2debp
    cpan2debp
    dh-make-perl - Create debian source
    packages from Perl modules ...
    Run cpan2debp
  • 5
    fweelin
    fweelin
    freewheeling � live looping musical
    instrument ...
    Run fweelin
  • 6
    fwexec
    fwexec
    fwexec - program to upload and rexecute
    image file to a connected NXT device ...
    Run fwexec
  • More »

Ad