-
Notifications
You must be signed in to change notification settings - Fork 50
/
t-remix.sh
842 lines (769 loc) · 18.1 KB
/
t-remix.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
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
#!/data/data/com.termux/files/usr/bin/bash
######################################
# PROJECT: T-Remix #
# Author: Ashish #
# email: ashishsingh103020@gmailcom #
######################################
# Installing the following packages to install T-Remix
echo
echo -e "\e[32m[*]\e[34m Installing T-Remix \e[m "
echo
# storage permission
termux-setup-storage
echo
# Updating the packages
apt-get update -y
# Upgrading the packages
apt-get upgrade -y
# Installing python if not installed ;if install null
apt-get install python -y
# packing up figlet
apt-get install figlet -y
#Installing ruby
apt-get install ruby -y
# install gem ruby
gem install ruby
#parsing ruby ....
pip install lolcat
#install lolcat with gems
gem install lolcat
#Install toilet
apt-get install toilet -y
# now installing ncurses-utils
pkg install ncurses-utils -y
# install cowsay in termux if not installed
apt-get install cowsay -y
#installing nano
apt-get install nano -yq --silent
# install mpv to play the hackers sound
apt-get install mpv -y
cd ${PREFIX}/share
git clone https://github.com/xero/figlet-fonts.git >> /dev/null 2>&1
# Moving figlet-fonts to figlet
mv figlet-fonts/* figlet && rm -rf figlet-fonts
cd $HOME
# T-Remix Banner
clear
echo
# hide cursor
tput civis
echo "
████████╗ ██████╗ ███████╗███╗ ███╗██╗██╗ ██╗
╚══██╔══╝ ██╔══██╗██╔════╝████╗ ████║██║╚██╗██╔╝
██║ █████╗██████╔╝█████╗ ██╔████╔██║██║ ╚███╔╝
██║ ╚════╝██╔══██╗██╔══╝ ██║╚██╔╝██║██║ ██╔██╗
██║ ██║ ██║███████╗██║ ╚═╝ ██║██║██╔╝╚██╗
╚═╝ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝╚═╝ ╚═╝ v 2.0" |lolcat
echo
echo " ☆:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::☆" |lolcat -t
echo " s c r i p t b y a s h i s h " |lolcat -t
echo " ☆:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::☆" |lolcat -t
sleep 3
echo
echo
echo "[*] Installing T-Remix " |lolcat
echo
sleep 4
echo "[*] Please Wait " |lolcat
echo
sleep 3
echo "[*] Checking the required packages " |lolcat
echo
sleep 2
echo "[*] Reading package list " |lolcat
echo
sleep 2
echo "[*] Done " |lolcat
echo
sleep 2
# cursor to normal
# change directory to etc
cd /data/data/com.termux/files/usr/etc
# remove old bash.bashrc
rm bash.bashrc
rm -rf motd
#Change dir to ~
cd $HOME
# Change dir to T-Remix
cd T-Remix
#copy new bash.bashrc to usr/etc
cp bash.bashrc /data/data/com.termux/files/usr/etc
#check old file exits or not if exits remove it and replace it
tfile="${PREFIX}/bin/uninstall-T-Remix"
if [ -f "$tfile" ]
then
rm ${PREFIX}/bin/uninstall-T-Remix
else
echo
fi
# copy uninstall T-Remix
chmod +x uninstall-T-Remix
cp uninstall-T-Remix ${PREFIX}/bin
#chanage dir to home
cd $HOME
#change directory to T-Remix
cd T-Remix
#from here copying the hacker.mp3 sound to the sdcard of the user
cp hacker.mp3 /sdcard
tput cnorm
#exec user.sh to validate user define variable
bash user.sh
clear
echo
echo
tput civis
echo -e "\033[1;34m[*]\e[33m Setting login information \e[m"
echo
sleep 3
echo -e "\033[1;34m[*]\e[33m Installing Login Packages \e[m "
echo
sleep 4
echo -e "\033[1;34m[*]\e[33m Reading packages \e[m "
echo
sleep 5
echo -e "\033[1;34m[*]\e[33m Securing termux-login \e[m "
echo
sleep 2
echo -e "\033[1;34m[*]\e[33m Please Wait \e[m "
echo
sleep 1
echo -e "\033[1;34m[*]\e[33m Done \e[m "
sleep 3
tput cnorm
# Login Banner
clear
echo
echo
tput civis
echo -e "\e[32m
██╗ █████╗ ██████╗ ██╗███╗ ██╗
██║ ██╔══██╗██╔════╝ ██║████╗ ██║
██║ ██║ ██║██║ ██╗ ██║██╔██╗██║
██║ ██║ ██║██║ ╚██╗██║██║╚████║
███████╗╚█████╔╝╚██████╔╝██║██║ ╚███║
╚══════╝ ╚════╝ ╚═════╝ ╚═╝╚═╝ ╚══╝ v 2.0 "
echo
echo " ☆:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::☆" |lolcat -t
echo " s c r i p t b y a s h i s h " |lolcat -t
echo " ☆:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::☆" |lolcat -t
sleep 4
tput cnorm
# SETTING UP A LOGIN INFORMATION FROM USER SIDE
bash login.sh
#spinner
bash ashi.sh
# user custom theme setup
# select the option to the setup the theme
# check if dir or files exist
#Dir=.termux
DIR="$HOME/.termux"
if [ -d "$DIR" ]
then
echo
else
mkdir $HOME/.termux
fi
#file1=termux.properties
FILE="$HOME/.termux/termux.properties"
if [ -f "$FILE" ]
then
echo
else
cd $HOME/.termux/
touch termux.properties
fi
#file2=colors.properties
FILES1="$HOME/.termux/colors.properties"
if [ -f "FILES1" ]
then
echo
else
cd $HOME/.termux/
touch colors.properties
fi
#file1=$PREFIX/bin/zsh
FILE2="$PREFIX/bin/zsh"
if [ -f "$FILE2" ]
then
rm -rf $PREFIX/bin/zsh
else
echo
fi
clear
cd $HOME
cd T-Remix
#start a loop for invalid option
#user define themes
#The top 14 best themes for termux
#start of while loop
#Themes Banner
#choose options
while :
do
echo
echo "===============================" |lolcat
echo " Various themes options" |lolcat
echo "===============================" |lolcat
echo
echo -e "\e[31m[\e[33m01\e[31m]\e[32m best of T-Remix \e[m "
echo -e "\e[31m[\e[33m02\e[31m]\e[32m black on white \e[m "
echo -e "\e[31m[\e[33m03\e[31m]\e[32m dark properties \e[m "
echo -e "\e[31m[\e[33m04\e[31m]\e[32m forest dark \e[m "
echo -e "\e[31m[\e[33m05\e[31m]\e[32m forest light \e[m "
echo -e "\e[31m[\e[33m06\e[31m]\e[32m green on black \e[m "
echo -e "\e[31m[\e[33m07\e[31m]\e[32m isotope dark \e[m "
echo -e "\e[31m[\e[33m08\e[31m]\e[32m isotope light \e[m "
echo -e "\e[31m[\e[33m09\e[31m]\e[32m neon properties \e[m "
echo -e "\e[31m[\e[33m10\e[31m]\e[32m night properties \e[m "
echo -e "\e[31m[\e[33m11\e[31m]\e[32m solarized dark \e[m "
echo -e "\e[31m[\e[33m12\e[31m]\e[32m solarized light \e[m "
echo -e "\e[31m[\e[33m13\e[31m]\e[32m white on black \e[m "
echo -e "\e[31m[\e[33m14\e[31m]\e[32m default \e[m "
echo
read -p $'\e[32m>> Select your theme:\e[m ' n
tput civis
if [ $n = 1 ] || [ $n = 01 ]
then
cd properties/T-Remix_colors
cat best-of-t-remix > $HOME/.termux/colors.properties
echo
echo -e "\e[33m>> Setting theme \e[m"
sleep 2
echo
echo -e "\e[33m>> Applying changes \e[m"
sleep 3
echo
echo -e "\e[33m>> Done \e[m"
echo
sleep 2
break
elif [ $n = 2 ] || [ $n = 02 ]
then
cd properties/T-Remix_colors
cat black-on-white > $HOME/.termux/colors.properties
echo
echo -e "\e[33m>> Setting theme \e[m"
sleep 2
echo
echo -e "\e[33m>> Applying changes \e[m"
sleep 3
echo
echo -e "\e[33m>> Done \e[m"
echo
sleep 2
break
elif [ $n = 3 ] || [ $n = 03 ]
then
cd properties/T-Remix_colors
cat dark-properties > $HOME/.termux/colors.properties
echo
echo -e "\e[33m>> Setting theme \e[m"
sleep 2
echo
echo -e "\e[33m>> Applying changes \e[m"
sleep 3
echo
echo -e "\e[33m>> Done \e[m"
sleep 2
echo
break
elif [ $n = 4 ] || [ $n = 04 ]
then
cd properties/T-Remix_colors
cat forest-dark > $HOME/.termux/colors.properties
echo
echo -e "\e[33m>> Setting theme \e[m"
sleep 2
echo
echo -e "\e[33m>> Applying changes \e[m"
sleep 3
echo
echo -e "\e[33m>> Done \e[m"
sleep 2
echo
break
elif [ $n = 5 ] || [ $n = 05 ]
then
cd properties/T-Remix_colors
cat forest-light > $HOME/.termux/colors.properties
echo
echo -e "\e[33m>> Setting theme \e[m"
sleep 2
echo
echo -e "\e[33m>> Applying changes \e[m"
sleep 3
echo
echo -e "\e[33m>> Done \e[m"
echo
sleep 2
break
elif [ $n = 6 ] || [ $n = 06 ]
then
cd properties/T-Remix_colors
cat green-on-black > $HOME/.termux/colors.properties
echo
echo -e "\e[33m>> Setting theme \e[m"
sleep 2
echo
echo -e "\e[33m>> Applying changes \e[m"
sleep 3
echo
echo -e "\e[33m>> Done \e[m"
echo
sleep 2
break
elif [ $n = 7 ] || [ $n = 07 ]
then
cd properties/T-Remix_colors
cat isotope-dark > $HOME/.termux/colors.properties
echo
echo -e "\e[33m>> Setting theme \e[m"
sleep 2
echo
echo -e "\e[33m>> Applying changes \e[m"
sleep 3
echo
echo -e "\e[33m>> Done \e[m"
echo
sleep 2
break
elif [ $n = 8 ] || [ $n = 08 ]
then
cd properties/T-Remix_colors
cat isotope-light > $HOME/.termux/colors.properties
echo
echo -e "\e[33m>> Setting theme \e[m"
sleep 2
echo
echo -e "\e[33m>> Applying changes \e[m"
sleep 3
echo
echo -e "\e[33m>> Done \e[m"
echo
sleep 2
break
elif [ $n = 9 ] || [ $n = 09 ]
then
cd properties/T-Remix_colors
cat neon-properties > $HOME/.termux/colors.properties
echo
echo -e "\e[33m>> Setting theme \e[m"
sleep 2
echo
echo -e "\e[33m>> Applying changes \e[m"
sleep 3
echo
echo -e "\e[33m>> Done \e[m"
echo
sleep 2
break
elif [ $n = 10 ]
then
cd properties/T-Remix_colors
cat night-properties > $HOME/.termux/colors.properties
echo
echo -e "\e[33m>> Setting theme \e[m"
sleep 2
echo
echo -e "\e[33m>> Applying changes \e[m"
sleep 3
echo
echo -e "\e[33m>> Done \e[m"
echo
sleep 2
break
elif [ $n = 11 ]
then
cd properties/T-Remix_colors
cat solarized-dark > $HOME/.termux/colors.properties
echo
echo -e "\e[33m>> Setting theme \e[m"
sleep 2
echo
echo -e "\e[33m>> Applying changes \e[m"
sleep 3
echo
echo -e "\e[33m>> Done \e[m"
echo
sleep 2
break
elif [ $n = 12 ]
then
cd properties/T-Remix_colors
cat solarized-light > $HOME/.termux/colors.properties
echo
echo -e "\e[33m>> Setting theme \e[m"
sleep 2
echo
echo -e "\e[33m>> Applying changes \e[m"
sleep 3
echo
echo -e "\e[33m>> Done \e[m"
echo
sleep 2
break
elif [ $n = 13 ]
then
cd properties/T-Remix_colors
cat white-on-black > $HOME/.termux/colors.properties
echo
echo -e "\e[33m>> Setting theme \e[m"
sleep 2
echo
echo -e "\e[33m>> Applying changes \e[m"
sleep 3
echo
echo -e "\e[33m>> Done \e[m"
echo
sleep 2
break
elif [ $n = 14 ]
then
echo
tmuxcolor="$HOME/.termux/colors.properties"
if [ -f "$tmuxcolor" ];
then
rm $HOME/.termux/colors.properties
else
echo
fi
echo
echo -e "\e[33m>> Setting theme \e[m"
sleep 2
echo
echo -e "\e[33m>> Applying theme as default \e[m"
sleep 3
echo
echo -e "\e[33m>> Done \e[m"
echo
sleep 2
break
else
echo -e "\e[33m[\e[31m!\e[33m]\e[31m Invalid option try again \e[m"
sleep 2
clear
fi
done
# T-Remix Cursor
# A user can set a cursor as demanded
# cursor()
clear
while :
do
echo
echo
echo "==========================" |lolcat
echo " Set T-Remix cursor" | lolcat -t
echo "==========================" |lolcat
echo
echo "1] Block >> ' ▌ ' " | lolcat -t
echo
echo "2] Underline >> ' _ ' " |lolcat -t
echo
echo "3] Bar >> ' | ' " | lolcat -t
echo
echo
read -p $'\e[32m[\e[31m*\e[32m]\e[96m Enter your choice : ' choice
echo
if [ $choice = 1 ]
then
echo ">> Setting cursor" |lolcat -t
sleep 2
echo
echo ">> Reloading settings" |lolcat -t
sleep 3
echo
echo ">> Done" |lolcat -t
sleep 2
echo "echo -e '\e[2 q' " >> ${PREFIX}/etc/bash.bashrc
break
elif [ $choice = 2 ]
then
echo ">> Setting cursor" |lolcat -t
sleep 2
echo
echo ">> Reloading settings" |lolcat -t
sleep 3
echo
echo ">> Done" |lolcat -t
sleep 2
echo "echo -e '\e[4 q' " >> ${PREFIX}/etc/bash.bashrc
break
elif [ $choice = 3 ]
then
echo ">> Setting cursor" |lolcat -t
sleep 2
echo
echo ">> Reloading settings" |lolcat -t
sleep 3
echo
echo ">> Done" |lolcat -t
sleep 2
echo "echo -e '\e[6 q' " >> ${PREFIX}/etc/bash.bashrc
break
else
echo
echo -e "\e[33m[\e[31m!\e[33m]\e[31m Invalid option try again \e[m"
sleep 3
clear
fi
done
tput cnorm
# save a session shortcut
# dir checker
if [ -f ~/.termux/termux.properties ]
then
echo
else
touch ~/.termux/termux.properties
fi
# shortut
clear
echo
echo
echo -e "\e[36m================================\e[m"
echo -e "\e[32m NOTE \e[m"
echo -e "\e[36m================================\e[m"
echo
echo -e "\e[34m[\e[31m*\e[34m] \e[32mT-Remix has created a session shortcut\e[m"
echo
echo -e "\e[36m[\e[32m*\e[36m]\e[32m New session shortcut ---> CTRL + n \e[m"
echo
echo -e "\e[36m[\e[32m*\e[36m]\e[32m Next session shortcut ---> CTRL + l \e[m"
echo
echo -e "\e[36m[\e[32m*\e[36m]\e[32m Previous session shortcut ---> CTRL + p \e[m"
echo
echo -en "\e[36m[\e[32m*\e[36m]\e[93m Do you wish to make shortcut changes (y/n)? \e[m "
read answer
echo
if [ "$answer" != "${answer#[Yy]}" ]
then
echo "shortcut.create-session = ctrl + n
shortcut.next-session = ctrl + l
shortcut.previous-session = ctrl + p" >> ~/.termux/termux.properties
echo
sleep 1
echo
echo ">> Shortcut has been applied successfully" |lolcat -t
sleep 5
else
echo
echo ">> Shortcut not applied !! " |lolcat -t
sleep 2
fi
# USER DEFINE FONTS
# select option
# take action if dir !
cd $HOME
cd T-Remix/properties/T-Remix_fonts/
if [ -f ~/.termux/font.ttf ]
then
echo
else
touch ~/.termux/font.ttf
fi
clear
# start a while loop
while :
do
clear
echo
echo
echo "============================" |lolcat -t
echo " select your Font " |lolcat -t
echo "============================" |lolcat -t
echo
echo -e "\e[31m[\e[32m01\e[31m]\e[32m Best of T-Remix "
echo -e "\e[31m[\e[32m02\e[31m]\e[32m Anonymous "
echo -e "\e[31m[\e[32m03\e[31m]\e[32m Robot "
echo -e "\e[31m[\e[32m04\e[31m]\e[32m DejaVu "
echo -e "\e[31m[\e[32m05\e[31m]\e[32m Fantasque "
echo -e "\e[31m[\e[32m06\e[31m]\e[32m FiraCode "
echo -e "\e[31m[\e[32m07\e[31m]\e[32m Ubuntu "
echo -e "\e[31m[\e[32m08\e[31m]\e[32m Monofur "
echo -e "\e[31m[\e[32m09\e[31m]\e[32m Courier-Prime "
echo -e "\e[31m[\e[32m10\e[31m]\e[32m Cursive"
echo
read -p $'\e[31m[\e[32m~\e[31m]\e[96m Select your font : \e[m' font
echo
tput civis
if [ $font = 1 ] || [ $font = 01 ]
then
cat "OpenDyslexic.ttf" > ~/.termux/font.ttf
echo "-->> changing termux font" |lolcat -t
sleep 2
echo
echo "-->> Reloading settings" |lolcat -t
sleep 3
echo
echo "-->> Done" |lolcat -t
sleep 2
break
elif [ $font = 2 ] || [ $font = 02 ]
then
cat "Anonymous-Pro.ttf" > ~/.termux/font.ttf
echo "-->> changing termux font" |lolcat -t
sleep 2
echo
echo "-->> Reloading settings" |lolcat -t
sleep 3
echo
echo "-->> Done" |lolcat -t
sleep 2
break
elif [ $font = 3 ] || [ $font = 03 ]
then
cat "Roboto.ttf" > ~/.termux/font.ttf
echo "-->> changing termux font" |lolcat -t
sleep 2
echo
echo "-->> Reloading settings" |lolcat -t
sleep 3
echo
echo "-->> Done" |lolcat -t
sleep 2
break
elif [ $font = 4 ] || [ $font = 04 ]
then
cat "DejaVu.ttf" > ~/.termux/font.ttf
echo "-->> changing termux font" |lolcat -t
sleep 2
echo
echo "-->> Reloading settings" |lolcat -t
sleep 3
echo
echo "-->> Done" |lolcat -t
sleep 2
break
elif [ $font = 5 ] || [ $font = 05 ]
then
cat "Fantasque.ttf" > ~/.termux/font.ttf
echo "-->> changing termux font" |lolcat -t
sleep 2
echo
echo "-->> Reloading settings" |lolcat -t
sleep 3
echo
echo "-->> Done" |lolcat -t
sleep 2
break
elif [ $font = 6 ] || [ $font = 06 ]
then
cat "FiraCode.ttf" > ~/.termux/font.ttf
echo "-->> changing termux font" |lolcat -t
sleep 2
echo
echo "-->> Reloading settings" |lolcat -t
sleep 3
echo
echo "-->> Done" |lolcat -t
sleep 2
break
elif [ $font = 7 ] || [ $font = 07 ]
then
cat "Ubuntu.ttf" > ~/.termux/font.ttf
echo "-->> changing termux font" |lolcat -t
sleep 2
echo
echo "-->> Reloading settings" |lolcat -t
sleep 3
echo
echo "-->> Done" |lolcat -t
sleep 2
break
elif [ $font = 8 ] || [ $font = 08 ]
then
cat "Monofur.ttf" > ~/.termux/font.ttf
echo "-->> changing termux font" |lolcat -t
sleep 2
echo
echo "-->> Reloading settings" |lolcat -t
sleep 3
echo
echo "-->> Done" |lolcat -t
sleep 2
break
elif [ $font = 9 ] || [ $font = 09 ]
then
cat "Courier-Prime.ttf" > ~/.termux/font.ttf
echo "-->> changing termux font" |lolcat -t
sleep 2
echo
echo "-->> Reloading settings" |lolcat -t
sleep 3
echo
echo "-->> Done" |lolcat -t
sleep 2
break
elif [ $font = 10 ]
then
cat "cursive.ttf" > ~/.termux/font.ttf
echo "-->> changing termux font" |lolcat -t
sleep 2
echo
echo "-->> Reloading settings" |lolcat -t
sleep 3
echo
echo "-->> Done" |lolcat -t
sleep 2
break
else
echo
echo "\e[32m[\e[31m!\e[32m]\e[31m Invalid option Try again :\e[m"
sleep 3
fi
done
tput cnorm
# Like Subscribe BhavikTutorials
clear
tput clear
tput cup 3 30
echo -e "\e[44m Like \e[41m Subscribe \e[m"
tput cup 6 30
echo -e "\x1b[42m BHAVIK TUTORIALS \x1b[m"
tput cup 9 0
echo -en "\e[93m what is your name : \e[m"
read answer
tput cup 12 22
echo -e "\e[104m hello! Open a New session!! $answer! \e[m"
tput cup 15 0
echo -en "\e[93m Have you subscribe our channel (y/n)? \e[m "
read answer
if [ "$answer" != "${answer#[Yy]}" ] ;then
tput cup 17 21
echo -e "\e[42m Thankyou for subscribing our channel \e[m"
else
tput cup 17 23
echo -e "\e[41m Please subsrcibe our channel \e[m"
fi
tput cup 20 0
figlet -f slant "Bhavik Tutorials" |lolcat
#done setting up Termux terminal as a real hacker
# setting up making a changes to a termux
# Dir checker
# dir=.termux
DIR="$HOME/.termux"
if [ -d "$DIR" ]
then
echo
else
mkdir $HOME/.termux
fi
#files checker
#file=termux.properties
FILE="$HOME/.termux/termux.properties"
if [ -f "$FILE" ]
then
echo
else
cd $HOME/.termux/
touch termux.properties
fi
# Termux bell characterstics
cd $HOME
echo "bell-character=ignore" >> /data/data/com.termux/files/home/.termux/termux.properties && termux-reload-settings
echo
#########################################################################
# T-Remix #
# simply changing this banner will not make you developer of this tool #
#########################################################################