Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

A bunch of stuff.

  • Loading branch information...
commit 4b906b2bf2202bb623a69db101a107c24790d62c 1 parent b9ae490
@nicksergeant authored
View
3  .gitmodules
@@ -46,3 +46,6 @@
[submodule "vim/bundle/vitality.vim"]
path = vim/bundle/vitality.vim
url = git://github.com/sjl/vitality.vim.git
+[submodule "ctrlp.vim"]
+ path = ctrlp.vim
+ url = git://github.com/kien/ctrlp.vim.git
View
24 bin/rdio-current-track-tmux
@@ -0,0 +1,24 @@
+#!/usr/bin/env bash
+RDIO_TRACK=$(osascript <<EOF
+if appIsRunning("Rdio") then
+ tell app "Rdio" to get the name of the current track
+end if
+
+on appIsRunning(appName)
+ tell app "System Events" to (name of processes) contains appName
+end appIsRunning
+EOF)
+
+if test "x$RDIO_TRACK" != "x"; then
+RDIO_ARTIST=$(osascript <<EOF
+if appIsRunning("Rdio") then
+ tell app "Rdio" to get the artist of the current track
+end if
+
+on appIsRunning(appName)
+ tell app "System Events" to (name of processes) contains appName
+end appIsRunning
+EOF)
+
+ echo '#[fg=colour137,bg=colour234]⮂#[bg=colour137,fg=colour16,bold] ♫ ' $RDIO_TRACK '#[nobold]-#[bold]' $RDIO_ARTIST '#[fg=colour254,bg=colour137,nobold]'
+fi
1  ctrlp.vim
@@ -0,0 +1 @@
+Subproject commit be5842a376f16c16c5dc4cc1879d7168a074f7de
View
2  offlineimaprc
@@ -21,7 +21,7 @@ nametrans = lambda folder: {'drafts': '[Gmail]/Drafts',
[Repository NickSergeant-Remote]
maxconnections = 1
type = Gmail
-cert_fingerprint = f3043dd689a2e7dddfbef82703a6c65ea9b634c1
+cert_fingerprint = 6d1b5b5ee0180ab493b71d3b94534b5ab937d042
remoteuser = nick@nicksergeant.com
remotepasseval = get_keychain_pass(account="nick@nicksergeant.com", server="imap.gmail.com")
realdelete = no
View
105 tmux.conf
@@ -0,0 +1,105 @@
+# Use something easier to type as the prefix.
+set -g prefix C-f
+unbind C-b
+bind C-f send-prefix
+
+# Relax!
+set -sg escape-time 0
+set -sg repeat-time 600
+
+# Mouse
+set -g mode-mouse on
+setw -g mouse-select-window on
+setw -g mouse-select-pane on
+
+# This is hilariously absurd. How many nerds use tmux on OS X every day and
+# it's still fundamentally broken?
+set -g default-command "reattach-to-user-namespace -l zsh"
+set -g default-command "reattach-to-user-namespace -l fish"
+
+# Less stretching to get to the first item.
+set -g base-index 1
+setw -g pane-base-index 1
+
+# Reload the config.
+bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
+
+# Saner splitting.
+bind v split-window -h
+bind s split-window -v
+bind S choose-session
+
+# Pane movement
+bind h select-pane -L
+bind j select-pane -D
+bind k select-pane -U
+bind l select-pane -R
+
+# DVTM style pane selection
+bind 1 select-pane -t 1
+bind 2 select-pane -t 2
+bind 3 select-pane -t 3
+bind 4 select-pane -t 4
+bind 5 select-pane -t 5
+bind 6 select-pane -t 6
+bind 7 select-pane -t 7
+bind 8 select-pane -t 8
+bind 9 select-pane -t 9
+
+# Pane resizing
+bind -r C-h resize-pane -L 5
+bind -r C-j resize-pane -D 5
+bind -r C-k resize-pane -U 5
+bind -r C-l resize-pane -R 5
+
+# 256 colors please
+set -g default-terminal "screen-256color"
+
+# Bad Wolf
+set -g status-fg white
+set -g status-bg colour234
+set -g window-status-activity-attr bold
+set -g pane-border-fg colour245
+set -g pane-active-border-fg colour39
+set -g message-fg colour16
+set -g message-bg colour221
+set -g message-attr bold
+
+# Custom status bar
+# Powerline symbols: ⮂ ⮃ ⮀ ⮁ ⭤
+set -g status-left-length 32
+set -g status-right-length 150
+set -g status-interval 5
+
+set -g clock-mode-style 12
+
+set -g status-left '#[fg=colour16,bg=colour254,bold] #S #[fg=colour254,bg=colour238,nobold]⮀#[fg=colour15,bg=colour238,bold] #(find ~/.mail/nick-nicksergeant.com/INBOX/cur ~/.mail/nick-nicksergeant.com/INBOX/new -depth 1 | wc -l | tr -d " ") #[fg=colour238,bg=colour234,nobold]⮀'
+
+set -g status-right '#[fg=colour245]⮃ %a %b%e ⮃%l:%M %p #[fg=colour254,bg=colour234,nobold]#(rdio-current-track-tmux)⮂#[fg=colour16,bg=colour254,bold] #h '
+
+set -g window-status-format "#[fg=white,bg=colour234] #I #W "
+set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=colour16,bg=colour39,noreverse,bold] #I ⮁ #W #[fg=colour39,bg=colour234,nobold]⮀"
+
+# Activity
+setw -g monitor-activity on
+set -g visual-activity off
+
+# Autorename sanely.
+setw -g automatic-rename on
+
+# Better name management
+bind c new-window
+bind , command-prompt "rename-window '%%'"
+
+# Copy mode
+setw -g mode-keys vi
+bind ` copy-mode
+unbind [
+unbind p
+bind p paste-buffer
+bind -t vi-copy H start-of-line
+bind -t vi-copy L end-of-line
+bind -t vi-copy v begin-selection
+bind -t vi-copy y copy-selection
+bind -t vi-copy Escape cancel
+bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
2  vim/bundle/supertab
@@ -1 +1 @@
-Subproject commit 7ee7f774dd1288ea2e7c57b63cb069a07d425ca0
+Subproject commit 374811bc7d7db2b0992b8fc92b52341b8d4d79dc
2  vim/bundle/syntastic
@@ -1 +1 @@
-Subproject commit c2a16e88f8d2d5bb4cfaaa1a1e952a674d001dd0
+Subproject commit 2ad1437af7224629677231f8830b1ee204b91e40
2  vim/bundle/vim-fugitive
@@ -1 +1 @@
-Subproject commit cff78c3ab4605d490e6be8d8af02f1e7efd25c95
+Subproject commit 31dead6d8088dc7073d0e2645517ebc68d6de06b
Please sign in to comment.
Something went wrong with that request. Please try again.