(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| ; Autohotkey Capslock Remapping Script | |
| ; Danik | |
| ; More info at http://danikgames.com/blog/?p=714 | |
| ; danikgames.com | |
| ; | |
| ; Functionality: | |
| ; - Deactivates capslock for normal (accidental) use. | |
| ; - Hold Capslock and drag anywhere in a window to move it (not just the title bar). | |
| ; - Access the following functions when pressing Capslock: | |
| ; Cursor keys - J, K, L, I |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| from Crypto.Cipher import AES | |
| import base64 | |
| import random | |
| import hashlib | |
| import os | |
| class AesCrypt256: |
| # UPDATE IN 2020 | |
| # You almost always will want to use the version at | |
| # https://github.com/luispedro/imread, which is | |
| # up-to-date and works with Python 3 | |
| # Copyright: Luis Pedro Coelho <luis@luispedro.org>, 2012 |
| #!/bin/bash | |
| # | |
| # Watch current directory (recursively) for file changes, and execute | |
| # a command when a file or directory is created, modified or deleted. | |
| # | |
| # Written by: Senko Rasic <senko.rasic@dobarkod.hr> | |
| # | |
| # Requires Linux, bash and inotifywait (from inotify-tools package). | |
| # | |
| # To avoid executing the command multiple times when a sequence of |
| import scala.util.continuations._ | |
| class Generator[A] extends Iterator[A] with (A => Unit @ suspendable) { | |
| private var a: Option[A] = None | |
| private var k: Option[Unit => Unit] = None | |
| def next = { | |
| val a0 = a.get | |
| val k0 = k.get | |
| a = None |