From dcd7328f18af951c94a8eef1e8cdb1c140eacbaa Mon Sep 17 00:00:00 2001 From: thomasba Date: Sat, 18 Jul 2015 13:17:23 +0200 Subject: [PATCH] Added more files --- install | 12 +++++++++++- xprofile | 15 +++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 xprofile diff --git a/install b/install index 2b9aa30..0652ca0 100755 --- a/install +++ b/install @@ -44,6 +44,14 @@ function symlink() { cecho green " + Creating symlink to '$2' ..." ln -s $2 $name } +function ask() { + cecho white " ? Install file '$1'? [N/y] " + input c + if [ "$c" == "y" -o "$c" == "Y" ] ; then + backup_file "$1" + symlink "$1" "$2" + fi +} ####### # vim # @@ -79,7 +87,7 @@ else git clone -q https://github.com/robbyrussell/oh-my-zsh.git "${MY_PATH}/opt/oh-my-zsh" fi while [ ! "$MTYPE" == "PC" -a ! "$MTYPE" == "SERVER" ] ; do - cecho white "Is this a server of a PC? [s|p] > " + cecho white " ? Is this a server of a PC? [s|p] > " read mt case $mt in [Ss]*) @@ -120,6 +128,7 @@ if [ "$MTYPE" == "PC" ] ; then backup_file "~/.i3status.conf" symlink "~/.i3" "${MY_PATH}/i3" symlink "~/.i3status.conf" "${MY_PATH}/i3/i3status.conf" + ask "~/.xprofile" "${MY_PATH}/xprofile" else cecho yellow " > skipping " fi @@ -134,6 +143,7 @@ if [ "$MTYPE" == "PC" ] ; then backup_file "~/.pentadactylrc" symlink "~/.xinitrc" "${MY_PATH}/xinitrc" symlink "~/.pentadactylrc" "${MY_PATH}/pentadactylrc" + ask "~/.gitconfig" "${MY_PATH}/gitconfig" fi symlink "~/bin" "${MY_PATH}/bin" diff --git a/xprofile b/xprofile new file mode 100644 index 0000000..7bf1355 --- /dev/null +++ b/xprofile @@ -0,0 +1,15 @@ +# +# ~/.xprofile +# +# sourced by /etc/lxdm/Xsession +# + +if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then + eval "$(dbus-launch --sh-syntax --exit-with-session)" +fi + +# Environment variables +# +export GTK2_RC_FILES="$HOME/.gtkrc-2.0" + +xrandr --output DVI-0 --auto --left-of HDMI-0