#!/bin/bash export LANG="en_US.UTF-8" export FIREFOX_PROFILE="amcnabb" cd PATH=$HOME/bin:$PATH:/usr/local/bin if hostname |grep -q prodigy then if xrandr |grep -q DVI2 then xrandr --output DVI2 --right-of DVI1 else xrandr --output HDMI-2 --right-of HDMI-1 fi fi #urxvtd & # XTERMSHELL will be used by xbindkeys when it starts a terminal if [[ -x /bin/zsh ]] then # use zsh even if it's not our login shell XTERMSHELL=/bin/zsh else XTERMSHELL="$SHELL" fi export XTERMSHELL #if [[ `hostname -s` == maggie ]] #then # (sleep 10; xmodmap -e 'keycode 37 = Pointer_Button2') & # xmodmap -e 'remove control = Pointer_Button2' # # make the menu key be an actual right mouse button: # xmodmap -e 'keycode 135 = Pointer_Button3' #fi xbindkeys killall -9 scenery.py $HOME/bin/scenery.py -r 600 & # Load gconf settings ($HOME/.xsession-gconf) & ############################################################################## # Firefox # Note: we need to find a better way to change firefox settings. profiles=$(ls -d $HOME/.mozilla/firefox/*.$FIREFOX_PROFILE 2>/dev/null) if [[ ! $profiles ]] then firefox -no-remote -CreateProfile "$FIREFOX_PROFILE" profiles=$(ls -d $HOME/.mozilla/firefox/*.$FIREFOX_PROFILE 2>/dev/null) fi for profile in ${profiles[@]} do prefs="$profile/prefs.js" sed -i ' /^user_pref("browser\.fixup\.alternate\.enabled",/d /^user_pref("general\.smoothScroll",/d /^user_pref("general\.smoothScroll",/d /^user_pref("network\.http\.pipelining",/d /^user_pref("network\.http\.pipelining\.maxrequests",/d /^user_pref("network\.http\.max-connections",/d ' "$prefs" echo 'user_pref("browser.fixup.alternate.enabled", false);' >>"$prefs" echo 'user_pref("general.smoothScroll", false);' >>"$prefs" echo 'user_pref("network.http.pipelining", true);' >>"$prefs" echo 'user_pref("network.http.pipelining.maxrequests", 4);' >>"$prefs" echo 'user_pref("network.http.max-connections", 16);' >>"$prefs" done ############################################################################## # Window/Session Manager # which window manager (metacity or compiz) gconftool-2 --type string --set /apps/gnome-session/rh/window_manager metacity gnome-session # Get rid of any straggler children kill %1 %2 %3 %4 %5 %6 %7 %8