-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_from_scratch.sh
executable file
·61 lines (57 loc) · 1.67 KB
/
install_from_scratch.sh
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env bash
. "install_base.sh"
echoo "Installing A1rPun dotfiles"
echoo "Downloading and installing needed packages"
install "bspwm"
install "lxdm"
install "dunst"
install "rofi"
install "polybar"
install "cava"
echoo "Symlink configuration files for packages"
# gtkrc
echoo "Link .gtkrc-2.0"
linkFile "./bash/.gtkrc-2.0"
# Xbindkeys
echoo "Link .xbindkeysrc"
linkFile "./bash/.xbindkeysrc"
# bspwm
echoo "Link bspwm"
makeDirIfNotExists ~/.config/bspwm
makeExecutable "./config/bspwm/bspwmrc"
linkFile "./config/bspwm/bspwmrc" ".config/bspwm/bspwmrc"
linkFile "./config/bspwm/bspwm_rules" ".config/bspwm/bspwm_rules"
# cava
echoo "Link cava"
makeDirIfNotExists ~/.config/cava
linkFile "./config/cava/config" ".config/cava/config"
# dunst
echoo "Link Dunst"
makeDirIfNotExists ~/.config/dunst
linkFile "./config/dunst/dunstrc" ".config/dunst/dunstrc"
# emacs
echoo "Link emacs config"
makeDirIfNotExists ~/.emacs.d/
linkFile "./emacs/init.el" ".emacs.d/init.el"
# TODO: g810-led
# TODO: gtk-3.0
# lxdm
#echoo "Link lxdm"
#makeDirIfNotExists /etc/lxdm
#ln -si ./config/lxdm/Simple /usr/share/lxdm/themes/Simple # find another way
#ln -si ./config/lxdm/lxdm.conf /etc/lxdm/lxdm.conf # find another way
# polybar
echoo "Link Polybar"
makeDirIfNotExists ~/.config/polybar
linkFile "./config/polybar/config" ".config/polybar/config"
makeExecutable "./config/polybar/pkg.sh"
linkFile "./config/polybar/pkg.sh" ".config/polybar/pkg.sh"
# rofi
echoo "Link Rofi"
makeDirIfNotExists ~/.config/rofi
linkFile "./config/rofi/config" ".config/rofi/config"
# sxhkd
echoo "Link sxhkd"
makeDirIfNotExists ~/.config/sxhkd
linkFile "./config/sxhkd/sxhkdrc" ".config/sxhkd/sxhkdrc"
echoo "Done installing dotfiles"