-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-wm-arch
1299 lines (1078 loc) · 51.5 KB
/
install-wm-arch
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/bin/env bash
# fork script of https://github.com/Axarva/dotfiles-2.0/tree/main
# fork script of https://github.com/SolDoesTech/HyprV4/blob/2cf439c27475a32fd00e816a1fde82a5804efe2a/set-hypr
#TODO parei no ly
# cores letras de seleçao
LETRA="\e[1;36m"
RESETLETRA="\e[0m"
# cores
CNT="[\e[1;36mNOTA\e[0m]" #azul
COK="[\e[1;32mOK\e[0m]" #verde
CER="[\e[1;31mERRO\e[0m]" #vermelhor claro
CAT="[\e[1;37mATENCAO\e[0m]" #branco
CWR="[\e[1;35mALERTA\e[0m]" #roxo claro
CAC="[\e[1;33mACAO\e[0m]" #amarelo
INSTLOG="$HOME/install.log"
FIN_INST="&>> $INSTLOG & show_progress $!"
ESPEPACMAN="[\e[1;37mEXECUTANDO\e[0m"
CONFIGANDO="[\e[1;37mCONFIGURANDO\e[0m"
# barra de progresso
show_progress() {
while ps | grep $1 &>/dev/null; do
echo -n "."
sleep 2
done
echo -en "\e[1;32mPRONTO!\e[0m]\n"
sleep 2
}
install_software() {
# First lets see if the package is there
if $HELPER -Q $1 &>>/dev/null; then
echo -e "$COK - $1 JÁ ESTÁ INSTALADO."
else
# no package found so installing
echo -en "$CNT - INSTALANDO AGORA $1 ."
$HELPER -S --noconfirm $1 &>>$INSTLOG & show_progress $!
# test to make sure package installed
if $HELPER -Q $1 &>>/dev/null; then
echo -e "\e[1A\e[K$COK - $1 FOI INSTALADO."
else
# if this is hit then a package is missing, exit to review log
echo -e "\e[1A\e[K$CER - $1 INSTALAÇAO FALHOU VEJA O ARQUIVO DE LOG EM $HOME/install.log"
exit
fi
fi
}
install_software_pacman() {
# instala pacotes com pacman
# echo -en "$ESPEPACMAN - ATUALIZAÇAO DO SISTEMA."
for PKGS in ${1}; do
sudo pacman -S --noconfirm --needed "${PKGS}" &>>$INSTLOG & show_progress $!
done
}
# porte 1
inicio() {
set -e
clear
cat <<EOL
██ ██ ██ ██ ██
░░ ░██ ░██ ░██ ░██
██ ███████ ██████ ██████ ██████ ░██ ░██ ██████ ███████ ██████ ██████ █████ ░██
░██░░██░░░██ ██░░░░ ░░░██░ ░░░░░░██ ░██ ░██ █████ ██░░░░██░░██░░░██ █████ ░░░░░░██ ░░██░░█ ██░░░██░██████
░██ ░██ ░██░░█████ ░██ ███████ ░██ ░██░░░░░ ░██ ░██ ░██ ░██░░░░░ ███████ ░██ ░ ░██ ░░ ░██░░░██
░██ ░██ ░██ ░░░░░██ ░██ ██░░░░██ ░██ ░██ ░██ ░██ ░██ ░██ ██░░░░██ ░██ ░██ ██░██ ░██
░██ ███ ░██ ██████ ░░██ ░░████████ ███ ███ ░░██████ ███ ░██ ░░████████░███ ░░█████ ░██ ░██
░░ ░░░ ░░ ░░░░░░ ░░ ░░░░░░░░ ░░░ ░░░ ░░░░░░ ░░░ ░░ ░░░░░░░░ ░░░ ░░░░░ ░░ ░░
Bem vindo!......................................
Este instalador e configurador foi feito como um
projeto pessoal para fazer uma instalação rapida
e precisa das minhas configurações prediletas
dos principais programas que utilizo em meu arch
linux.
Por favor sinta-se a vontade para utilizar e
modificar de acordo com suas preferencias de
configuração.
Para utilizar este script você deve esta logado
como um usuario não root para que as pastas
sejas enviadas para o local correto.........
EOL
sleep 0.2
read -rep "$(echo -e $CAC) - Esta pronto para continuar? - (s,n) ... " CONTINUAR
case "$CONTINUAR" in
s | j)
echo ""
;;
n | N)
exit 1
;;
*)
inicio
;;
esac
# Default past github dotfiles
# GITFILES="dotfiles-conf"
# does full system update
echo -e "$CAC - FAZENDO UMA ATUALIZAÇÃO DO SISTEMA, PODE ACONTECER QUE COISAS QUEBREM SE NÃO FOR A VERSÃO MAIS RECENTE."
echo -e $ESPEPACMAN
if ! sudo pacman --noconfirm -Syu; then
echo -e "$CER - ERRO NA ATUALIZAÇAO."
fi
# install base-devel if not installed
echo -en "$ESPEPACMAN"
install_software_pacman "base-devel wget git" &>>$INSTLOG & show_progress $!
} ### inicio
driveVideo() {
# choose video driver
sleep 0.2
cat <<DRIVERDESENHO
██ ██ ██ ██
░██ ░░ ░░ ░██
░██ ██████ ██ ██ ██ █████ ██████ ██ ██ ██ ░██ █████ ██████
██████░░██░░█░██░██ ░██ ██░░░██░░██░░█ ░██ ░██░██ ██████ ██░░░██ ██░░░░██
██░░░██ ░██ ░ ░██░░██ ░██ ░███████ ░██ ░ ░░██ ░██ ░██ ██░░░██░███████░██ ░██
░██ ░██ ░██ ░██ ░░████ ░██░░░░ ░██ ░░████ ░██░██ ░██░██░░░░ ░██ ░██
░░██████░███ ░██ ░░██ ░░██████░███ ░░██ ░██░░██████░░██████░░██████
░░░░░░ ░░░ ░░ ░░ ░░░░░░ ░░░ ░░ ░░ ░░░░░░ ░░░░░░ ░░░░░░
DRIVERDESENHO
echo ""
read -rep "$(echo -e $CAC) - Driver da sua placa de vídeo: $(echo -e $LETRA)I$(echo -e $RESETLETRA)NTEL, $(echo -e $LETRA)A$(echo -e $RESETLETRA)MDGPU, $(echo -e $LETRA)N$(echo -e $RESETLETRA)VIDIA ou $(echo -e $LETRA)M$(echo -e $RESETLETRA)aquinaVirtual - (i,a,n,m) ... " VIDEO
case $VIDEO in
i | I)
DRI='xf86-video-intel'
;;
a | A)
DRI='xf86-video-amdgpu'
;;
n | N)
DRI='xf86-video-nvidia'
;;
m | M)
DRI="NAO"
echo -e "$CAT - VOCE ESTA USANDO UMA MAQUINA VITUAL."
;;
*)
driveVideo
;;
esac
# install xorg if not installed
# if [[ -z $DRI ]]; then
# echo ""
# else
# install_software_pacman $DRI &>> /dev/null
# fi
# complemetos para os drivers
if [ $DRI == "xf86-video-amdgpu" ]; then
echo -en "$ESPEPACMAN - AMDGPU."
install_software_pacman "mesa-libgl mesa-vdpau libvdpau-va-gl vulkan-radeon" &>>$INSTLOG & show_progress $! # driver open-source (melhor)
sudo cp ./xorg_conf/40-amdgpu.conf /usr/share/X11/xorg.conf.d/
fi
if [ $DRI == "xf86-video-intel" ]; then
echo -en "$ESPEPACMAN - INTEL."
install_software_pacman "mesa-libgl libvdpau-va-gl vulkan-intel" &>>$INSTLOG & show_progress $! # driver open-source (melhor)
sudo cp ./xorg_conf/20-intel.conf /usr/share/X11/xorg.conf.d/
fi
if [ $DRI == "xf86-video-nvidia" ]; then
echo -en "$ESPEPACMAN - NVIDIA."
install_software_pacman "nvidia-utils libglvnd nvidia-settings lib32-nvidia-utils nvidia-dkmsa" &>>$INSTLOG & show_progress $! # tem que testa para ver ser funciona
nvidia-xconfig --add-argb-glx-visuals --allow-glx-with-composite --composite --render-accel -o /usr/share/X11/xorg.conf.d/20-nvidia.conf
fi
# adicionando modulos
# if [ "$(ls /boot | grep hardened -c)" -gt "0" ]; then
# mkinitcpio -p linux-hardened
# elif [ "$(ls /boot | grep lts -c)" -gt "0" ]; then
# mkinitcpio -p linux-lts
# elif [ "$(ls /boot | grep zen -c)" -gt "0" ]; then
# mkinitcpio -p linux-zen
# else
# mkinitcpio -p linux
# fi
} ### driveVideo
windowManger() {
sleep 0.2
cat <<WINDOWMANAGER
██ ██
░░ ░██ █████
███ ██ ██ ███████ ░██ ██████ ███ ██ ██████████ ██████ ███████ ██████ ██░░░██ █████ ██████
░░██ █ ░██░██░░██░░░██ ██████ ██░░░░██░░██ █ ░██ ░░██░░██░░██ ░░░░░░██ ░░██░░░██ ░░░░░░██ ░██ ░██ ██░░░██░░██░░█
░██ ███░██░██ ░██ ░██ ██░░░██░██ ░██ ░██ ███░██ ░██ ░██ ░██ ███████ ░██ ░██ ███████ ░░██████░███████ ░██ ░
░████░████░██ ░██ ░██░██ ░██░██ ░██ ░████░████ ░██ ░██ ░██ ██░░░░██ ░██ ░██ ██░░░░██ ░░░░░██░██░░░░ ░██
███░ ░░░██░██ ███ ░██░░██████░░██████ ███░ ░░░██ ███ ░██ ░██░░████████ ███ ░██░░████████ █████ ░░██████░███
░░░ ░░░ ░░ ░░░ ░░ ░░░░░░ ░░░░░░ ░░░ ░░░ ░░░ ░░ ░░ ░░░░░░░░ ░░░ ░░ ░░░░░░░░ ░░░░░ ░░░░░░ ░░░
WINDOWMANAGER
echo ""
read -rep "$(echo -e $CAC) - Qual gerenciador de janelas (window manager) vai ser desta vez? $(echo -e $LETRA)B$(echo -e $RESETLETRA)SPWM, $(echo -e $LETRA)X$(echo -e $RESETLETRA)MONAD, $(echo -e $LETRA)H$(echo -e $RESETLETRA)YPRLAND, $(echo -e $LETRA)G$(echo -e $RESETLETRA)NOME, $(echo -e $LETRA)K$(echo -e $RESETLETRA)DE, $(echo -e $LETRA)P$(echo -e $RESETLETRA)ular - (b,x,h,g,p) ... " WME
case $WME in
b | B)
WMs="bspwm"
WMx="sxhkd"
WMb="polybar"
;;
x | X)
WMs="xmonad"
WMx="xmonad-contrib"
WMb="xmobar"
;;
h | H)
WM_WAYLAND="hyprland"
;;
g | G)
ENVIRONMENT="gnome"
;;
k | K)
ENVIRONMENTK="plasma"
;;
p | P)
echo ""
;;
*)
windowManger
;;
esac
# teste para saber se a variavel esta vazia
if [[ -z $WMs ]]; then
echo ""
else
# instalando window manger
echo -en "$ESPEPACMAN - INSTALAÇAO DO $WMs."
install_software_pacman "$WMs $WMx $WMb" &>>$INSTLOG & show_progress $!
echo -en "$ESPEPACMAN - INSTALAÇAO DO XORG."
install_software_pacman "xclip xdo mtools xdotool xsel feh xorg-xsetroot xorg-xset xorg-xrdb xorg-server xorg-xinit xorg-xinput libxinerama libxft nsxiv unclutter maim" &>>$INSTLOG & show_progress $!
# &>> $INSTLOG & show_progress $!
echo -e "$COK - $WMs INSTALADO."
fi
if [[ $WM_WAYLAND = "hyprland" ]]; then
echo -en "$ESPEPACMAN - INSTALAÇAO DE HYPRLAND."
install_software_pacman "$WM_WAYLAND wl-clipboard seatd swaybg ttf-font-awesome waybar" #&>> $INSTLOG
sleep 0.2
echo -en "$CONFIGANDO"
sudo systemctl enable seatd.service &>>$INSTLOG
sleep 0.2
sudo systemctl start seatd.service &>>$INSTLOG
echo -e "$COK - HYPRLAND INSTALADO."
fi
# AUR para hyprland
if [[ $WM_WAYLAND = "hyprland" ]]; then
echo -en "$ESPEPACMAN - INSTALAÇAO DE PROGRAMAS EXTRAS PARA WAYLAND."
install_software "grimblast-git rofi-wayland crow-translate rofi-calc imv" &>>$INSTLOG & show_progress $!
# notify-send.sh
# polkit-kde-agent
fi
if [[ $ENVIRONMENT = "gnome" ]]; then
echo -en "$ESPEPACMAN - INSTALAÇAO DO GNOME."
install_software_pacman "gnome gdm wl-clipboard seatd ttf-font-awesome" #&>> $INSTLOG
sleep 0.2
echo -en "$CONFIGANDO"
sudo systemctl enable seatd &>>$INSTLOG
sleep 0.2
sudo systemctl start seatd &>>$INSTLOG
sleep 0.2
sudo systemctl enable gdm &>>$INSTLOG
echo -e "$COK - GNOME INSTALADO."
fi
if [[ $ENVIRONMENTK = "plama" ]]; then
echo -en "$ESPEPACMAN - INSTALAÇAO DO GNOME."
install_software_pacman "plasma-meta sddm wl-clipboard seatd ttf-font-awesome" #&>> $INSTLOG
sleep 0.2
echo -en "$CONFIGANDO"
sudo systemctl enable seatd &>>$INSTLOG
sleep 0.2
sudo systemctl start seatd &>>$INSTLOG
sleep 0.2
sudo systemctl enable sddm &>>$INSTLOG
echo -e "$COK - GNOME INSTALADO."
fi
if [[ $DRI == "xf86-video-amdgpu" ]]; then
install_software "amd-vulkan-prefixes" &>>$INSTLOG &
fi
# configurando tofi
# if [[ -d ~/.config/tofi ]]; then
# echo -e "$COK - TOFI JÁ CONFIGURADO."
# else
# cp -r ./.config/tofi ~/.config/
# fi
# Configurações
if [[ $WM_WAYLAND = "hyprland" ]]; then
rm --recursive --force ~/.config/{hypr,waybar,rofi,imv}
cp -r ./.config/hypr ~/.config/
mkdir -p ~/.config/waybar
cp -r ./.config/waybar/hypr_waybar-config/* ~/.config/waybar/
cp -r ./.config/rofi ~/.config/
cp -r ./.config/imv ~/.config/
echo -e "$COK - CONFIGURACAO DO $WM_WAYLAND."
fi
if [[ -z $WMs ]]; then
echo ""
elif [[ -d ~/.config/$WMs ]]; then
rm --recursive --force ~/.config/$WMs
cp -r ./.config/$WMs ~/.config/
echo -e "$COK - CONFIGURAÇÃO $WMs DETECTADA, BACKUP."
else
mkdir -p ~/.config/$WMs
cp -r ./.config/$WMs/* ~/.config/$WMs/
echo -e "$COK - CONFIGURAÇÃO DO $WMs."
fi
if [[ $WMx = "sxhkd" ]]; then
rm --recursive --force ~/.config/sxhkd/
mkdir -p ~/.config/sxhkd/
cp --recursive ./.config/sxhkd/* ~/.config/sxhkd
echo -e "$COK - CONFIGURAÇÃO KEYBINDS DO BSPWM."
fi
if [[ $WMb = "polybar" ]]; then
rm --recursive --force ~/.config/polybar
mkdir -p ~/.config/polybar/
cp --recursive ./.config/polybar/* ~/.config/polybar/
echo -e "$COK - CONFIGURAÇÃO DO POLYBAR CONCLUIDA."
fi
if [[ $WMs = "bspwm" ]]; then
echo -e '#!/bin/bash\n\nuserresources=$HOME/.Xresources\nsysresources=/etc/X11/xinit/.Xresources\n\n# merge in defaults\n\nif [ -f $sysresources ]; then\n xrdb -merge $sysresources\nfi\n\nif [ -f "$userresources" ]; then\n xrdb -merge "$userresources"\nfi\n\n[ -f ~/.Xdefaults ] && xrdb -merge ~/.Xdefaults\n\nxsetroot -cursor_name left_ptr &\n\n# feh --bg-tile ~/Imagens/wallpaperz.png\n$HOME/.fehbg\n# $HOME/trigger_custom_refresh.sh &\n# wal -R\n\n# export MPD_HOST=$HOME/.config/mpd/socket\n# mpd --kill; mpd &\nunclutter --timeout 7 &\n\n# Set up an icon tray\n# trayer --edge top --align right --SetDockType true --SetPartialStrut true \ \n# --expand true --width 10 --transparent true --tint 0x5f5f5f --height 18 &\n\nif [ "$(command -v xset)" >/dev/null 2>&1 ];\nthen\n #xset s off #Disable screen saver blanking\n #xset s 3600 3600 #Change blank time to 1 hour\n #xset -dpms #Turn off DPMS\n xset s off -dpms #Disable DPMS and prevent screen from blanking\n #xset dpms force off #Turn off screen immediately\n #xset dpms force standby #Standby screen\n #xset dpms force suspend #Suspend screen\nfi\n\n# numlockx &\n# pulseaudio -k\n# pulseaudio &\n\nsxhkd &\nexec bspwm\n\n# exec xmonad\n\n#vim:ft=sh' >~/.xinitrc
fi
if [[ $WMs = "xmonad" ]]; then
echo -e '#!/bin/bash\n\nuserresources=$HOME/.Xresources\nsysresources=/etc/X11/xinit/.Xresources\n\n# merge in defaults\n\nif [ -f $sysresources ]; then\n xrdb -merge $sysresources\nfi\n\nif [ -f "$userresources" ]; then\n xrdb -merge "$userresources"\nfi\n\n[ -f ~/.Xdefaults ] && xrdb -merge ~/.Xdefaults\n\nxsetroot -cursor_name left_ptr &\n\n# feh --bg-tile ~/Imagens/wallpaperz.png\n$HOME/.fehbg\n# $HOME/trigger_custom_refresh.sh &\n# wal -R\n\n# export MPD_HOST=$HOME/.config/mpd/socket\n# mpd --kill; mpd &\nunclutter --timeout 7 &\n\n# Set up an icon tray\n# trayer --edge top --align right --SetDockType true --SetPartialStrut true \ \n# --expand true --width 10 --transparent true --tint 0x5f5f5f --height 18 &\n\nif [ "$(command -v xset)" >/dev/null 2>&1 ];\nthen\n #xset s off #Disable screen saver blanking\n #xset s 3600 3600 #Change blank time to 1 hour\n #xset -dpms #Turn off DPMS\n xset s off -dpms #Disable DPMS and prevent screen from blanking\n #xset dpms force off #Turn off screen immediately\n #xset dpms force standby #Standby screen\n #xset dpms force suspend #Suspend screen\nfi\n\n# numlockx &\n# pulseaudio -k\n# pulseaudio &\n\n# sxhkd &\n# exec bspwm\n\nexec xmonad\n\n#vim:ft=sh' >~/.xinitrc
fi
} ### windowManger
gerenciardorAUR() {
sleep 0.2
cat <<GERENCIADORAUR
██████ ██ ██ ██████
░░░░░░██ ░██ ░██░░██░░█
███████ ░██ ░██ ░██ ░
██░░░░██ ░██ ░██ ░██
░░████████░░██████░███
░░░░░░░░ ░░░░░░ ░░░
GERENCIADORAUR
echo ""
read -rep "$(echo -e $CAC) - Qual é o ajudante AUR de sua escolha? Precisamos de um ajudante AUR é essencial!!! $(echo -e $LETRA)P$(echo -e $RESETLETRA)ARU ou $(echo -e $LETRA)Y$(echo -e $RESETLETRA)AY - (p,y) ... " NUM
case $NUM in
p | P)
HELPER="paru"
;;
y | Y)
HELPER="yay"
;;
*)
HELPER="yay"
;;
esac
if [[ -e "/sbin/$HELPER" ]]; then
echo -e "$COK - AJUDANTE AUR JÁ ESTA INSTALADO."
elif [[ -d ~/.srcs/$HELPER ]]; then
echo -e "$CNT - VOU INSTALAR O $HELPER AGORA PARA VOCÊ ANTES DE CONTINUAR."
(cd ~/.srcs/$HELPER/ && makepkg -si)
echo -e "$COK - $HELPER INSTALADO."
else
echo -e "$CNT - VOU INSTALAR O $HELPER AGORA PARA VOCÊ ANTES DE CONTINUAR."
git clone https://aur.archlinux.org/$HELPER.git ~/.srcs/$HELPER
(cd ~/.srcs/$HELPER/ && makepkg -si)
echo -e "$COK - $HELPER INSTALADO."
fi
if [[ $HELPER = "paru" ]]; then
sudo sed -i 's/#BottomUp/BottomUp/g' /etc/paru.conf
echo -e "$COK - $HELPER CONFIGURADO."
fi
echo -en "$ESPEPACMAN - $HELPER."
install_software "alacritty exa mpv python-pynvim yt-dlp ntfs-3g xf86-input-evdev xf86-input-libinput zathura-pdf-poppler adwaita-icon-theme xcursor-vanilla-dmz-aa cmake xdg-user-dirs ffmpeg polkit gammastep man-pages man-db less" &>>$INSTLOG & show_progress $!
# redshift \
# nodejs \
# herbe-git \
# python-pip \
# bpytop \
# curl \
# the_silver_searcher \
# PACOTE NÃO EXISTE MAIS
# if [[ ! -f /bin/picom ]]; then
# echo -en "$ESPEPACMAN - INSTALAÇAO DO PICOM."
# install_software "picom-jonaburg-git" &>> $INSTLOG & show_progress $!
# fi
# if [[ $WM_WAYLAND = "hyprland" ]]; then
# install_software "wl-clipboard waybar" &>> $INSTLOG & show_progress $!
# else
# echo ""
# fi
}
notebook_ger() {
sleep 0.2
cat <<LAPTOP
██ ██ ██
░██ ░██ ░██
███████ ██████ ██████ █████ ░██ ██████ ██████ ░██ ██
░░██░░░██ ██░░░░██░░░██░ ██░░░██░██████ ██░░░░██ ██░░░░██░██ ██
░██ ░██░██ ░██ ░██ ░███████░██░░░██░██ ░██░██ ░██░████
░██ ░██░██ ░██ ░██ ░██░░░░ ░██ ░██░██ ░██░██ ░██░██░██
███ ░██░░██████ ░░██ ░░██████░██████ ░░██████ ░░██████ ░██░░██
░░░ ░░ ░░░░░░ ░░ ░░░░░░ ░░░░░ ░░░░░░ ░░░░░░ ░░ ░░
LAPTOP
echo ""
read -rep "$(echo -e $CAC) - Este computador é um notebook? - (s,n) ... " NOTEBOOK
case $NOTEBOOK in
s | S)
echo -en "$ESPEPACMAN"
install_software "acpi acpid xf86-input-synaptics" &>>$INSTLOG & show_progress $!
echo -en "$CONFIGANDO"
sudo systemctl enable acpid.service &>>$INSTLOG & show_progress $!
sudo cp ./xorg_conf/70-synaptics.conf /usr/share/X11/xorg.conf.d/
if [[ $WMb = "polybar" ]]; then
sed -i 's/FILE-6/#FILE-6/' $HOME/.config/bspwm/bspwmrc
sed -i 's/ws-icon-5 \= FILE-6\;0110-6/\;ws-icon-5 \= FILE-6\;0110-6/' $HOME/.config/polybar/{config.ini,center.config.ini}
sed -i 's/ws-icon-6 \= EDIT-7\;0111-7/\;ws-icon-6 \= EDIT-7\;0111-7/' $HOME/.config/polybar/{config.ini,center.config.ini}
sed -i 's/ws-icon-7 \= GAME-8\;1000-8/\;ws-icon-7 \= GAME-8\;1000-8/' $HOME/.config/polybar/{config.ini,center.config.ini}
sed -i 's/ws-icon-8 \= MAIL-9\;1001-9/\;ws-icon-8 \= MAIL-9\;1001-9/' $HOME/.config/polybar/{config.ini,center.config.ini}
sed -i 's/ws-icon-9 \= MPD-10\;0000-0/\;ws-icon-9 \= MPD-10\;0000-0/' $HOME/.config/polybar/{config.ini,center.config.ini}
else
echo -e "$COK - CONFIGURACAO DO POLYBAR PARA NOTEBOOK."
fi
echo -e "$COK - CONFIGURACAO PAR NOTEBOOK."
;;
n | N)
echo -e "$CNT - ESTE É UM DESKTOP."
;;
esac
}
lancadorProgramas() {
sleep 0.2
cat <<DMENUDESENHO
██ ████
░██ █░░░ █
░██ ██████████ █████ ███████ ██ ██░ ░█
██████░░██░░██░░██ ██░░░██░░██░░░██░██ ░██ ███
██░░░██ ░██ ░██ ░██░███████ ░██ ░██░██ ░██ █░░
░██ ░██ ░██ ░██ ░██░██░░░░ ░██ ░██░██ ░██ █
░░██████ ███ ░██ ░██░░██████ ███ ░██░░██████░██████
░░░░░░ ░░░ ░░ ░░ ░░░░░░ ░░░ ░░ ░░░░░░ ░░░░░░
DMENUDESENHO
mkdir -p ~/.config/
if [[ $WM_WAYLAND = "hyprland" ]]; then
echo -e "$CAT - WAYLAND DETECTADO DMENU2 NAO SERA INSTALADO."
else
if [[ -d ~/.srcs ]]; then
echo -e "$COK - PASTA SRCS."
else
mkdir -p ~/.srcs
echo -e "$COK - PASTA SRCS."
fi
if [[ -e "/usr/local/bin/dmenu_run" ]]; then
echo -e "$COK - DMENU2 JÁ ESTAVA INSTALADO."
elif [ -d ~/.srcs/dmenu2 ]; then
echo -e "$COK - PASTA DMENU2 EXITE."
(tar zxf ~/.srcs/dmenu2/dmenu2-0.2.1.tar.gz -C ~/.srcs/dmenu2 && cd ~/.srcs/dmenu2/dmenu2-0.2.1/ && sudo make clean install)
echo -e "$COK - DMENU2 INSTALADO."
else
mkdir -p ~/.srcs
echo ""
read -rep "$(echo -e $CAC) - Voce quer instalar o dmenu2? - (s,n) ... " DM2
case $DM2 in
s | S)
if [[ -d ~/.srcs/dmenu2-1 ]]; then
echo -e "$CNT - DETECTADO PASTA PARA COMPILAR DMENU2, INSTALANDO..."
(tar zxf ~/.srcs/dmenu2-1/dmenu2-0.2.1.tar.gz -C ~/.srcs/dmenu2-1/ && cd ~/.srcs/dmenu2-1/dmenu2-0.2.1/ && sudo make clean install)
echo -e "$COK - DMENU2 INSTALADO."
else
echo -e "$CNT - CLONANDO DMENU2..."
git -C ~/.srcs clone https://github.com/quebravel/dmenu2-1.git
echo -e "$CNT INSTALANDO DMENU2..."
(tar zxf ~/.srcs/dmenu2-1/dmenu2-0.2.1.tar.gz -C ~/.srcs/dmenu2-1/ && cd ~/.srcs/dmenu2-1/dmenu2-0.2.1/ && sudo make clean install)
echo -e "$COK - DMENU2 INSTALADO."
fi
echo -e "$COK - DMENU2 INSTALADO."
;;
n | N)
if ! (cd ~/.srcs/dmenu2-1/dmenu2-0.2.1 && sudo make uninstall && sudo make clean) &>>/dev/null; then
echo -e "$CNT - DMENU2 NAO SERÁ INSTALADO."
fi
;;
*) lancadorProgramas ;;
esac
fi
fi
}
arquivosdeConfiguracao() {
sleep 0.2
if [[ ! -d ~/.config/picom ]]; then
mkdir --parents ~/.config/picom/
cp --force ./.config/picom/* ~/.config/picom/
else
rm --recursive --force ~/.config/picom/
mkdir --parents ~/.config/picom/
cp --force ./.config/picom/* ~/.config/picom/
fi
if [[ ! -d ~/.config/alacritty ]]; then
mkdir -p ~/.config/alacritty/
cp --recursive --force ./.config/alacritty ~/.config/
git clone https://github.com/alacritty/alacritty-theme ~/.config/alacritty/themes
else
rm --recursive --force ~/.config/alacritty/
cp --recursive --force ./.config/alacritty ~/.config/
git clone https://github.com/alacritty/alacritty-theme ~/.config/alacritty/themes
fi
# if [ -d ~/wallpapers ]; then
# echo "Adicionando wallpaper para ~/wallpapers..."
# cp ./wallpapers/* ~/wallpapers/;
# else
# echo "Installing wallpaper..."
# mkdir ~/wallpapers && cp -r ./wallpapers/* ~/wallpapers/;
# fi
if [[ ! -d ~/.config/mpv ]]; then
mkdir --parents ~/.config/mpv
cp ./.config/mpv/* ~/.config/mpv/
else
rm --recursive --force ~/.config/mpv/*
cp --recursive --force ./.config/mpv/* ~/.config/mpv/
fi
if [[ ! -d ~/.config/zathura ]]; then
mkdir --parents ~/.config/zathura/
cp ./.config/zathura/zathurarc ~/.config/zathura/
else
rm --force ~/.config/zathura/zathurarc
cp ./.config/zathura/zathurarc ~/.config/zathura/
fi
if [[ ! -d ~/.config/sxiv ]]; then
mkdir --parents ~/.config/sxiv/
cp --recursive --force ./.config/sxiv/* ~/.config/sxiv/
else
rm --recursive --force ~/.config/sxiv/
cp --recursive --force ./.config/sxiv/* ~/.config/
fi
# if [ ! -d ~/.config/redshift ]; then
# mkdir --parents ~/.config/redshift/;
# cp --recursive --force ./.config/redshift/* ~/.config/redshift/;
# else
# rm --recursive --force ~/.config/redshift/;
# cp --recursive --force ./.config/redshift/ ~/.config/;
# fi
if [[ ! -d ~/.config/gammastep ]]; then
mkdir --parents ~/.config/gammastep/
cp --recursive --force ./.config/gammastep/* ~/.config/gammastep/
else
rm --recursive --force ~/.config/gammastep/
cp --recursive --force ./.config/gammastep/ ~/.config/
fi
if [[ ! -d ~/.config/git ]]; then
mkdir --parents ~/.config/git/
cp ./.config/git/config ~/.config/git/
else
rm --recursive --force ~/.config/git/
cp --recursive --force ./.config/git/ ~/.config/
fi
echo -e "$COK - CONFIGURAÇOES DIVERSAS."
} ### arquivosdeConfiguracao
lyConfig() {
sleep 0.2
cat <<LOGINLY
░██ ██ ██
░██ ░░██ ██
░██ ░░███
░██ ░██
░██ ██
░███ ██
░░░ ░░
LOGINLY
echo ""
read -rep "$(echo -e $CAC) - Deseja instalar um Display Manager $(echo -e $LETRA)T$(echo -e $RESETLETRA)BSM ou $(echo -e $LETRA)L$(echo -e $RESETLETRA)Y? - (t,l,n) ... " DMGR
case "$DMGR" in
t | T)
echo -en "$ESPEPACMAN - INSTALAÇAO DO TBSM."
install_software "tbsm" &>>$INSTLOG & show_progress $!
echo "[[ $XDG_VTNR -le 2 ]] && tbsm" >~/.zlogin
cp -r ./.config/tbsm/ ~/.config/
echo -e "$COK - TBSM INSTALADO."
;;
l | L)
echo -en "$ESPEPACMAN - INSTALAÇAO DO LY."
install_software "ly-git cmatrix" &>>$INSTLOG & show_progress $!
# cominho do arquivo de configuração
arquivo="/etc/ly/config.ini"
if [[ -f $arquivo ]]; then
# abilitando opções
sudo sed -i 's/#animate = false/animate = true/g' $arquivo
sudo sed -i 's/#animation = 0/animation = 1/g' $arquivo
sudo sed -i 's/#xinitrc \= \~\/.xinitrc/xinitrc \= \~\/.xinitrc/g' $arquivo
# transformando arquivo xinitrc em executavel bash
sudo systemctl enable ly.service
sleep 0.2
echo -e "$COK - LY INSTALADO."
else
echo -e "$CER - NÃO EXISTE O ARQUIVO DE CONFIGURACAO."
fi
;;
n | N)
echo -e "$CNT - NAO TERÁ DISPLAY MANAGER."
;;
*)
lyConfig
;;
esac
if [[ -f ~/.xinitrc ]]; then
chmod +x ~/.xinitrc
fi
} ### ly_config
# parte 2
playermusica() {
sleep 0.2
cat <<PLAYMSC
██████ ██████ ██████
███████ █████ ██████████ ░██░░░██ █████ ░██░░░██░██░░░██
░░██░░░██ ██░░░██░░██░░██░░██░██ ░██ ██░░░██░██ ░██░██ ░██
░██ ░██░██ ░░ ░██ ░██ ░██░██████ ░██ ░░ ░██████ ░██████
░██ ░██░██ ██ ░██ ░██ ░██░██░░░ ░██ ██░██░░░ ░██░░░
███ ░██░░█████ ███ ░██ ░██░██ ░░█████ ░██ ░██
░░░ ░░ ░░░░░ ░░░ ░░ ░░ ░░ ░░░░░ ░░ ░░
PLAYMSC
echo ""
read -rep "$(echo -e $CAC) - Quer instalar o player de música? - (s,n) ... " PLMC
case "$PLMC" in
s | S)
echo -en "$ESPEPACMAN"
install_software "ncmpcpp mpd mpc" &>>$INSTLOG & show_progress $!
# sudo systemctl --user enable --now mpd.service &>>$INSTLOG
if [ ! -d ~/Músicas ]; then
mkdir -p ~/Músicas
fi
sudo rm -f /etc/mpd.conf
mkdir -p ~/.config/mpd
cp /usr/share/doc/mpd/mpdconf.example ~/.config/mpd/mpd.conf
#exit 1
#music_directory "~/music"
sed -i '0,/#music_directory/s//music_directory/' ~/.config/mpd/mpd.conf
sed -i 's/~\/music/~\/Music/g' ~/.config/mpd/mpd.conf
#playlist_directory "~/.mpd/playlists"
sed -i 's/#playlist_directory/playlist_directory/g' ~/.config/mpd/mpd.conf
sed -i 's/~\/.mpd\/playlists/~\/.config\/mpd\/playlists/g' ~/.config/mpd/mpd.conf
#db_file "~/.mpd/database"
sed -i 's/#db_file/db_file/g' ~/.config/mpd/mpd.conf
sed -i 's/~\/.mpd\/database/~\/.config\/mpd\/database/g' ~/.config/mpd/mpd.conf
#log_file "~/.mpd/log"
sed -i 's/#log_file/log_file/g' ~/.config/mpd/mpd.conf
sed -i 's/~\/.mpd\/log/~\/.config\/mpd\/log/g' ~/.config/mpd/mpd.conf
#pid_file "~/.mpd/pid"
sed -i 's/#pid_file/pid_file/g' ~/.config/mpd/mpd.conf
sed -i 's/~\/.mpd\/pid/~\/.config\/mpd\/pid/g' ~/.config/mpd/mpd.conf
#state_file "~/.mpd/state"
sed -i 's/#state_file/state_file/g' ~/.config/mpd/mpd.conf
sed -i 's/~\/.mpd\/state/~\/.config\/mpd\/state/g' ~/.config/mpd/mpd.conf
#sticker_file "~/.mpd/sticker.sql"
sed -i 's/#sticker_file/sticker_file/g' ~/.config/mpd/mpd.conf
sed -i 's/~\/.mpd\/sticker/~\/.config\/mpd\/sticker/g' ~/.config/mpd/mpd.conf
#bind_to_address "any"
sed -i 's/#bind_to_address/bind_to_address/g' ~/.config/mpd/mpd.conf
sed -i 's/"any"/"127.0.0.1"/g' ~/.config/mpd/mpd.conf
#port "6600"
sed -i 's/#port/port/g' ~/.config/mpd/mpd.conf
#auto_update "yes"
sed -i 's/#auto_update/auto_update/g' ~/.config/mpd/mpd.conf
#follow_inside_symlinks "yes"
sed -i 's/#follow_inside_symlinks/follow_inside_symlinks/g' ~/.config/mpd/mpd.conf
# socket
sed -i 's/~\/.mpd\/socket/~\/.config\/mpd\/socket/g' ~/.config/mpd/mpd.conf
#filesystem_charset "UTF-8"
sed -i 's/#filesystem_charset/filesystem_charset/g' ~/.config/mpd/mpd.conf
echo 'audio_output {
type "pulse"
name "pulseaudio"
}
audio_output {
type "fifo"
name "Visualizer"
path "/tmp/mpd.fifo"
format "44100:16:2"
}' >> ~/.config/mpd/mpd.conf
mkdir -p ~/.config/mpd/playlists
systemctl --user enable --now mpd.service
##############################################################################
# more info @ https://wiki.archlinux.org/index.php/ncmpcpp
sudo pacman -S ncmpcpp --noconfirm --needed
mkdir -p ~/.config/ncmpcpp
cp /usr/share/doc/ncmpcpp/config ~/.config/ncmpcpp/config
#exit 1
#ncmpcpp_directory = ~/.config/ncmpcpp
sed -i 's/#ncmpcpp_directory/ncmpcpp_directory/g' ~/.config/ncmpcpp/config
#lyrics_directory = ~/.lyrics
sed -i 's/#lyrics_directory/lyrics_directory/g' ~/.config/ncmpcpp/config
#mpd_host = "localhost"
sed -i 's/#mpd_host/mpd_host/g' ~/.config/ncmpcpp/config
#mpd_port = "6600"
sed -i 's/#mpd_port/mpd_port/g' ~/.config/ncmpcpp/config
#mpd_connection_timeout = 5
sed -i 's/#mpd_connection_timeout/mpd_connection_timeout/g' ~/.config/ncmpcpp/config
#mpd_music_dir = ~/music
sed -i 's/#mpd_music_dir = ~\/music/mpd_music_dir = ~\/Music/g' ~/.config/ncmpcpp/config
#mpd_crossfade_time = 5
sed -i 's/#mpd_crossfade_time/mpd_crossfade_time/g' ~/.config/ncmpcpp/config
cp /usr/share/doc/ncmpcpp/bindings ~/.config/ncmpcpp/bindings
echo -en "$CONFIGANDO"
#sudo systemctl enable mpd #&>>$INSTLOG & show_progress $!
#echo -en "$CONFIGANDO"
#sudo systemctl start mpd #&>> $INSTLOG & show_progress $!
# touch ~/.config/mpd/socket
# if [[ -f ~/.xinitrc ]]; then
# sed -i 's/\# export MPD_HOST\=\$HOME\/.config\/mpd\/socket/export MPD_HOST\=\$HOME\/.config\/mpd\/socket/g' $HOME/.xinitrc
# sed -i 's/# mpd --kill; mpd \&/mpd --kill; mpd \&/g' $HOME/.xinitrc
# elif [[ -f ~/.config/hypr/hyprland.conf ]]; then
# sed -i '/exec-once = mpd --kill/s/^# //' $HOME/.config/hypr/hyprland.conf
# sed -i '/exec-once = export MPD_HOST/s/^# //' $HOME/.config/hypr/hyprland.conf
# else
# echo "erro - nao foi encontrado o hyprland e xinitrc." &>> $INSTLOG
# fi
# export MPD_HOST=$HOME/.config/mpd/socket
sudo rm -f /etc/mpd.conf
echo -e "$COK - MPD MPC NCMPCPP."
echo -e "$CAT - REINICIE O SYSTEMA PARA DAR INICIO AO MPD."
;;
n | N)
echo -e "$CNT - NCMPCPP NAO SERÁ INSTALADO."
;;
*)
playermusica
;;
esac
}
rangerfm() {
sleep 0.2
cat <<RANGER-DESENHO
█████
██████ ██████ ███████ ██░░░██ █████ ██████
░░██░░█ ░░░░░░██ ░░██░░░██░██ ░██ ██░░░██░░██░░█
░██ ░ ███████ ░██ ░██░░██████░███████ ░██ ░
░██ ██░░░░██ ░██ ░██ ░░░░░██░██░░░░ ░██
░███ ░░████████ ███ ░██ █████ ░░██████░███
░░░ ░░░░░░░░ ░░░ ░░ ░░░░░ ░░░░░░ ░░░
RANGER-DESENHO
echo ""
read -rep "$(echo -e $CAC) - Quer uma gerenciador de arquivos para terminal? - (s,n) ... " RAG
case "$RAG" in
s | S)
FILEMANAGER='RANGER'
;;
n | N)
echo -e "$CNT - RANGER NAO SERÁ INSTALADO."
;;
*)
rangerfm
;;
esac
if [[ $FILEMANAGER = RANGER ]]; then
echo -en "$ESPEPACMAN"
install_software "ranger ueberzugpp ffmpegthumbnailer" &>>$INSTLOG & show_progress $!
if [ ! -d ~/.config/ranger/ ]; then
mkdir --parents ~/.config/ranger/
fi
if [ -f ~/.config/ranger/rc.conf ]; then
echo -e "$COK - ARQUIVO RC.CONF."
else
echo -en "$CONFIGANDO - RC."
ranger --copy-config=rc &>>$INSTLOG & show_progress $!
sleep 0.2
sed -i 's/set preview_images false/set preview_images true/g' $HOME/.config/ranger/rc.conf
sleep 0.2
sed -i 's/set draw_borders none/set draw_borders both/g' $HOME/.config/ranger/rc.conf
sleep 0.2
sed -i 's/set preview_images_method w3m/set preview_images_method ueberzug/g' $HOME/.config/ranger/rc.conf
sleep 0.2
sed -i 's/#set preview_script ~\/.config\/ranger\/scope.sh/set preview_script ~\/.config\/ranger\/scope.sh/g' $HOME/.config/ranger/rc.conf
# sed -i 's/set sort natural/set sort ctime/g' ~/.config/ranger/rc.conf
fi
if [ -f ~/.config/ranger/scope.sh ]; then
echo -e "$COK - ARQUIVO SCOPE.SH."
else
echo -en "$CONFIGANDO - SCOPE."
ranger --copy-config=scope &>>$INSTLOG & show_progress $!
sleep 0.2
sed -i '113,116s/#//' $HOME/.config/ranger/scope.sh
sleep 0.2
sed -i '157,160s/#//' $HOME/.config/ranger/scope.sh
fi
if [ -f ~/.config/ranger/rifle.conf ]; then
echo -e "$COK - ARQUIVO RIFLE.CONF."
else
echo -en "$CONFIGANDO - RIFLE."
ranger --copy-config=rifle &>>$INSTLOG & show_progress $!
sed -i 's/mime ^audio|ogg$, terminal, has mplayer = mplayer -- "$@"/mime ^audio|ogg$, terminal, has moc = ncmpcpp -- "$@"/g' $HOME/.config/ranger/rifle.conf
sleep 0.2
sed -i '/label wallpaper, number 15, mime ^image, has feh, X = wal -i "$1"/d' $HOME/.config/ranger/rifle.conf
sleep 0.2
sed -i 's/label wallpaper, number 14, mime ^image, has feh, X = feh --bg-fill "$1"/label wallpaper, number 14, mime ^image, has feh, X = feh --bg-fill "$1"\nlabel wallpaper, number 15, mime ^image, has feh, X = wal -i "$1"/g' $HOME/.config/ranger/rifle.conf
fi
# ranger --version
ranger_versao=$(ranger --version | grep ranger | cut -d: -f2 | sed s/^" "//g | tr a-z A-Z)
echo -e "$COK - $ranger_versao INSTALADO."
fi
}
audio_config() {
sleep 0.2
cat <<AUDIOCONF
██ ██
░██░░
██████ ██ ██ ░██ ██ ██████
░░░░░░██ ░██ ░██ ██████░██ ██░░░░██
███████ ░██ ░██ ██░░░██░██░██ ░██
██░░░░██ ░██ ░██░██ ░██░██░██ ░██
░░████████░░██████░░██████░██░░██████
░░░░░░░░ ░░░░░░ ░░░░░░ ░░ ░░░░░░
AUDIOCONF
echo ""
read -rep "$(echo -e $CAC) - Qual controlador de audio? PIPE$(echo -e $LETRA)W$(echo -e $RESETLETRA)IRE ou $(echo -e $LETRA)P$(echo -e $RESETLETRA)ULSEAUDIO - (w,p) ... " AUD
case "$AUD" in
w | W)
AUDIOD='PIPEWIRE'
;;
p | P)
AUDIOD='PULSEAUDIO'
;;
*)
audio_config
;;
esac
if [ $AUDIOD = PIPEWIRE ]; then
echo -en "$ESPEPACMAN"
install_software "pipewire pipewire-alsa pipewire-audio pipewire-pulse wireplumber" &>>$INSTLOG & show_progress $!
# gst-plugin-pipewire
# helvum \
echo -e "$COK - $AUDIOD INSTALADO."
echo -e "$CAT - Use <wpctl status> para detectar en Sinks: o númeor ID da saída de áudío\nexemplo:\nwpctl status\nSinks:\n33. Áudio interno Estéreo analógico [vol: 1.20]\n53. Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] Digital Stereo (HDMI 6)\nwpctl set-default 53" >>notas.txt
elif [ $AUDIOD = PULSEAUDIO ]; then
echo -en "$ESPEPACMAN"
install_software "alsa-utils pulseaudio" &>>$INSTLOG & show_progress $!
# gst-plugins-{base,good,bad,ugly} \
# gst-libav
echo -e "$COK - $AUDIOD INSTALADO."
fi
}
zshinstall() {
sleep 0.2
echo -en "$ESPEPACMAN - INSTALAÇAO DO ZSH."
install_software "zsh zsh-completions" &>>$INSTLOG & show_progress $!
echo -e "$COK - ZSH INSTALADO."
}
fontes_doSistema() {
sleep 0.2
# wqy-microhei (koreano), cjk (japones)