├── README.md ├── colors.list ├── fonts.list └── termux-styling.sh /README.md: -------------------------------------------------------------------------------- 1 | # Termux-Styling-Shell-Script 2 | Unofficial Termux Styling [ Bash ] 3 | 4 | Usage: 5 | ``` 6 | $ ./termux-styling.sh --help 7 | ``` 8 | 9 | Contact: [z@bl33dz.me] or [bagaz@protonmail.ch] 10 | -------------------------------------------------------------------------------- /colors.list: -------------------------------------------------------------------------------- 1 | base16-3024-dark.properties 2 | base16-3024-light.properties 3 | base16-apathy-dark.properties 4 | base16-apathy-light.properties 5 | base16-ashes-dark.properties 6 | base16-ashes-light.properties 7 | base16-atelierdune-dark.properties 8 | base16-atelierdune-light.properties 9 | base16-atelierforest-dark.properties 10 | base16-atelierforest-light.properties 11 | base16-atelierheath-dark.properties 12 | base16-atelierheath-light.properties 13 | base16-atelierlakeside-dark.properties 14 | base16-atelierlakeside-light.properties 15 | base16-atelierseaside-dark.properties 16 | base16-atelierseaside-light.properties 17 | base16-bespin-dark.properties 18 | base16-bespin-light.properties 19 | base16-brewer-dark.properties 20 | base16-brewer-light.properties 21 | base16-bright-dark.properties 22 | base16-bright-light.properties 23 | base16-chalk-dark.properties 24 | base16-chalk-light.properties 25 | base16-codeschool-dark.properties 26 | base16-codeschool-light.properties 27 | base16-colors-dark.properties 28 | base16-colors-light.properties 29 | base16-default-dark.properties 30 | base16-default-light.properties 31 | base16-eighties-dark.properties 32 | base16-eighties-light.properties 33 | base16-embers-dark.properties 34 | base16-embers-light.properties 35 | base16-flat-dark.properties 36 | base16-flat-light.properties 37 | base16-google-dark.properties 38 | base16-google-light.properties 39 | base16-grayscale-dark.properties 40 | base16-grayscale-light.properties 41 | base16-greenscreen-dark.properties 42 | base16-greenscreen-light.properties 43 | base16-harmonic16-dark.properties 44 | base16-harmonic16-light.properties 45 | base16-isotope-dark.properties 46 | base16-isotope-light.properties 47 | base16-londontube-dark.properties 48 | base16-londontube-light.properties 49 | base16-marrakesh-dark.properties 50 | base16-marrakesh-light.properties 51 | base16-materia.properties 52 | base16-mocha-dark.properties 53 | base16-mocha-light.properties 54 | base16-monokai-dark.properties 55 | base16-monokai-light.properties 56 | base16-ocean-dark.properties 57 | base16-ocean-light.properties 58 | base16-paraiso-dark.properties 59 | base16-paraiso-light.properties 60 | base16-railscasts-dark.properties 61 | base16-railscasts-light.properties 62 | base16-shapeshifter-dark.properties 63 | base16-shapeshifter-light.properties 64 | base16-solarized-dark.properties 65 | base16-solarized-light.properties 66 | base16-summerfruit-dark.properties 67 | base16-summerfruit-light.properties 68 | base16-tomorrow-dark.properties 69 | base16-tomorrow-light.properties 70 | base16-twilight-dark.properties 71 | base16-twilight-light.properties 72 | black-on-white.properties 73 | dracula.properties 74 | gnometerm.properties 75 | gotham.properties 76 | gruvbox-dark.properties 77 | gruvbox-light.properties 78 | material.properties 79 | nancy.properties 80 | neon.properties 81 | nord.properties 82 | rydgel.properties 83 | smyck.properties 84 | solarized-dark.properties 85 | solarized-light.properties 86 | tomorrow-night.properties 87 | white-on-black.properties 88 | wild-cherry.properties 89 | zenburn.properties 90 | -------------------------------------------------------------------------------- /fonts.list: -------------------------------------------------------------------------------- 1 | Anonymous-Pro.ttf 2 | Courier-Prime.ttf 3 | DejaVu.ttf 4 | Fantasque.ttf 5 | FiraCode.ttf 6 | Fira.ttf 7 | GNU-FreeFont.ttf 8 | Go.ttf 9 | Hack.ttf 10 | Hermit.ttf 11 | Inconsolata.ttf 12 | Iosevka.ttf 13 | LiberationMono.ttf 14 | Meslo.ttf 15 | Monofur.ttf 16 | Monoid.ttf 17 | OpenDyslexic.ttf 18 | Roboto.ttf 19 | Source-Code-Pro.ttf 20 | Ubuntu.ttf 21 | -------------------------------------------------------------------------------- /termux-styling.sh: -------------------------------------------------------------------------------- 1 | #!/data/data/com.termux/files/usr/bin/bash 2 | # Unofficial Termux Styling 3 | # Coded by BagazMukti [ bl33dz ] 4 | # https://github.com/BagazMukti/Termux-Styling-Shell-Script 5 | # https://bl33dz.me/ 6 | # z@bl33dz.me 7 | # bagaz@protonmail.ch 8 | 9 | function help { 10 | echo -e "Options: 11 | --colors-list Display colors list 12 | --fonts-list Display fonts list 13 | --change-color Change color list 14 | --change-font Change font list 15 | --update Update termux styling 16 | --help Display this help\n" 17 | } 18 | function check_connection { 19 | curl=$(curl http://bagaz.org/ -s) 20 | if [ $curl ]; then 21 | echo "[+] Connected to internet..." 22 | else 23 | echo "[-] Not connected to internet..." 24 | exit 25 | fi 26 | } 27 | function colors2array { 28 | list=() 29 | for color in $(cat colors.list); do 30 | list+=("$color"); 31 | done 32 | } 33 | function colors_list { 34 | echo "Colors list:" 35 | num=1 36 | colors= 37 | for color in $(cat colors.list); do 38 | colors+="[$num] ${color//.properties/}\n" 39 | ((num++)) 40 | done 41 | echo -ne $colors 42 | } 43 | function fonts2array { 44 | list=() 45 | for font in $(cat fonts.list); do 46 | list+=("$font") 47 | done 48 | } 49 | function fonts_list { 50 | echo "Fonts list:" 51 | num=1 52 | fonts= 53 | for font in $(cat fonts.list); do 54 | fonts+="[$num] ${font//.ttf/}\n" 55 | ((num++)) 56 | done 57 | echo -ne $fonts 58 | } 59 | 60 | echo " 61 | _____ _____ _ _ _ 62 | |_ _| / ___| | | (_) 63 | | |______\ \`--.| |_ _ _| |_ _ __ __ _ 64 | | |______|\`--. \ __| | | | | | '_ \ / _\` | 65 | | | /\__/ / |_| |_| | | | | | | (_| | 66 | \_/ \____/ \__|\__, |_|_|_| |_|\__, | 67 | __/ | __/ | 68 | |___/ |___/" 69 | echo -e " { \e[1;31mTermux Styling\e[0m }\n" 70 | 71 | if [[ $1 = "--help" ]]; then 72 | help 73 | elif [[ $1 = "--colors-list" ]]; then 74 | colors_list 75 | elif [[ $1 = "--fonts-list" ]]; then 76 | fonts_list 77 | elif [[ $1 = "--change-color" ]]; then 78 | colors2array 79 | color=${list[(($2-1))]} 80 | if [[ $2 = "" ]]; then 81 | echo "Option \"--change-color\" need argument!" 82 | else 83 | check_connection 84 | echo "[+] Color: ${color//.properties/}" 85 | echo "[+] Downloading $color file..." 86 | url="http://bagaz.org/termux/colors/$color" 87 | wget -q "$url" -O color.tmp 88 | echo "[+] Installing color..." 89 | mv color.tmp ~/.termux/colors.properties 90 | termux-reload-settings 91 | echo "[+] Done..." 92 | fi 93 | elif [[ $1 = "--change-font" ]]; then 94 | fonts2array 95 | font=${list[(($2-1))]} 96 | if [ $2 = "" ]; then 97 | check_connection 98 | echo "Option \"--change-font\" need argument!" 99 | else 100 | echo "[+] Font: ${font//.ttf/}" 101 | echo "[+] Downloading $font file..." 102 | url="http://bagaz.org/termux/fonts/$font" 103 | wget -q "$url" -O font.tmp 104 | echo "[+] Installing font..." 105 | mv font.tmp ~/.termux/font.ttf 106 | termux-reload-settings 107 | echo "[+] Done..." 108 | fi 109 | elif [[ $1 = "--update" ]]; then 110 | check_connection 111 | echo "[+] Updating..." 112 | wget -q http://bagaz.org/termux/data/fonts.list -O fonts.list 113 | wget -q http://bagaz.org/termux/data/colors.list -O colors.list 114 | echo "[+] Done..." 115 | else 116 | echo -e "Usage: ./termux-styling.sh --help\n" 117 | fi 118 | 119 | # bl33dz with love <3 120 | --------------------------------------------------------------------------------