Created
October 24, 2014 18:10
-
-
Save mattdeboard/ac0823ee5491b4f15915 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-add | |
# Identify the home of our gtkrc file, important for setting styles of | |
# gtk-based applications | |
export GTK2_RC_FILES="$HOME/dotfiles/.gtkrc-2.0" | |
if [ -n $(xmodmap -pp | grep -q Caps) ]; then | |
xmodmap -e "remove lock = Caps_Lock" | |
xmodmap -e "add control = Caps_Lock" | |
xmodmap -e "keysym Caps_Lock = Control_L" | |
fi | |
if [ -z `pidof gnome-settings-session` ]; then | |
gnome-settings-daemon & | |
fi | |
if [ -z `pidof xscreensaver` ]; then | |
xscreensaver -no-splash & | |
fi | |
# launch a dbus session bus and write the location to file | |
read machine_id </var/lib/dbus/machine-id | |
dbus-launch --autolaunch="$machine_id" --binary-syntax --close-stderr --exit-with-session | |
if [ -f "$HOME/.dbus/session-bus/$machine_id-${DISPLAY#:}" ]; then | |
. "$HOME/.dbus/session-bus/$machine_id-${DISPLAY#:}" | |
unset machine_id | |
printf '%s\n' "$DBUS_SESSION_BUS_ADDRESS" > "$HOME/.dbus_address" | |
fi | |
if [ -z `pidof nautilus` ]; then | |
nautilus --no-desktop -n & | |
fi | |
if [ -z `pidof dropbox` ]; then | |
dropbox start & | |
fi | |
# xresources | |
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources | |
[[ -f ~/.Xdefaults ]] && xrdb -merge ~/.Xdefaults | |
if [[ -x /usr/bin/nm-applet && -z `pidof nm-applet` ]]; then | |
nm-applet --sm-disable & | |
fi | |
if [[ -x /usr/bin/gnome-sound-applet && -z `pidof gnome-sound-applet` ]]; then | |
gnome-sound-applet & | |
fi | |
# Disable touchpad! | |
TOUCHPAD_ID=`xinput | grep 'Synaptics TouchPad' | cut -f 2 | cut -f 2 -d =` | |
xinput set-prop $TOUCHPAD_ID "Device Enabled" 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment