2017-05-12 11:27:32 +02:00
|
|
|
#! /bin/sh
|
|
|
|
|
#
|
|
|
|
|
# link_config.sh
|
2017-05-24 17:39:04 +02:00
|
|
|
# Copyright (C) 2016 fabian <fabian@tmurgi.de>
|
2017-05-12 11:27:32 +02:00
|
|
|
#
|
|
|
|
|
# Distributed under terms of the MIT license.
|
|
|
|
|
#
|
2017-05-24 17:31:56 +02:00
|
|
|
mkdir -p $HOME/.config/i3
|
|
|
|
|
mkdir -p $HOME/.config/polybar
|
|
|
|
|
|
2017-05-12 11:27:32 +02:00
|
|
|
ln -s $PWD/i3config ~/.config/i3/config
|
|
|
|
|
ln -s $PWD/polybarconfig ~/.config/polybar/config
|
|
|
|
|
ln -s $PWD/.xinitrc ~/.xinitrc
|
2017-05-24 17:45:39 +02:00
|
|
|
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
|
2017-05-24 17:39:04 +02:00
|
|
|
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/98-monitor-hotplug.rules /etc/udev/rules.d/98-monitor-hotplug.rules
|