-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·37 lines (31 loc) · 857 Bytes
/
setup.sh
File metadata and controls
executable file
·37 lines (31 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
DOTFILES=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
if [[ -z "${XDG_CONFIG_HOME}" ]]; then
XDG_CONFIG_HOME=~/.config
fi
for arg in $@
do
case $arg in
labwc)
# labwc desktop
cat $DOTFILES/pkg.d/labwc | xargs sudo dnf install
ln -s $DOTFILES/.config/labwc/ ~/.config/labwc
ln -s $DOTFILES/.config/sfwbar/ ~/.config/sfwbar
;;
term)
cat $DOTFILES/pkg.d/term | xargs sudo dnf install
# vim
ln -s $DOTFILES/.vimrc ~/.vimrc
ln -s $DOTFILES/.vim ~/.vim
# zsh
ln -s $DOTFILES/.zshrc ~/.zshrc
;;
gui)
cat $DOTFILES/pkg.d/gui | xargs sudo dnf install
# alacritty
ln -s $DOTFILES/.alacritty.toml ~/.alacritty.toml
mkdir -p $XDG_CONFIG_HOME/alacritty/
git clone git@github.com:alacritty/alacritty-theme.git $XDG_CONFIG_HOME/alacritty/alacritty-theme
;;
esac
done