From 28746e2a83e51f7baad8852a0899884855e7ca00 Mon Sep 17 00:00:00 2001 From: Steffen Becker Date: Fri, 22 Feb 2013 19:43:07 +0100 Subject: [PATCH] gitignore == hgignore well, except for git / hg folders, of cource --- Jakefile.js | 21 +- other-programs/colors.itermcolors | 213 ++++ other-programs/com.googlecode.iterm2.plist | 1290 ++++++++++++++++++++ other-programs/private.xml | 17 + slate.js | 148 +++ tmux.conf | 2 +- vimrc | 25 +- 7 files changed, 1685 insertions(+), 31 deletions(-) create mode 100644 other-programs/colors.itermcolors create mode 100644 other-programs/com.googlecode.iterm2.plist create mode 100644 other-programs/private.xml create mode 100644 slate.js diff --git a/Jakefile.js b/Jakefile.js index 8ab49f0..6cc2823 100644 --- a/Jakefile.js +++ b/Jakefile.js @@ -30,7 +30,8 @@ namespace('setup', function() { 'ln -s ~/dotfiles/pearrc ~/.pearrc', 'ln -s ~/dotfiles/tmux.conf ~/.tmux.conf', 'ln -s ~/dotfiles/vimrc ~/.vimrc', - 'ln -s ~/dotfiles/zshrc ~/.zshrc' + 'ln -s ~/dotfiles/zshrc ~/.zshrc', + 'ln -s ~/dotfiles/slate.js ~/.slate.js' ]; jake.exec(cmds, function() { @@ -54,24 +55,6 @@ namespace('setup', function() { }, { printStdout: true } ); }); - - desc('Install grunt/node stuff.'); - task('node', [], function(params) { - console.log('Installing npm, grunt and other stuff...'); - - var cmds = [ - 'curl https://npmjs.org/install.sh | sh', - 'npm install -g grunt-cli', - 'npm install -g jshint', - 'npm install -g uglify-js', - 'npm install -g jake' - ]; - - jake.exec(cmds, function() { - console.log('Grunt/Node stuff installed.'); - }, { printStdout: true } ); - }); - }); desc('Activate zsh'); diff --git a/other-programs/colors.itermcolors b/other-programs/colors.itermcolors new file mode 100644 index 0000000..9667796 --- /dev/null +++ b/other-programs/colors.itermcolors @@ -0,0 +1,213 @@ + + + + + Ansi 0 Color + + Blue Component + 0.23137255012989044 + Green Component + 0.23137255012989044 + Red Component + 0.23137255012989044 + + Ansi 1 Color + + Blue Component + 0.29803922772407532 + Green Component + 0.41568627953529358 + Red Component + 0.81176471710205078 + + Ansi 10 Color + + Blue Component + 0.2039216011762619 + Green Component + 0.88627451658248901 + Red Component + 0.54117649793624878 + + Ansi 11 Color + + Blue Component + 0.30980390310287476 + Green Component + 0.91372549533843994 + Red Component + 0.98823529481887817 + + Ansi 12 Color + + Blue Component + 0.81176471710205078 + Green Component + 0.62352937459945679 + Red Component + 0.44705879688262939 + + Ansi 13 Color + + Blue Component + 0.65882349014282227 + Green Component + 0.49803918600082397 + Red Component + 0.67843139171600342 + + Ansi 14 Color + + Blue Component + 0.88627451658248901 + Green Component + 0.88627451658248901 + Red Component + 0.2039216011762619 + + Ansi 15 Color + + Blue Component + 0.92549020051956177 + Green Component + 0.93333327770233154 + Red Component + 0.93333327770233154 + + Ansi 2 Color + + Blue Component + 0.41568627953529358 + Green Component + 0.67843139171600342 + Red Component + 0.60000002384185791 + + Ansi 3 Color + + Blue Component + 0.29803922772407532 + Green Component + 0.67843139171600342 + Red Component + 0.84705883264541626 + + Ansi 4 Color + + Blue Component + 0.77254903316497803 + Green Component + 0.48235294222831726 + Red Component + 0.3490196168422699 + + Ansi 5 Color + + Blue Component + 0.69019609689712524 + Green Component + 0.21568627655506134 + Red Component + 0.62745100259780884 + + Ansi 6 Color + + Blue Component + 0.97254902124404907 + Green Component + 0.72549021244049072 + Red Component + 0.44313725829124451 + + Ansi 7 Color + + Blue Component + 0.67843139171600342 + Green Component + 0.67843139171600342 + Red Component + 0.67843139171600342 + + Ansi 8 Color + + Blue Component + 0.32549020648002625 + Green Component + 0.34117650985717773 + Red Component + 0.33333331346511841 + + Ansi 9 Color + + Blue Component + 0.16078430414199829 + Green Component + 0.16078430414199829 + Red Component + 0.93725490570068359 + + Background Color + + Blue Component + 0.071956306561085981 + Green Component + 0.071956306561085981 + Red Component + 0.071956306561085981 + + Bold Color + + Blue Component + 0.67843139171600342 + Green Component + 0.67843139171600342 + Red Component + 0.67843139171600342 + + Cursor Color + + Blue Component + 0.0 + Green Component + 0.0 + Red Component + 0.0 + + Cursor Text Color + + Blue Component + 1 + Green Component + 1 + Red Component + 1 + + Foreground Color + + Blue Component + 0.67843139171600342 + Green Component + 0.67843139171600342 + Red Component + 0.67843139171600342 + + Selected Text Color + + Blue Component + 0.67843139171600342 + Green Component + 0.67843139171600342 + Red Component + 0.67843139171600342 + + Selection Color + + Blue Component + 0.15686275064945221 + Green Component + 0.15686275064945221 + Red Component + 0.15686275064945221 + + + diff --git a/other-programs/com.googlecode.iterm2.plist b/other-programs/com.googlecode.iterm2.plist new file mode 100644 index 0000000..69fef8c --- /dev/null +++ b/other-programs/com.googlecode.iterm2.plist @@ -0,0 +1,1290 @@ + + + + + AnimateDimming + + AppleAntiAliasingThreshold + 1 + AppleScrollAnimationEnabled + 0 + AppleSmoothFixedFontsSizeThreshold + 1 + AutoHideTmuxClientSession + + CheckTestRelease + + ClosingHotkeySwitchesSpaces + + CommandSelection + + Control + 1 + CopyLastNewline + + CopySelection + + Custom Color Presets + + Jellybeans + + Ansi 0 Color + + Blue Component + 0.23137255012989044 + Green Component + 0.23137255012989044 + Red Component + 0.23137255012989044 + + Ansi 1 Color + + Blue Component + 0.29803922772407532 + Green Component + 0.41568627953529358 + Red Component + 0.81176471710205078 + + Ansi 10 Color + + Blue Component + 0.2039216011762619 + Green Component + 0.88627451658248901 + Red Component + 0.54117649793624878 + + Ansi 11 Color + + Blue Component + 0.30980390310287476 + Green Component + 0.91372549533843994 + Red Component + 0.98823529481887817 + + Ansi 12 Color + + Blue Component + 0.81176471710205078 + Green Component + 0.62352937459945679 + Red Component + 0.44705879688262939 + + Ansi 13 Color + + Blue Component + 0.65882349014282227 + Green Component + 0.49803918600082397 + Red Component + 0.67843139171600342 + + Ansi 14 Color + + Blue Component + 0.88627451658248901 + Green Component + 0.88627451658248901 + Red Component + 0.2039216011762619 + + Ansi 15 Color + + Blue Component + 0.92549020051956177 + Green Component + 0.93333327770233154 + Red Component + 0.93333327770233154 + + Ansi 2 Color + + Blue Component + 0.41568627953529358 + Green Component + 0.67843139171600342 + Red Component + 0.60000002384185791 + + Ansi 3 Color + + Blue Component + 0.29803922772407532 + Green Component + 0.67843139171600342 + Red Component + 0.84705883264541626 + + Ansi 4 Color + + Blue Component + 0.77254903316497803 + Green Component + 0.48235294222831726 + Red Component + 0.3490196168422699 + + Ansi 5 Color + + Blue Component + 0.69019609689712524 + Green Component + 0.21568627655506134 + Red Component + 0.62745100259780884 + + Ansi 6 Color + + Blue Component + 0.97254902124404907 + Green Component + 0.72549021244049072 + Red Component + 0.44313725829124451 + + Ansi 7 Color + + Blue Component + 0.67843139171600342 + Green Component + 0.67843139171600342 + Red Component + 0.67843139171600342 + + Ansi 8 Color + + Blue Component + 0.32549020648002625 + Green Component + 0.34117650985717773 + Red Component + 0.33333331346511841 + + Ansi 9 Color + + Blue Component + 0.16078430414199829 + Green Component + 0.16078430414199829 + Red Component + 0.93725490570068359 + + Background Color + + Blue Component + 0.0 + Green Component + 0.0 + Red Component + 0.0 + + Bold Color + + Blue Component + 0.67843137254901964 + Green Component + 0.67843137254901964 + Red Component + 0.67843137254901964 + + Cursor Color + + Blue Component + 0.0 + Green Component + 0.0 + Red Component + 0.0 + + Cursor Text Color + + Blue Component + 1 + Green Component + 1 + Red Component + 1 + + Foreground Color + + Blue Component + 0.67843139171600342 + Green Component + 0.67843139171600342 + Red Component + 0.67843139171600342 + + Selected Text Color + + Blue Component + 0.67843137254901964 + Green Component + 0.67843137254901964 + Red Component + 0.67843137254901964 + + Selection Color + + Blue Component + 0.15686274509803921 + Green Component + 0.15686274509803921 + Red Component + 0.15686274509803921 + + + + Default Bookmark Guid + AF193C6A-267D-401F-96A5-28DBBB598B19 + DimBackgroundWindows + + DimInactiveSplitPanes + + DimOnlyText + + DisableFullscreenTransparency + + EnableRendezvous + + FocusFollowsMouse + + FsTabDelay + 1 + GlobalKeyMap + + 0x2d-0x100000 + + Action + 11 + Text + 0x01 0x2D + + 0x31-0x100000 + + Action + 11 + Text + 0x01 0x31 + + 0x32-0x100000 + + Action + 11 + Text + 0x01 0x32 + + 0x33-0x100000 + + Action + 11 + Text + 0x01 0x33 + + 0x34-0x100000 + + Action + 11 + Text + 0x01 0x34 + + 0x35-0x100000 + + Action + 11 + Text + 0x01 0x35 + + 0x36-0x100000 + + Action + 11 + Text + 0x01 0x36 + + 0x37-0x100000 + + Action + 11 + Text + 0x01 0x37 + + 0x38-0x100000 + + Action + 11 + Text + 0x01 0x38 + + 0x39-0x100000 + + Action + 11 + Text + 0x01 0x39 + + 0x4e-0x120000 + + Action + 11 + Text + 0x01 0x63 0x01 0x2C + + 0x5c-0x100000 + + Action + 11 + Text + 0x01 0x7C + + 0x63-0x100000 + + Action + 22 + Text + + + 0x76-0x100000 + + Action + 22 + Text + + + 0xf700-0x300000 + + Action + 11 + Text + 0x01 0x6B + + 0xf701-0x300000 + + Action + 11 + Text + 0x01 0x6A + + 0xf702-0x300000 + + Action + 11 + Text + 0x01 0x68 + + 0xf702-0x320000 + + Action + 11 + Text + 0x01 0x70 + + 0xf703-0x300000 + + Action + 11 + Text + 0x01 0x6C + + 0xf703-0x320000 + + Action + 11 + Text + 0x01 0x6E + + + HiddenAFRStrokeThickness + 0.0 + HiddenAdvancedFontRendering + + HideActivityIndicator + + HideScrollbar + + HideTab + + HighlightTabLabels + + HotKeyBookmark + AF193C6A-267D-401F-96A5-28DBBB598B19 + HotKeyTogglesWindow + + Hotkey + + HotkeyChar + 63247 + HotkeyCode + 111 + HotkeyModifiers + 8388864 + IRMemory + 4 + JobName + + LeftCommand + 7 + LeftOption + 2 + LoadPrefsFromCustomFolder + + MaxVertically + + NSNavLastRootDirectory + ~/Dotfiles + NSQuotedKeystrokeBinding + + NSRepeatCountBinding + + NSTableView Columns KeyBingingTable + + + BAtzdHJlYW10eXBlZIHoA4QBQISEhAhOU1N0cmluZwGEhAhOU09iamVjdACF + hAErATCG + + 198 + + BAtzdHJlYW10eXBlZIHoA4QBQISEhAhOU1N0cmluZwGEhAhOU09iamVjdACF + hAErATGG + + 319 + + NSTableView Hidden Columns KeyBingingTable + + NSTableView Sort Ordering KeyBingingTable + + NSWindow Frame NSFontPanel + 831 50 445 270 0 0 1280 778 + NSWindow Frame Preferences + 169 519 924 485 0 0 1920 1058 + NSWindow Frame iTerm Window 0 + 2406 355 1130 656 1920 0 1920 1080 + New Bookmarks + + + ASCII Anti Aliased + + Ambiguous Double Width + + Ansi 0 Color + + Blue Component + 0.23137255012989044 + Green Component + 0.23137255012989044 + Red Component + 0.23137255012989044 + + Ansi 1 Color + + Blue Component + 0.29803922772407532 + Green Component + 0.41568627953529358 + Red Component + 0.81176471710205078 + + Ansi 10 Color + + Blue Component + 0.2039216011762619 + Green Component + 0.88627451658248901 + Red Component + 0.54117649793624878 + + Ansi 11 Color + + Blue Component + 0.30980390310287476 + Green Component + 0.91372549533843994 + Red Component + 0.98823529481887817 + + Ansi 12 Color + + Blue Component + 0.81176471710205078 + Green Component + 0.62352937459945679 + Red Component + 0.44705879688262939 + + Ansi 13 Color + + Blue Component + 0.65882349014282227 + Green Component + 0.49803918600082397 + Red Component + 0.67843139171600342 + + Ansi 14 Color + + Blue Component + 0.88627451658248901 + Green Component + 0.88627451658248901 + Red Component + 0.2039216011762619 + + Ansi 15 Color + + Blue Component + 0.92549020051956177 + Green Component + 0.93333327770233154 + Red Component + 0.93333327770233154 + + Ansi 2 Color + + Blue Component + 0.41568627953529358 + Green Component + 0.67843139171600342 + Red Component + 0.60000002384185791 + + Ansi 3 Color + + Blue Component + 0.29803922772407532 + Green Component + 0.67843139171600342 + Red Component + 0.84705883264541626 + + Ansi 4 Color + + Blue Component + 0.77254903316497803 + Green Component + 0.48235294222831726 + Red Component + 0.3490196168422699 + + Ansi 5 Color + + Blue Component + 0.69019609689712524 + Green Component + 0.21568627655506134 + Red Component + 0.62745100259780884 + + Ansi 6 Color + + Blue Component + 0.97254902124404907 + Green Component + 0.72549021244049072 + Red Component + 0.44313725829124451 + + Ansi 7 Color + + Blue Component + 0.67843139171600342 + Green Component + 0.67843139171600342 + Red Component + 0.67843139171600342 + + Ansi 8 Color + + Blue Component + 0.32549020648002625 + Green Component + 0.34117650985717773 + Red Component + 0.33333331346511841 + + Ansi 9 Color + + Blue Component + 0.16078430414199829 + Green Component + 0.16078430414199829 + Red Component + 0.93725490570068359 + + Automatically Log + + BM Growl + + Background Color + + Blue Component + 0.07195630669593811 + Green Component + 0.07195630669593811 + Red Component + 0.07195630669593811 + + Background Image Location + + Blend + 0.30000001192092896 + Blink Allowed + + Blinking Cursor + + Blur + + Blur Radius + 2.0837278366088867 + Bold Color + + Blue Component + 0.67843139171600342 + Green Component + 0.67843139171600342 + Red Component + 0.67843139171600342 + + Character Encoding + 4 + Close Sessions On End + + Columns + 160 + Command + + Cursor Color + + Blue Component + 0.0 + Green Component + 0.0 + Red Component + 0.0 + + Cursor Text Color + + Blue Component + 1 + Green Component + 1 + Red Component + 1 + + Cursor Type + 2 + Custom Command + No + Custom Directory + Recycle + Default Bookmark + No + Disable Printing + + Disable Smcup Rmcup + + Disable Window Resizing + + Flashing Bell + + Foreground Color + + Blue Component + 0.67843139171600342 + Green Component + 0.67843139171600342 + Red Component + 0.67843139171600342 + + Guid + AF193C6A-267D-401F-96A5-28DBBB598B19 + Hide After Opening + + Horizontal Spacing + 1 + Idle Code + 0 + Initial Text + + Jobs to Ignore + + rlogin + ssh + slogin + telnet + + Keyboard Map + + 0x2d-0x40000 + + Action + 11 + Text + 0x1f + + 0x32-0x40000 + + Action + 11 + Text + 0x00 + + 0x33-0x40000 + + Action + 11 + Text + 0x1b + + 0x34-0x40000 + + Action + 11 + Text + 0x1c + + 0x35-0x40000 + + Action + 11 + Text + 0x1d + + 0x36-0x40000 + + Action + 11 + Text + 0x1e + + 0x37-0x40000 + + Action + 11 + Text + 0x1f + + 0x38-0x40000 + + Action + 11 + Text + 0x7f + + 0xf700-0x220000 + + Action + 10 + Text + [1;2A + + 0xf700-0x240000 + + Action + 10 + Text + [1;5A + + 0xf700-0x260000 + + Action + 10 + Text + [1;6A + + 0xf700-0x280000 + + Action + 11 + Text + 0x1b 0x1b 0x5b 0x41 + + 0xf701-0x220000 + + Action + 10 + Text + [1;2B + + 0xf701-0x240000 + + Action + 10 + Text + [1;5B + + 0xf701-0x260000 + + Action + 10 + Text + [1;6B + + 0xf701-0x280000 + + Action + 11 + Text + 0x1b 0x1b 0x5b 0x42 + + 0xf702-0x220000 + + Action + 10 + Text + [1;2D + + 0xf702-0x240000 + + Action + 10 + Text + [1;5D + + 0xf702-0x260000 + + Action + 10 + Text + [1;6D + + 0xf702-0x280000 + + Action + 11 + Text + 0x1b 0x1b 0x5b 0x44 + + 0xf703-0x220000 + + Action + 10 + Text + [1;2C + + 0xf703-0x240000 + + Action + 10 + Text + [1;5C + + 0xf703-0x260000 + + Action + 10 + Text + [1;6C + + 0xf703-0x280000 + + Action + 11 + Text + 0x1b 0x1b 0x5b 0x43 + + 0xf704-0x20000 + + Action + 10 + Text + [1;2P + + 0xf705-0x20000 + + Action + 10 + Text + [1;2Q + + 0xf706-0x20000 + + Action + 10 + Text + [1;2R + + 0xf707-0x20000 + + Action + 10 + Text + [1;2S + + 0xf708-0x20000 + + Action + 10 + Text + [15;2~ + + 0xf709-0x20000 + + Action + 10 + Text + [17;2~ + + 0xf70a-0x20000 + + Action + 10 + Text + [18;2~ + + 0xf70b-0x20000 + + Action + 10 + Text + [19;2~ + + 0xf70c-0x20000 + + Action + 10 + Text + [20;2~ + + 0xf70d-0x20000 + + Action + 10 + Text + [21;2~ + + 0xf70e-0x20000 + + Action + 10 + Text + [23;2~ + + 0xf70f-0x20000 + + Action + 10 + Text + [24;2~ + + 0xf729-0x20000 + + Action + 10 + Text + [1;2H + + 0xf729-0x40000 + + Action + 10 + Text + [1;5H + + 0xf72b-0x20000 + + Action + 10 + Text + [1;2F + + 0xf72b-0x40000 + + Action + 10 + Text + [1;5F + + + Log Directory + + Minimum Contrast + 0.0 + Mouse Reporting + + Name + Default + Non Ascii Font + Menlo-RegularForPowerline 12 + Non-ASCII Anti Aliased + + Normal Font + Menlo-RegularForPowerline 12 + Option Key Sends + 0 + Prompt Before Closing 2 + 0 + Right Option Key Sends + 0 + Rows + 42 + Screen + -1 + Scrollback Lines + 0 + Scrollback With Status Bar + + Scrollback in Alternate Screen + + Selected Text Color + + Blue Component + 0.67843139171600342 + Green Component + 0.67843139171600342 + Red Component + 0.67843139171600342 + + Selection Color + + Blue Component + 0.15686275064945221 + Green Component + 0.15686275064945221 + Red Component + 0.15686275064945221 + + Semantic History + + action + best editor + editor + com.sublimetext.2 + text + + + Send Code When Idle + + Set Local Environment Vars + + Shortcut + + Silence Bell + + Smart Cursor Color + + Smart Selection Rules + + + notes + Word bounded by whitespace + precision + low + regex + \S+ + + + notes + C++ namespace::identifier + precision + normal + regex + ([a-zA-Z0-9_]+::)+[a-zA-Z0-9_]+ + + + notes + Paths + precision + normal + regex + \~?/?([[:letter:][:number:]._-]+/+)+[[:letter:][:number:]._-]+/? + + + notes + Quoted string + precision + normal + regex + @?"(?:[^"\\]|\\.)*" + + + notes + Java/Python include paths + precision + normal + regex + ([[:letter:][:number:]._]+\.)+[[:letter:][:number:]._]+ + + + notes + mailto URL + precision + normal + regex + \bmailto:([a-z0-9A-Z_]+@)?([a-zA-Z0-9\-]+\.)*[a-zA-Z0-9\-]+\b + + + notes + Obj-C selector + precision + high + regex + @selector\([^)]+\) + + + notes + email address + precision + high + regex + \b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}\b + + + notes + HTTP URL + precision + very_high + regex + https?://([a-z0-9A-Z]+(:[a-zA-Z0-9]+)?@)?[a-z0-9A-Z]+(\.[a-z0-9A-Z]+)*((:[0-9]+)?)(/[a-zA-Z0-9;/\.\-_+%~?&@=#\(\)]*)? + + + notes + SSH URL + precision + very_high + regex + \bssh:([a-z0-9A-Z_]+@)?([a-zA-Z0-9\-]+\.)*[a-zA-Z0-9\-]+\b + + + notes + Telnet URL + precision + very_high + regex + \btelnet:([a-z0-9A-Z_]+@)?([a-zA-Z0-9\-]+\.)*[a-zA-Z0-9\-]+\b + + + Sync Title + + Tags + + Terminal Type + xterm-256color + Transparency + 0.0 + Triggers + + Unlimited Scrollback + + Use Bold Font + + Use Bright Bold + + Vertical Spacing + 1.0502269268035889 + Visual Bell + + Window Type + 1 + Working Directory + /Users/nebelschwade + + + NoSyncNeverRemindPrefsChangesCopy + + OnlyWhenMoreTabs + + OpenArrangementAtStartup + + OpenBookmark + + OpenTmuxWindowsIn + 0 + PassOnControlClick + + PasteFromClipboard + + PointerActions + + Button,1,1,, + + Action + kContextMenuPointerAction + + Button,2,1,, + + Action + kPasteFromClipboardPointerAction + + Gesture,ThreeFingerSwipeDown,, + + Action + kPrevWindowPointerAction + + Gesture,ThreeFingerSwipeLeft,, + + Action + kPrevTabPointerAction + + Gesture,ThreeFingerSwipeRight,, + + Action + kNextTabPointerAction + + Gesture,ThreeFingerSwipeUp,, + + Action + kNextWindowPointerAction + + + PrefsCustomFolder + /Users/nebelschwade/Dotfiles + PromptOnQuit + + QuitWhenAllWindowsClosed + + RightCommand + 8 + RightOption + 3 + SUEnableAutomaticChecks + + SUFeedURL + http://iterm2.googlecode.com/svn/trunk/appcasts/testing.xml + SUHasLaunchedBefore + + SULastCheckTime + 2012-11-20T19:43:07Z + SavePasteHistory + + ShowBookmarkName + + ShowFullScreenTabBar + + ShowPaneTitles + + SmartPlacement + + SplitPaneDimmingAmount + 0.45737180113792419 + SwitchTabModifier + 6 + SwitchWindowModifier + 5 + TabViewType + 0 + ThreeFingerEmulates + + TmuxDashboardLimit + 10 + TripleClickSelectsFullWrappedLines + + URLHandlersByGuid + + UseBorder + + UseCompactLabel + + UseLionStyleFullscreen + + WindowNumber + + WindowStyle + 0 + WordCharacters + /-+\~_. + iTerm Version + 1.0.0.20120724 + + diff --git a/other-programs/private.xml b/other-programs/private.xml new file mode 100644 index 0000000..b2a7b09 --- /dev/null +++ b/other-programs/private.xml @@ -0,0 +1,17 @@ + + + + Remap F19 Hyper + This maps F19 (keycode 80) to Control + Shift + Option + Command + + webgefrickel.hyperhyper + + + --KeyToKey-- + KeyCode::F19, + + KeyCode::COMMAND_L, + ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L | ModifierFlag::CONTROL_L + + + diff --git a/slate.js b/slate.js new file mode 100644 index 0000000..89b07ac --- /dev/null +++ b/slate.js @@ -0,0 +1,148 @@ +/* global slate: true */ +/* global screenSizeX: true */ +/* global screenSizeY: true */ +/* global screenOriginX: true */ +/* global screenOriginY: true */ + + +/* default configs +====================================================================== */ + +slate.configAll({ + "defaultToCurrentScreen": true, + "windowHintsShowIcons": true, + "windowHintsIgnoreHiddenWindows": false, + "windowHintsSpread": true, + "windowHintsWidth": 50, + "windowHintsHeight": 50, + "nudgePercentOf": "screenSize", + "resizePercentOf": "screenSize", + "secondsBetweenRepeat": 0.1, + "checkDefaultsOnLoad": true, + "focusCheckWidthMax": 3000, + "modalEscapeKey": "esc" +}); + + +/* operations +====================================================================== */ + +// show the overlay hints for applications +var hint = slate.operation("hint", { "characters": "ASDFGHJKLQWERTYUIOPCVBN" }); + + +// custom resize grids for all monitors 6x4 +var grid = slate.operation("grid", { + "padding": 10, + "grids": { + "0": { + "width": 6, + "height": 4 + }, + "1": { + "width": 6, + "height": 4 + }, + "2": { + "width": 6, + "height": 4 + } + } +}); + + +// ultrafast application-switching +var iterm = slate.operation("focus", { "app": "iTerm" }); +var chrome = slate.operation("focus", { "app": "Google Chrome" }); +var mail = slate.operation("focus", { "app": "Mail" }); +var fork = slate.operation("focus", { "app": "ForkLift" }); + + +var fullscreen = slate.operation("move", { + "x": "screenOriginX", + "y": "screenOriginY", + "width": "screenSizeX", + "height": "screenSizeY" +}); + +var lefthalf = slate.operation("move", { + "x": "screenOriginX", + "y": "screenOriginY", + "width": "screenSizeX / 2", + "height": "screenSizeY" +}); + +var righthalf = slate.operation("move", { + "x": "screenOriginX + screenSizeX / 2", + "y": "screenOriginY", + "width": "screenSizeX / 2", + "height": "screenSizeY" +}); + +var tophalf = slate.operation("move", { + "x": "screenOriginX", + "y": "screenOriginY", + "width": "screenSizeX", + "height": "screenSizeY / 2" +}); + +var bottomhalf = slate.operation("move", { + "x": "screenOriginX", + "y": "screenOriginY + screenSizeY / 2", + "width": "screenSizeX", + "height": "screenSizeY / 2" +}); + +var mobile = slate.operation("move", { + "x": "screenOriginX", + "y": "screenOriginY", + "width": "480", + "height": "screenSizeY" +}); + +var tablet = slate.operation("move", { + "x": "screenOriginX", + "y": "screenOriginY", + "width": "1024", + "height": "768" +}); + +var desktop = slate.operation("move", { + "x": "screenOriginX", + "y": "screenOriginY", + "width": "1280", + "height": "800" +}); + +var fullhd = slate.operation("move", { + "x": "screenOriginX", + "y": "screenOriginY", + "width": "1920", + "height": "1080" +}); + + +/* Key bindings +====================================================================== */ + +var hyper = ":shift,ctrl,alt,cmd"; +var hyperModal = hyper + ",m:toggle"; + +slate.bind("tab" + hyper, hint, false); + +slate.bind("j" + hyper, iterm, false); +slate.bind("k" + hyper, chrome, false); +slate.bind("l" + hyper, fork, false); +slate.bind(";" + hyper, mail, false); + +// movements in modal mode +slate.bind("1" + hyperModal, lefthalf, false); +slate.bind("2" + hyperModal, righthalf, false); +slate.bind("3" + hyperModal, tophalf, false); +slate.bind("4" + hyperModal, bottomhalf, false); +slate.bind("5" + hyperModal, mobile, false); +slate.bind("6" + hyperModal, tablet, false); +slate.bind("7" + hyperModal, desktop, false); +slate.bind("8" + hyperModal, fullhd, false); +slate.bind("space" + hyperModal, fullscreen, false); + diff --git a/tmux.conf b/tmux.conf index e87339c..84133dc 100644 --- a/tmux.conf +++ b/tmux.conf @@ -21,7 +21,7 @@ set -sg escape-time 50 # Saner window splitting unbind % -bind | split-window -h +bind \ split-window -h bind - split-window -v # Easier resizing diff --git a/vimrc b/vimrc index 7c0d89a..d95c9b2 100644 --- a/vimrc +++ b/vimrc @@ -33,7 +33,7 @@ set listchars=extends:»,precedes:«,tab:▸\ ,eol:¬,trail:· set iskeyword+=- " Syntax coloring lines that are too long just slows down the world " -" set synmaxcol=256 +" set synmaxcol=256 set lazyredraw " to avoid scrolling problems " Tabs and Whitespace @@ -124,11 +124,21 @@ nnoremap ; : nnoremap j gj nnoremap k gk +" behave - yank just like D and C +nnoremap Y y$ + nnoremap / /\v vnoremap / /\v inoremap jj +" brackets and other stuff doubling - very basic, fine by me +inoremap { {}ki +inoremap < <>i +inoremap ( ()i +inoremap [ []i + + " Switch between windows nnoremap nnoremap W @@ -146,8 +156,8 @@ inoremap = = nnoremap :noh " open new vertical split and change to split -nnoremap v vl -nnoremap s sj +nnoremap \ vl +nnoremap - sj " Opens an edit command with the path of the currently edited file filled in nnoremap e :e =expand("%:p:h") . "/" @@ -257,6 +267,7 @@ nnoremap b :BuffergatorToggle " CtrlP let g:ctrlp_map = 't' +let g:ctrlp_by_filename = 1 let g:ctrlp_switch_buffer = 0 " easier split screens let g:ctrlp_working_path_mode = 0 let g:ctrlp_max_height = 12 @@ -272,12 +283,6 @@ let g:Powerline_symbols = 'fancy' let g:Powerline_stl_path_style = 'short' call Pl#Theme#RemoveSegment('scrollpercent') -" custom shift-tab mapping -- opens new { } and blank line -" Supertab and snipmate backwards-key are overwritten to use shfit + alt / crtl -let g:SuperTabMappingBackward = '' -let g:snips_trigger_key_backwards = '' -inoremap {i o}ki - " ========== Custom Pseudofunctions ========== " .twig files == html @@ -286,8 +291,6 @@ au BufNewFile,BufRead *.twig set ft=html au BufNewFile,BufRead *.json set ft=javascript " typoscript syntax au BufNewFile,BufRead *.ts set ft=typoscript -" typoscript syntax for all text-files -au BufNewFile,BufRead *.txt set ft=typoscript " scss au BufNewFile,BufRead *.scss set ft=scss.css " php