2018-04-03 15:55:41 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
GUI=true
|
|
|
|
[[ $1 == --no-x ]] && GUI=false
|
|
|
|
|
2022-08-29 23:33:15 +02:00
|
|
|
DOT_CONF="${XDG_CONFIG_HOME:-$HOME/.config}"
|
2023-07-26 15:46:35 +02:00
|
|
|
DOT_LOCAL_BIN="$HOME/.local/bin"
|
2019-02-14 14:17:03 +01:00
|
|
|
mkdir -p "$DOT_CONF"
|
2018-04-03 15:55:41 +02:00
|
|
|
|
|
|
|
# stuff that we only want when we're setting up a graphical environment
|
|
|
|
[[ $GUI == true ]] && {
|
2018-04-17 16:29:28 +02:00
|
|
|
ln -s $PWD/xinitrc $HOME/.xinitrc
|
2022-09-11 17:04:46 +02:00
|
|
|
ln -s $PWD/Xresources $HOME/.Xresources
|
2018-04-03 15:55:41 +02:00
|
|
|
|
2023-07-26 15:46:35 +02:00
|
|
|
mkdir -p "$DOT_LOCAL_BIN"
|
2022-08-29 23:33:15 +02:00
|
|
|
|
2022-09-20 13:28:03 +02:00
|
|
|
mkdir -p $DOT_CONF/{dunst,compton,xfce4,foot}
|
2022-08-29 23:22:33 +02:00
|
|
|
ln -s $PWD/i3/ $DOT_CONF
|
|
|
|
ln -s $PWD/sway/ $DOT_CONF
|
2018-04-17 16:29:28 +02:00
|
|
|
ln -s $PWD/dunstrc.ini $DOT_CONF/dunst/dunstrc
|
2018-05-04 02:54:41 +02:00
|
|
|
ln -s $PWD/compton.conf $DOT_CONF/compton/config
|
2022-08-29 23:22:33 +02:00
|
|
|
ln -s $PWD/rofi/ $DOT_CONF
|
|
|
|
ln -s $PWD/polybar/ $DOT_CONF
|
|
|
|
ln -s $PWD/yambar/ $DOT_CONF
|
2018-08-21 00:12:32 +02:00
|
|
|
ln -s $PWD/redshift.ini $DOT_CONF/redshift.conf
|
2018-10-03 12:07:00 +02:00
|
|
|
ln -s $PWD/xfce4-terminal $DOT_CONF/xfce4/terminal
|
2022-09-20 13:28:03 +02:00
|
|
|
ln -s $PWD/foot.ini $DOT_CONF/foot/foot.ini
|
2023-07-26 15:46:35 +02:00
|
|
|
ln -s -t $DOT_LOCAL_BIN $PWD/bin/*
|
2022-09-18 14:19:56 +02:00
|
|
|
|
|
|
|
sudo mkdir -p /usr/share/fonts/local
|
|
|
|
sudo ln -s $PWD/yambar/bar-material-supplements.ttf /usr/share/fonts/local/
|
2018-04-03 15:55:41 +02:00
|
|
|
}
|
|
|
|
|
2019-02-14 14:17:03 +01:00
|
|
|
mkdir -p $DOT_CONF/{nvim/plug,beets}
|
2018-10-03 12:03:21 +02:00
|
|
|
ln -s $PWD/profile $HOME/.profile
|
|
|
|
ln -s $PWD/gitignore $HOME/.gitignore
|
|
|
|
ln -s $PWD/nvim-init.vim $DOT_CONF/nvim/init.vim
|
|
|
|
ln -s $PWD/user-dirs.dirs $DOT_CONF/user-dirs.dirs
|
|
|
|
ln -s $PWD/beets.config.yaml $DOT_CONF/beets/config.yaml
|
2018-08-21 00:12:32 +02:00
|
|
|
|
|
|
|
nvim -c :PlugUpgrade -c :PlugInstall -c :PlugUpdate
|