Permalink
Browse files

Changes:

- update dual_monitor
  • Loading branch information...
1 parent 4063cc4 commit fc3f7c689dd5b8021ecdc31840d7f702e369d998 utopia.zh@gmail.com committed Apr 2, 2013
Showing with 19 additions and 8 deletions.
  1. +12 −4 dual_monitor
  2. +1 −1 vimrc/.vim/vim-pathogen
  3. +6 −3 vimrc/.vimrc
View
16 dual_monitor
@@ -1,12 +1,20 @@
#!/bin/sh
-if [ "$1" != "off" ]; then
- # External Screen as HDMI, Laptop below
- echo "Dual Screen on"
+if [ "$1" = "desktop" ]; then
+
+ echo "Dual Screen desktop as main window"
xrandr --output VGA1 --off
xrandr --output HDMI1 --primary --mode 1920x1080
xrandr --output LVDS1 --off
xrandr --output LVDS1 --mode 1600x900 --right-of HDMI1
-else
+
+elif [ "$1" = "laptop" ]; then
+ echo "Dual Screen laptop as main window"
+ xrandr --output VGA1 --off
+ xrandr --output LVDS1 --off
+ xrandr --output LVDS1 --primary --mode 1600x900
+ xrandr --output HDMI1 --mode 1920x1080 --left-of LVDS1
+
+elif [ "$1" = "off" ]; then
# External Screen off, Laptop primary
echo "Dual Screen off"
xrandr --output HDMI1 --off
2 vimrc/.vim/vim-pathogen
@@ -1 +1 @@
-Subproject commit 12c3483515927f7e4cfe0895be5750e779c88f7e
+Subproject commit a517eed9875fb7cb35267d1ed098f10eeaf1f877
View
9 vimrc/.vimrc
@@ -1,3 +1,6 @@
+" Plugin
+call pathogen#infect()
+
syntax on
set ai "autoindent
set sm "showmatch
@@ -35,7 +38,7 @@ if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
-" Plugin
-call pathogen#infect()
-
+" omnicompletion
+filetype plugin on
+set ofu=syntaxcomplete#Complete

0 comments on commit fc3f7c6

Please sign in to comment.