Parcourir la source

add rainbarf and basic config

Weiyi Lou il y a 12 ans
Parent
commit
a1f9672c24
4 fichiers modifiés avec 93 ajouts et 93 suppressions
  1. 57 54
      .gitmodules
  2. 34 38
      powerline/config/themes/tmux/cinaeco.json
  3. 1 0
      powerline/rainbarf
  4. 1 1
      tmux/tmux.conf

+ 57 - 54
.gitmodules

@@ -1,81 +1,84 @@
 [submodule "vim/bundle/pathogen"]
-	path = vim/bundle/pathogen
-	url = https://github.com/tpope/vim-pathogen.git
+  path = vim/bundle/pathogen
+  url = https://github.com/tpope/vim-pathogen.git
 [submodule "vim/bundle/nerdtree"]
-	path = vim/bundle/nerdtree
-	url = https://github.com/scrooloose/nerdtree.git
+  path = vim/bundle/nerdtree
+  url = https://github.com/scrooloose/nerdtree.git
 [submodule "vim/bundle/nerdcommenter"]
-	path = vim/bundle/nerdcommenter
-	url = https://github.com/scrooloose/nerdcommenter.git
+  path = vim/bundle/nerdcommenter
+  url = https://github.com/scrooloose/nerdcommenter.git
 [submodule "vim/bundle/supertab"]
-	path = vim/bundle/supertab
-	url = https://github.com/ervandew/supertab.git
+  path = vim/bundle/supertab
+  url = https://github.com/ervandew/supertab.git
 [submodule "vim/bundle/solarized"]
-	path = vim/bundle/solarized
-	url = https://github.com/altercation/vim-colors-solarized.git
+  path = vim/bundle/solarized
+  url = https://github.com/altercation/vim-colors-solarized.git
 [submodule "zsh/oh-my-zsh"]
-	path = zsh/oh-my-zsh
-	url = https://github.com/robbyrussell/oh-my-zsh.git
+  path = zsh/oh-my-zsh
+  url = https://github.com/robbyrussell/oh-my-zsh.git
 [submodule "vim/bundle/gundo"]
-	path = vim/bundle/gundo
-	url = https://github.com/sjl/gundo.vim.git
+  path = vim/bundle/gundo
+  url = https://github.com/sjl/gundo.vim.git
 [submodule "vim/bundle/surround"]
-	path = vim/bundle/surround
-	url = https://github.com/tpope/vim-surround.git
+  path = vim/bundle/surround
+  url = https://github.com/tpope/vim-surround.git
 [submodule "vim/bundle/fugitive"]
-	path = vim/bundle/fugitive
-	url = https://github.com/tpope/vim-fugitive.git
+  path = vim/bundle/fugitive
+  url = https://github.com/tpope/vim-fugitive.git
 [submodule "vim/bundle/repeat"]
-	path = vim/bundle/repeat
-	url = https://github.com/tpope/vim-repeat.git
+  path = vim/bundle/repeat
+  url = https://github.com/tpope/vim-repeat.git
 [submodule "vim/bundle/sparkup"]
-	path = vim/bundle/sparkup
-	url = https://github.com/bingaman/vim-sparkup.git
+  path = vim/bundle/sparkup
+  url = https://github.com/bingaman/vim-sparkup.git
 [submodule "vim/bundle/snipmate"]
-	path = vim/bundle/snipmate
-	url = https://github.com/garbas/vim-snipmate.git
+  path = vim/bundle/snipmate
+  url = https://github.com/garbas/vim-snipmate.git
 [submodule "vim/bundle/tlib"]
-	path = vim/bundle/tlib
-	url = https://github.com/tomtom/tlib_vim.git
+  path = vim/bundle/tlib
+  url = https://github.com/tomtom/tlib_vim.git
 [submodule "vim/bundle/mw-utils"]
-	path = vim/bundle/mw-utils
-	url = https://github.com/MarcWeber/vim-addon-mw-utils.git
+  path = vim/bundle/mw-utils
+  url = https://github.com/MarcWeber/vim-addon-mw-utils.git
 [submodule "vim/bundle/tagbar"]
-	path = vim/bundle/tagbar
-	url = https://github.com/majutsushi/tagbar.git
+  path = vim/bundle/tagbar
+  url = https://github.com/majutsushi/tagbar.git
 [submodule "vim/bundle/syntastic"]
-	path = vim/bundle/syntastic
-	url = https://github.com/scrooloose/syntastic.git
+  path = vim/bundle/syntastic
+  url = https://github.com/scrooloose/syntastic.git
 [submodule "vim/bundle/easygrep"]
-	path = vim/bundle/easygrep
-	url = https://github.com/cinaeco/EasyGrep.git
+  path = vim/bundle/easygrep
+  url = https://github.com/cinaeco/EasyGrep.git
 [submodule "vim/bundle/indentguides"]
-	path = vim/bundle/indentguides
-	url = https://github.com/nathanaelkane/vim-indent-guides.git
+  path = vim/bundle/indentguides
+  url = https://github.com/nathanaelkane/vim-indent-guides.git
 [submodule "tmux/tmux-colors-solarized"]
