(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:
| # set the microphone mute led to glow when capture is enabled | |
| ACTION=="add",SUBSYSTEM=="sound",KERNEL=="ctl-led",ATTR{mic/mode}="follow-route" |
| // -*- coding:utf-8-unix; mode:c; -*- | |
| // | |
| // get the active window on X window system | |
| // | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| #include <locale.h> | |
| #include <X11/Xlib.h> // `apt-get install libx11-dev` |
| #!/bin/bash | |
| #++++++++++++++++ | |
| # Monitor Switch | |
| # | |
| # Moves currently focused window from one monitor to the other. | |
| # Designed for a system with two monitors. | |
| # Script should be triggered using a keyboard shortcut. | |
| # If the window is maximized it should remain maximized after being moved. | |
| # If the window is not maximized it should retain its current size, unless | |
| # height is too large for the destination monitor, when it will be trimmed. |
| #!/bin/bash | |
| # ssh-multi | |
| # D.Kovalov | |
| # Based on http://linuxpixies.blogspot.jp/2011/06/tmux-copy-mode-and-how-to-control.html | |
| # a script to ssh multiple servers over multiple tmux panes | |
| starttmux() { | |
| if [ -z "$HOSTS" ]; then |
| # taken from user Albert's answer on StackOverflow | |
| # http://stackoverflow.com/questions/5292204/macosx-get-foremost-window-title | |
| # tested on Mac OS X 10.7.5 | |
| global frontApp, frontAppName, windowTitle | |
| set windowTitle to "" | |
| tell application "System Events" | |
| set frontApp to first application process whose frontmost is true | |
| set frontAppName to name of frontApp |
| #include <X11/Xlib.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int main() | |
| { | |
| Display *display; | |
| Window window; | |
| XEvent event; | |
| int s; |
| ; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a | |
| ; semicolon, such as this one, are comments. They are not executed. | |
| ; This script has a special filename and path because it is automatically | |
| ; launched when you run the program directly. Also, any text file whose | |
| ; name ends in .ahk is associated with the program, which means that it | |
| ; can be launched simply by double-clicking it. You can have as many .ahk | |
| ; files as you want, located in any folder. You can also run more than | |
| ; one .ahk file simultaneously and each will get its own tray icon. |
I have spent quite a bit of time figuring out automounts of NFS shares in OS X...
Somewhere along the line, Apple decided allowing mounts directly into /Volumes should not be possible:
/etc/auto_master (see last line):
#
# Automounter master map
#
+auto_master # Use directory service