~charles/dotfiles

96e433ac2baea26da79d1e4bc1dce52644c19aab — Charles Daniels 4 years ago cc11605
fix compatibility with xubuntu
2 files changed, 15 insertions(+), 4 deletions(-)

M install.sh
M overlay/.xprofile
M install.sh => install.sh +9 -1
@@ 1,7 1,16 @@
#!/bin/sh

check_prog() {
	if [ ! -x "$(which "$1")" ] ; then
		echo "ERROR: could not find '$1' in PATH" 1>&2
		exit 1
	fi
}

set -u

check_prog curl

# install overlay
cd "$(dirname "$0")"
DOTFILES_DIR="$(pwd)"


@@ 36,7 45,6 @@ curl -SsfLo ~/.zsh/completions/git-completion.zsh --create-dirs \
# zsh docker completions
curl -SsfLo ~/.zsh/completions/_docker-compose https://raw.githubusercontent.com/docker/compose/1.23.2/contrib/completion/zsh/_docker-compose 


# setup gitconfig
git_username="$(git config --get user.name)"
git_email="$(git config --get user.email)"

M overlay/.xprofile => overlay/.xprofile +6 -3
@@ 1,4 1,7 @@
export XDG_CURRENT_DESKTOP=GNOME
xinput set-prop /dev/wsmouse "WS Pointer Wheel Emulation" 1
xinput set-prop /dev/wsmouse "WS Pointer Wheel Emulation Button" 2

if [ -x "$(which xinput)" ] ; then
	if [ -e /dev/wsmouse ] ; then
		xinput set-prop /dev/wsmouse "WS Pointer Wheel Emulation" 1
		xinput set-prop /dev/wsmouse "WS Pointer Wheel Emulation Button" 2
	fi
fi