-	path = tmux/tmux-colors-solarized
-	url = https://github.com/seebi/tmux-colors-solarized.git
+  path = tmux/tmux-colors-solarized
+  url = https://github.com/seebi/tmux-colors-solarized.git
 [submodule "vim/bundle/vdebug"]
-	path = vim/bundle/vdebug
-	url = https://github.com/joonty/vdebug.git
+  path = vim/bundle/vdebug
+  url = https://github.com/joonty/vdebug.git
 [submodule "vim/bundle/ctrlp"]
-	path = vim/bundle/ctrlp
-	url = https://github.com/kien/ctrlp.vim.git
+  path = vim/bundle/ctrlp
+  url = https://github.com/kien/ctrlp.vim.git
 [submodule "vim/bundle/vim-snippets"]
-	path = vim/bundle/vim-snippets
-	url = https://github.com/honza/vim-snippets.git
+  path = vim/bundle/vim-snippets
+  url = https://github.com/honza/vim-snippets.git
 [submodule "vim/bundle/vim-markdown"]
-	path = vim/bundle/vim-markdown
-	url = https://github.com/plasticboy/vim-markdown.git
+  path = vim/bundle/vim-markdown
+  url = https://github.com/plasticboy/vim-markdown.git
 [submodule "powerline/powerline"]
-	path = powerline/powerline
-	url = https://github.com/Lokaltog/powerline.git
+  path = powerline/powerline
+  url = https://github.com/Lokaltog/powerline.git
 [submodule "vim/bundle/vim-multiple-cursors"]
-	path = vim/bundle/vim-multiple-cursors
-	url = https://github.com/terryma/vim-multiple-cursors.git
+  path = vim/bundle/vim-multiple-cursors
+  url = https://github.com/terryma/vim-multiple-cursors.git
 [submodule "vim/bundle/vim-autoclose"]
-	path = vim/bundle/vim-autoclose
-	url = https://github.com/Townk/vim-autoclose.git
+  path = vim/bundle/vim-autoclose
+  url = https://github.com/Townk/vim-autoclose.git
 [submodule "mongo/mongo-hacker"]
-	path = mongo/mongo-hacker
-	url = https://github.com/TylerBrock/mongo-hacker.git
+  path = mongo/mongo-hacker
+  url = https://github.com/TylerBrock/mongo-hacker.git
+[submodule "powerline/rainbarf"]
+  path = powerline/rainbarf
+  url = https://github.com/creaktive/rainbarf.git

+ 34 - 38
powerline/config/themes/tmux/cinaeco.json

@@ -1,45 +1,41 @@
 {
-	"default_module": "powerline.segments.common",
-	"segment_data": {
-		"uptime": {
-			"before": "⇑  "
-		},
-		"external_ip": {
-			"before": "ⓦ  "
-		},
-		"email_imap_alert": {
-			"before": "✉ ",
-			"args": {
-				"username": "",
-				"password": ""
-			}
-		}
-	},
-	"segments": {
+  "default_module": "powerline.segments.common",
+  "segment_data": {
+    "uptime": {
+      "before": "⇑  "
+    },
+    "external_ip": {
+      "before": "ⓦ  "
+    },
+    "email_imap_alert": {
+      "before": "✉ ",
+      "args": {
+        "username": "",
+        "password": ""
+      }
+    }
+  },
+  "segments": {
     "left" : [
-			{
-				"name": "hostname",
+      {
+        "name": "hostname",
         "args": {
           "exclude_domain": true
         }
-			},
-			{
-				"name": "system_load",
-				"priority": 50
-			}
+      },
+      {
+        "name": "external_ip",
+        "priority": 50
+      }
     ],
-		"right": [
-			{
-				"name": "external_ip",
-				"priority": 50
-			},
-			{
-				"name": "date",
-				"args": {
-					"format": "%H:%M %Z %d %b %Y",
-					"istime": true
-				}
-			}
-		]
-	}
+    "right": [
+      {
+        "name": "date",
+        "args": {
+          "format": "%H:%M %e/%m/%Y",
+          "istime": true
+        }
+      }
+    ]
+  }
 }

+ 1 - 0
powerline/rainbarf

@@ -0,0 +1 @@
+Subproject commit 8e3f90660944bbd90d1751aa8edcd31d67fb7b7e

+ 1 - 1
tmux/tmux.conf

@@ -111,6 +111,6 @@ set -g status-bg colour234
 set -g status-left-length 90
 set -g status-left '#[fg=colour189,bg=colour55] #S #[fg=colour55,bg=colour233]#(powerline tmux left)'
 set -g status-right-length 90
-set -g status-right '#(powerline tmux right)'
+set -g status-right '#(powerline tmux right) #(~/dotfiles/powerline/rainbarf/rainbarf --remaining --rgb --width 10)'
 set -g window-status-format " #[fg=colour244,bg=colour234]#I#F#[fg=colour249]#W "
 set -g window-status-current-format "#[fg=red,bg=red] #[fg=colour231,bg=red]#I #[fg=colour231,bold]#W#[fg=red,bg=red,nobold] "