Skip to content

Instantly share code, notes, and snippets.

@liuggio
Last active December 26, 2015 12:29
Show Gist options
  • Save liuggio/7151564 to your computer and use it in GitHub Desktop.
Save liuggio/7151564 to your computer and use it in GitHub Desktop.
SwapKeys joke

Swap Keys the funny joke

we are a great team @gianpiero2012 @toretto460 @danieledangeli @claudio-dalicandro

The game consists of inverting 2 keyboard keys both physically and in terms of key-map of your team mate.

It doesn't require root access.

Install

  1. pick a team mate or a friend that uses linux.

  2. swap physically the keyboard keys: D with F.

  3. swap the keymap executing the command

echo "Swapping f->d and d->f"
xmodmap -e "keycode 41 = d D d D eth ETH eth"
xmodmap -e "keycode 40 = f F f F dstroke ordfeminine dstroke"
  1. wait the brain explosion of your colleague

Uninstall

xmodmap -e "keycode 40 = d D d D eth ETH eth"
xmodmap -e "keycode 41 = f F f F dstroke ordfeminine dstroke"

more keycode please!

xmodmap -pke

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment