Commits

Anonymous committed c73978a

a bunch of changes... who knows

  • Participants
  • Parent commits 64d055f

Comments (0)

Files changed (13)

File X11/Xdefaults

-#Xft.dpi: 96
-
-URxvt.font: xft:Terminus:pixelsize=12,xft:Lohit Kannada
+URxvt.font: xft:Terminus:pixelsize=12:antialias=false,xft:Lohit Kannada:antialias=false
 URxvt.perl-ext-common: default,matcher
 URxvt.urlLauncher: chromium
 URxvt.matcher.button: 1
 remove Lock = Caps_Lock
 keysym Caps_Lock = Super_L
+keysym Menu = Multi_key

File X11/xbindkeysrc

 # volume stuff
 ###########################
 
-# Increase volume
-"amixer set PCM playback 10%+"
-    c:123
-    XF86AudioRaiseVolume
-
-# Decrease volume
-"amixer set PCM playback 10%-"
-    c:122
-    XF86AudioLowerVolume
-
-# Toggle mute
-"amixer set Master toggle"
-    c:121
-
+## Increase volume
+#"amixer set PCM playback 10%+"
+#    c:123
+#    XF86AudioRaiseVolume
+#
+## Decrease volume
+#"amixer set PCM playback 10%-"
+#    c:122
+#    XF86AudioLowerVolume
+#
+## Toggle mute
+#"amixer set Master toggle"
+#    c:121
+#
 
 xmodmap "$HOME/etc/X11/Xmodmap"
 xbindkeys -f "$HOME/etc/X11/xbindkeysrc"
+xset r rate 200 100
 
 urxvtd -q -o -f
 urxvtc &
-sleep 2 && xrandr | grep -q "VGA-1 connected" && xrandr --output VGA-1 --auto --right-of LVDS-1 &
+#sleep 2 && xrandr | grep -q "DVI-D-1 connected" && xrandr -s 1920x1200 && xrandr --output DVI-D-1 --auto --right-of LVDS-1 &
+sleep 1 && [ $(disper -l | wc -l) -gt 2 ] && disper -e &
+echo 200 | sudo tee /sys/devices/platform/i8042/serio1/serio2/sensitivity
+echo 200 | sudo tee /sys/devices/platform/i8042/serio1/serio2/speed
 
 i=0
 [ -f $HOME/.mail_check ] && rm $HOME/.mail_check
 	fi
 
 	bat="$(acpi | cut -d ',' -f 2)"
-	vol="$(amixer get PCM | grep "Front Left:" | sed 's/.*\[\(.*\)\] .*/\1/')"
+	vol="$(amixer get Master | grep "Mono:" | sed 's/.*\[\(.*%\)\] .*/\1/')"
 	xsetroot -name "[m$(cat "$HOME/.mail_status")] [b$bat] [v $vol] [$(date "+%a %b %d %R %Z %Y")]"
-	i=$((i + 1))
-	sleep 60
+	((i++))
+	sleep 30
 done &
 
 while pidof X &> /dev/null; do

File bash/bash_profile

 # if we just logged in, startx
 if ! pidof X &> /dev/null && [[ $(tty) == "/dev/tty1" ]]; then
 	exec startx
+	echo "ERROR: startx did not exec"
+	which startx
 fi
 		shift
 	done
 
-
 	return 0
 }
 
 }
 
 init_misc () {
-	complete -F _command e n
+	complete -F _command e n t vie
 	complete -o nospace -F _cd cs
 	complete -o default -F _longopt a s l ll la lal
 
 	shopt -s checkwinsize   # check window size and set in LINES and COLUMNS
 	shopt -s cmdhist        # try to save all lines of a multi-line command in one entry
 	shopt -s dirspell       # forgive simple directory spelling mistakes
-	shopt -s extglob        # extended glob options (HUH?)
-	shopt -s globstar       # ** "match a files and zero or more directories and subdirs (HUH?)
+	shopt -s extglob        # extended glob options
+	shopt -s globstar       # ** "match a files and zero or more directories and subdirs
 	shopt -s gnu_errfmt     # gnu error message format (HUH?)
 	shopt -s hostcomplete   # attempt to complete hostnames when @ is found
 	shopt -s lithist        # save multi-line commands with embedded newlines, not semicolons
 	alias cd..='cd ..'
 
 	eval "$(dircolors -b $HOME/etc/bash/dircolors)"
-	alias ls='ls -CF --color=auto'
+	alias ls='ls -F --color=auto'
 	alias s='ls'
 	alias l='ls -lh'
 	alias ll='ls -lh'
 
 	alias df='df -h'
 	alias free='free -m'
+	alias mount='mount | column -t'
 
 	alias ha='history -a'
 	alias hn='history -n'
 
 
 init_prompt () {
-	PS1="\[\033k\033\\$reset\][\[$green\]\h \[$magenta\]\W \[$red\]\!\[$reset\]]\$ "
+	PS1="\[$reset\][\[$green\]\h \[$magenta\]\W \[$red\]\!\[$reset\]]\$ "
 	[[ "$TERM" =~ "rxvt" ]] && PROMPT_COMMAND='echo -ne "\e]0;${USER}@${HOSTNAME%%.*}: ${PWD/$HOME/~}\a"'
 	PROMPT_COMMAND="history -a; $PROMPT_COMMAND" 
 }
 init_xirrus () {
 	PROJ="$(basename $XIRRUS_ROOT)"
 
-	PS1="\[\033k\033\\$reset\][\[$green\]\h \[$cyan\]$PROJ \[$magenta\]\W\[$yellow\]\$(git branch 2>/dev/null | grep \* | sed 's/* \(.*\)/ (\1)/') \[$red\]\!\[$reset\]]\$ "
-	[[ "$TERM" =~ "rxvt" ]] && PROMPT_COMMAND='echo -ne "\e]0;${USER}@${HOSTNAME%%.*}: $PROJ: ${PWD/$HOME/~}\a"'
+	PS1="\[$reset\][\[$green\]\h \[$cyan\]$PROJ \[$magenta\]\W\[$yellow\]\$(git branch 2>/dev/null | grep \* | sed 's/* \(.*\)/ (\1)/') \[$red\]\!\[$reset\]]\$ "
+	[[ "$TERM" =~ "rxvt" ]] && PROMPT_COMMAND='echo -ne "\e]0;${USER}@${HOSTNAME%%.*}: $PROJ: $PWD\a"'
+
+	[ -e "$XIRRUS_ROOT/.gitconfig" ] || ln -s "$HOME/.gitconfig" "$XIRRUS_ROOT/.gitconfig"
 
 	CDPATH="${CDPATH#:}"
 	if [ -d $XIRRUS_SANDBOX ]; then
 	export HOME="$XIRRUS_ROOT"
 
 	alias xb="./xirrus_build"
+	alias xbv="./xirrus_build -v"
 	alias xbvi="./xirrus_build -v install"
 }
 
-fun () {
-	fortune -a | fmt -80 -s | cowsay -$(shuf -n 1 -e b d g p s t w y) -f $(shuf -n 1 -e $(cowsay -l | tail -n +2)) -n
-}
+fun  () { fortune -a | fmt -80 -s | cowsay -$(shuf -n 1 -e b d g p s t w y) -f $(shuf -n 1 -e $(cowsay -l | tail -n +2)) -n; }
+vie  () { bin=$(which "$1") && vim "$bin"; }
+cate () { bin=$(which "$1") && cat "$bin"; }
 
-vie () {
-	vim $(which "$1")
-}
+e () { "$@"     & exit        ; }
+n () { "$@"     ; echo -e "\a"; }
+t () { time "$@"; echo -e "\a"; }
 
-e () {
-	"$@" & exit
-}
-
-n () {
-	"$@"
-	echo -e "\a"
+which () {
+	{ alias; declare -f; } | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot "$@"
 }
 # this is where it actually starts, might think of it as
 # main()
 
-add_path   PATH $HOME/xds/xds-scripts /sbin /usr/sbin /usr/local/sbin /bin /usr/bin /usr/local/bin $HOME/bin
+add_path   PATH /sbin /usr/sbin /usr/local/sbin /bin /usr/bin /usr/local/bin $HOME/bin
 add_path CDPATH $HOME/xds $HOME/projects $HOME/packages /var /usr /etc $HOME ""
 
 export   PATH

File bash/dircolors

 TERM xterm-color
 TERM xterm-debian
 TERM st
+TERM st-256color
 # Below are the color init strings for the basic file types. A color init
 # string consists of one or more of the following numeric codes:
 # Attribute codes:
+$include /etc/inputrc
+
 set bell-style none
+#"\C-w": backward-kill-word
+"\C-o": "\C-asudo \C-e"
+
+#$if cat
+#	set horizontal-scroll-mode on
+#	set menu-complete-display-prefix on
+#	Tab: menu-complete
+#$endif
 }
 
 account xirrus {
+	#set ssl-method=ssl3
 	set folder="imaps://evan.gates@xirrus.com@mail.xirrus.com"
 	set from="evan.gates@xirrus.com (Evan Gates)"
 	set smtp-auth=login
 set emptybox
 set emptystart
 set hold
-set keepsave
+set nokeepsave
 set markanswered
 set nosave
 set searchheaders
 set newmail=nopoll
 set pipe-text/html="w3m -dump -T text/html"
 set pipe-application/pdf="zathura -"
+set pipe-image/png="pipe_image"
+set pipe-image/gif="pipe_image"
+set pipe-image/jpeg="pipe_image"
 
 set VISUAL="vim -c 'set ft=mail'"
 
 mkdir -p "$HOME/etc/vim/bundle"
 hg clone http://bitbucket.org/sjl/gundo.vim "$HOME/etc/vim/bundle/gundo"
 
-git clone http://github.com/fmoralsec/vim-pad "$HOME/etc/vim/bundle/vim-pad"
+git clone http://github.com/fmoralesc/vim-pad "$HOME/etc/vim/bundle/vim-pad"
 cd "$HOME/etc/vim/bundle/vim-pad"
 patch -p1 < "$HOME/etc/vim/patches/vim-pad-keys.diff"
 cd -

File vim/colors/emg.vim

 hi TabLineFill  cterm=none ctermbg=17
 hi TabLineSel   cterm=none ctermbg=18 ctermfg=87
 
-hi VertSplit    ctermbg=17 ctermfg=17
+hi VertSplit    cterm=none ctermbg=17 ctermfg=17
 hi Title        ctermfg=5
 hi Visual       cterm=reverse
 hi VisualNOS    cterm=reverse

File vim/plugin/autoload_cscope.vim

 " auto toggle the menu
 augroup autoload_cscope
  au!
- au BufEnter *.[chly]  call <SID>Cycle_csdb() | call <SID>Cycle_macros_menus()
- au BufEnter *.cc      call <SID>Cycle_csdb() | call <SID>Cycle_macros_menus()
- au BufEnter *.cdl     call <SID>Cycle_csdb() | call <SID>Cycle_macros_menus()
- au BufUnload *.[chly] call <SID>Unload_csdb() | call <SID>Cycle_macros_menus()
- au BufUnload *.cc     call <SID>Unload_csdb() | call <SID>Cycle_macros_menus()
- au BufUnload *.cdl    call <SID>Unload_csdb() | call <SID>Cycle_macros_menus()
+ au BufEnter *.[chlyS]  call <SID>Cycle_csdb() | call <SID>Cycle_macros_menus()
+ au BufEnter *.cc       call <SID>Cycle_csdb() | call <SID>Cycle_macros_menus()
+ au BufEnter *.cdl      call <SID>Cycle_csdb() | call <SID>Cycle_macros_menus()
+ au BufUnload *.[chlyS] call <SID>Unload_csdb() | call <SID>Cycle_macros_menus()
+ au BufUnload *.cc      call <SID>Unload_csdb() | call <SID>Cycle_macros_menus()
+ au BufUnload *.cdl     call <SID>Unload_csdb() | call <SID>Cycle_macros_menus()
 augroup END
 
 let &cpo = s:save_cpo
-set runtimepath+=__HOME__/etc/vim
-
-" plugins
-call pathogen#infect('~/etc/vim/bundle')
-
-nnoremap <leader>u :GundoToggle<CR>
-let g:gundo_preview_bottom = 1
-
-let g:pad_dir = '~/.notes'
+set runtimepath+=/home/egates/etc/vim
 
 " syntax
 syntax on
 set noincsearch
 "set foldmethod=syntax
 
-
 let c_gnu=1
 let c_comment_strings=1
 let c_space_errors=1
 set tabstop=4
 set shiftwidth=4
 set noexpandtab
-set formatoptions=r
+"set formatoptions=r
 
 let g:is_bash=1
 let g:sh_indent_case_labels=1
 
 au Filetype  mail set tw=72 et nocindent noai formatoptions=tcq spell
-au Filetype rmail set nocindent noai syntax=mail
+au Filetype rmail set nocindent noai syntax=mail hls
+au Filetype rmail map n nzt
 
 " misc
 set nobackup
 set t_Co=256
 
 set laststatus=2
+
 set statusline=%<%f%y%m%r%=%a\ \ [%b][0x%B]\ [%l,%c%V]\ [%P]
 
 set sessionoptions=blank,buffers,curdir,folds,help,options,tabpages,winsize,winpos,resize
 
 set scrolloff=2
-
 set wildmode=longest,list,full
 
-set rnu
+"set rnu
 
 " mappings
 map <Space> <PageDown>
 "nmap ;y :.w! !xsel -i<CR><CR>
 "nmap ;p :r   !xsel<CR>
 
-" Column scroll-binding on <leader>sb
+" Column scroll-binding on <leader>c
 noremap <silent> <leader>c :<C-u>let @z=&so<CR>:set so=0 noscb<CR>:bo vs<CR>Ljzt:setl scb<CR><C-w>p:setl scb<CR>:let &so=@z<CR>
 
+" sudo write
+command! W w !sudo tee % > /dev/null