-
Notifications
You must be signed in to change notification settings - Fork 0
/
script_pywal.sh
executable file
·93 lines (56 loc) · 1.55 KB
/
script_pywal.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
#!/bin/bash
#variavel valor
t1='sleep 0.5'
opcao=$1
escolha(){
echo $opcao
case $opcao in
"-g") gentoo ;;
"--gentoo") gentoo ;;
"-v") void ;;
"--void") void ;;
*) echo "Opção inválida! Use uma das seguintes opcoes:
-g,--gentoo Usa script para gentoo
-v,--void Usa script para void"
exit 1 ;;
esac
}
gentoo(){
git clone https://github.com/dylanaraps/pywal
$t1
cd pywal
$t1
emerge pip
$t1
pip3 install --user .
$t1
echo -e "\033[41;1;37m>>>\033[0m add configuração ao .zshrc"
$t1
echo 'export PATH="${PATH}:${HOME}/.local/bin/"}' >> ~/.zshrc
$t1
#echo 'cat ~/.cache/wal/sequences' >> ~/.zshrc
echo 'wal-tile() {
wal -n -i "$@"
feh --bg-tile "$(< "${HOME}/.cache/wal/wal")"
}' >> ~/.zshrc
$t1
echo -e "\033[41;1;37m>>>\033[0m add configuração ao bspwmrc"
$t1
echo 'feh --bg-scale "$(< "${HOME}/.cache/wal/wal")"' >> ~/.config/bspwm/bspwmrc
$t1
echo -e "\033[41;1;37m>>>\033[0m agora UTILIZE wal -i ~caminho do wallpapers de sua escolha"
$t1
echo -e "\033[41;1;37m>>>\033[0m instalacao e configuracao do pywal completo"
}
void(){
sudo xbps-install -S pywal
sleep 1
echo "cat ~/.cache/wal/sequences\nsource ~/.cache/wal/colors-tty.sh\n. "${HOME}/.cache/wal/colors.sh"" >> $HOME/.zshrc
sleep 1
echo "wal-tile() {\n wal -n -i "$@"\n feh --bg-tile "$(< "${HOME}/.cache/wal/wal")"\n}" >> $HOME/.zshrc
wal -R
echo '>>> PYWAL INSTALADO E CONFIGURADO!!!!'
echo 'EXECUTE para iniciar o pywal >>>> wal -i <wallpaper> -n'
echo 'Adcione <wal -R> em .xinitrc'
}
escolha