dotfiles/install.sh

47 lines
941 B
Bash
Raw Normal View History

2020-08-01 12:05:15 +00:00
#!/bin/sh
2020-09-24 16:46:14 +00:00
# run this function for files that go directily into the home directory
2020-08-01 12:05:15 +00:00
gohome() {
2021-02-13 12:49:36 +00:00
ln -sfv $PWD/$1 ~/
2020-08-01 12:05:15 +00:00
}
# run this function for files that go into the .config file
goconfig() {
2021-02-13 12:49:36 +00:00
ln -sfv $PWD/$1 ~/.config/
2020-08-01 12:05:15 +00:00
}
2021-02-13 12:49:36 +00:00
# run this function for files that go into the .local/bin file
gobin() {
ln -sfv $PWD/$1 ~/.local/bin/
}
echo "This script will make symbolic links to all the dotfiles."
echo "Be sure to be cd-ed in the directory where the dotfiles repo resides (where this script is located ofc)\n"
echo "Type \"y\" if you do so we can continue"
read choice
if [ "$choice" = "y" ]
then
gohome .bashrc
gohome .profile
gohome .Xresources
goconfig bspwm
goconfig dunst
goconfig polybar
goconfig sxhkd
goconfig picom.conf
goconfig nvim
2021-02-19 08:23:23 +00:00
goconfig ncmcpp
2021-02-13 12:49:36 +00:00
goconfig lf
goconfig emacs
2020-08-01 12:05:15 +00:00
2021-02-13 12:49:36 +00:00
gobin bin/dmenukaomoji
gobin bin/toggle
2020-08-01 12:05:15 +00:00
2021-02-13 12:49:36 +00:00
#install fonts
echo "Copying polybar fonts"
cp -ruv $PWD/polybar/fonts/* ~/.local/share/fonts
fi
2020-08-24 19:47:54 +00:00