Add remote setup, add laptop/desktop config
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
*.swp
|
||||||
@@ -5,9 +5,20 @@
|
|||||||
#
|
#
|
||||||
# Distributed under terms of the MIT license.
|
# Distributed under terms of the MIT license.
|
||||||
#
|
#
|
||||||
|
mkdir -p $HOME/.config/i3
|
||||||
|
mkdir -p $HOME/.config/polybar
|
||||||
|
|
||||||
ln -s $PWD/i3config ~/.config/i3/config
|
ln -s $PWD/i3config ~/.config/i3/config
|
||||||
ln -s $PWD/polybarconfig ~/.config/polybar/config
|
ln -s $PWD/polybarconfig ~/.config/polybar/config
|
||||||
ln -s $PWD/.xinitrc ~/.xinitrc
|
ln -s $PWD/.xinitrc ~/.xinitrc
|
||||||
|
while true; do
|
||||||
|
read -p "Is this your laptop? [y/n]" yn
|
||||||
|
case $yn in
|
||||||
|
[Yy]* ) break;;
|
||||||
|
[Nn]* ) exit;;
|
||||||
|
* ) echo "Please answer yes or no.";;
|
||||||
|
esac
|
||||||
|
done
|
||||||
sudo ln -s $PWD/auto_monitor.sh /usr/local/bin/auto_monitor.sh
|
sudo ln -s $PWD/auto_monitor.sh /usr/local/bin/auto_monitor.sh
|
||||||
sudo ln -s $PWD/switch_monitors.sh /usr/local/bin/switch_monitors.sh
|
sudo ln -s $PWD/switch_monitors.sh /usr/local/bin/switch_monitors.sh
|
||||||
sudo ln -s $PWD/98-monitor-hotplug.rules /etc/udev/rules.d/98-monitor-hotplug.rules
|
sudo ln -s $PWD/98-monitor-hotplug.rules /etc/udev/rules.d/98-monitor-hotplug.rules
|
||||||
|
|||||||
@@ -9,10 +9,22 @@
|
|||||||
sudo pacman --needed -Sy archlinux-keyring --noconfirm
|
sudo pacman --needed -Sy archlinux-keyring --noconfirm
|
||||||
sudo pacman --needed -Syu --noconfirm
|
sudo pacman --needed -Syu --noconfirm
|
||||||
yes | sudo pacman --needed -Sy vte3-ng
|
yes | sudo pacman --needed -Sy vte3-ng
|
||||||
sudo pacman --needed -Sy base-devel xorg xorg-xinit gnome gnome-extra gvim zsh tmux openssh termite powerline powerline-fonts --noconfirm
|
sudo pacman --needed -Sy base-devel xorg xorg-xinit gnome gnome-extra gvim zsh tmux openssh termite powerline powerline-fonts i3 rofi nitrogen --noconfirm
|
||||||
./clone_and_link.sh
|
./clone_and_link.sh
|
||||||
cp zsh/.powerline_config_arch.example zsh/.powerline_config
|
cp zsh/.powerline_config_arch.example zsh/.powerline_config
|
||||||
cp vim/.vimrc_config_powerline_arch.example vim/.vimrc_config_powerline
|
cp vim/.vimrc_config_powerline_arch.example vim/.vimrc_config_powerline
|
||||||
if [ $SHELL != "/bin/zsh" ]; then
|
if [ $SHELL != "/bin/zsh" ]; then
|
||||||
chsh -s /usr/bin/zsh;
|
chsh -s /usr/bin/zsh;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
for filename in zsh/.*_arch.example; do
|
||||||
|
cp $filename ${filename:0:-13}
|
||||||
|
done
|
||||||
|
|
||||||
|
for filename in tmux/.*_arch.example; do
|
||||||
|
cp $filename ${filename:0:-13}
|
||||||
|
done
|
||||||
|
|
||||||
|
for filename in vim/.*_arch.example; do
|
||||||
|
cp $filename ${filename:0:-13}
|
||||||
|
done
|
||||||
|
|||||||
13
setup_remotes.sh
Executable file
13
setup_remotes.sh
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
#
|
||||||
|
# setup_remotes.sh
|
||||||
|
# Copyright (C) 2017 Fabian Ising <fabian@murgi.de>
|
||||||
|
#
|
||||||
|
# Distributed under terms of the Apache v2.0 license.
|
||||||
|
#
|
||||||
|
|
||||||
|
git remote add i3 git@vcs.murgi.de:dotfiles_fabian/i3config.git
|
||||||
|
git remote add tmux git@vcs.murgi.de:dotfiles_fabian/tmux.git
|
||||||
|
git remote add tmux git@vcs.murgi.de:dotfiles_fabian/tmux.git
|
||||||
|
git remote add vim git@vcs.murgi.de:dotfiles_fabian/vim.git
|
||||||
|
git remote add zsh git@vcs.murgi.de:dotfiles_fabian/zsh.git
|
||||||
Reference in New Issue
Block a user