-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·109 lines (90 loc) · 1.5 KB
/
install.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#!/bin/bash
cd $HOME
git clone --depth 1 https://github.com/owpk/dotfiles-swayfx
cd $HOME/dotfiles-swayfx
set -e
DOT=$(pwd)
git config user.name "$USER"
git config user.email "--auto--"
# Install yay
if ! command -v yay > /dev/null
then
sudo pacman -Sy --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd $DOT
sudo rm -rf yay
fi
PACKAGES=(
swaybg
jq
cmake
cmocka
wofi
waybar
mtools
vifm
papirus-icon-theme
noto-fonts-emoji
ttf-hack
wl-clipboard
translate-shell
slurp
grim
light
pamixer
wmname
dmenu
xdg-desktop-portal
kanshi
alacritty
kitty
pavucontrol
playerctl
imv
mpv
wayvnc
pkcs11-helper
nodejs
swayidle
stow
)
#AUR packages
AUR=(
swww
nwg-launchers
nwg-panel
wlsunset
waybar-mpris-git
avizo
)
# The script begins here.
pac() {
yay -S --noconfirm --needed $1
}
# Install utilities
for i in ${PACKAGES[@]}; do
pac $i
done
# Install utilities
for i in ${AUR[@]}; do
pac $i
done
TERM_UTILS="server-dots"
CFG=$HOME/.config
LOCAL_BIN=$HOME/.local/bin
mkdir -p $LOCAL_BIN 2> /dev/null
mkdir -p $CFG 2> /dev/null
stow --adopt -vt $CFG .config
stow --adopt -vt $LOCAL_BIN scripts
sudo mkdir -p /usr/share/fonts/TTF 2> /dev/null
sudo cp ./fonts/* /usr/share/fonts/TTF/
fc-cache
ln -nsf $(pwd)/.themes $HOME/
# install terminal utils
git submodule update --init --recursive
# Создаем и переключаемся на новую ветку в основном проекте
git checkout -b "$USER"
cd $TERM_UTILS
./install.sh