Skip to content

Instantly share code, notes, and snippets.

@zetas
Created June 13, 2018 06:00
Show Gist options
  • Save zetas/918e8e8ae11a1342ed2e727fce566e74 to your computer and use it in GitHub Desktop.
Save zetas/918e8e8ae11a1342ed2e727fce566e74 to your computer and use it in GitHub Desktop.
iTerm2 Byobu Keybind Profile.
{
"Ansi 5 Color" : {
"Green Component" : 0.4117647111415863,
"Blue Component" : 0.78823530673980713,
"Red Component" : 0.55686277151107788
},
"Working Directory" : "\/Users\/david",
"Prompt Before Closing 2" : 0,
"Selected Text Color" : {
"Green Component" : 0.729411780834198,
"Blue Component" : 0.729411780834198,
"Red Component" : 0.729411780834198
},
"Rows" : 25,
"Ansi 11 Color" : {
"Green Component" : 0.84012794494628906,
"Blue Component" : 0.2925230860710144,
"Red Component" : 0.93548321723937988
},
"Use Italic Font" : false,
"Foreground Color" : {
"Green Component" : 0.729411780834198,
"Blue Component" : 0.729411780834198,
"Red Component" : 0.729411780834198
},
"Right Option Key Sends" : 0,
"Character Encoding" : 4,
"Selection Color" : {
"Green Component" : 0.20000000298023224,
"Blue Component" : 0.20000000298023224,
"Red Component" : 0.18823529779911041
},
"Triggers" : [
],
"Blend" : 0.30000001192092896,
"Mouse Reporting" : true,
"Ansi 4 Color" : {
"Green Component" : 0.59607845544815063,
"Blue Component" : 0.90980392694473267,
"Red Component" : 0.10980392247438431
},
"Non-ASCII Anti Aliased" : true,
"Sync Title" : false,
"Disable Window Resizing" : true,
"Close Sessions On End" : true,
"Jobs to Ignore" : [
"rlogin",
"ssh",
"slogin",
"telnet"
],
"Scrollback With Status Bar" : false,
"Scrollback Lines" : 0,
"Scrollback in Alternate Screen" : true,
"Hide After Opening" : false,
"Flashing Bell" : true,
"BM Growl" : true,
"Ansi 3 Color" : {
"Green Component" : 0.83137255907058716,
"Blue Component" : 0.17254902422428131,
"Red Component" : 0.94901961088180542
},
"Shortcut" : "",
"Background Image Location" : "",
"Bold Color" : {
"Green Component" : 1,
"Blue Component" : 1,
"Red Component" : 1
},
"Unlimited Scrollback" : true,
"Custom Command" : "No",
"Smart Selection Rules" : [
{
"notes" : "Word bounded by whitespace",
"regex" : "\\S+",
"precision" : "low"
},
{
"notes" : "C++ namespace::identifier",
"regex" : "([a-zA-Z0-9_]+::)+[a-zA-Z0-9_]+",
"precision" : "normal"
},
{
"notes" : "Paths",
"regex" : "\\~?\/?([[:letter:][:number:]._-]+\/+)+[[:letter:][:number:]._-]+\/?",
"precision" : "normal"
},
{
"notes" : "Quoted string",
"regex" : "@?\"(?:[^\"\\\\]|\\\\.)*\"",
"precision" : "normal"
},
{
"notes" : "Java\/Python include paths",
"regex" : "([[:letter:][:number:]._]+\\.)+[[:letter:][:number:]._]+",
"precision" : "normal"
},
{
"notes" : "mailto URL",
"regex" : "\\bmailto:([a-z0-9A-Z_]+@)?([a-zA-Z0-9\\-]+\\.)*[a-zA-Z0-9\\-]+\\b",
"precision" : "normal"
},
{
"notes" : "Obj-C selector",
"regex" : "@selector\\([^)]+\\)",
"precision" : "high"
},
{
"notes" : "email address",
"regex" : "\\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}\\b",
"precision" : "high"
},
{
"notes" : "HTTP URL",
"regex" : "https?:\/\/([a-z0-9A-Z]+(:[a-zA-Z0-9]+)?@)?[a-z0-9A-Z]+(\\.[a-z0-9A-Z]+)*((:[0-9]+)?)(\/[a-zA-Z0-9;\/\\.\\-_+%~?&@=#\\(\\)]*)?",
"precision" : "very_high"
},
{
"notes" : "SSH URL",
"regex" : "\\bssh:([a-z0-9A-Z_]+@)?([a-zA-Z0-9\\-]+\\.)*[a-zA-Z0-9\\-]+\\b",
"precision" : "very_high"
},
{
"notes" : "Telnet URL",
"regex" : "\\btelnet:([a-z0-9A-Z_]+@)?([a-zA-Z0-9\\-]+\\.)*[a-zA-Z0-9\\-]+\\b",
"precision" : "very_high"
}
],
"Keyboard Map" : {
"0xf70b-0x40000" : {
"Text" : "[19;5~",
"Action" : 10
},
"0xf702-0x280000" : {
"Text" : "[1;3D",
"Action" : 10
},
"0xf70d-0x20000" : {
"Action" : 10,
"Text" : "[21;2~"
},
"0xf706-0x40000" : {
"Text" : "[1;5R",
"Action" : 10
},
"0xf708-0x20000" : {
"Action" : 10,
"Text" : "[15;2~"
},
"0x33-0x40000" : {
"Action" : 11,
"Text" : "0x1b"
},
"0xf703-0x260000" : {
"Action" : 10,
"Text" : "[1;6C"
},
"0xf729-0x20000" : {
"Action" : 10,
"Text" : "[1;2H"
},
"0xf701-0x280000" : {
"Text" : "[1;3B",
"Action" : 10
},
"0xf700-0x280000" : {
"Text" : "[1;3A",
"Action" : 10
},
"0xf70f-0x40000" : {
"Text" : "[24;5~",
"Action" : 10
},
"0xf702-0x260000" : {
"Action" : 10,
"Text" : "[1;6D"
},
"0x38-0x40000" : {
"Action" : 11,
"Text" : "0x7f"
},
"0xf708-0x60000" : {
"Text" : "[15;6~",
"Action" : 10
},
"0xf72b-0x40000" : {
"Action" : 10,
"Text" : "[1;5F"
},
"0xf70c-0x20000" : {
"Action" : 10,
"Text" : "[20;2~"
},
"0xf705-0x40000" : {
"Text" : "[1;5Q",
"Action" : 10
},
"0xf701-0x260000" : {
"Action" : 10,
"Text" : "[1;6B"
},
"0xf70f-0x80000" : {
"Text" : "[24;3~",
"Action" : 10
},
"0x32-0x40000" : {
"Action" : 11,
"Text" : "0x00"
},
"0xf707-0x20000" : {
"Action" : 10,
"Text" : "[1;2S"
},
"0xf703-0x240000" : {
"Action" : 10,
"Text" : "[1;5C"
},
"0xf700-0x260000" : {
"Action" : 10,
"Text" : "[1;6A"
},
"0xf702-0x240000" : {
"Action" : 10,
"Text" : "[1;5D"
},
"0x37-0x40000" : {
"Action" : 11,
"Text" : "0x1f"
},
"0xf703-0x2a0000" : {
"Text" : "[1;4C",
"Action" : 10
},
"0xf707-0x60000" : {
"Text" : "[1;6S",
"Action" : 10
},
"0xf70b-0xa0000" : {
"Text" : "[19;4~",
"Action" : 10
},
"0xf70e-0x40000" : {
"Text" : "[23;5~",
"Action" : 10
},
"0xf709-0x40000" : {
"Text" : "[17;5~",
"Action" : 10
},
"0xf701-0x240000" : {
"Action" : 10,
"Text" : "[1;5B"
},
"0xf70b-0x20000" : {
"Action" : 10,
"Text" : "[19;2~"
},
"0xf703-0x220000" : {
"Action" : 10,
"Text" : "[1;2C"
},
"0xf702-0x2a0000" : {
"Text" : "[1;4D",
"Action" : 10
},
"0xf70e-0x80000" : {
"Text" : "[23;3~",
"Action" : 10
},
"0xf706-0x20000" : {
"Action" : 10,
"Text" : "[1;2R"
},
"0xf700-0x240000" : {
"Action" : 10,
"Text" : "[1;5A"
},
"0xf702-0x220000" : {
"Action" : 10,
"Text" : "[1;2D"
},
"0xf709-0x80000" : {
"Text" : "[17;3~",
"Action" : 10
},
"0xf701-0x2a0000" : {
"Text" : "[1;4B",
"Action" : 10
},
"0xf70b-0x60000" : {
"Text" : "[19;6~",
"Action" : 10
},
"0x36-0x40000" : {
"Action" : 11,
"Text" : "0x1e"
},
"0xf706-0x60000" : {
"Text" : "[1;6R",
"Action" : 10
},
"0xf70f-0x20000" : {
"Action" : 10,
"Text" : "[24;2~"
},
"0xf701-0x220000" : {
"Action" : 10,
"Text" : "[1;2B"
},
"0xf700-0x2a0000" : {
"Text" : "[1;4A",
"Action" : 10
},
"0xf70a-0x20000" : {
"Action" : 10,
"Text" : "[18;2~"
},
"0xf708-0x40000" : {
"Text" : "[15;5~",
"Action" : 10
},
"0xf729-0x40000" : {
"Action" : 10,
"Text" : "[1;5H"
},
"0xf72b-0x20000" : {
"Action" : 10,
"Text" : "[1;2F"
},
"0xf700-0x220000" : {
"Action" : 10,
"Text" : "[1;2A"
},
"0xf705-0x20000" : {
"Action" : 10,
"Text" : "[1;2Q"
},
"0x35-0x40000" : {
"Action" : 11,
"Text" : "0x1d"
},
"0xf70c-0x40000" : {
"Text" : "[20;5~",
"Action" : 10
},
"0x2d-0x40000" : {
"Action" : 11,
"Text" : "0x1f"
},
"0xf705-0x60000" : {
"Text" : "[1;6Q",
"Action" : 10
},
"0xf70e-0x20000" : {
"Action" : 10,
"Text" : "[23;2~"
},
"0xf707-0x40000" : {
"Text" : "[1;5S",
"Action" : 10
},
"0xf709-0x20000" : {
"Action" : 10,
"Text" : "[17;2~"
},
"0xf704-0x20000" : {
"Action" : 10,
"Text" : "[1;2P"
},
"0x34-0x40000" : {
"Action" : 11,
"Text" : "0x1c"
},
"0xf703-0x280000" : {
"Text" : "[1;3C",
"Action" : 10
}
},
"Log Directory" : "",
"Use Canonical Parser" : false,
"Ansi 14 Color" : {
"Green Component" : 0.59172064065933228,
"Blue Component" : 0.88674569129943848,
"Red Component" : 0.23945134878158569
},
"Ansi 2 Color" : {
"Green Component" : 0.7607843279838562,
"Blue Component" : 0.33725491166114807,
"Red Component" : 0.40784314274787903
},
"Background Image Is Tiled" : false,
"Send Code When Idle" : false,
"ASCII Anti Aliased" : true,
"Tags" : [
],
"Ansi 9 Color" : {
"Green Component" : 0.35410711169242859,
"Blue Component" : 0.310698002576828,
"Red Component" : 0.87806010246276855
},
"Use Bold Font" : true,
"Silence Bell" : false,
"Ansi 12 Color" : {
"Green Component" : 0.4849112331867218,
"Blue Component" : 0.82595396041870117,
"Red Component" : 0.22123189270496368
},
"Window Type" : 0,
"Allow Title Reporting" : true,
"Use Bright Bold" : true,
"Cursor Text Color" : {
"Green Component" : 1,
"Blue Component" : 1,
"Red Component" : 1
},
"Default Bookmark" : "No",
"Cursor Color" : {
"Green Component" : 0.73333334922790527,
"Blue Component" : 0.73333334922790527,
"Red Component" : 0.73333334922790527
},
"Disable Smcup Rmcup" : false,
"Name" : "Default",
"Blinking Cursor" : false,
"Guid" : "B456AAF9-F1E2-40A8-8F57-3D76CD9FA9FF",
"Ansi 1 Color" : {
"Green Component" : 0.20392157137393951,
"Blue Component" : 0.10980392247438431,
"Red Component" : 0.90980392694473267
},
"Idle Code" : 0,
"Ansi 10 Color" : {
"Green Component" : 0.72144228219985962,
"Blue Component" : 0.41152578592300415,
"Red Component" : 0.46598568558692932
},
"Ansi 8 Color" : {
"Green Component" : 0,
"Blue Component" : 0,
"Red Component" : 0
},
"Automatically Log" : false,
"Smart Cursor Color" : false,
"Semantic History" : {
"editor" : "com.sublimetext.3",
"action" : "best editor",
"text" : ""
},
"Ambiguous Double Width" : false,
"Blur Radius" : 15,
"Ansi 0 Color" : {
"Green Component" : 0,
"Blue Component" : 0,
"Red Component" : 0
},
"Cursor Type" : 2,
"Blur" : true,
"Normal Font" : "SauceCodePowerline-Regular 14",
"Vertical Spacing" : 1,
"Disable Printing" : false,
"Ansi 7 Color" : {
"Green Component" : 0.729411780834198,
"Blue Component" : 0.729411780834198,
"Red Component" : 0.729411780834198
},
"Command" : "",
"Terminal Type" : "linux",
"Horizontal Spacing" : 1,
"Option Key Sends" : 1,
"Blink Allowed" : true,
"Minimum Contrast" : 0,
"Ansi 15 Color" : {
"Green Component" : 0.729411780834198,
"Blue Component" : 0.729411780834198,
"Red Component" : 0.729411780834198
},
"Ansi 6 Color" : {
"Green Component" : 0.59607845544815063,
"Blue Component" : 0.90980392694473267,
"Red Component" : 0.10980392247438431
},
"Transparency" : 0,
"Initial Text" : "",
"Background Color" : {
"Green Component" : 0.13725490868091583,
"Blue Component" : 0.14117647707462311,
"Red Component" : 0.13333334028720856
},
"Screen" : -1,
"Non Ascii Font" : "SauceCodePowerline-Regular 14",
"Ansi 13 Color" : {
"Green Component" : 0.48405557870864868,
"Blue Component" : 0.74324828386306763,
"Red Component" : 0.58547765016555786
},
"Columns" : 80,
"Visual Bell" : true,
"Custom Directory" : "No",
"Thin Strokes" : 4,
"Set Local Environment Vars" : true
}
@zetas
Copy link
Author

zetas commented Jun 13, 2018

This profile can be loaded into iterm2 and will provide you the keybind escape sequences for byobu/tmux when used in osx (or on a remote linux host). This profile is basically the default iterm2 profile with term type "linux", default xterm key mappings and all the byobu commands loaded in with proper escape sequences with the exception of a few that require buttons that don't exist on a mac laptop keyboard (pageup/pagedown, and insert to be specific).

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