updated for multimonitor setup with bar and screen
authorMart Lubbers <mart.lubbers@mpi.nl>
Fri, 26 Sep 2014 07:49:57 +0000 (09:49 +0200)
committerMart Lubbers <mart.lubbers@mpi.nl>
Fri, 26 Sep 2014 07:49:57 +0000 (09:49 +0200)
.bashrc
.i3/config
.i3/screen.sh [new file with mode: 0755]

diff --git a/.bashrc b/.bashrc
index 5d220d7..4886f33 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -1,8 +1,14 @@
+#Shopt options
 shopt -s checkwinsize
 shopt -s histappend
-set -o vi
+
+#Disable bell
 xset -b >/dev/null 2>&1
 
+#Set vim mode and macros
+set -o vi
+bind '"\es":"\e0isudo \e$a"'
+
 #Variables
 export COLORFGBG="default:default"
 export EDITOR=vim
@@ -11,7 +17,7 @@ export HISTSIZE=100000
 export PATH=~/home/bin:$PATH
 export PYTHONDONTWRITEBYTECODE
 export PYTHONPATH=~/home/lib/python2.7/site-packages
-export STCONTROL=ignoreboth
+export HISTCONTROL=ignoreboth
 export TERM=screen
 export TERMINAL=urxvt
 export LD_LIBRARY_PATH=/home/marlub/home/lib64/:/home/marlub/home/lib/:/home/marlub/home/include
index b6cf5b5..57a5ed0 100644 (file)
@@ -14,6 +14,7 @@ exec skype
 exec ~/.i3/bg
 exec numlockx on
 exec urxvtd -q -o -f
+exec ~/.i3/screen.sh
 
 
 set $mod Mod4
@@ -130,4 +131,5 @@ bar {
        status_command /home/marlub/.i3/bar
        position bottom
        Font -gnu-unifont-*-*-*-16-160-*-*-*-*-*-*
+       tray_output primary
 }
diff --git a/.i3/screen.sh b/.i3/screen.sh
new file mode 100755 (executable)
index 0000000..0a9dfd8
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+xrandr --output HDMI1 --mode 1280x1024 --pos 0x0 --rotate normal --output DP1 --off --output VGA1 --primary --mode 1680x1050 --pos 1280x0 --rotate normal