├── .aliases ├── .autostart ├── .colorscheme ├── ayu-dark.colors ├── ayu-light.colors ├── ayu-mirage.colors ├── catppuccin.colors ├── dracula.colors ├── elementary.colors ├── everblush.colors ├── flat.colors ├── gruvbox-dark.colors ├── material-ocean.colors ├── material.colors ├── monokai-dark.colors ├── nekonako-djancoeg.colors ├── nekonako-hue.colors ├── nekonako-om-mar.colors ├── one-dark.colors ├── owl4ce-dark.colors ├── owl4ce-light.colors ├── siduck-onedark.colors ├── snazzy.colors ├── tomorrow-night.colors ├── tomorrow-night.eighties.colors └── xshin.colors ├── .config ├── lf │ ├── icons │ └── lfrc ├── mpd │ ├── mpd.conf │ ├── playlists │ │ └── .nothing │ └── sticker.sql ├── mytermux │ ├── alert │ │ └── images │ │ │ └── finish.png │ ├── colorscheme │ │ └── used.log │ ├── fonts │ │ └── used.log │ └── zsh │ │ └── used.log ├── ncmpcpp │ └── config └── neofetch │ ├── config.conf │ └── debug-logo.sh ├── .fonts ├── Fira Code Bold Nerd Font.ttf ├── Fira Code Medium Nerd Font Complete Mono.ttf ├── JetBrains Mono Bold Nerd Font Complete.ttf ├── JetBrains Mono Medium Nerd Font Complete.ttf ├── MesloLGS NF Bold Italic.ttf ├── MesloLGS NF Bold.ttf ├── MesloLGS NF Italic.ttf └── MesloLGS NF Regular.ttf ├── .lang-icons ├── index.clj ├── index.coffee ├── index.cpp ├── index.css ├── index.d ├── index.dart ├── index.erl ├── index.exl ├── index.fs ├── index.go ├── index.hs ├── index.html ├── index.java ├── index.jl ├── index.js ├── index.json ├── index.lua ├── index.md ├── index.php ├── index.pl ├── index.py ├── index.rb ├── index.rs ├── index.scala ├── index.sh ├── index.tex ├── index.ts └── index.vim ├── .local └── bin │ ├── gitssh │ ├── ipconfig │ ├── macfinder │ ├── macfinder.php │ ├── music │ ├── rxfetch │ └── ytdl ├── .oh-my-zsh └── custom │ └── themes │ ├── ar-round.zsh-theme │ ├── archcraft.zsh-theme │ ├── la-round.zsh-theme │ ├── ma.zsh-theme │ ├── osx.zsh-theme │ ├── osx2.zsh-theme │ ├── rounded-custom.zsh-theme │ ├── rounded.zsh-theme │ └── simple.zsh-theme ├── .p10k.zsh ├── .scripts ├── colorscheme │ └── colors.sh ├── fonts │ └── fonts.sh ├── js │ ├── install.sh │ └── repochecker.js ├── library │ ├── animation.sh │ ├── colors.sh │ ├── cursor.sh │ ├── screen.sh │ ├── signal.sh │ ├── stat.sh │ └── switchcase.sh ├── notify │ └── ncmpcpp ├── system │ ├── fetch.sh │ ├── ip.sh │ └── login.sh ├── toys │ ├── 256colors2.pl │ ├── bloks │ ├── colorbars │ ├── colortest │ ├── colortest-slim │ ├── colorview │ ├── dna │ ├── ghost │ ├── jfetch │ ├── pacman │ ├── panes │ ├── pipes1 │ ├── pipes2 │ ├── pipes2-slim │ ├── pipesx │ ├── rains │ └── spacey └── zsh │ └── changetheme.sh ├── .termux ├── colors.properties ├── font.ttf ├── termux.properties └── termux.properties.read ├── .tmux.conf ├── .zshrc ├── LICENSE ├── README.md ├── fix └── mpd │ └── run ├── helper ├── animation.sh ├── banner.sh ├── clone.sh ├── colors.sh ├── cursor.sh ├── dotfiles.sh ├── finish.sh ├── nvchad.sh ├── package.sh ├── screen.sh ├── signal.sh ├── stat.sh ├── switchcase.sh ├── themes.sh └── utility.sh ├── install.sh └── optional ├── compile ├── bin │ ├── aarch64 │ │ ├── ncmpcpp-0.10_dev │ │ └── nyancat │ └── armv7l │ │ ├── ncmpcpp-0.10_dev │ │ └── nyancat ├── config │ └── ncmpcpp │ │ ├── config-0.8^ │ │ └── config-0.9^ └── install │ ├── configure-ncmpcpp.txt │ ├── ncmpcpp-compile.sh │ └── nyancat-compile.sh ├── neovim-settings └── xshin.lua └── zshthemes └── install └── powerlevel10k-install.sh /.aliases: -------------------------------------------------------------------------------- 1 | # fzf 2 | alias preview="fzf --preview='bat --color=always --style=numbers --theme OneHalfDark {}' --preview-window=down" 3 | 4 | #Change 5 | alias chcolor="~/.scripts/colorscheme/colors.sh" 6 | alias chfont="~/.scripts/fonts/fonts.sh" 7 | alias chzsh="~/.scripts/zsh/changetheme.sh" 8 | 9 | #Config 10 | alias fontused="cat ~/.config/mytermux/fonts/used.log" 11 | alias colorused="cat ~/.config/mytermux/colorscheme/used.log" 12 | alias zshused="cat ~/.config/mytermux/zsh/used.log" 13 | 14 | #System 15 | alias q="exit" 16 | alias c="clear" 17 | alias sd="cd /sdcard" 18 | alias pf="cd $PREFIX" 19 | 20 | #Package Manager 21 | alias pacupg="pkg upgrade" 22 | alias pacupd="pkg update" 23 | alias pacupgupd="pkg update && pkg upgrade" 24 | 25 | #Convert Video 26 | alias convi="ffmpeg -i $1 -c:v libx264 -crf 25 $2" 27 | 28 | #Ping 29 | alias pg="ping google.com" 30 | 31 | #MyIP (Local) Pre 32 | alias myip="bash ~/.scripts/system/ip.sh simcard" 33 | alias myipwifi="bash ~/.scripts/system/ip.sh wifi" 34 | alias myiphotspot="~/.scripts/system/ip.sh hotspot" 35 | alias myipvpn="~/.scripts/system/ip.sh vpn" 36 | alias myipall="~/.scripts/system/ip.sh all" 37 | 38 | #Music 39 | alias n="ncmpcpp" 40 | alias mkill="mpd --kill" 41 | alias m="music" 42 | alias ncmpcpp-compile="~/myTermux/compile/install/ncmpcpp-compile.sh" 43 | 44 | #Color Toys 45 | alias 256colors2="~/.scripts/toys/256colors2.pl" 46 | alias bloks="~/.scripts/toys/bloks" 47 | alias colortest="~/.scripts/toys/colortest" 48 | alias colortest-slim="~/.scripts/toys/colortest-slim" 49 | alias colorview="~/.scripts/toys/colorview" 50 | alias colorbars="~/.scripts/toys/colorbars" 51 | alias panes="~/.scripts/toys/panes" 52 | alias pipes1="~/.scripts/toys/pipes1" 53 | alias pipes2="~/.scripts/toys/pipes2" 54 | alias pipes2-slim="~/.scripts/toys/pipes2-slim" 55 | alias dna="~/.scripts/toys/dna" 56 | alias ghost="~/.scripts/toys/ghost" 57 | alias jfetch="~/.scripts/toys/jfetch" 58 | alias pacman="~/.scripts/toys/pacman" 59 | alias pipesx="~/.scripts/toys/pipesx" 60 | alias rains="~/.scripts/toys/rains" 61 | alias spacey="~/.scripts/toys/spacey" 62 | 63 | #archives .deb 64 | alias archives="cd /data/data/com.termux/cache/apt/archives/" 65 | 66 | #Photos 67 | alias ss="cd /sdcard/Pictures/Screenshots/" 68 | 69 | #Movies 70 | alias ms="cd /sdcard/Movies" 71 | 72 | #Downloads 73 | alias dl="cd /sdcard/Download" 74 | 75 | #Documents 76 | alias ds="cd /sdcard/Documents" 77 | 78 | #Largest Files 79 | alias largefile="du -h -x -s -- * | sort -r -h | head -20" 80 | 81 | #System Information 82 | #alias neo="bash ~/.config/neofetch/debug-logo.sh --randomsmall" 83 | alias neo="neofetch" 84 | alias neodebug="bash ~/.config/neofetch/debug-logo.sh $1" 85 | alias disk="bash ~/.scripts/system/fetch.sh storage" 86 | alias battery="bash ~/.scripts/system/fetch.sh battery" 87 | alias ls="eza --icons" 88 | alias la="eza --icons -lgha --group-directories-first" 89 | alias lt="eza --icons --tree" 90 | alias lta="eza --icons --tree -lgha" 91 | alias bat="bat --theme OneHalfDark" 92 | alias cat="bat --theme OneHalfDark -p $@" 93 | 94 | #proot-distro 95 | alias prot="cd $PREFIX/var/lib/proot-distro" 96 | alias protlogin="proot-distro login $1" 97 | 98 | #Magick 99 | alias listfont="magick convert -list font | grep -iE 'font:.*'" 100 | 101 | ## Configuration 102 | 103 | #mpd 104 | alias mpdconf="nvim ~/.config/mpd/mpd.conf" 105 | alias mpconf="nvim /data/data/com.termux/files/usr/etc/mpd.conf" 106 | 107 | #ncmpcpp 108 | alias ncmconf="nvim ~/.config/ncmpcpp/config" 109 | 110 | #neovim 111 | alias nviminit="nvim ~/.config/nvim/init.lua" 112 | alias nvimtheme="nvim ~/.config/nvim/lua/chadrc.lua" 113 | alias nvimplug="nvim ~/.config/nvim/lua/pluginList.lua" 114 | alias nvimmap="nvim ~/.config/nvim/lua/mappings.lua" 115 | alias nvimpacnit="nvim ~/.config/nvim/lua/packerInit.lua" 116 | alias nvimsin="nvim ~/.config/nvim/lua/core/xshin.lua" 117 | alias nvimhighlight="nvim ~/.config/nvim/lua/hightlights.lua" 118 | alias nvimcore="nvim ~/.config/nvim/lua/core/init.lua" 119 | 120 | #zsh 121 | alias zshconf="nvim ~/.zshrc" 122 | 123 | #neofetch 124 | alias neoconf="nvim ~/.config/neofetch/config.conf" 125 | alias rxconf="nvim ~/.local/bin/rxfetch" 126 | alias neoscript="nvim ~/.config/neofetch/script.sh" 127 | alias fetch="bash ~/.scripts/system/fetch.sh $@" 128 | alias fetchconf="nvim ~/.scripts/system/fetch.sh" 129 | 130 | alias awesomeconf="nvim ~/.config/awesomeshot/awesomeshot.conf" 131 | 132 | #git 133 | alias gitgraph="git log --all --decorate --oneline --graph" 134 | alias gitupdate="git fetch && git pull" 135 | alias gitstat="git status" 136 | alias gitad="git add $@" 137 | alias gitcom="git commit -m '$@'" 138 | 139 | #Web Server (Require install LAMP on Termux) https://github.com/xshin404/lampTermux 140 | alias apaconf="nvim $PREFIX/etc/apache2/httpd.conf" 141 | alias phpmyadminconf="nvim $PREFIX/etc/phpmyadmin/config.inc.php" 142 | 143 | #Refresh 144 | alias refresh="source $HOME/.zshrc" 145 | 146 | #Unsource 147 | alias unsource="exec $SHELL -l" 148 | 149 | #PID Login 150 | alias loginconf="nvim ~/.scripts/login.sh" 151 | alias exit="if [ -f ~/.scripts/pid/login ]; then rm ~/.scripts/pid/login; fi && exit" 152 | 153 | #MyIP 154 | alias myipconf="nvim ~/.scripts/ip.sh" 155 | 156 | #termux-reload 157 | alias reload="termux-reload-settings" 158 | 159 | #termux-setting 160 | alias termconf="nvim ~/.termux/termux.properties" 161 | 162 | #termux-permission 163 | alias termper="termux-setup-storage" 164 | 165 | alias aliasconf="nvim ~/.aliases" 166 | alias startconf="nvim ~/.autostart" 167 | 168 | alias repocek="node ~/.scripts/js/repochecker.js" 169 | 170 | alias schemeconf="nvim ~/.scripts/colorscheme/colors.sh" 171 | alias fontsconf="nvim ~/.scripts/fonts/fonts.sh" 172 | alias zshthemeconf="nvim ~/.scripts/zsh/changetheme.sh" 173 | 174 | # Termux:API 175 | alias scan="termux-media-scan" 176 | alias open="termux-open" 177 | -------------------------------------------------------------------------------- /.autostart: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | #cursor bar or bold pipe 3 | #echo -e "\e[2 q" 4 | 5 | export COLUMNS LINES 6 | 7 | #cursor underline 8 | echo -e "\e[4 q" 9 | 10 | #cursor pipe 11 | #echo -e "\e[6 q" 12 | 13 | #c 14 | 15 | #if [ "$TMUX" == "" ]; then 16 | 17 | # tmux 18 | 19 | #fi 20 | 21 | #if [ ! -f ~/.scripts/pid/login ]; then 22 | 23 | # bash ~/.scripts/login.sh 24 | 25 | #fi 26 | 27 | #neo 28 | #clear 29 | rxfetch 30 | 31 | # SSH for Git & GitHub! 32 | #SSH_ENV="${HOME}/.ssh/agent-environment" 33 | 34 | #function start_agent { 35 | # termux-toast -b "#FFFFFF" -c "#000000" -g top "Initialising new SSH Agent" &> /dev/null 36 | # ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" 37 | 38 | # termux-toast -b "#FFFFFF" -c "#000000" -g top "Succeeded" &> /dev/null 39 | # chmod 600 "${SSH_ENV}" 40 | # . "${SSH_ENV}" > /dev/null 41 | # ssh-add; 42 | #} 43 | 44 | #if [ -f "${SSH_ENV}" ]; then 45 | # . "${SSH_ENV}" > /dev/null 46 | # ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || { 47 | # start_agent; 48 | # } 49 | #else 50 | # start_agent 51 | #fi 52 | -------------------------------------------------------------------------------- /.colorscheme/ayu-dark.colors: -------------------------------------------------------------------------------- 1 | background=#090D13 2 | foreground=#FEFEFE 3 | cursor=#E96B72 4 | color0=#00050D 5 | color1=#E96B72 6 | color2=#90B261 7 | color3=#F8AE4E 8 | color4=#52BCF9 9 | color5=#F9E893 10 | color6=#8FE0C5 11 | color7=#C6C6C6 12 | color8=#676767 13 | color9=#EF7077 14 | color10=#C1D84B 15 | color11=#FEB353 16 | color12=#58C1FE 17 | color13=#FEED98 18 | color14=#94E5CA 19 | color15=#FEFEFE 20 | -------------------------------------------------------------------------------- /.colorscheme/ayu-light.colors: -------------------------------------------------------------------------------- 1 | background=#FEFEFE 2 | foreground=#090D13 3 | cursor=#E96B72 4 | color0=#00050D 5 | color1=#E96B72 6 | color2=#90B261 7 | color3=#F8AE4E 8 | color4=#52BCF9 9 | color5=#F9E893 10 | color6=#8FE0C5 11 | color7=#C6C6C6 12 | color8=#676767 13 | color9=#EF7077 14 | color10=#C1D84B 15 | color11=#FEB353 16 | color12=#58C1FE 17 | color13=#FEED98 18 | color14=#94E5CA 19 | color15=#FEFEFE 20 | -------------------------------------------------------------------------------- /.colorscheme/ayu-mirage.colors: -------------------------------------------------------------------------------- 1 | background=#1F2430 2 | foreground=#E5E0CE 3 | cursor=#E96B72 4 | color0=#00050D 5 | color1=#E96B72 6 | color2=#90B261 7 | color3=#F8AE4E 8 | color4=#52BCF9 9 | color5=#F9E893 10 | color6=#8FE0C5 11 | color7=#C6C6C6 12 | color8=#676767 13 | color9=#EF7077 14 | color10=#C1D84B 15 | color11=#FEB353 16 | color12=#58C1FE 17 | color13=#FEED98 18 | color14=#94E5CA 19 | color15=#FEFEFE 20 | -------------------------------------------------------------------------------- /.colorscheme/catppuccin.colors: -------------------------------------------------------------------------------- 1 | background: #1E1D2F 2 | foreground: #D9E0EE 3 | 4 | color0: #6E6C7E 5 | color8: #988BA2 6 | 7 | color1: #F28FAD 8 | color9: #F28FAD 9 | 10 | color2: #ABE9B3 11 | color10: #ABE9B3 12 | 13 | color3: #FAE3B0 14 | color11: #FAE3B0 15 | 16 | color4: #96CDFB 17 | color12: #96CDFB 18 | 19 | color5: #F5C2E7 20 | color13: #F5C2E7 21 | 22 | color6: #89DCEB 23 | color14: #89DCEB 24 | 25 | color7: #C3BAC6 26 | color15: #D9E0EE 27 | -------------------------------------------------------------------------------- /.colorscheme/dracula.colors: -------------------------------------------------------------------------------- 1 | # dracula.colors 2 | # Color scheme from https://github.com/Mayccoll/Gogh 3 | color0=#44475a 4 | color1=#ff5555 5 | color2=#50fa7b 6 | color3=#ffb86c 7 | color4=#8be9fd 8 | color5=#bd93f9 9 | color6=#ff79c6 10 | color7=#94A3A5 11 | color8=#000000 12 | color9=#ff5555 13 | color10=#50fa7b 14 | color11=#ffb86c 15 | color12=#8be9fd 16 | color13=#bd93f9 17 | color14=#ff79c6 18 | color15=#ffffff 19 | background=#282a36 20 | foreground=#94A3A5 21 | cursor=#94A3A5 22 | -------------------------------------------------------------------------------- /.colorscheme/elementary.colors: -------------------------------------------------------------------------------- 1 | # elementary.colors 2 | # Color scheme from https://github.com/Mayccoll/Gogh 3 | color0=#303030 4 | color1=#e1321a 5 | color2=#6ab017 6 | color3=#ffc005 7 | color4=#004f9e 8 | color5=#ec0048 9 | color6=#2aa7e7 10 | color7=#f2f2f2 11 | color8=#5d5d5d 12 | color9=#ff361e 13 | color10=#7bc91f 14 | color11=#ffd00a 15 | color12=#0071ff 16 | color13=#ff1d62 17 | color14=#4bb8fd 18 | color15=#a020f0 19 | background=#101010 20 | foreground=#f2f2f2 21 | cursor=#f2f2f2 22 | -------------------------------------------------------------------------------- /.colorscheme/everblush.colors: -------------------------------------------------------------------------------- 1 | foreground=#dadada 2 | background=#141b1e 3 | cursor=#3b4244 4 | 5 | # normal colors 6 | color0=#232a2d 7 | color1=#e57474 8 | color2=#8ccf7e 9 | color3=#e5c76b 10 | color4=#67b0e8 11 | color5=#c47fd5 12 | color6=#6cbfbf 13 | color7=#b3b9b8 14 | 15 | # bright colors 16 | color8=#2d3437 17 | color9=#ef7e7e 18 | color10=#96d988 19 | color11=#f4d67a 20 | color12=#71baf2 21 | color13=#ce89df 22 | color14=#67cbe7 23 | color15=#bdc3c2 24 | 25 | -------------------------------------------------------------------------------- /.colorscheme/flat.colors: -------------------------------------------------------------------------------- 1 | # flat.colors 2 | # Color scheme from https://github.com/Mayccoll/Gogh 3 | color0=#2c3e50 4 | color1=#c0392b 5 | color2=#27ae60 6 | color3=#f39c12 7 | color4=#2980b9 8 | color5=#8e44ad 9 | color6=#16a085 10 | color7=#bdc3c7 11 | color8=#34495e 12 | color9=#e74c3c 13 | color10=#2ecc71 14 | color11=#f1c40f 15 | color12=#3498db 16 | color13=#9b59b6 17 | color14=#2AA198 18 | color15=#ecf0f1 19 | background=#1F2D3A 20 | foreground=#1abc9c 21 | cursor=#1abc9c 22 | -------------------------------------------------------------------------------- /.colorscheme/gruvbox-dark.colors: -------------------------------------------------------------------------------- 1 | # gruvbox.dark.colors 2 | # Color scheme from https://github.com/Mayccoll/Gogh 3 | color0=#665c54 4 | color1=#fb4934 5 | color2=#83a598 6 | color3=#d79921 7 | color4=#b16286 8 | color5=#458588 9 | color6=#b8bb26 10 | color7=#d65d0e 11 | color8=#a89984 12 | color9=#fb4934 13 | color10=#8ec07c 14 | color11=#fabd2f 15 | color12=#d3869b 16 | color13=#689d6a 17 | color14=#98971a 18 | color15=#fe8019 19 | background=#282828 20 | foreground=#ebdbb2 21 | cursor=#ebdbb2 22 | -------------------------------------------------------------------------------- /.colorscheme/material-ocean.colors: -------------------------------------------------------------------------------- 1 | # material.ocean.colors 2 | # Color scheme from https://github.com/Material-Ocean 3 | color0 = #3b4252 4 | color1 = #bf616a 5 | color2 = #a3be8c 6 | color3 = #ebcb8b 7 | color4 = #81a1c1 8 | color5 = #b48ead 9 | color6 = #88c0d0 10 | color7 = #e5e9f0 11 | color8 = #4c566a 12 | color9 = #bf616a 13 | color10 = #a3be8c 14 | color11 = #ebcb8b 15 | color12 = #81a1c1 16 | color13 = #b48ead 17 | color14 = #8fbcbb 18 | color15 = #eceff4 19 | background=#0f111a 20 | foreground=#d8dee9 21 | cursor=#d8dee9 22 | -------------------------------------------------------------------------------- /.colorscheme/material.colors: -------------------------------------------------------------------------------- 1 | # material.colors 2 | # Color scheme from https://github.com/Mayccoll/Gogh 3 | color0=#073641 4 | color1=#EB606B 5 | color2=#C3E88D 6 | color3=#F7EB95 7 | color4=#80CBC3 8 | color5=#FF2490 9 | color6=#AEDDFF 10 | color7=#FFFFFF 11 | color8=#002B36 12 | color9=#EB606B 13 | color10=#C3E88D 14 | color11=#F7EB95 15 | color12=#7DC6BF 16 | color13=#6C71C3 17 | color14=#34434D 18 | color15=#FFFFFF 19 | background=#1E282C 20 | foreground=#C3C7D1 21 | cursor=#657B83 22 | -------------------------------------------------------------------------------- /.colorscheme/monokai-dark.colors: -------------------------------------------------------------------------------- 1 | # monokai.dark.colors 2 | # Color scheme from https://github.com/Mayccoll/Gogh 3 | color0=#75715e 4 | color1=#f92672 5 | color2=#a6e22e 6 | color3=#f4bf75 7 | color4=#66d9ef 8 | color5=#ae81ff 9 | color6=#2AA198 10 | color7=#f9f8f5 11 | color8=#272822 12 | color9=#f92672 13 | color10=#a6e22e 14 | color11=#f4bf75 15 | color12=#66d9ef 16 | color13=#ae81ff 17 | color14=#2AA198 18 | color15=#f8f8f2 19 | background=#272822 20 | foreground=#f8f8f2 21 | cursor=#f8f8f2 22 | -------------------------------------------------------------------------------- /.colorscheme/nekonako-djancoeg.colors: -------------------------------------------------------------------------------- 1 | color0=#2f343f 2 | color1=#fd6b85 3 | color2=#63e0be 4 | color3=#fed270 5 | color4=#67d4f2 6 | color5=#ff8167 7 | color6=#63e0be 8 | color7=#eeeeee 9 | color8=#4f4f5b 10 | color9=#fd6b85 11 | color10=#63e0be 12 | color11=#fed270 13 | color12=#67d4f2 14 | color13=#ff8167 15 | color14=#63e0be 16 | color15=#eeeeee 17 | background=#2a2c3a 18 | #background=#090d13 19 | foreground=#eeeeee 20 | cursor=#fd6b85 21 | -------------------------------------------------------------------------------- /.colorscheme/nekonako-hue.colors: -------------------------------------------------------------------------------- 1 | color0=#291e4e 2 | color1=#fb749f 3 | color2=#86d387 4 | color3=#fbdd74 5 | color4=#8e96fd 6 | color5=#d685ff 7 | color6=#9bcfcf 8 | color7=#ffffff 9 | color8=#291e4e 10 | color9=#fb749f 11 | color10=#86d387 12 | color11=#fbdd74 13 | color12=#8e96fd 14 | color13=#d685ff 15 | color14=#9bcfcf 16 | color15=#ffffff 17 | background=#291e4e 18 | foreground=#ffffff 19 | cursor=#fb749f 20 | -------------------------------------------------------------------------------- /.colorscheme/nekonako-om-mar.colors: -------------------------------------------------------------------------------- 1 | ! Color scheme by fikri omar 2 | 3 | background=#2F343F 4 | foreground=#EFF0EB 5 | 6 | color0=#2F343F 7 | color8=#444A57 8 | 9 | color1=#de8990 10 | color9=#d0a8ab 11 | 12 | color2=#94daa9 13 | color10=#bae8d2 14 | 15 | ! yellow 16 | color3=#dee7aa 17 | color11=#d7c96b 18 | 19 | ! blue 20 | color4=#9cdbdf 21 | color12=#6cb4dd 22 | 23 | ! magenta 24 | color5=#cca8c9 25 | color13=#db79bf 26 | 27 | ! cyan 28 | color6=#9ad4c8 29 | color14=#59b0b2 30 | 31 | ! white 32 | color7=#e1e1e1 33 | color15=#f0f0f0 34 | 35 | -------------------------------------------------------------------------------- /.colorscheme/one-dark.colors: -------------------------------------------------------------------------------- 1 | # one.dark.colors 2 | # Color scheme from https://github.com/Mayccoll/Gogh 3 | color0=#000000 4 | color1=#E06C75 5 | color2=#98C379 6 | color3=#D19A66 7 | color4=#61AFEF 8 | color5=#C678DD 9 | color6=#56B6C2 10 | color7=#ABB2BF 11 | color8=#5C6370 12 | color9=#E06C75 13 | color10=#98C379 14 | color11=#D19A66 15 | color12=#61AFEF 16 | color13=#C678DD 17 | color14=#56B6C2 18 | color15=#FFFEFE 19 | background=#1E2127 20 | foreground=#5C6370 21 | cursor=#5C6370 22 | -------------------------------------------------------------------------------- /.colorscheme/owl4ce-dark.colors: -------------------------------------------------------------------------------- 1 | color0=#434C5E 2 | color1=#FA5AA4 3 | color2=#2BE491 4 | color3=#FA946E 5 | color4=#63C5EA 6 | color5=#CF8EF4 7 | color6=#89CCF7 8 | color7=#F7F7F7 9 | color8=#4C566A 10 | color9=#FA74B2 11 | color10=#44EB9F 12 | color11=#FAA687 13 | color12=#7ACBEA 14 | color13=#D8A6F4 15 | color14=#A1D5F7 16 | color15=#F4F4F4 17 | background=#373E4D 18 | foreground=#F9F9F9 19 | cursor=#FA5AA4 20 | -------------------------------------------------------------------------------- /.colorscheme/owl4ce-light.colors: -------------------------------------------------------------------------------- 1 | color0=#F7F7F7 2 | color1=#FA5AA4 3 | color2=#2BE491 4 | color3=#FA946E 5 | color4=#63C5EA 6 | color5=#CF8EF4 7 | color6=#89CCF7 8 | color7=#434C5E 9 | color8=#F4F4F4 10 | color9=#FA74B2 11 | color10=#44EB9F 12 | color11=#FAA687 13 | color12=#7ACBEA 14 | color13=#D8A6F4 15 | color14=#A1D5F7 16 | color15=#4C566A 17 | background=#F9F9F9 18 | foreground=#373E4D 19 | cursor=#FA5AA4 20 | -------------------------------------------------------------------------------- /.colorscheme/siduck-onedark.colors: -------------------------------------------------------------------------------- 1 | foreground=#c8ccd4 2 | background=#1e222a 3 | cursor=#e06c75 4 | color0=#1e222a 5 | color1=#e06c75 6 | color2=#98c379 7 | color3=#e5c07b 8 | color4=#61afef 9 | color5=#c678dd 10 | color6=#56b6c2 11 | #color7=#abb2bf 12 | color7=#D8DEE9 13 | color8=#545862 14 | color9=#e06c75 15 | color10=#98c379 16 | color11=#e5c07b 17 | color12=#61afef 18 | color13=#c678dd 19 | color14=#56b6c2 20 | color15=#c8ccd4 21 | -------------------------------------------------------------------------------- /.colorscheme/snazzy.colors: -------------------------------------------------------------------------------- 1 | # snazzy.colors 2 | # Color theme from Color scheme from https://github.com/Mayccoll/Gogh 3 | color0=#0C0D13 4 | color1=#FF5C57 5 | color2=#5AF78E 6 | color3=#F3F99D 7 | color4=#57C7FF 8 | color5=#FF6AC1 9 | color6=#9AEDFE 10 | color7=#EFF0EB 11 | color8=#686868 12 | color9=#FF5C57 13 | color10=#5AF78E 14 | color11=#F3F99D 15 | color12=#57C7FF 16 | color13=#FF6AC1 17 | color14=#9AEDFE 18 | color15=#EFF0EB 19 | background=#282A36 20 | foreground=#EFF0EB 21 | cursor=#EFF0EB -------------------------------------------------------------------------------- /.colorscheme/tomorrow-night.colors: -------------------------------------------------------------------------------- 1 | # tomorrow.night.colors 2 | # Color scheme from https://github.com/Mayccoll/Gogh 3 | color0=#000000 4 | color1=#CC6666 5 | color2=#B5BD68 6 | color3=#F0C674 7 | color4=#81A2BE 8 | color5=#B293BB 9 | color6=#8ABEB7 10 | color7=#FFFEFE 11 | color8=#000000 12 | color9=#CC6666 13 | color10=#B5BD68 14 | color11=#F0C574 15 | color12=#80A1BD 16 | color13=#B294BA 17 | color14=#8ABDB6 18 | color15=#FFFEFE 19 | background=#1D1F21 20 | foreground=#C5C8C6 21 | cursor=#C4C8C5 22 | -------------------------------------------------------------------------------- /.colorscheme/tomorrow-night.eighties.colors: -------------------------------------------------------------------------------- 1 | # tomorrow.night.eighties.colors 2 | # Color scheme from https://github.com/Mayccoll/Gogh 3 | color0=#000000 4 | color1=#F27779 5 | color2=#99CC99 6 | color3=#FFCC66 7 | color4=#6699CC 8 | color5=#CC99CC 9 | color6=#66CCCC 10 | color7=#FFFEFE 11 | color8=#000000 12 | color9=#F17779 13 | color10=#99CC99 14 | color11=#FFCC66 15 | color12=#6699CC 16 | color13=#CC99CC 17 | color14=#66CCCC 18 | color15=#FFFEFE 19 | background=#2C2C2C 20 | foreground=#CCCCCC 21 | cursor=#CCCCCC 22 | -------------------------------------------------------------------------------- /.colorscheme/xshin.colors: -------------------------------------------------------------------------------- 1 | # custom.colors 2 | color0=#44475a 3 | color1=#ff0000 4 | color2=#00ff00 5 | color3=#ff8e1e 6 | color4=#0071ff 7 | color5=#ffc500 8 | color6=#808080 9 | color7=#ffffff 10 | color8=#000000 11 | color9=#ff0000 12 | color10=#50fa7b 13 | color11=#ff8e1e 14 | color12=#0071ff 15 | color13=#ffc500 16 | color14=#808080 17 | color15=#ffffff 18 | background=#282a36 19 | foreground=#ffffff 20 | cursor=#94A3A5 21 | -------------------------------------------------------------------------------- /.config/lf/icons: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | ##lf icons 3 | export LF_ICONS="\ 4 | tw=:\ 5 | st=:\ 6 | ow=:\ 7 | dt=:\ 8 | di=:\ 9 | fi=:\ 10 | ln=:\ 11 | or=:\ 12 | ex=:\ 13 | *.c=:\ 14 | *.cc=:\ 15 | *.clj=:\ 16 | *.coffee=:\ 17 | *.cpp=:\ 18 | *.css=:\ 19 | *.d=:\ 20 | *.dart=:\ 21 | *.erl=:\ 22 | *.exs=:\ 23 | *.fs=:\ 24 | *.go=:\ 25 | *.h=:\ 26 | *.hh=:\ 27 | *.hpp=:\ 28 | *.hs=:\ 29 | *.html=:\ 30 | *.java=:\ 31 | *.jl=:\ 32 | *.js=:\ 33 | *.json=:\ 34 | *.lua=:\ 35 | *.md=:\ 36 | *.php=:\ 37 | *.pl=:\ 38 | *.pro=:\ 39 | *.py=:\ 40 | *.rb=:\ 41 | *.rs=:\ 42 | *.scala=:\ 43 | *.ts=:\ 44 | *.vim=:\ 45 | *.cmd=:\ 46 | *.ps1=:\ 47 | *.sh=:\ 48 | *.bash=:\ 49 | *.zsh=:\ 50 | *.fish=:\ 51 | *.tar=:\ 52 | *.tgz=:\ 53 | *.arc=:\ 54 | *.arj=:\ 55 | *.taz=:\ 56 | *.lha=:\ 57 | *.lz4=:\ 58 | *.lzh=:\ 59 | *.lzma=:\ 60 | *.tlz=:\ 61 | *.txz=:\ 62 | *.tzo=:\ 63 | *.t7z=:\ 64 | *.zip=:\ 65 | *.z=:\ 66 | *.dz=:\ 67 | *.gz=:\ 68 | *.lrz=:\ 69 | *.lz=:\ 70 | *.lzo=:\ 71 | *.xz=:\ 72 | *.zst=:\ 73 | *.tzst=:\ 74 | *.bz2=:\ 75 | *.bz=:\ 76 | *.tbz=:\ 77 | *.tbz2=:\ 78 | *.tz=:\ 79 | *.deb=:\ 80 | *.rpm=:\ 81 | *.jar=:\ 82 | *.war=:\ 83 | *.ear=:\ 84 | *.sar=:\ 85 | *.rar=:\ 86 | *.alz=:\ 87 | *.ace=:\ 88 | *.zoo=:\ 89 | *.cpio=:\ 90 | *.7z=:\ 91 | *.rz=:\ 92 | *.cab=:\ 93 | *.wim=:\ 94 | *.swm=:\ 95 | *.dwm=:\ 96 | *.esd=:\ 97 | *.jpg=:\ 98 | *.jpeg=:\ 99 | *.mjpg=:\ 100 | *.mjpeg=:\ 101 | *.gif=:\ 102 | *.bmp=:\ 103 | *.pbm=:\ 104 | *.pgm=:\ 105 | *.ppm=:\ 106 | *.tga=:\ 107 | *.xbm=:\ 108 | *.xpm=:\ 109 | *.tif=:\ 110 | *.tiff=:\ 111 | *.png=:\ 112 | *.svg=:\ 113 | *.svgz=:\ 114 | *.mng=:\ 115 | *.pcx=:\ 116 | *.mov=:\ 117 | *.mpg=:\ 118 | *.mpeg=:\ 119 | *.m2v=:\ 120 | *.mkv=:\ 121 | *.webm=:\ 122 | *.ogm=:\ 123 | *.mp4=:\ 124 | *.m4v=:\ 125 | *.mp4v=:\ 126 | *.vob=:\ 127 | *.qt=:\ 128 | *.nuv=:\ 129 | *.wmv=:\ 130 | *.asf=:\ 131 | *.rm=:\ 132 | *.rmvb=:\ 133 | *.flc=:\ 134 | *.avi=:\ 135 | *.fli=:\ 136 | *.flv=:\ 137 | *.gl=:\ 138 | *.dl=:\ 139 | *.xcf=:\ 140 | *.xwd=:\ 141 | *.yuv=:\ 142 | *.cgm=:\ 143 | *.emf=:\ 144 | *.ogv=:\ 145 | *.ogx=:\ 146 | *.aac=:\ 147 | *.au=:\ 148 | *.flac=:\ 149 | *.m4a=:\ 150 | *.mid=:\ 151 | *.midi=:\ 152 | *.mka=:\ 153 | *.mp3=:\ 154 | *.mpc=:\ 155 | *.ogg=:\ 156 | *.ra=:\ 157 | *.wav=:\ 158 | *.oga=:\ 159 | *.opus=:\ 160 | *.spx=:\ 161 | *.xspf=:\ 162 | *.pdf=:\ 163 | *.nix=:\ 164 | " -------------------------------------------------------------------------------- /.config/lf/lfrc: -------------------------------------------------------------------------------- 1 | # Author : xShin 2 | # GitHub : https://github.com/xshin404 3 | 4 | set hidden true 5 | set icons true 6 | -------------------------------------------------------------------------------- /.config/mpd/mpd.conf: -------------------------------------------------------------------------------- 1 | bind_to_address "127.0.0.1" 2 | bind_to_address "~/.config/mpd/mpd.socket" 3 | port "8000" 4 | pid_file "~/.config/mpd/mpd.pid" 5 | log_file "~/.config/mpd/log" 6 | 7 | music_directory "/sdcard/Music" 8 | playlist_directory "~/.config/mpd/playlists" 9 | db_file "~/.config/mpd/mpd.db" 10 | state_file "~/.config/mpd/state" 11 | sticker_file "~/.config/mpd/sticker.sql" 12 | 13 | log_level "notice" 14 | metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc" 15 | metadata_to_use "+comment" 16 | follow_outside_symlinks "yes" 17 | follow_inside_symlinks "yes" 18 | 19 | input { 20 | 21 | plugin "curl" 22 | 23 | } 24 | 25 | audio_output { 26 | 27 | type "pulse" 28 | name "Pulse Audio (Support Cava Visualizer)" 29 | mixer_type "software" 30 | enable "yes" 31 | 32 | } 33 | 34 | audio_output { 35 | 36 | type "fifo" 37 | name "Fifo Visualizer (Press 8 to show Music Visualizer)" 38 | path "~/.config/mpd/mpd.fifo" 39 | format "44100:16:2" 40 | enabled "yes" 41 | 42 | } 43 | -------------------------------------------------------------------------------- /.config/mpd/playlists/.nothing: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.config/mpd/playlists/.nothing -------------------------------------------------------------------------------- /.config/mpd/sticker.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.config/mpd/sticker.sql -------------------------------------------------------------------------------- /.config/mytermux/alert/images/finish.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.config/mytermux/alert/images/finish.png -------------------------------------------------------------------------------- /.config/mytermux/colorscheme/used.log: -------------------------------------------------------------------------------- 1 | nekonako-djancoeg.colors 2 | -------------------------------------------------------------------------------- /.config/mytermux/fonts/used.log: -------------------------------------------------------------------------------- 1 | Fira Code Bold Nerd Font.ttf -------------------------------------------------------------------------------- /.config/mytermux/zsh/used.log: -------------------------------------------------------------------------------- 1 | ma.zsh-theme 2 | -------------------------------------------------------------------------------- /.config/ncmpcpp/config: -------------------------------------------------------------------------------- 1 | # Directories & Port Connection 2 | mpd_host = "~/.config/mpd/mpd.socket" 3 | mpd_port = "8000" 4 | mpd_crossfade_time = "2" 5 | mpd_music_dir = "/sdcard/Music" 6 | lyrics_directory = "~/.config/ncmpcpp/lyrics" 7 | allow_for_physical_item_deletion = "yes" 8 | execute_on_song_change = "bash ~/.scripts/notify/ncmpcpp" 9 | 10 | # Text Editor lyrics 11 | external_editor = "nvim" 12 | 13 | # Visualizer 14 | visualizer_in_stereo = "yes" 15 | visualizer_fifo_path = "~/.config/mpd/mpd.fifo" 16 | visualizer_output_name = "Visualizer" 17 | visualizer_type = "spectrum" 18 | #visualizer_type = "ellipse" 19 | visualizer_look = "●●" 20 | visualizer_color = "red,magenta,cyan,green,yellow" 21 | 22 | cyclic_scrolling = "yes" 23 | mouse_support = "yes" 24 | mouse_list_scroll_whole_page = "yes" 25 | lines_scrolled = "1" 26 | message_delay_time = "1" 27 | playlist_shorten_total_times = "yes" 28 | playlist_display_mode = "columns" 29 | browser_display_mode = "columns" 30 | search_engine_display_mode = "columns" 31 | playlist_editor_display_mode = "columns" 32 | autocenter_mode = "yes" 33 | centered_cursor = "yes" 34 | #user_interface = "classic" 35 | user_interface = "alternative" 36 | follow_now_playing_lyrics = "yes" 37 | locked_screen_width_part = "50" 38 | ask_for_locked_screen_width_part = "yes" 39 | display_bitrate = "no" 40 | main_window_color = "default" 41 | startup_screen = "playlist" 42 | startup_slave_screen = "visualizer" 43 | 44 | progressbar_look = "━━" 45 | #progressbar_look = "▃▃▃" 46 | progressbar_elapsed_color = "5" 47 | progressbar_color = "black" 48 | 49 | header_visibility = "no" 50 | statusbar_visibility = "yes" 51 | titles_visibility = "no" 52 | enable_window_title = "yes" 53 | 54 | statusbar_color = "white" 55 | color1 = "white" 56 | color2 = "blue" 57 | 58 | now_playing_prefix = "$b$2$7 " 59 | now_playing_suffix = " $/b$8" 60 | current_item_prefix = "$b$7$/b$3 " 61 | current_item_suffix = " $8" 62 | 63 | # Classic UI 64 | song_columns_list_format = "(50)[]{t|fr:Title} (0)[magenta]{a}" 65 | song_list_format = " {%t $R  $8%a$8}|{%f $R  $8%l$8} $8" 66 | song_status_format = "$b$7[ $4 $8   $4 $7] $7{$8 %b }|{$8 %a - %t }|{$8 %f }$2 $7 $8" 67 | song_window_title_format = "Ncmpcpp > { %b }|{ %a - %t }|{ %f }" 68 | 69 | # Alternative UI 70 | alternative_ui_separator_color = "black" 71 | alternative_header_first_line_format = "$b$5$/b $b$8{%t}|{%f}$/b $/b" 72 | alternative_header_second_line_format = "{$b{$2 %a$9}{ - $7 %b$9}{ ($2%y$9)}}|{%D}" 73 | -------------------------------------------------------------------------------- /.config/neofetch/debug-logo.sh: -------------------------------------------------------------------------------- 1 | #!/data/data/com.termux/files/usr/bin/env bash 2 | 3 | # Author : xShin 4 | # GitHub : https://github.com/xshin404 5 | 6 | logo=( 7 | 8 | AIX Alpine Anarchy Android Antergos antiX "AOSC\ OS" 9 | Apricity ArcoLinux ArchBox ARCHlabs 10 | ArchStrike XFerience ArchMerge Arch Artix Arya Bedrock 11 | BunsenLabs Calculate Carbs CentOS Chakra ChaletOS 12 | Chapeau Chrom* Cleanjaro ClearOS Clear_Linux Clover 13 | Condres Container_Linux CRUX Cucumber Debian Deepin 14 | DesaOS Devuan DracOS DarkOs DragonFly Drauger Elementary 15 | EndeavourOS Endless EuroLinux Exherbo Fedora Feren FreeBSD 16 | FreeMiNT Frugalware Funtoo GalliumOS Garuda Gentoo Pentoo 17 | gNewSense GNOME GNU GoboLinux Grombyang Guix Haiku Huayra 18 | Hyperbola janus Kali KaOS KDE_neon Kibojoe Kogaion 19 | Korora KSLinux Kubuntu LEDE LFS Linux_Lite 20 | LMDE Lubuntu Lunar macos Mageia MagpieOS Mandriva 21 | Manjaro Maui Mer Minix LinuxMint MX_Linux Namib 22 | Neptune NetBSD Netrunner Nitrux NixOS Nurunner 23 | NuTyX OBRevenge OpenBSD openEuler OpenIndiana openmamba 24 | OpenMandriva OpenStage OpenWrt osmc Oracle OS Elbrus PacBSD 25 | Parabola Pardus Parrot Parsix TrueOS PCLinuxOS Peppermint 26 | popos Porteus PostMarketOS Proxmox Puppy PureOS Qubes Radix 27 | Raspbian Reborn_OS Redstar Redcore Redhat Refracted_Devuan 28 | Regata Rosa sabotage Sabayon Sailfish SalentOS Scientific 29 | Septor SereneLinux SharkLinux Siduction Slackware SliTaz 30 | SmartOS Solus Source_Mage Sparky Star SteamOS SunOS 31 | openSUSE_Leap openSUSE_Tumbleweed openSUSE SwagArch Tails 32 | Trisquel Ubuntu-Budgie Ubuntu-GNOME Ubuntu-MATE Ubuntu-Studio 33 | Ubuntu Venom Void Obarun windows10 Windows7 Xubuntu Zorin 34 | IRIX 35 | 36 | ) 37 | 38 | logoOld=( 39 | 40 | Arch_old Ubuntu_old Redhat_old Dragonfly_old 41 | 42 | ) 43 | 44 | ubuntuFlavor=( 45 | 46 | Lubuntu Kubuntu Xubuntu Ubuntu-GNOME 47 | Ubuntu-Studio Ubuntu-Mate Ubuntu-Budgie 48 | 49 | ) 50 | 51 | logoSmall=( 52 | 53 | Arcolinux_small Dragonfly_small Fedora_small Alpine_small Arch_small Ubuntu_small 54 | CRUX_small Debian_small Gentoo_small FreeBSD_small Mac_small NixOS_small OpenBSD_small android_small 55 | Artix_small CentOS_small Cleanjaro_small Elementary_small GUIX_small Hyperbola_small 56 | Manjaro_small MX_small NetBSD_small Parabola_small POP_OS_small PureOS_small 57 | Slackware_small SunOS_small LinuxLite_small OpenSUSE_small Raspbian_small 58 | postmarketOS_small Void_small 59 | 60 | ) 61 | 62 | randomLogo=${logo[$RANDOM % ${#logo[@]} ]} 63 | 64 | randomLogoSmall=${logoSmall[$RANDOM % ${#logoSmall[@]} ]} 65 | 66 | function logodebug() { 67 | 68 | for logodebug in "${logo[@]}"; do 69 | 70 | neofetch --ascii_distro $logodebug 71 | echo -e "^^^^^^^^^^^^" 72 | echo -e "Distro Name : $logodebug" 73 | #sleep 2s 74 | echo -e "" 75 | 76 | done 77 | 78 | } 79 | 80 | function logodebugold() { 81 | 82 | for logodebugOld in "${logoOld[@]}"; do 83 | 84 | neofetch --ascii_distro $logodebugOld 85 | echo -e "^^^^^^^^^^^^" 86 | echo -e "Distro Name : $logodebugOld" 87 | #sleep 2s 88 | echo -e "" 89 | 90 | done 91 | 92 | } 93 | 94 | function logodebugubuntuflavor() { 95 | 96 | for logodebugubuntuFlavor in "${ubuntuFlavor[@]}"; do 97 | 98 | neofetch --ascii_distro $logodebugubuntuFlavor 99 | echo -e "^^^^^^^^^^^^" 100 | echo -e "Distro Name : $logodebugubuntuFlavor" 101 | #sleep 2s 102 | echo -e "" 103 | 104 | done 105 | 106 | } 107 | 108 | 109 | function logodebugsmall() { 110 | 111 | for logodebugSmall in "${logoSmall[@]}"; do 112 | 113 | neofetch --ascii_distro $logodebugSmall 114 | echo -e "^^^^^^^^^^^^" 115 | echo -e "Distro Name : $logodebugSmall" 116 | #sleep 2s 117 | echo -e "" 118 | 119 | done 120 | 121 | } 122 | 123 | function random() { 124 | 125 | neofetch --ascii_distro $randomLogo 126 | 127 | } 128 | 129 | function randomsmall() { 130 | 131 | neofetch --ascii_distro $randomLogoSmall 132 | 133 | } 134 | 135 | function help() { 136 | 137 | echo -e "\nUsage : ./debug-logo.sh [options]\n" 138 | 139 | echo -e " RUN OPTIONS\n" 140 | echo -e " --logo all default logo neofetch" 141 | echo -e " --old distro logo old" 142 | echo -e " --ubuntuflavor ubuntu distro" 143 | echo -e " --small distro logo small" 144 | echo -e " --all all options will run\n" 145 | 146 | echo -e " RANDOM OPTIONS\n" 147 | echo -e " --random random distro logo" 148 | echo -e " --randomsmall random distro logo small\n" 149 | 150 | } 151 | 152 | if [[ "$1" == "--logo" ]]; then 153 | 154 | logodebug 155 | 156 | elif [[ "$1" == "--old" ]]; then 157 | 158 | logodebugold 159 | 160 | elif [[ "$1" == "--ubuntuflavor" ]]; then 161 | 162 | logodebugubuntuflavor 163 | 164 | elif [[ "$1" == "--small" ]]; then 165 | 166 | logodebugsmall 167 | 168 | elif [[ "$1" == "--random" ]]; then 169 | 170 | random 171 | 172 | elif [[ "$1" == "--randomsmall" ]]; then 173 | 174 | randomsmall 175 | 176 | elif [[ "$1" == "--all" ]]; then 177 | 178 | logodebug 179 | logodebugold 180 | logodebugubuntuflavor 181 | logodebugsmall 182 | 183 | else 184 | 185 | help 186 | exit 1 187 | 188 | fi 189 | -------------------------------------------------------------------------------- /.fonts/Fira Code Bold Nerd Font.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.fonts/Fira Code Bold Nerd Font.ttf -------------------------------------------------------------------------------- /.fonts/Fira Code Medium Nerd Font Complete Mono.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.fonts/Fira Code Medium Nerd Font Complete Mono.ttf -------------------------------------------------------------------------------- /.fonts/JetBrains Mono Bold Nerd Font Complete.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.fonts/JetBrains Mono Bold Nerd Font Complete.ttf -------------------------------------------------------------------------------- /.fonts/JetBrains Mono Medium Nerd Font Complete.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.fonts/JetBrains Mono Medium Nerd Font Complete.ttf -------------------------------------------------------------------------------- /.fonts/MesloLGS NF Bold Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.fonts/MesloLGS NF Bold Italic.ttf -------------------------------------------------------------------------------- /.fonts/MesloLGS NF Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.fonts/MesloLGS NF Bold.ttf -------------------------------------------------------------------------------- /.fonts/MesloLGS NF Italic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.fonts/MesloLGS NF Italic.ttf -------------------------------------------------------------------------------- /.fonts/MesloLGS NF Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.fonts/MesloLGS NF Regular.ttf -------------------------------------------------------------------------------- /.lang-icons/index.clj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.clj -------------------------------------------------------------------------------- /.lang-icons/index.coffee: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.coffee -------------------------------------------------------------------------------- /.lang-icons/index.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.cpp -------------------------------------------------------------------------------- /.lang-icons/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.css -------------------------------------------------------------------------------- /.lang-icons/index.d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.d -------------------------------------------------------------------------------- /.lang-icons/index.dart: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.dart -------------------------------------------------------------------------------- /.lang-icons/index.erl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.erl -------------------------------------------------------------------------------- /.lang-icons/index.exl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.exl -------------------------------------------------------------------------------- /.lang-icons/index.fs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.fs -------------------------------------------------------------------------------- /.lang-icons/index.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.go -------------------------------------------------------------------------------- /.lang-icons/index.hs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.hs -------------------------------------------------------------------------------- /.lang-icons/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.html -------------------------------------------------------------------------------- /.lang-icons/index.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.java -------------------------------------------------------------------------------- /.lang-icons/index.jl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.jl -------------------------------------------------------------------------------- /.lang-icons/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.js -------------------------------------------------------------------------------- /.lang-icons/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.json -------------------------------------------------------------------------------- /.lang-icons/index.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.lua -------------------------------------------------------------------------------- /.lang-icons/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.md -------------------------------------------------------------------------------- /.lang-icons/index.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.php -------------------------------------------------------------------------------- /.lang-icons/index.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.pl -------------------------------------------------------------------------------- /.lang-icons/index.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.py -------------------------------------------------------------------------------- /.lang-icons/index.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.rb -------------------------------------------------------------------------------- /.lang-icons/index.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.rs -------------------------------------------------------------------------------- /.lang-icons/index.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.scala -------------------------------------------------------------------------------- /.lang-icons/index.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.sh -------------------------------------------------------------------------------- /.lang-icons/index.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.tex -------------------------------------------------------------------------------- /.lang-icons/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.ts -------------------------------------------------------------------------------- /.lang-icons/index.vim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.lang-icons/index.vim -------------------------------------------------------------------------------- /.local/bin/gitssh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | COLOR_BASED="\e[39m" 4 | COLOR_DANGER="\e[91m" 5 | COLOR_WARNING="\e[93m" 6 | COLOR_SUCCESS="\e[92m" 7 | COLOR_SKY="\e[34m" 8 | 9 | function main() { 10 | 11 | # Get Email Address GitHub 12 | read -p $'[\e[93m Email Address \e[0m] > ' EMAIL 13 | echo -e "\n[${COLOR_WARNING} Generating Public/Private RSA Key Pair ${COLOR_BASED}]" 14 | ssh-keygen -t rsa -b 4096 -C "${EMAIL}" 15 | 16 | # Get PID 17 | echo -e "\n[${COLOR_WARNING} Getting PID ${COLOR_BASED}]" 18 | eval $(ssh-agent -s) 19 | 20 | # Add Authentication Agent 21 | echo -e "\n[${COLOR_WARNING} Add Authentication Agent ${COLOR_BASED}]" 22 | ssh-add ~/.ssh/id_rsa 23 | 24 | # Copy Public Key and Paste to GitHub Account 25 | echo -e "\n[${COLOR_WARNING} Print Public Key ${COLOR_BASED}]" 26 | cat ~/.ssh/id_rsa.pub 27 | 28 | echo -e "" 29 | 30 | } 31 | 32 | main 33 | -------------------------------------------------------------------------------- /.local/bin/ipconfig: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | COLOR_BASED="\e[39m" 4 | COLOR_DANGER="\e[91m" 5 | COLOR_WARNING="\e[93m" 6 | COLOR_SUCCESS="\e[92m" 7 | COLOR_SKY="\e[34m" 8 | 9 | function show() { 10 | ip -br -c $1 $2 11 | } 12 | 13 | echo -e "\n" 14 | echo -e " ${COLOR_SUCCESS}┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓" 15 | echo -e " ┃ ${COLOR_WARNING}Information Address Show${COLOR_SUCCESS} ┃" 16 | echo -e " ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛${COLOR_BASED}\n" 17 | 18 | echo -e "Interface Name Status IPv4/netmask & IPv6/netmask" 19 | echo -e "━━━━━━━━━━━━━━ ━━━━━━ ━━━━━━━━━━━━━━━━━━━━━━━━━━━" 20 | 21 | show ad sh 22 | 23 | echo -e "" 24 | 25 | echo -e " ${COLOR_SUCCESS}┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓" 26 | echo -e " ┃ ${COLOR_WARNING}Information Link Show${COLOR_SUCCESS} ┃" 27 | echo -e " ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛${COLOR_BASED}\n" 28 | 29 | echo -e "Interface Name Status MAC Address" 30 | echo -e "━━━━━━━━━━━━━━ ━━━━━━ ━━━━━━━━━━━" 31 | show li sh 32 | 33 | echo -e "" 34 | 35 | echo -e " ${COLOR_SUCCESS}┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓" 36 | echo -e " ┃ ${COLOR_WARNING}Information Neighbour Show${COLOR_SUCCESS} ┃" 37 | echo -e " ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛${COLOR_BASED}\n" 38 | 39 | echo -e "IP Address Interface Name MAC Address" 40 | echo -e "━━━━━━━━━━ ━━━━━━━━━━━━━━ ━━━━━━━━━━━" 41 | show ne sh 42 | 43 | echo -e "\n" 44 | -------------------------------------------------------------------------------- /.local/bin/macfinder: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | API="https://api.macvendors.com" 3 | 4 | function banner() { 5 | 6 | echo -e " 7 | _______ _______ _______ _______ _ _ 8 | (_______|_______|_______) (_______|_) | | 9 | _ _ _ _______ _ _____ _ ____ __| |_____ ____ 10 | | ||_|| | ___ | | | ___) | | _ \ / _ | ___ |/ ___) 11 | | | | | | | | |_____ | | | | | | ( (_| | ____| | 12 | |_| |_|_| |_|\______) |_| |_|_| |_|\____|_____)_| 13 | 14 | " 15 | 16 | } 17 | 18 | banner 19 | read -p "Mac Address: " MAC 20 | VENDOR=`curl ${API}/${MAC} 2> /dev/null` 21 | echo -e "Vendor: ${VENDOR}" 22 | -------------------------------------------------------------------------------- /.local/bin/macfinder.php: -------------------------------------------------------------------------------- 1 | 16 | -------------------------------------------------------------------------------- /.local/bin/music: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | function play() { 4 | 5 | if $(mpd --kill); then 6 | 7 | echo -e "Kill pid mpd previous..." 8 | echo -e "Starting music..." 9 | mpd 10 | ncmpcpp 11 | 12 | else 13 | 14 | echo -e "Starting music..." 15 | mpd 16 | ncmpcpp 17 | 18 | fi 19 | } 20 | 21 | play 22 | -------------------------------------------------------------------------------- /.local/bin/rxfetch: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | magenta="\033[1;35m" 4 | green="\033[1;32m" 5 | white="\033[1;37m" 6 | blue="\033[1;34m" 7 | red="\033[1;31m" 8 | black="\033[1;40;30m" 9 | yellow="\033[1;33m" 10 | cyan="\033[1;36m" 11 | reset="\033[0m" 12 | bgyellow="\033[1;43;33m" 13 | bgwhite="\033[1;47;37m" 14 | c0=${reset} 15 | c1=${magenta} 16 | c2=${green} 17 | c3=${white} 18 | c4=${blue} 19 | c5=${red} 20 | c6=${yellow} 21 | c7=${cyan} 22 | c8=${black} 23 | c9=${bgyellow} 24 | c10=${bgwhite} 25 | 26 | function getCodeName() { 27 | codename="$(getprop ro.product.board)" 28 | } 29 | 30 | function getClientBase() { 31 | client_base="$(getprop ro.com.google.clientidbase)" 32 | } 33 | 34 | function getModel() { 35 | model="$(getprop ro.product.brand) $(getprop ro.product.model)" 36 | } 37 | 38 | function getDistro() { 39 | os="$(uname -o) $(uname -m)" 40 | } 41 | 42 | function getKernel() { 43 | kernel="$(uname -r)" 44 | } 45 | 46 | function getTotalPackages() { 47 | package_manager="$(which {apt,dpkg} 2>/dev/null | grep -v "not found" | awk -F/ 'NR==1{print $NF}')" 48 | case "${package_manager}" in 49 | "apt" ) 50 | packages=$(apt list --installed 2>/dev/null | wc -l) 51 | ;; 52 | 53 | "dpkg" ) 54 | packages=$(dpkg-query -l | wc -l) 55 | ;; 56 | 57 | "" ) 58 | packages="Unknown" 59 | ;; 60 | esac 61 | } 62 | 63 | function getShell() { 64 | shell="$(basename $SHELL)" 65 | } 66 | 67 | function getUptime() { 68 | uptime="$(uptime --pretty | sed 's/up//')" 69 | } 70 | 71 | function getMemoryUsage() { 72 | #memory="$(free --mega | sed -n -E '2s/^[^0-9]*([0-9]+) *([0-9]+).*/'"${space}"'\2 \/ \1MB/p')" 73 | _MEM="Mem:" 74 | _GREP_ONE_ROW="$(free --mega | grep "${_MEM}")" 75 | _TOTAL="$(echo ${_GREP_ONE_ROW} | awk '{print $2}')" 76 | _USED="$(echo ${_GREP_ONE_ROW} | awk '{print $3}')" 77 | 78 | memory="${_USED}MB / ${_TOTAL}MB" 79 | } 80 | 81 | function getDiskUsage() { 82 | _MOUNTED_ON="/data" 83 | _GREP_ONE_ROW="$(df -h | grep ${_MOUNTED_ON})" 84 | _SIZE="$(echo ${_GREP_ONE_ROW} | awk '{print $2}')" 85 | _USED="$(echo ${_GREP_ONE_ROW} | awk '{print $3}')" 86 | _AVAIL="$(echo ${_GREP_ONE_ROW} | awk '{print $4}')" 87 | _USE="$(echo ${_GREP_ONE_ROW} | awk '{print $5}' | sed 's/%//')" 88 | _MOUNTED="$(echo ${_GREP_ONE_ROW} | awk '{print $6}')" 89 | 90 | storage="${_USED}B / ${_SIZE}B = ${_AVAIL}B (${_USE}%)" 91 | } 92 | 93 | function main() { 94 | getCodeName 95 | getClientBase 96 | getModel 97 | getDistro 98 | getKernel 99 | getTotalPackages 100 | getShell 101 | getUptime 102 | getMemoryUsage 103 | getDiskUsage 104 | } 105 | 106 | main 107 | 108 | echo -e "\n\n" 109 | echo -e " ┏━━━━━━━━━━━━━━━━━━━━━━┓" 110 | echo -e " ┃ ${c1}r${c2}x${c7}f${c4}e${c5}t${c6}${c7}c${c1}h${c0} ${c5}${c0} ${c6}${c0} ${c7}${c0} ┃ ${codename}${c5}@${c0}${client_base}" 111 | echo -e " ┣━━━━━━━━━━━━━━━━━━━━━━┫" 112 | echo -e " ┃ ┃ ${c1}phone${c0} ${model}" 113 | echo -e " ┃ ${c3}•${c8}_${c3}•${c0} ┃ ${c2}os${c0} ${os}" 114 | echo -e " ┃ ${c8}${c0}${c9}oo${c0}${c8}|${c0} ┃ ${c7}ker${c0} ${kernel}" 115 | echo -e " ┃ ${c8}/${c0}${c10} ${c0}${c8}'\'${c0} ┃ ${c4}pkgs${c0} ${packages}" 116 | echo -e " ┃ ${c9}(${c0}${c8}\_;/${c0}${c9})${c0} ┃ ${c5}sh${c0} ${shell}" 117 | echo -e " ┃ ┃ ${c6}up${c0} ${uptime}" 118 | echo -e " ┃ android ${c1}${c0} termux ┃ ${c1}ram${c0} ${memory}" 119 | echo -e " ┃ ┃ ${c2}disk${c0} ${storage}" 120 | echo -e " ┗━━━━━━━━━━━━━━━━━━━━━━┛ ${c1}━━━${c2}━━━${c3}━━━${c4}━━━${c5}━━━${c6}━━━${c7}━━━" 121 | echo -e "\n\n" 122 | 123 | #echo -e " •_• " 124 | #echo -e " oo| " 125 | #echo -e " / '\'" 126 | #echo -e " (\_;/)" 127 | 128 | 129 | -------------------------------------------------------------------------------- /.local/bin/ytdl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | based="\e[39m" 4 | danger="\e[91m" 5 | warning="\e[93m" 6 | success="\e[92m" 7 | paramerror="\n[\e[93mERROR$based] >$danger Unknown" 8 | paramlist="\n[\e[93mPARAMLIST$based] >$success " 9 | dir=`cd $(dirname $0); pwd` 10 | 11 | function helpall() { 12 | 13 | echo -e "$paramerror $1 '$2'$based" 14 | help 15 | echo "" 16 | read -n 1 -s -r -p "Press any key to exit " 17 | exit 1 18 | 19 | } 20 | 21 | function handle_ctrl_c() { 22 | 23 | echo -e " 24 | \n[\e[93mERROR$based] >$danger $1" 25 | echo -e "$based" 26 | read -n 1 -s -r -p "Press any key to exit " 27 | exit 1 28 | 29 | } 30 | 31 | # ytdl function 32 | function ytdl() { 33 | 34 | syntax="youtube-dl" 35 | paramcode="-F" 36 | paramdowncode="-f" 37 | best="bestvideo+bestaudio --merge-output-format mp4" 38 | fcwebm="248" 39 | fcaudio="251" 40 | fcmp4="22" 41 | fcmp3="--extract-audio --audio-format mp3" 42 | 43 | # ytdl Case 44 | case "$1" in 45 | 46 | best ) 47 | $syntax $paramdowncode $best $2 48 | ;; 49 | 50 | webm ) 51 | $syntax $paramdowncode $fcwebm $2 52 | ;; 53 | 54 | audio ) 55 | $syntax $paramdowncode $fcaudio $2 56 | ;; 57 | 58 | mp4 ) 59 | $syntax $paramdowncode $fcmp4 $2 60 | ;; 61 | 62 | mp3 ) 63 | $syntax $fcmp3 $2 64 | ;; 65 | 66 | format ) 67 | $syntax $paramcode $2 68 | echo "" 69 | read -p $'[\e[93mASK\e[0m] > Input the format code to specify download: ' fcode 70 | echo -e "Downloading...\n" 71 | $syntax $paramdowncode $fcode $2 72 | ;; 73 | 74 | * ) 75 | helpall Parameter $1 76 | ;; 77 | 78 | esac 79 | } 80 | 81 | # Function Help 82 | function help() { 83 | 84 | echo -e "\nusage: bash $dir/ytdl [parameter1] [parameter2] 85 | ${paramlist} • [webm] [link] > ${based}to Download Video with format webm 86 | ${success}• [audio] [link] > ${based}to Download Video with format audio only (webm) 87 | ${success}• [mp3] [link] > ${based}to Downlaod Audio only format mp3 88 | ${success}• [mp4] [link] > ${based}to Download Video with format mp4 89 | ${success}• [format] [link] > ${based}to print the format code 90 | ${success}• [best] [link] > ${based}to Download Video + Audio (Merge) with bestvideo + bestaudio 91 | ${success}• [help] > ${based}to print this help" 92 | 93 | } 94 | 95 | # Main case 96 | case "$1" in 97 | 98 | best ) 99 | ytdl best $2 100 | ;; 101 | 102 | webm ) 103 | ytdl webm $2 104 | ;; 105 | 106 | audio ) 107 | ytdl audio $2 108 | ;; 109 | 110 | mp4 ) 111 | ytdl mp4 $2 112 | ;; 113 | 114 | mp3 ) 115 | ytdl mp3 $2 116 | ;; 117 | 118 | format ) 119 | ytdl format $2 120 | ;; 121 | 122 | help ) 123 | help 124 | ;; 125 | 126 | "" ) 127 | helpall Parameter $1 128 | ;; 129 | 130 | * ) 131 | helpall Parameter $1 132 | ;; 133 | 134 | esac 135 | -------------------------------------------------------------------------------- /.oh-my-zsh/custom/themes/ar-round.zsh-theme: -------------------------------------------------------------------------------- 1 | # Ar-Round minimal zsh theme 2 | # Author: owl4ce 3 | # ---------------------------------- 4 | # https://github.com/owl4ce/dotfiles 5 | # Requires Nerd Fonts for the icons 6 | 7 | if [[ $EUID -eq 0 ]]; then 8 | user_symbol="%F{1}%f" 9 | else 10 | user_symbol="%F{5}%f" 11 | fi 12 | 13 | # Configuration 14 | num_dirs=2 # Use 0 for full path 15 | dir_path="%F{0}%K{0}%F{white}%$num_dirs~ %K{8} %F{4}%{%k%}%F{8}%f" 16 | background_jobs="%(1j.%F{2}%f.)" 17 | non_zero_return_value="%(0?..%F{1}%f)" 18 | 19 | # Left part of prompt 20 | PROMPT='$(git_prompt_info) $user_symbol ' 21 | # Right part of prompt 22 | RPROMPT=' $background_jobs $non_zero_return_value $dir_path' 23 | # Input in bold 24 | zle_highlight=(default:bold) 25 | 26 | ZSH_THEME_GIT_PROMPT_PREFIX="%F{8}%K{8}%F{4} %K{0} %F{white}" 27 | ZSH_THEME_GIT_PROMPT_SUFFIX="%{%k%}%F{0}%f" 28 | ZSH_THEME_GIT_PROMPT_DIRTY="%F{1}*%f" 29 | ZSH_THEME_GIT_PROMPT_CLEAN="" 30 | -------------------------------------------------------------------------------- /.oh-my-zsh/custom/themes/archcraft.zsh-theme: -------------------------------------------------------------------------------- 1 | # Default OMZ theme for Archcraft 2 | 3 | if [[ "$USER" == "root" ]]; then 4 | PROMPT="%(?:%{$fg_bold[red]%}%{$fg_bold[green]%}%{$fg_bold[yellow]%} :%{$fg_bold[red]%} )" 5 | PROMPT+='%{$fg[cyan]%} %c%{$reset_color%} $(git_prompt_info)' 6 | else 7 | PROMPT="%(?:%{$fg_bold[red]%}● %{$fg_bold[yellow]%}● %{$fg_bold[green]%}● :%{$fg_bold[red]%}● ● ● )" 8 | PROMPT+='%{$fg[cyan]%} %c%{$reset_color%} $(git_prompt_info)' 9 | fi 10 | 11 | ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%} git:(%{$fg[red]%}" 12 | ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " 13 | ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗" 14 | ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" 15 | -------------------------------------------------------------------------------- /.oh-my-zsh/custom/themes/la-round.zsh-theme: -------------------------------------------------------------------------------- 1 | # La-Round minimal zsh theme 2 | # Author: owl4ce 3 | # ---------------------------------- 4 | # https://github.com/owl4ce/dotfiles 5 | # Requires Nerd Fonts for the icons 6 | 7 | if [[ $EUID -eq 0 ]]; then 8 | user_symbol="%F{1}%Bλ%b%f" 9 | else 10 | user_symbol="%F{5}%Bλ%b%f" 11 | fi 12 | 13 | # Configuration 14 | num_dirs=2 # Use 0 for full path 15 | dir_path="%F{0}%K{0}%F{white}%$num_dirs~ %K{8} %F{4}%{%k%}%F{8}%f" 16 | background_jobs="%(1j.%F{2}%f.)" 17 | non_zero_return_value="%(0?..%F{1}%f)" 18 | 19 | # Left part of prompt 20 | PROMPT='$(git_prompt_info) $user_symbol ' 21 | # Right part of prompt 22 | RPROMPT=' $background_jobs $non_zero_return_value $dir_path' 23 | # Input in bold 24 | zle_highlight=(default:bold) 25 | 26 | ZSH_THEME_GIT_PROMPT_PREFIX="%F{8}%K{8}%F{4} %K{0} %F{white}" 27 | ZSH_THEME_GIT_PROMPT_SUFFIX="%{%k%}%F{0}%f" 28 | ZSH_THEME_GIT_PROMPT_DIRTY="%F{1}*%f" 29 | ZSH_THEME_GIT_PROMPT_CLEAN="" 30 | -------------------------------------------------------------------------------- /.oh-my-zsh/custom/themes/ma.zsh-theme: -------------------------------------------------------------------------------- 1 | local ret_status="%(?:%{$fg_bold[green]%}%{%G➜%} :%{$fg_bold[red]%}%{%G➜%} )" 2 | PROMPT='${ret_status} %{$fg_bold[magenta]%}%n%{$reset_color%}%{$FG[146]%}@%{$reset_color%}%{$fg_bold[green]%}%m%{$reset_color%} %{$fg_bold[cyan]%}%~%{$reset_color%} $(git_prompt_info)' 3 | 4 | ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}" 5 | ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " 6 | ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}%{%G✗%}" 7 | ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" 8 | 9 | -------------------------------------------------------------------------------- /.oh-my-zsh/custom/themes/osx.zsh-theme: -------------------------------------------------------------------------------- 1 | # Default OMZ theme for Archcraft 2 | 3 | if [[ "$USER" == "root" ]]; then 4 | PROMPT="%(?:%{$fg_bold[red]%}%{$fg_bold[green]%}%{$fg_bold[yellow]%} :%{$fg_bold[red]%} )" 5 | PROMPT+='%{$fg[cyan]%} %c%{$reset_color%} $(git_prompt_info)' 6 | else 7 | PROMPT="%F{8}%K{8}%(?:%{$fg_bold[red]%}● %{$fg_bold[yellow]%}● %{$fg_bold[green]%}●%{%k%}%F{8}%f :%{$fg_bold[red]%}%{%k%}%F{8}%f )" 8 | #PROMPT+='%{$fg[cyan]%} %c%{$reset_color%} $(git_prompt_info)' 9 | fi 10 | 11 | NUM_DIR=2 12 | DIR_PATH="%F{8}%K{8} %F{7} %F{7}%$NUM_DIR~ %{%k%}%F{8}" 13 | background_jobs="%(1j.%F{8}%K{8} %F{3} %{%k%}%F{8}%f.)" 14 | non_zero_return_value="%(0?..%F{8}%K{8} %F{1} %{%k%}%F{8}%f)" 15 | 16 | ZSH_THEME_GIT_PROMPT_PREFIX="%F{8}%K{8} %F{7} %K{8} " 17 | ZSH_THEME_GIT_PROMPT_SUFFIX=" %{%k%}%F{8} %{$reset_color%} " 18 | ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}  " 19 | 20 | RPROMPT='$DIR_PATH $(git_prompt_info) $background_jobs' 21 | -------------------------------------------------------------------------------- /.oh-my-zsh/custom/themes/osx2.zsh-theme: -------------------------------------------------------------------------------- 1 | # Default OMZ theme for Archcraft 2 | 3 | if [[ "$USER" == "root" ]]; then 4 | PROMPT="%(?:%{$fg_bold[red]%}%{$fg_bold[green]%}%{$fg_bold[yellow]%} :%{$fg_bold[red]%} )" 5 | PROMPT+='%{$fg[cyan]%} %c%{$reset_color%} $(git_prompt_info)' 6 | else 7 | PROMPT="%F{8}%K{8}%(?:%{$fg_bold[red]%}● %{$fg_bold[yellow]%}● %{$fg_bold[green]%}●%{%k%}%F{8}%f :%{$fg_bold[red]%}%{%k%}%F{8}%f )" 8 | #PROMPT+='%{$fg[cyan]%} %c%{$reset_color%} $(git_prompt_info)' 9 | fi 10 | 11 | NUM_DIR=2 12 | DIR_PATH="%F{8}%K{8} %F{7} %F{7}%$NUM_DIR~ %{%k%}%F{8}" 13 | background_jobs="%(1j.%F{8}%K{8} %F{3} %{%k%}%F{8}%f.)" 14 | non_zero_return_value="%(0?..%F{8}%K{8} %F{1} %{%k%}%F{8}%f)" 15 | 16 | ZSH_THEME_GIT_PROMPT_PREFIX="%F{8}%K{8} %F{7} %K{8} " 17 | ZSH_THEME_GIT_PROMPT_SUFFIX=" %{%k%}%F{8} %{$reset_color%} " 18 | ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}  " 19 | 20 | RPROMPT='$DIR_PATH $(git_prompt_info) $background_jobs' 21 | -------------------------------------------------------------------------------- /.oh-my-zsh/custom/themes/rounded-custom.zsh-theme: -------------------------------------------------------------------------------- 1 | # Rounded minimal zsh theme 2 | # Creator: owl4ce 3 | # ---------------------------------- 4 | # https://github.com/owl4ce/dotfiles 5 | # Requires Nerd Fonts for the icons 6 | 7 | #if [[ $UID -eq 0 ]]; then 8 | # user_symbol="%F{8}%K{8}%F{1}%{%k%}%F{8}%f" 9 | #else 10 | # user_symbol="%F{8}%K{8}%F{5}%{%k%}%F{8}%f" 11 | #fi 12 | 13 | #       14 | 15 | # Configuration 16 | num_dirs=2 # Use 0 for full path 17 | truncated_path="%F{7}%K{7} %F{0} %K{7} %F{0}%$num_dirs~ %{%k%}%F{7}" 18 | background_jobs="%(1j.%F{0}%K{0} %F{3} %{%k%}%F{0}%f.)" 19 | non_zero_return_value="%(0?..%F{7}%K{7} %F{1} %{%k%}%F{7}%f)" 20 | 21 | ZSH_THEME_GIT_PROMPT_PREFIX="%F{7}%K{7} %F{0} %K{7} " 22 | ZSH_THEME_GIT_PROMPT_SUFFIX=" %{%k%}%F{7} %{$reset_color%} " 23 | ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%} " 24 | 25 | # Left part of prompt 26 | PROMPT='$truncated_path $user_symbol' 27 | # Right part of prompt 28 | RPROMPT=' $background_jobs $non_zero_return_value $(git_prompt_info)' 29 | # Input in bold 30 | zle_highlight=(default:bold) 31 | -------------------------------------------------------------------------------- /.oh-my-zsh/custom/themes/rounded.zsh-theme: -------------------------------------------------------------------------------- 1 | # Rounded minimal zsh theme 2 | # Creator: owl4ce 3 | # ---------------------------------- 4 | # https://github.com/owl4ce/dotfiles 5 | # Requires Nerd Fonts for the icons 6 | 7 | if [[ $UID -eq 0 ]]; then 8 | user_symbol="%F{8}%K{8}%F{1}%{%k%}%F{8}%f" 9 | else 10 | user_symbol="%F{8}%K{8}%F{5}%{%k%}%F{8}%f" 11 | fi 12 | 13 | # Configuration 14 | num_dirs=2 # Use 0 for full path 15 | truncated_path="%F{8}%K{8}%F{4} %K{0} %F{white}%$num_dirs~%{%k%}%F{0}%f" 16 | background_jobs="%(1j.%F{0}%K{0}%F{3}%{%k%}%F{0}%f.)" 17 | non_zero_return_value="%(0?..%F{0}%K{0}%F{1}%{%k%}%F{0}%f)" 18 | 19 | # Left part of prompt 20 | PROMPT='$truncated_path $user_symbol ' 21 | # Right part of prompt 22 | RPROMPT=' $background_jobs $non_zero_return_value' 23 | # Input in bold 24 | zle_highlight=(default:bold) 25 | -------------------------------------------------------------------------------- /.oh-my-zsh/custom/themes/simple.zsh-theme: -------------------------------------------------------------------------------- 1 | if [[ $EUID -eq 0 ]]; then 2 | USER_SYMBOL="%F{1}%f" 3 | else 4 | USER_SYMBOL="%F{5}%f" 5 | fi 6 | 7 | NUM_DIR=2 8 | DIR_PATH="%{$fg_bold[blue]%}  [ %{$fg[red]%}%$NUM_DIR~ %{$fg_bold[blue]%}]" 9 | 10 | BACKGROUND_JOBS="%(1j.%F{2}%f.)" 11 | NON_ZERO_RETURN_VALUE="%(0?..%F{1}%f)" 12 | 13 | RPROMPT='$BACKGROUND_JOBS $NON_ZERO_RETURN_VALUE $(git_prompt_info)' 14 | PROMPT='$DIR_PATH $USER_SYMBOL ' 15 | zle_highlight=(default:bold) 16 | 17 | ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%} [ %{$fg[red]%}" 18 | ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " 19 | ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%} ] %{$fg[yellow]%}✗" 20 | ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%} ]" 21 | -------------------------------------------------------------------------------- /.scripts/colorscheme/colors.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | LIBRARYS=( 4 | animation signal cursor colors stat 5 | ) 6 | 7 | LIBRARY_PATH="${HOME}/.scripts/library" 8 | 9 | for LIBRARY in ${LIBRARYS[@]}; do 10 | source ${LIBRARY_PATH}/${LIBRARY}.sh 11 | done 12 | 13 | COLORSCHEMES_DIR="$HOME/.colorscheme" 14 | INDEX_LOOP=0 15 | 16 | THEME_USED_PATH="${HOME}/.config/mytermux/colorscheme" 17 | THEME_USED_FILE_NAME="used.log" 18 | THEME_USED="$(cat ${THEME_USED_PATH}/${THEME_USED_FILE_NAME})" 19 | 20 | TERMUX_CONFIGURATION_PATH="${HOME}/.termux" 21 | TERMUX_CONFIGURATION_COLOR_FILE_NAME="colors.properties" 22 | 23 | function banner() { 24 | echo -e " 25 | \e[3$(( $RANDOM * 6 / 32767 + 1 ))m _______ _ _ 26 | \e[9$(( $RANDOM * 6 / 32767 + 1 ))m(_______) | | | | 27 | \e[3$(( $RANDOM * 6 / 32767 + 1 ))m _ ___ | | ___ ____ ___ ____| |__ _____ ____ _____ 28 | \e[9$(( $RANDOM * 6 / 32767 + 1 ))m| | / _ \| |/ _ \ / ___)___)/ ___) _ \| ___ | \| ___ | 29 | \e[3$(( $RANDOM * 6 / 32767 + 1 ))m| |____| |_| | | |_| | | |___ ( (___| | | | ____| | | | ____| 30 | \e[9$(( $RANDOM * 6 / 32767 + 1 ))m \______)___/ \_)___/|_| (___/ \____)_| |_|_____)_|_|_|_____) 31 | ${COLOR_BASED}\n" 32 | } 33 | 34 | function listColorScheme() { 35 | 36 | clear 37 | setCursor off 38 | banner 39 | printf " %3s %10s %4s\n\n" "No." "List Color" "Status" 40 | 41 | for COLORSCHEME in ${COLORSCHEMES_DIR}/*; do 42 | 43 | COLORSCHEME_FILE_NAME[INDEX_LOOP]=$( echo ${COLORSCHEME} | awk -F'/' '{print $NF}') 44 | COLORSCHEME_LIST_NAME[INDEX_LOOP]=$( echo ${COLORSCHEME} | awk -F'/' '{print $NF}' | sed "s/.colors//g") 45 | 46 | if [ "${THEME_USED}" == "${COLORSCHEME_FILE_NAME[INDEX_LOOP]}" ]; then 47 | 48 | printf "[${COLOR_SUCCESS}%2s${COLOR_BASED}] ${COLOR_SUCCESS}%-23s -->${COLOR_BASED} \ 49 | ${COLOR_SUCCESS}%-4s${COLOR_BASED}\n" ${INDEX_LOOP} ${COLORSCHEME_LIST_NAME[INDEX_LOOP]} "USED" 50 | 51 | else 52 | 53 | printf "[${COLOR_WARNING}%2s${COLOR_BASED}] %-23s\n" ${INDEX_LOOP} ${COLORSCHEME_LIST_NAME[INDEX_LOOP]} 54 | 55 | fi 56 | 57 | INDEX_LOOP=$(( ${INDEX_LOOP} + 1 )); 58 | 59 | done 60 | 61 | INDEX_LOOP=$(( ${INDEX_LOOP} - 1 )); 62 | 63 | echo "" 64 | 65 | } 66 | 67 | function selectTheme() { 68 | 69 | setCursor on 70 | 71 | while :; do 72 | 73 | read -p "Select theme: " INDEX_THEME 74 | 75 | if [ -z "${INDEX_THEME}" ]; then 76 | 77 | break; 78 | 79 | elif ! [[ ${INDEX_THEME} =~ ^[0-9]+$ ]]; then 80 | 81 | stat "ERROR" "Danger" "Unknown '${COLOR_DANGER}number${COLOR_BASED}', please enter the right number!\n" 82 | 83 | elif (( ${INDEX_THEME} >= 0 && ${INDEX_THEME} <= ${INDEX_LOOP} )); then 84 | 85 | eval CHOICE=${COLORSCHEME_FILE_NAME[INDEX_THEME]} 86 | 87 | start_animation "Applying Theme ..." 88 | sleep 1s 89 | 90 | if cp -fr "${COLORSCHEMES_DIR}/${CHOICE}" "${TERMUX_CONFIGURATION_PATH}/${TERMUX_CONFIGURATION_COLOR_FILE_NAME}"; then 91 | 92 | termux-reload-settings 93 | 94 | if [ ! -f ${THEME_USED_PATH}/${THEME_USED_FILE_NAME} ]; then 95 | 96 | echo -e "${CHOICE}" >> ${THEME_USED_PATH}/${THEME_USED_FILE_NAME} 97 | 98 | elif [ -f ${THEME_USED_PATH}/${THEME_USED_FILE_NAME} ]; then 99 | 100 | sed -i "s/${THEME_USED}/${CHOICE}/g" ${THEME_USED_PATH}/${THEME_USED_FILE_NAME} 101 | 102 | fi 103 | 104 | stop_animation $? || exit 1 105 | 106 | else 107 | 108 | stop_animation $? 109 | 110 | fi 111 | 112 | break 113 | 114 | else 115 | 116 | stat "ERROR" "Danger" "Unknown '${COLOR_DANGER}number${COLOR_BASED}', please enter the right number!\n" 117 | 118 | fi 119 | 120 | done 121 | 122 | } 123 | 124 | function main() { 125 | 126 | trap 'handleInterruptByUser "Interrupt by User"' 2 127 | 128 | listColorScheme 129 | selectTheme 130 | 131 | } 132 | 133 | main 134 | -------------------------------------------------------------------------------- /.scripts/fonts/fonts.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | LIBRARYS=( 4 | animation signal cursor colors stat 5 | ) 6 | 7 | LIBRARY_PATH="${HOME}/.scripts/library" 8 | 9 | for LIBRARY in ${LIBRARYS[@]}; do 10 | source ${LIBRARY_PATH}/${LIBRARY}.sh 11 | done 12 | 13 | FONTS_DIR="${HOME}/.fonts" 14 | INDEX_LOOP=0 15 | 16 | FONT_USED_PATH="${HOME}/.config/mytermux/fonts" 17 | FONT_USED_FILE_NAME="used.log" 18 | FONT_USED="$(cat ${FONT_USED_PATH}/${FONT_USED_FILE_NAME})" 19 | 20 | TERMUX_CONFIGURATION_PATH="${HOME}/.termux" 21 | TERMUX_CONFIGURATION_FONT_FILE_NAME="font.ttf" 22 | 23 | function banner() { 24 | 25 | echo -e " 26 | \e[3$(( $RANDOM * 6 / 32767 + 1 ))m _______ 27 | \e[3$(( $RANDOM * 6 / 32767 + 1 ))m(_______) _ 28 | \e[3$(( $RANDOM * 6 / 32767 + 1 ))m _____ ___ ____ _| |_ ___ 29 | \e[3$(( $RANDOM * 6 / 32767 + 1 ))m| ___) _ \| _ (_ _)/___) 30 | \e[3$(( $RANDOM * 6 / 32767 + 1 ))m| | | |_| | | | || |_|___ | 31 | \e[3$(( $RANDOM * 6 / 32767 + 1 ))m|_| \___/|_| |_| \__|___/ 32 | ${COLOR_BASED}\n" 33 | 34 | } 35 | 36 | function listFonts() { 37 | 38 | clear 39 | setCursor off 40 | banner 41 | printf " %3s %9s %4s\n\n" "No." "List Font" "Status" 42 | 43 | for FONT in ${FONTS_DIR}/{*.ttf,*.otf}; do 44 | 45 | FONT_FILE_NAME[INDEX_LOOP]=$( echo ${FONT} | awk -F'/' '{print $NF}') 46 | FONT_LIST_NAME[INDEX_LOOP]=$( echo ${FONT} | awk -F'/' '{print $NF}' | sed "s/.ttf//g" | sed "s/.otf//g") 47 | 48 | if [ "${FONT_USED}" == "${FONT_FILE_NAME[INDEX_LOOP]}" ]; then 49 | 50 | printf "[${COLOR_SUCCESS}%2s${COLOR_BASED}] ${COLOR_SUCCESS}%b %-s %b %b % b %b${COLOR_BASED} ${COLOR_SUCCESS}%-4s${COLOR_BASED}\n" ${INDEX_LOOP} ${FONT_LIST_NAME[INDEX_LOOP]} "--> USED" 51 | 52 | else 53 | 54 | echo -e "[ ${COLOR_WARNING}${INDEX_LOOP}${COLOR_BASED}] ${FONT_LIST_NAME[INDEX_LOOP]}" 55 | 56 | fi 57 | 58 | INDEX_LOOP=$(( ${INDEX_LOOP} + 1 )); 59 | 60 | done 61 | 62 | INDEX_LOOP=$(( ${INDEX_LOOP} - 1 )); 63 | 64 | echo "" 65 | 66 | } 67 | 68 | function selectFont() { 69 | 70 | setCursor on 71 | 72 | while :; do 73 | 74 | read -p "Select font: " INDEX_FONT 75 | 76 | if [ -z "${INDEX_FONT}" ]; then 77 | 78 | break; 79 | 80 | elif ! [[ ${INDEX_FONT} =~ ^[0-9]+$ ]]; then 81 | 82 | stat "ERROR" "Danger" "Unknown '${COLOR_DANGER}number${COLOR_BASED}', please enter the right number!\n" 83 | 84 | elif (( ${INDEX_FONT} >= 0 && ${INDEX_FONT} <= ${INDEX_LOOP} )); then 85 | 86 | start_animation "Applying Font ..." 87 | sleep 1s 88 | 89 | if cp -fr "${FONTS_DIR}/${FONT_FILE_NAME[INDEX_FONT]}" "${TERMUX_CONFIGURATION_PATH}/${TERMUX_CONFIGURATION_FONT_FILE_NAME}"; then 90 | 91 | termux-reload-settings 92 | 93 | if [ ! -f ${FONT_USED_PATH}/${FONT_USED_FILE_NAME} ]; then 94 | 95 | echo -e "${FONT_FILE_NAME[INDEX_FONT]}" >> ${FONT_USED_PATH}/${FONT_USED_FILE_NAME} 96 | 97 | elif [ -f ${FONT_USED_PATH}/${FONT_USED_FILE_NAME} ]; then 98 | 99 | sed -i "s/${FONT_USED}/${FONT_FILE_NAME[INDEX_FONT]}/g" ${FONT_USED_PATH}/${FONT_USED_FILE_NAME} 100 | 101 | fi 102 | 103 | stop_animation $? || exit 1 104 | 105 | else 106 | 107 | stop_animation $? 108 | 109 | fi 110 | 111 | break 112 | 113 | else 114 | 115 | stat "ERROR" "Danger" "Unknown '${COLOR_DANGER}number${COLOR_BASED}', please enter the right number!\n" 116 | 117 | fi 118 | 119 | done 120 | 121 | } 122 | 123 | function main() { 124 | 125 | trap 'handleInterruptByUser "Interrupt by User"' 2 126 | 127 | listFonts 128 | selectFont 129 | 130 | } 131 | 132 | main 133 | -------------------------------------------------------------------------------- /.scripts/js/install.sh: -------------------------------------------------------------------------------- 1 | pkg i -y nodejs 2 | npm install node-fetch 3 | npm install chalk 4 | -------------------------------------------------------------------------------- /.scripts/js/repochecker.js: -------------------------------------------------------------------------------- 1 | const readline = require("readline"); 2 | const rl = readline.createInterface({ 3 | input: process.stdin, 4 | output: process.stdout 5 | }); 6 | const fetch = require('node-fetch'); 7 | const chalk = require('chalk'); 8 | 9 | const api_url = "https://api.github.com/users" 10 | 11 | rl.question("Username GitHub: ", function (username) { 12 | fetch(`${api_url}/${username}`) 13 | .then(result => result.json()) 14 | .then(json => console.log(informationUser(json))); 15 | fetch(`${api_url}/${username}/repos`) 16 | .then(results => results.json()) 17 | .then(results => { 18 | results.forEach(result => { console.log(informationRepository(result)) }); 19 | }); 20 | rl.close(); 21 | }); 22 | 23 | function informationUser(data) { 24 | return ` 25 | ╭─────────────────────────╮ 26 | ┃ Information User ┃ 27 | ╰─────────────────────────╯ 28 | 29 | ${chalk.blue(' Username')} : ${data.login ? data.login : 'Empty'} 30 | ${chalk.blue(' Name')} : ${data.name ? data.name : 'Empty'} 31 | ${chalk.red(' Location')} : ${data.location ? data.location : 'Empty'} 32 | ${chalk.red(' Followers')} : ${data.followers} 33 | ${chalk.blue(' Following')} : ${data.following} 34 |  Bio : ${data.bio ? `${data.bio}` : 'Empty'} 35 | ${chalk.yellow(' Public Repository')} : ${data.public_repos ? data.public_repos : 'Empty'} 36 | ${chalk.blue(' Twitter')} : ${data.twitter_username ? data.twitter_username : 'Empty'} 37 |  Email : ${data.email ? data.email : 'Empty'} 38 | ` 39 | } 40 | 41 | function informationRepository(data) { 42 | return ` 43 | ╭───────────────────────────────╮ 44 | ┃ Information Repository ┃ 45 | ╰───────────────────────────────╯ 46 | 47 | ${chalk.blue(' Repository Name')} : ${data.name} 48 | ${chalk.yellow(' Repository Full Name')} : ${data.full_name} 49 | ${chalk.green(' Private')} : ${data.private} 50 | ${chalk.green(' Owner')} : ${data.owner.login} 51 | ${chalk.magenta(' Created at')} : ${data.created_at} 52 | ${chalk.yellow(' Updated at')} : ${data.updated_at} 53 | ${chalk.yellow(' Description')} : ${data.description ? data.description : 'No Description'} 54 | ${chalk.red(' Issues')} : ${chalk.red(data.open_issues)} 55 | ${chalk.yellow(' Stars')} : ${chalk.yellow(data.stargazers_count)} 56 | ${chalk.blue(' Forks')} : ${data.forks} 57 | ${chalk.green(' Watcher')} : ${data.watchers_count} 58 | ${chalk.magenta(' Highest Language')} : ${language(data.language)} 59 | ${chalk.yellow(' License')} : ${data.license ? data.license.name : 'No License'} 60 | ${chalk.red('𢡄 Size')} : ${Math.floor(data.size / 1024)} MB 61 | ` 62 | } 63 | 64 | function language(language) { 65 | if (language == "Lua") { 66 | return `${chalk.blue(' Lua')}` 67 | } else if (language == "Shell") { 68 | return `${chalk.white(' Shell')}` 69 | } else if (language == "JavaScript") { 70 | return `${chalk.yellow(' JavaScript')}` 71 | } else if (language == "HTML") { 72 | return `${chalk.red(' HTML')}` 73 | } else if (language == "CSS") { 74 | return `${chalk.blue(' CSS')}` 75 | } else if (language == "Python") { 76 | return `${chalk.blue(' Python')}` 77 | } else if (language == "Rust") { 78 | return `${chalk.red(' Rust')}` 79 | } else if (language == "C") { 80 | return `${chalk.blue(' C')}` 81 | } else if (language == "C++") { 82 | return `${chalk.blue(' C++')}` 83 | } else if (language == "Elixir") { 84 | return `${chalk.magenta(' Elixir')}` 85 | } else if (language == "PHP") { 86 | return `${chalk.blue(' PHP')}` 87 | } else if (language == "TypeScript") { 88 | return `${chalk.blue(' TypeScript')}` 89 | } else if (language == "Vim script") { 90 | return `${chalk.green(' Vim script')}` 91 | } 92 | else { 93 | return "Can't detect Language" 94 | } 95 | } 96 | -------------------------------------------------------------------------------- /.scripts/library/animation.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Credits: 4 | # Bash Spinner : https://github.com/tlatsas/bash-spinner 5 | # WhiteSur-GTK-Theme (Line 148-217) : https://github.com/vinceliuice/WhiteSur-gtk-theme/blob/master/lib-core.sh 6 | 7 | # Author: xShin 8 | # 9 | # Display awesome looping loading 10 | # 11 | # Usage: 12 | # 1. Source this file on your shell script 13 | # 2. Start the animation: 14 | # start_ghost "[parameter1]" -> this parameter will display your message 15 | # 3. Run your command 16 | # 4. stop_ghost "[parameter1]" -> this parameter your command's exit status 17 | # 18 | # Also see: test.sh 19 | 20 | export COLOR_DEFAULT="\033[0m" 21 | export COLOR_BLUE="\033[1;34m" 22 | export COLOR_MAGENTA="\033[1;35m" 23 | export COLOR_CYAN="\033[1;36m" 24 | export COLOR_GREEN="\033[1;32m" 25 | export COLOR_RED="\033[1;31m" 26 | export COLOR_YELLOW="\033[1;33m" 27 | 28 | ICON="● " #  • 29 | OK="SUCCESS" 30 | NO="FAILED" 31 | 32 | ARRAY_ANIMATION=( 33 | "${COLOR_BLUE}${ICON}${COLOR_GREEN}${ICON}${COLOR_YELLOW}${ICON}${COLOR_RED}${ICON}${COLOR_MAGENTA}${ICON} " 34 | " ${COLOR_GREEN}${ICON}${COLOR_YELLOW}${ICON}${COLOR_RED}${ICON}${COLOR_MAGENTA}${ICON}${COLOR_BLUE}${ICON} " 35 | " ${COLOR_RED}${ICON}${COLOR_MAGENTA}${ICON}${COLOR_YELLOW}${ICON}${COLOR_BLUE}${ICON}${COLOR_GREEN}${ICON} " 36 | " ${COLOR_MAGENTA}${ICON}${COLOR_BLUE}${ICON}${COLOR_GREEN}${COLOR_YELLOW}${ICON}${ICON}${COLOR_RED}${ICON} " 37 | " ${COLOR_BLUE}${ICON}${COLOR_GREEN}${ICON}${COLOR_RED}${ICON}${COLOR_YELLOW}${ICON}${COLOR_MAGENTA}${ICON}" 38 | ) 39 | 40 | function animation() { 41 | 42 | case $1 in 43 | 44 | start ) 45 | 46 | # let column=$(tput cols)-${#2}-8 47 | let column=$(echo $COLUMNS)-${#2}-8 48 | 49 | printf "%${column}s" 50 | 51 | while true; do 52 | for i in {0..4}; do 53 | printf "\b\r\033[2K${2} ${ARRAY_ANIMATION[i]}" 54 | sleep 0.12 55 | done 56 | for i in {4..0}; do 57 | printf "\b\r\033[2K${2} ${ARRAY_ANIMATION[i]}" 58 | sleep 0.12 59 | done 60 | done 61 | 62 | ;; 63 | 64 | stop ) 65 | 66 | if [[ -z ${3} ]]; then 67 | echo "Animation not running" 68 | exit 1 69 | fi 70 | 71 | kill ${3} > /dev/null 2>&1 72 | 73 | echo -en "\b${COLOR_DEFAULT} --> [" 74 | 75 | if [[ $2 -eq 0 ]]; then 76 | echo -en " ${COLOR_GREEN}${OK}${COLOR_DEFAULT} " 77 | else 78 | echo -en " ${COLOR_RED}${NO}${COLOR_DEFAULT} " 79 | fi 80 | 81 | echo -e "${COLOR_DEFAULT}]" 82 | 83 | ;; 84 | 85 | * ) 86 | 87 | echo "invalid argument, try again with {start/stop}" 88 | exit 1 89 | 90 | ;; 91 | 92 | 93 | esac 94 | } 95 | 96 | function start_animation() { 97 | 98 | setCursor off 99 | animation "start" "${1}" & 100 | animation_pid=${!} 101 | disown 102 | 103 | } 104 | 105 | function stop_animation() { 106 | 107 | animation "stop" $1 $animation_pid 108 | unset $animation_pid 109 | setCursor on 110 | 111 | } 112 | -------------------------------------------------------------------------------- /.scripts/library/colors.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | COLOR_BASED="\e[39m" 4 | COLOR_DANGER="\e[91m" 5 | COLOR_WARNING="\e[93m" 6 | COLOR_SUCCESS="\e[92m" 7 | COLOR_SKY="\e[34m" 8 | 9 | COLOR_DEFAULT="\e[39m" 10 | COLOR_RESET="\033[0m" 11 | 12 | COLOR_WHITE="\e[97m" 13 | COLOR_BLACK="\e[30m" 14 | 15 | COLOR_RED="\e[31m" 16 | COLOR_GREEN="\e[32m" 17 | COLOR_YELLOW="\e[33m" 18 | COLOR_BLUE="\e[34m" 19 | COLOR_MAGENTA="\e[35m" 20 | COLOR_CYAN="\e[36m" 21 | 22 | COLOR_LIGHT_GRAY="\e[37m" 23 | COLOR_DARK_GRAY="\e[90m" 24 | COLOR_LIGHT_RED="\e[91m" 25 | COLOR_LIGHT_GREEN="\e[92m" 26 | COLOR_LIGHT_YELLOW="\e[93m" 27 | COLOR_LIGHT_BLUE="\e[94m" 28 | COLOR_LIGHT_MAGENTA="\e[95m" 29 | COLOR_LIGHT_CYAN="\e[96m" 30 | 31 | COLOR_BOLD_MAGENTA="\033[1;35m" 32 | COLOR_BOLD_GREEN="\033[1;32m" 33 | COLOR_BOLD_WHITE="\033[1;37m" 34 | COLOR_BOLD_BLUE="\033[1;34m" 35 | COLOR_BOLD_RED="\033[1;31m" 36 | COLOR_BOLD_YELLOW="\033[1;33m" 37 | COLOR_BOLD_CYAN="\033[1;36m" 38 | 39 | COLOR_BACKGROUND_YELLOW="\033[1;43;33m" 40 | COLOR_BACKGROUND_WHITE="\033[1;47;37m" 41 | COLOR_BACKGROUND_BLACK="\033[1;40;30m" -------------------------------------------------------------------------------- /.scripts/library/cursor.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | function setCursor() { 4 | 5 | setterm -cursor ${1} 6 | 7 | } -------------------------------------------------------------------------------- /.scripts/library/screen.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | function screenSize() { 4 | 5 | COLS=$(echo $COLUMNS) 6 | ROWS=$(echo $LINES) 7 | 8 | if [[ -n ${COLS} && -n ${ROWS} ]]; then 9 | 10 | if (( ${COLS} >= 101 & ${ROWS} >= 39 )); then 11 | 12 | ${1} 13 | 14 | else 15 | 16 | echo -e "[ ${COLOR_WARNING}ERROR${COLOR_BASED} ] > Please ${COLOR_WARNING}zoom out${COLOR_BASED} your Terminal Screen!" 17 | 18 | fi 19 | 20 | else 21 | 22 | echo -e "[ ${COLOR_DANGER}ERROR${COLOR_BASED} ] > Please run '${COLOR_WARNING}export COLUMNS LINES${COLOR_BASED}' first and then run again!" 23 | 24 | fi 25 | 26 | } -------------------------------------------------------------------------------- /.scripts/library/signal.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | function handleInterruptByUser() { 4 | 5 | pkill com.termux 6 | 7 | echo -e " 8 | \n[ ${COLOR_WARNING}ERROR${COLOR_BASED} ] > ${COLOR_DANGER}${1}${COLOR_BASED}\n" 9 | 10 | setCursor on 11 | 12 | read -n 1 -s -r -p "Press any key to exit " 13 | 14 | exit 1 15 | 16 | } -------------------------------------------------------------------------------- /.scripts/library/stat.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | function stat() { 4 | 5 | if [ "${2}" == "Success" ]; then 6 | 7 | echo -e "[ ${COLOR_SUCCESS}${1}${COLOR_BASED} ] > ${3}" 8 | 9 | elif [ "${2}" == "Warning" ]; then 10 | 11 | echo -e "[ ${COLOR_WARNING}${1}${COLOR_BASED} ] > ${3}" 12 | 13 | elif [ "${2}" == "Danger" ]; then 14 | 15 | echo -e "[ ${COLOR_DANGER}${1}${COLOR_BASED} ] > ${3}" 16 | 17 | fi 18 | 19 | } -------------------------------------------------------------------------------- /.scripts/library/switchcase.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | function switchCase() { 4 | 5 | setCursor on 6 | 7 | read -p " ${1} ${2}? [Y/n] " SWITCH_CASE 8 | 9 | case "$SWITCH_CASE" in 10 | 11 | "" ) 12 | ${3} 13 | ;; 14 | 15 | y|Y ) 16 | ${3} 17 | ;; 18 | 19 | n|N ) 20 | stat "ERROR" "Warning" "Abort." 21 | ;; 22 | 23 | * ) 24 | stat "ERROR" "Warning" "Unknown '${SWITCH_CASE}'" 25 | switchCase ${1} ${2} ${3} 26 | ;; 27 | 28 | esac 29 | 30 | } -------------------------------------------------------------------------------- /.scripts/notify/ncmpcpp: -------------------------------------------------------------------------------- 1 | #!/data/data/com.termux/files/usr/bin/env bash 2 | 3 | SONG=$(mpc --host=127.0.0.1 --port=8000 current) 4 | 5 | #A8D7FE 6 | termux-toast -b "#F8F9FA" -c "#000000" -g top "♫ Now Playing: ${SONG}" 7 | termux-notification --priority "high" --title "♫ Now Playing: ${SONG}" -------------------------------------------------------------------------------- /.scripts/system/fetch.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | LIBRARYS=( 4 | colors signal stat 5 | ) 6 | 7 | LIBRARY_PATH="${HOME}/.scripts/library" 8 | 9 | for LIBRARY in ${LIBRARYS[@]}; do 10 | source ${LIBRARY_PATH}/${LIBRARY}.sh 11 | done 12 | 13 | function fetchMusic() { 14 | 15 | MPD_HOST=127.0.0.1 # or localhost 16 | MPD_PORT=8000 # Depend your MPD configuration 17 | #MPC_CONNECT_MPD=$(mpc --host=${MPD_HOST} --port=${MPD_PORT} &> /dev/null) 18 | 19 | if mpc --host=${MPD_HOST} --port=${MPD_PORT} &> /dev/null; then 20 | 21 | GET_MUSIC_ARTIST=$(mpc --host=${MPD_HOST} --port=${MPD_PORT} --format '[%artist%]' current 2> /dev/null) 22 | GET_MUSIC_TITLE=$(mpc --host=${MPD_HOST} --port=${MPD_PORT} --format '[%title%]' current 2> /dev/null) 23 | 24 | echo -e "${GET_MUSIC_ARTIST} - ${GET_MUSIC_TITLE}" 25 | 26 | else 27 | 28 | echo -e "Unknown Artist - Unknown Song" 29 | 30 | fi 31 | 32 | } 33 | 34 | function fetchStorage() { 35 | 36 | MOUNTED_ON="/storage/emulated" 37 | GREP_ONE_ROW=$(df -h | grep ${MOUNTED_ON}) 38 | SIZE=$(echo ${GREP_ONE_ROW} | awk '{print $2}') 39 | USED=$(echo ${GREP_ONE_ROW} | awk '{print $3}') 40 | AVAIL=$(echo ${GREP_ONE_ROW} | awk '{print $4}') 41 | USE=$(echo ${GREP_ONE_ROW}} | awk '{print $5}' | sed "s/%//g") 42 | MOUNTED=$(echo ${GREP_ONE_ROW} | awk '{print $6}') 43 | ICON="" 44 | 45 | function execute() { 46 | 47 | if [ ${USE} -ge 0 ] && [ ${USE} -le 10 ]; then 48 | 49 | echo -e "${COLOR_SUCCESS}${ICON}${COLOR_BASED} : ${USED}B / ${SIZE}B = ${AVAIL}B (${USE}%)" 50 | 51 | elif [ ${USE} -ge 11 ] && [ ${USE} -le 20 ]; then 52 | 53 | echo -e "${COLOR_SUCCESS}${ICON}${COLOR_BASED} : ${USED}B / ${SIZE}B = ${AVAIL}B (${USE}%)" 54 | 55 | elif [ ${USE} -ge 21 ] && [ ${USE} -le 30 ]; then 56 | 57 | echo -e "${COLOR_SUCCESS}${ICON}${COLOR_BASED} : ${USED}B / ${SIZE}B = ${AVAIL}B (${USE}%)" 58 | 59 | elif [ ${USE} -ge 31 ] && [ ${USE} -le 40 ]; then 60 | 61 | echo -e "${COLOR_SUCCESS}${ICON}${COLOR_BASED} : ${USED}B / ${SIZE}B = ${AVAIL}B (${USE}%)" 62 | 63 | elif [ ${USE} -ge 41 ] && [ ${USE} -le 50 ]; then 64 | 65 | echo -e "${COLOR_SUCCESS}${ICON}${COLOR_BASED} : ${USED}B / ${SIZE}B = ${AVAIL}B (${USE}%)" 66 | 67 | elif [ ${USE} -ge 51 ] && [ ${USE} -le 60 ]; then 68 | 69 | echo -e "${COLOR_WARNING}${ICON}${COLOR_BASED} : ${USED}B / ${SIZE}B = ${AVAIL}B (${USE}%)" 70 | 71 | elif [ ${USE} -ge 61 ] && [ ${USE} -le 70 ]; then 72 | 73 | echo -e "${COLOR_WARNING}${ICON}${COLOR_BASED} : ${USED}B / ${SIZE}B = ${AVAIL}B (${USE}%)" 74 | 75 | elif [ ${USE} -ge 71 ] && [ ${USE} -le 80 ]; then 76 | 77 | echo -e "${COLOR_WARNING}${ICON}${COLOR_BASED} : ${USED}B / ${SIZE}B = ${AVAIL}B (${USE}%)" 78 | 79 | elif [ ${USE} -ge 81 ] && [ ${USE} -le 90 ]; then 80 | 81 | echo -e "${COLOR_DANGER}${ICON}${COLOR_BASED} : ${USED}B / ${SIZE}B = ${AVAIL}B (${USE}%)" 82 | 83 | elif [ ${USE} -ge 91 ] && [ ${USE} -le 99 ]; then 84 | 85 | echo -e "${COLOR_DANGER}${ICON}${COLOR_BASED} : ${USED}B / ${SIZE}B = ${AVAIL}B (${USE}%)" 86 | 87 | elif [ ${USE} == 100 ]; then 88 | 89 | echo -e "${COLOR_DANGER}${ICON}${COLOR_BASED} : ${USED}B / ${SIZE}B = ${AVAIL}B (${USE}%)" 90 | 91 | fi 92 | 93 | } 94 | 95 | function help() { 96 | 97 | echo -e "Usage: 98 | ./fetch storage [options] 99 | " 100 | 101 | echo -e "Options: 102 | -a Show fetch storage with all output 103 | -f Show fetch storage with free space available 104 | -m Show fetch storage mounted path 105 | -s Show fetch storage total size 106 | -u Show fetch storage total used 107 | -n Show fetch storage for neofetch output 108 | -p Show fetch storage percentage 109 | -h Print help message 110 | " 111 | } 112 | 113 | case $1 in 114 | 115 | "" ) 116 | # echo -e "[ ${COLOR_WARNING}${ICON} ${MOUNTED}${COLOR_BASED} ] > ${USED}B / ${SIZE}B = ${AVAIL}B (${USE}%)" 117 | stat "${ICON} ${MOUNTED}" "Warning" "${USED}B / ${SIZE}B = ${AVAIL}B (${USE}%)" 118 | ;; 119 | 120 | -a ) 121 | echo -e "${USED}B / ${SIZE}B = ${AVAIL}B (${USE}) > ${MOUNTED}" 122 | ;; 123 | 124 | -f ) 125 | echo -e "${AVAIL}B" 126 | ;; 127 | 128 | -m ) 129 | echo -e "${MOUNTED}" 130 | ;; 131 | 132 | -n ) 133 | execute 134 | ;; 135 | 136 | -s ) 137 | echo -e "${SIZE}B" 138 | ;; 139 | 140 | -u ) 141 | echo -e "${USED}" 142 | ;; 143 | 144 | -p ) 145 | echo -e "${USE}" 146 | ;; 147 | 148 | -h ) 149 | help 150 | ;; 151 | 152 | * ) 153 | help 154 | ;; 155 | 156 | esac 157 | 158 | } 159 | 160 | function fetchBattery() { 161 | 162 | COMMAND="termux-battery-status" 163 | GET_BATTERY_PERCENTAGE=$(${COMMAND} 2> /dev/null | grep percentage | awk '{print $2}' | sed "s/,//g") 164 | GET_BATTERY_STATE=$(${COMMAND} 2> /dev/null | grep status | awk '{print $2}' | sed "s/,//g" | sed "s/\"//g") 165 | 166 | function checkingCommand() { 167 | 168 | if [ -x "$(command -v ${COMMAND})" ]; then 169 | 170 | ${1} 171 | 172 | else 173 | 174 | stat "ERROR" "Danger" "Can't fetch battery, command '${COLOR_DANGER}${COMMAND}${COLOR_BASED}' not found. 175 | Make sure you installed '${COLOR_WARNING}Termux:API${COLOR_BASED}' on '${COLOR_WARNING}Playstore${COLOR_BASED}' or 176 | '${COLOR_SUCCESS}F-Droid${COLOR_BASED}' and the package '${COLOR_SUCCESS}termux-api${COLOR_BASED}' with '${COLOR_WARNING}pkg install${COLOR_BASED}'" 177 | 178 | fi 179 | 180 | } 181 | 182 | function executeFetch() { 183 | 184 | if [ ${GET_BATTERY_STATE} == "CHARGING" ]; then 185 | 186 | if [ ${GET_BATTERY_PERCENTAGE} -ge 0 ] && [ ${GET_BATTERY_PERCENTAGE} -le 10 ]; then 187 | 188 | echo -e "${COLOR_SUCCESS}${COLOR_BASED} : Charging, (${GET_BATTERY_PERCENTAGE}%)" 189 | 190 | elif [ ${GET_BATTERY_PERCENTAGE} -ge 11 ] && [ ${GET_BATTERY_PERCENTAGE} -le 20 ]; then 191 | 192 | echo -e "${COLOR_SUCCESS}${COLOR_BASED} : Charging, (${GET_BATTERY_PERCENTAGE}%)" 193 | 194 | elif [ ${GET_BATTERY_PERCENTAGE} -ge 21 ] && [ ${GET_BATTERY_PERCENTAGE} -le 30 ]; then 195 | 196 | echo -e "${COLOR_SUCCESS}${COLOR_BASED} : Charging, (${GET_BATTERY_PERCENTAGE}%)" 197 | 198 | elif [ ${GET_BATTERY_PERCENTAGE} -ge 31 ] && [ ${GET_BATTERY_PERCENTAGE} -le 40 ]; then 199 | 200 | echo -e "${COLOR_SUCCESS}${COLOR_BASED} : Charging, (${GET_BATTERY_PERCENTAGE}%)" 201 | 202 | elif [ ${GET_BATTERY_PERCENTAGE} -ge 41 ] && [ ${GET_BATTERY_PERCENTAGE} -le 50 ]; then 203 | 204 | echo -e "${COLOR_SUCCESS}${COLOR_BASED} : Charging, (${GET_BATTERY_PERCENTAGE}%)" 205 | 206 | elif [ ${GET_BATTERY_PERCENTAGE} -ge 51 ] && [ ${GET_BATTERY_PERCENTAGE} -le 60 ]; then 207 | 208 | echo -e "${COLOR_SUCCESS}${COLOR_BASED} : Charging, (${GET_BATTERY_PERCENTAGE}%)" 209 | 210 | elif [ ${GET_BATTERY_PERCENTAGE} -ge 61 ] && [ ${GET_BATTERY_PERCENTAGE} -le 70 ]; then 211 | 212 | echo -e "${COLOR_SUCCESS}${COLOR_BASED} : Charging, (${GET_BATTERY_PERCENTAGE}%)" 213 | 214 | elif [ ${GET_BATTERY_PERCENTAGE} -ge 71 ] && [ ${GET_BATTERY_PERCENTAGE} -le 80 ]; then 215 | 216 | echo -e "${COLOR_SUCCESS}${COLOR_BASED} : Charging, (${GET_BATTERY_PERCENTAGE}%)" 217 | 218 | elif [ ${GET_BATTERY_PERCENTAGE} -ge 81 ] && [ ${GET_BATTERY_PERCENTAGE} -le 90 ]; then 219 | 220 | echo -e "${COLOR_SUCCESS}${COLOR_BASED} : Charging, (${GET_BATTERY_PERCENTAGE}%)" 221 | 222 | elif [ ${GET_BATTERY_PERCENTAGE} -ge 91 ] && [ ${GET_BATTERY_PERCENTAGE} -le 99 ]; then 223 | 224 | echo -e "${COLOR_SUCCESS}${COLOR_BASED} : Charging, (${GET_BATTERY_PERCENTAGE}%)" 225 | 226 | fi 227 | 228 | elif [ ${GET_BATTERY_STATE} == "DISCHARGING" ]; then 229 | 230 | if [ ${GET_BATTERY_PERCENTAGE} -ge 0 ] && [ ${GET_BATTERY_PERCENTAGE} -le 10 ]; then 231 | 232 | echo -e "${COLOR_DANGER}${COLOR_BASED} : Discharging, (${GET_BATTERY_PERCENTAGE}%)" 233 | 234 | elif [ ${GET_BATTERY_PERCENTAGE} -ge 11 ] && [ ${GET_BATTERY_PERCENTAGE} -le 20 ]; then 235 | 236 | echo -e "${COLOR_DANGER}${COLOR_BASED} : Discharging, (${GET_BATTERY_PERCENTAGE}%)" 237 | 238 | elif [ ${GET_BATTERY_PERCENTAGE} -ge 21 ] && [ ${GET_BATTERY_PERCENTAGE} -le 30 ]; then 239 | 240 | echo -e "${COLOR_WARNING}${COLOR_BASED} : Discharging, (${GET_BATTERY_PERCENTAGE}%)" 241 | 242 | elif [ ${GET_BATTERY_PERCENTAGE} -ge 31 ] && [ ${GET_BATTERY_PERCENTAGE} -le 40 ]; then 243 | 244 | echo -e "${COLOR_WARNING}${COLOR_BASED} : Discharging, (${GET_BATTERY_PERCENTAGE}%)" 245 | 246 | elif [ ${GET_BATTERY_PERCENTAGE} -ge 41 ] && [ ${GET_BATTERY_PERCENTAGE} -le 50 ]; then 247 | 248 | echo -e "${COLOR_WARNING}${COLOR_BASED} : Discharging, (${GET_BATTERY_PERCENTAGE}%)" 249 | 250 | elif [ ${GET_BATTERY_PERCENTAGE} -ge 51 ] && [ ${GET_BATTERY_PERCENTAGE} -le 60 ]; then 251 | 252 | echo -e "${COLOR_SUCCESS}${COLOR_BASED} : Discharging, (${GET_BATTERY_PERCENTAGE}%)" 253 | 254 | elif [ ${GET_BATTERY_PERCENTAGE} -ge 61 ] && [ ${GET_BATTERY_PERCENTAGE} -le 70 ]; then 255 | 256 | echo -e "${COLOR_SUCCESS}${COLOR_BASED} : Discharging, (${GET_BATTERY_PERCENTAGE}%)" 257 | 258 | elif [ ${GET_BATTERY_PERCENTAGE} -ge 71 ] && [ ${GET_BATTERY_PERCENTAGE} -le 80 ]; then 259 | 260 | echo -e "${COLOR_SUCCESS}${COLOR_BASED} : Discharging, (${GET_BATTERY_PERCENTAGE}%)" 261 | 262 | elif [ ${GET_BATTERY_PERCENTAGE} -ge 81 ] && [ ${GET_BATTERY_PERCENTAGE} -le 90 ]; then 263 | 264 | echo -e "${COLOR_SUCCESS}${COLOR_BASED} : Discharging, (${GET_BATTERY_PERCENTAGE}%)" 265 | 266 | elif [ ${GET_BATTERY_PERCENTAGE} -ge 91 ] && [ ${GET_BATTERY_PERCENTAGE} -le 99 ]; then 267 | 268 | echo -e "${COLOR_SUCCESS}${COLOR_BASED} : Discharging, (${GET_BATTERY_PERCENTAGE}%)" 269 | 270 | elif [ ${GET_BATTERY_PERCENTAGE} == 100 ]; then 271 | 272 | echo -e "${COLOR_SUCCESS}${COLOR_BASED} : Discharging, (${GET_BATTERY_PERCENTAGE}%)" 273 | 274 | fi 275 | 276 | elif [ ${GET_BATTERY_STATE} == "FULL" ]; then 277 | 278 | echo -e "${COLOR_SUCCESS}${COLOR_BASED} : Charging, (${GET_BATTERY_PERCENTAGE}%)" 279 | 280 | fi 281 | 282 | } 283 | 284 | function help() { 285 | 286 | echo -e "Usage: 287 | ./fetch battery [option] 288 | " 289 | 290 | echo -e "Options: 291 | percentage Fetch Battery Percentage 292 | state Fetch Battery State (Charging / Discharging / FULL) 293 | help Print help message 294 | " 295 | 296 | } 297 | 298 | case ${1} in 299 | 300 | "" ) 301 | checkingCommand executeFetch 302 | ;; 303 | 304 | percentage ) 305 | echo -e "${GET_BATTERY_PERCENTAGE}" 306 | ;; 307 | 308 | state ) 309 | echo -e "${GET_BATTERY_STATE}" 310 | ;; 311 | 312 | help ) 313 | help 314 | ;; 315 | 316 | * ) 317 | help 318 | ;; 319 | 320 | esac 321 | 322 | } 323 | 324 | function fetchHelp() { 325 | 326 | echo -e "\nUsage: 327 | ./fetch [option1] [option2] 328 | " 329 | 330 | echo -e "Options: 331 | music Fetch script music 332 | battery Fetch script battery (${COLOR_WARNING}require option2${COLOR_BASED}) 333 | storage Fetch script storage (${COLOR_WARNING}require option2${COLOR_BASED}) 334 | help Print help message 335 | " 336 | 337 | } 338 | 339 | case ${1} in 340 | 341 | battery ) 342 | fetchBattery ${2} 343 | ;; 344 | 345 | music ) 346 | fetchMusic 347 | ;; 348 | 349 | storage ) 350 | fetchStorage ${2} 351 | ;; 352 | 353 | help ) 354 | fetchHelp 355 | ;; 356 | 357 | * ) 358 | fetchHelp 359 | ;; 360 | 361 | esac 362 | -------------------------------------------------------------------------------- /.scripts/system/ip.sh: -------------------------------------------------------------------------------- 1 | #!/data/data/com.termux/files/usr/bin/env bash 2 | 3 | function simcard() { 4 | 5 | interface=`ip route | sed -n 1p | awk '{print $3}'` 6 | 7 | if [[ "$interface" == "ccmni0" ]]; then 8 | 9 | echo -e "Simcard" `ip route | grep ccmni0 | awk '{print $9}'` 10 | 11 | elif [[ "$interface" == "ccmni1" ]]; then 12 | 13 | echo -e "Simcard" `ip route | grep ccmni1 | awk '{print $9}'` 14 | 15 | fi 16 | 17 | } 18 | 19 | function hotspot() { 20 | 21 | interface=`ip route | sed -n 2p | awk '{print $3}'` 22 | 23 | if [[ "$interface" == "ap0" ]]; then 24 | 25 | echo -e "Hotspot" `ip route | grep ap0 | awk '{print $9}'` 26 | 27 | elif [[ "$interface" == "tun0" ]]; then 28 | 29 | echo -e "Hotspot" `ip route | grep ap0 | awk '{print $9}'` 30 | 31 | fi 32 | 33 | } 34 | 35 | function vpn() { 36 | 37 | interface=`ip route | sed -n 2p | awk '{print $3}'` 38 | 39 | if [[ "$interface" == "tun0" ]]; then 40 | 41 | echo -e "VPN" `ip route | grep tun0 | awk '{print $9}'` 42 | 43 | elif [[ "$interface" == "wlan0" ]]; then 44 | 45 | echo -e "VPN" `ip route | grep tun0 | awk '{print $9}'` 46 | 47 | fi 48 | 49 | } 50 | 51 | function wifi() { 52 | 53 | interface=`ip route | sed -n 2p | awk '{print $3}'` 54 | 55 | if [[ "$interface" == "wlan0" ]]; then 56 | 57 | echo -e "WiFi" `ip route | grep wlan0 | awk '{print $9}'` 58 | 59 | elif [[ "$interface" == "tun0" ]]; then 60 | 61 | echo -e "WiFi" `ip route | grep wlan0 | awk '{print $9}'` 62 | 63 | fi 64 | 65 | } 66 | 67 | if [[ "$1" == "simcard" ]]; then 68 | 69 | simcard 70 | 71 | elif [[ "$1" == "hotspot" ]]; then 72 | 73 | hotspot 74 | 75 | elif [[ "$1" == "vpn" ]]; then 76 | 77 | vpn 78 | 79 | elif [[ "$1" == "wifi" ]]; then 80 | 81 | wifi 82 | 83 | elif [[ "$1" == "all" ]]; then 84 | 85 | 86 | simcard 87 | hotspot 88 | vpn 89 | wifi 90 | 91 | else 92 | 93 | echo -e "ERROR Execute: Unknown Paramater Use!" 94 | 95 | fi 96 | -------------------------------------------------------------------------------- /.scripts/system/login.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | #/data/data/com.termux/files/usr/bin/env bash 3 | 4 | # Author : xShin 5 | # GitHub : https://github.com/xshin404 6 | 7 | RED="\e[91m" 8 | YELLOW="\e[93m" 9 | GREEN="\e[92m" 10 | DEFAULT="\e[39m" 11 | 12 | user="xshin" 13 | pass="xshin" 14 | 15 | handle_ctrl_c() { 16 | 17 | pkill com.termux 18 | 19 | echo -e "\n\nERROR :$RED Oops, you can't exit!$DEFAULT\n" 20 | echo -e " Message" 21 | echo -e " ━━━━━━━" 22 | echo -e "$YELLOW Press Enter to back Login or" 23 | echo -e " Enter username / password to\n continue.$DEFAULT" 24 | 25 | } 26 | 27 | trap "handle_ctrl_c" 2 28 | 29 | clear 30 | while true; do 31 | 32 | echo -e "" 33 | echo -e "Welcome to Termux!\n" 34 | # echo -e "━━━━━━━━━━━━━━\n" 35 | read -p "Username: " username 36 | 37 | if [[ "$username" == "$user" ]]; then 38 | 39 | # Show password * 40 | unset password 41 | 42 | prompt="Password: " 43 | while IFS= read -p "$prompt" -r -s -n 1 char 44 | do 45 | if [[ $char == $'\0' ]]; then 46 | break 47 | fi 48 | prompt='*' 49 | password+="$char" 50 | done 51 | 52 | if [[ $password == $pass ]]; then 53 | echo -e "\n\nStatus: ${GREEN}Success Login. ${DEFAULT}" 54 | sleep 2s 55 | clear 56 | break 57 | else 58 | echo -e "\n\nStatus: ${RED}Wrong Password. ${DEFAULT}" 59 | sleep 2s 60 | clear 61 | fi 62 | 63 | # Hidden Password 64 | # echo -n "Password: " 65 | # read -s -r password 66 | 67 | # if [[ "$password" == "$pass" ]]; then 68 | 69 | # echo -e "" 70 | # echo -e "\nStatus:$GREEN Success Login.$DEFAULT" 71 | # sleep 2s 72 | # clear 73 | 74 | # if [ ! -d ~/.scripts/pid ]; then 75 | 76 | # mkdir ~/.scripts/pid 77 | 78 | # fi 79 | 80 | # echo $$ >> ~/.scripts/pid/login 81 | # break 82 | 83 | # else 84 | 85 | # echo -e "" 86 | # echo -e "status :$RED Wrong Password.$DEFAULT" 87 | # sleep 2s 88 | # clear 89 | 90 | # fi 91 | 92 | else 93 | 94 | echo -e "" 95 | echo -e "Status: $YELLOW Wrong Username.$DEFAULT" 96 | sleep 2s 97 | clear 98 | 99 | fi 100 | 101 | done 102 | -------------------------------------------------------------------------------- /.scripts/toys/256colors2.pl: -------------------------------------------------------------------------------- 1 | #!/data/data/com.termux/files/usr/bin/env perl 2 | # Author: Todd Larason 3 | # $XFree86: xc/programs/xterm/vttests/256colors2.pl,v 1.1 1999/07/11 08:49:54 dawes Exp $ 4 | 5 | # use the resources for colors 0-15 - usually more-or-less a 6 | # reproduction of the standard ANSI colors, but possibly more 7 | # pleasing shades 8 | 9 | # colors 16-231 are a 6x6x6 color cube 10 | for ($red = 0; $red < 6; $red++) { 11 | for ($green = 0; $green < 6; $green++) { 12 | for ($blue = 0; $blue < 6; $blue++) { 13 | printf("\x1b]4;%d;rgb:%2.2x/%2.2x/%2.2x\x1b\\", 14 | 16 + ($red * 36) + ($green * 6) + $blue, 15 | int ($red * 42.5), 16 | int ($green * 42.5), 17 | int ($blue * 42.5)); 18 | } 19 | } 20 | } 21 | 22 | # colors 232-255 are a grayscale ramp, intentionally leaving out 23 | # black and white 24 | for ($gray = 0; $gray < 24; $gray++) { 25 | $level = ($gray * 10) + 8; 26 | printf("\x1b]4;%d;rgb:%2.2x/%2.2x/%2.2x\x1b\\", 27 | 232 + $gray, $level, $level, $level); 28 | } 29 | 30 | 31 | # display the colors 32 | 33 | # first the system ones: 34 | print "System colors:\n"; 35 | for ($color = 0; $color < 8; $color++) { 36 | print "\x1b[48;5;${color}m "; 37 | } 38 | print "\x1b[0m\n"; 39 | for ($color = 8; $color < 16; $color++) { 40 | print "\x1b[48;5;${color}m "; 41 | } 42 | print "\x1b[0m\n\n"; 43 | 44 | # now the color cube 45 | print "Color cube, 6x6x6:\n"; 46 | for ($green = 0; $green < 6; $green++) { 47 | for ($red = 0; $red < 6; $red++) { 48 | for ($blue = 0; $blue < 6; $blue++) { 49 | $color = 16 + ($red * 36) + ($green * 6) + $blue; 50 | print "\x1b[48;5;${color}m "; 51 | } 52 | print "\x1b[0m "; 53 | } 54 | print "\n"; 55 | } 56 | 57 | 58 | # now the grayscale ramp 59 | print "Grayscale ramp:\n"; 60 | for ($color = 232; $color < 256; $color++) { 61 | print "\x1b[48;5;${color}m "; 62 | } 63 | print "\x1b[0m\n"; 64 | -------------------------------------------------------------------------------- /.scripts/toys/bloks: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # ANSI Color -- use these variables to easily have different color 4 | # and format output. Make sure to output the reset sequence after 5 | # colors (f = foreground, b = background), and use the 'off' 6 | # feature for anything you turn on. 7 | 8 | #printf "\ec" 9 | 10 | initializeANSI() 11 | { 12 | esc="" 13 | 14 | blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 15 | yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 16 | cyanf="${esc}[36m"; whitef="${esc}[37m" 17 | 18 | blackb="${esc}[1;30m"; redb="${esc}[1;31m"; greenb="${esc}[1;32m" 19 | yellowb="${esc}[1;33m" blueb="${esc}[1;34m"; purpleb="${esc}[1;35m" 20 | cyanb="${esc}[1;36m"; whiteb="${esc}[1;37m" 21 | 22 | boldon="${esc}[1m"; boldoff="${esc}[22m" 23 | italicson="${esc}[3m"; italicsoff="${esc}[23m" 24 | ulon="${esc}[4m"; uloff="${esc}[24m" 25 | invon="${esc}[7m"; invoff="${esc}[27m" 26 | 27 | reset="${esc}[0m" 28 | } 29 | 30 | # note in this first use that switching colors doesn't require a reset 31 | # first - the new color overrides the old one. 32 | 33 | numbers (){ 34 | 35 | initializeANSI 36 | 37 | cat << EOF 38 | ${blackf}1111${reset}${blackb}1111${reset} ${redf}2222${reset}${redb}2222${reset} ${greenf}3333${reset}${greenb}3333${reset} ${yellowf}4444${reset}${yellowb}4444${reset} ${bluef}5555${reset}${blueb}5555${reset} ${purplef}6666${reset}${purpleb}6666${reset} ${cyanf}7777${reset}${cyanb}7777${reset} 39 | ${blackf}1111${reset}${blackb}1111${reset} ${redf}2222${reset}${redb}2222${reset} ${greenf}3333${reset}${greenb}3333${reset} ${yellowf}4444${reset}${yellowb}4444${reset} ${bluef}5555${reset}${blueb}5555${reset} ${purplef}6666${reset}${purpleb}6666${reset} ${cyanf}7777${reset}${cyanb}7777${reset} 40 | ${whitef}8888${reset}${whiteb}8888${reset} ${whitef}8888${reset}${whiteb}8888${reset} ${whitef}8888${reset}${whiteb}8888${reset} ${whitef}8888${reset}${whiteb}8888${reset} ${whitef}8888${reset}${whiteb}8888${reset} ${whitef}8888${reset}${whiteb}8888${reset} ${whitef}8888${reset}${whiteb}8888${reset} 41 | 42 | EOF 43 | 44 | } 45 | 46 | blocks (){ 47 | 48 | initializeANSI 49 | 50 | cat << EOF 51 | ${blackf}████${reset}${blackb}████${reset} ${redf}████${reset}${redb}████${reset} ${greenf}████${reset}${greenb}████${reset} ${yellowf}████${reset}${yellowb}████${reset} ${bluef}████${reset}${blueb}████${reset} ${purplef}████${reset}${purpleb}████${reset} ${cyanf}████${reset}${cyanb}████${reset} 52 | ${blackf}████${reset}${blackb}████${reset} ${redf}████${reset}${redb}████${reset} ${greenf}████${reset}${greenb}████${reset} ${yellowf}████${reset}${yellowb}████${reset} ${bluef}████${reset}${blueb}████${reset} ${purplef}████${reset}${purpleb}████${reset} ${cyanf}████${reset}${cyanb}████${reset} 53 | ${whitef}████${reset}${whiteb}████${reset} ${whitef}████${reset}${whiteb}████${reset} ${whitef}████${reset}${whiteb}████${reset} ${whitef}████${reset}${whiteb}████${reset} ${whitef}████${reset}${whiteb}████${reset} ${whitef}████${reset}${whiteb}████${reset} ${whitef}████${reset}${whiteb}████${reset} 54 | 55 | EOF 56 | 57 | } 58 | 59 | case $1 in 60 | b) blocks;; 61 | n) numbers;; 62 | a) blocks && numbers;; 63 | *) blocks;; 64 | esac 65 | -------------------------------------------------------------------------------- /.scripts/toys/colorbars: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # colorbars - smpte color bars in sh 4 | # http://git.io/colorbars 5 | 6 | echo 7 | 8 | for y in $(seq 0 13); do 9 | printf %s ' ' 10 | for color in 7 3 6 2 5 1 4; do 11 | tput setab ${color} 12 | printf %s ' ' 13 | done 14 | tput sgr0 15 | echo 16 | done 17 | 18 | for y in 0 1; do 19 | printf %s ' ' 20 | for color in 4 0 5 0 6 0 7; do 21 | tput setab ${color} 22 | printf %s ' ' 23 | done 24 | tput sgr0 25 | echo 26 | done 27 | 28 | for y in $(seq 0 4); do 29 | printf %s ' ' 30 | for color in 4 4 4 4 4 7 7 7 7 7 5 5 5 5 5 0 0 0 0 0 0 0 0 0 0 0 0 0; do 31 | tput setab ${color} 32 | printf %s ' ' 33 | done 34 | tput sgr0 35 | echo 36 | done 37 | 38 | echo 39 | -------------------------------------------------------------------------------- /.scripts/toys/colortest: -------------------------------------------------------------------------------- 1 | #!/data/data/com.termux/files/usr/bin/env bash 2 | 3 | # Daniel Crisman's ANSI color chart script from 4 | # The Bash Prompt HOWTO: 6.1. Colours 5 | # http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html 6 | # 7 | # This function echoes a bunch of color codes to the 8 | # terminal to demonstrate what's available. Each 9 | # line is the color code of one forground color, 10 | # out of 17 (default + 16 escapes), followed by a 11 | # test use of that color on all nine background 12 | # colors (default + 8 escapes). 13 | 14 | T='•••' # The text for the color test 15 | 16 | echo -e "\n def 40m 41m 42m 43m 44m 45m 46m 47m"; 17 | 18 | for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' \ 19 | '1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' \ 20 | ' 36m' '1;36m' ' 37m' '1;37m'; 21 | 22 | do FG=${FGs// /} 23 | echo -en " $FGs \033[$FG $T " 24 | 25 | for BG in 40m 41m 42m 43m 44m 45m 46m 47m; 26 | do echo -en "$EINS \033[$FG\033[$BG $T \033[0m"; 27 | done 28 | echo; 29 | done 30 | echo 31 | -------------------------------------------------------------------------------- /.scripts/toys/colortest-slim: -------------------------------------------------------------------------------- 1 | #!/data/data/com.termux/files/usr/bin/env bash 2 | 3 | # Author: machinebacon 4 | # Source: http://linuxbbq.org/bbs/viewtopic.php?f=4&t=1656#p33237 5 | 6 | T='*' # The test text 7 | 8 | echo -e "\n 40m 41m 42m 43m\ 9 | 44m 45m 46m 47m"; 10 | 11 | for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' \ 12 | '1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' \ 13 | ' 36m' '1;36m' ' 37m' '1;37m'; 14 | do FG=${FGs// /} 15 | echo -en " $FGs \033[$FG $T " 16 | for BG in 40m 41m 42m 43m 44m 45m 46m 47m; 17 | do echo -en "$EINS \033[$FG\033[$BG $T \033[0m"; 18 | done 19 | echo; 20 | done 21 | echo 22 | -------------------------------------------------------------------------------- /.scripts/toys/colorview: -------------------------------------------------------------------------------- 1 | #!/data/data/com.termux/files/usr/bin/env bash 2 | 3 | # Original: http://frexx.de/xterm-256-notes/ 4 | # http://frexx.de/xterm-256-notes/data/colortable16.sh 5 | # Modified by Aaron Griffin 6 | # and further by Kazuo Teramoto 7 | 8 | FGNAMES=(' black ' ' red ' ' green ' ' yellow' ' blue ' 'magenta' ' cyan ' ' white ') 9 | BGNAMES=('DFT' 'BLK' 'RED' 'GRN' 'YEL' 'BLU' 'MAG' 'CYN' 'WHT') 10 | 11 | echo " ┌──────────────────────────────────────────────────────────────────────────┐" 12 | for b in {0..8}; do 13 | ((b>0)) && bg=$((b+39)) 14 | 15 | echo -en "\033[0m ${BGNAMES[b]} │ " 16 | 17 | for f in {0..7}; do 18 | echo -en "\033[${bg}m\033[$((f+30))m ${FGNAMES[f]} " 19 | done 20 | 21 | echo -en "\033[0m │" 22 | echo -en "\033[0m\n\033[0m │ " 23 | 24 | for f in {0..7}; do 25 | echo -en "\033[${bg}m\033[1;$((f+30))m ${FGNAMES[f]} " 26 | done 27 | 28 | echo -en "\033[0m │" 29 | echo -e "\033[0m" 30 | 31 | ((b<8)) && 32 | echo " ├──────────────────────────────────────────────────────────────────────────┤" 33 | done 34 | echo " └──────────────────────────────────────────────────────────────────────────┘" 35 | -------------------------------------------------------------------------------- /.scripts/toys/dna: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # ANSI color scheme script by pfh 4 | # 5 | # Initializing mod by lolilolicon from Archlinux 6 | # 7 | 8 | f=3 b=4 9 | for j in f b; do 10 | for i in {0..7}; do 11 | printf -v $j$i %b "\e[${!j}${i}m" 12 | done 13 | done 14 | bld=$'\e[1m' 15 | rst=$'\e[0m' 16 | inv=$'\e[7m' 17 | 18 | cat << EOF 19 | ${f1} █-----${bld}█ ${rst}${f2} █-----${bld}█${rst} ${f3} █-----${bld}█${rst} ${f4} █-----${bld}█${rst} ${f5} █-----${bld}█${rst} ${f6} █-----${bld}█${rst} 20 | ${f1} █---${bld}█${rst} ${f2} █---${bld}█${rst} ${f3} █---${bld}█${rst} ${f4} █---${bld}█${rst} ${f5} █---${bld}█${rst} ${f6} █---${bld}█${rst} 21 | ${f1} █-${bld}█${rst} ${f2} █-${bld}█${rst} ${f3} █-${bld}█${rst} ${f4} █-${bld}█${rst} ${f5} █-${bld}█${rst} ${f6} █-${bld}█${rst} 22 | ${f1} █${rst} ${f2} █${rst} ${f3} █${rst} ${f4} █${rst} ${f5} █${rst} ${f6} █${rst} 23 | ${f1}${bld} █-${rst}${f1}█${rst} ${f2}${bld} █_${rst}${f2}█${rst} ${f3}${bld} █-${rst}${f3}█${rst} ${f4}${bld} █-${rst}${f4}█${rst} ${f5}${bld} █-${rst}${f5}█${rst} ${f6}${bld} █-${rst}${f6}█${rst} 24 | ${f1}${bld} █---${rst}${f1}█${rst} ${f2}${bld} █---${rst}${f2}█${rst} ${f3}${bld} █---${rst}${f3}█${rst} ${f4}${bld} █---${rst}${f4}█${rst} ${f5}${bld} █---${rst}${f5}█${rst} ${f6}${bld} █---${rst}${f6}█${rst} 25 | ${f1}${bld} █-----${rst}${f1}█${rst} ${f2}${bld} █-----${rst}${f2}█${rst} ${f3}${bld} █-----${rst}${f3}█${rst} ${f4}${bld} █-----${rst}${f4}█${rst} ${f5}${bld} █-----${rst}${f5}█${rst} ${f6}${bld} █-----${rst}${f6}█${rst} 26 | ${f1}${bld} █---${rst}${f1}█${rst} ${f2}${bld} █---${rst}${f2}█${rst} ${f3}${bld} █---${rst}${f3}█${rst} ${f4}${bld} █---${rst}${f4}█${rst} ${f5}${bld} █---${rst}${f5}█${rst} ${f6}${bld} █---${rst}${f6}█${rst} 27 | ${f1}${bld} █-${rst}${f1}█${rst} ${f2}${bld} █-${rst}${f2}█${rst} ${f3}${bld} █-${rst}${f3}█${rst} ${f4}${bld} █-${rst}${f4}█${rst} ${f5}${bld} █-${rst}${f5}█${rst} ${f6}${bld} █-${rst}${f6}█${rst} 28 | ${f1}${bld} █${rst} ${f2}${bld} █${rst} ${f3}${bld}█${rst} ${f4}${bld} █${rst} ${f5}${bld} █${rst} ${f6}${bld} █${rst} 29 | ${f1} █-${bld}█${rst} ${f2} █-${bld}█${rst} ${f3} █-${bld}█${rst} ${f4} █-${bld}█${rst} ${f5} █-${bld}█${rst} ${f6} █-${bld}█${rst} 30 | ${f1} █---${bld}█${rst} ${f2} █---${bld}█${rst} ${f3} █---${bld}█${rst} ${f4} █---${bld}█${rst} ${f5} █---${bld}█${rst} ${f6} █---${bld}█${rst} 31 | ${f1} █-----${bld}█ ${rst}${f2} █-----${bld}█${rst} ${f3} █-----${bld}█${rst} ${f4} █-----${bld}█${rst} ${f5} █-----${bld}█${rst} ${f6} █-----${bld}█${rst} 32 | ${f1} █---${bld}█${rst} ${f2} █---${bld}█${rst} ${f3} █---${bld}█${rst} ${f4} █---${bld}█${rst} ${f5} █---${bld}█${rst} ${f6} █---${bld}█${rst} 33 | ${f1} █-${bld}█${rst} ${f2} █-${bld}█${rst} ${f3} █-${bld}█${rst} ${f4} █-${bld}█${rst} ${f5} █-${bld}█${rst} ${f6} █-${bld}█${rst} 34 | ${f1} █${rst} ${f2}█${rst} ${f3} █${rst} ${f4} █${rst} ${f5} █${rst} ${f6} █${rst} 35 | ${f1}${bld} █-${rst}${f1}█${rst} ${f2}${bld} █_${rst}${f2}█${rst} ${f3}${bld} █-${rst}${f3}█${rst} ${f4}${bld} █-${rst}${f4}█${rst} ${f5}${bld} █-${rst}${f5}█${rst} ${f6}${bld} █-${rst}${f6}█${rst} 36 | ${f1}${bld} █---${rst}${f1}█${rst} ${f2}${bld} █---${rst}${f2}█${rst} ${f3}${bld} █---${rst}${f3}█${rst} ${f4}${bld} █---${rst}${f4}█${rst} ${f5}${bld} █---${rst}${f5}█${rst} ${f6}${bld} █---${rst}${f6}█${rst} 37 | ${f1}${bld} █-----${rst}${f1}█${rst} ${f2}${bld} █-----${rst}${f2}█${rst} ${f3}${bld} █-----${rst}${f3}█${rst} ${f4}${bld} █-----${rst}${f4}█${rst} ${f5}${bld} █-----${rst}${f5}█${rst} ${f6}${bld} █-----${rst}${f6}█${rst} 38 | ${f1}${bld} █---${rst}${f1}█${rst} ${f2}${bld} █---${rst}${f2}█${rst} ${f3}${bld} █---${rst}${f3}█${rst} ${f4}${bld} █---${rst}${f4}█${rst} ${f5}${bld} █---${rst}${f5}█${rst} ${f6}${bld} █---${rst}${f6}█${rst} 39 | ${f1}${bld} █-${rst}${f1}█${rst} ${f2}${bld} █-${rst}${f2}█${rst} ${f3}${bld} █-${rst}${f3}█${rst} ${f4}${bld} █-${rst}${f4}█${rst} ${f5}${bld} █-${rst}${f5}█${rst} ${f6}${bld} █-${rst}${f6}█${rst} 40 | ${f1}${bld} █${rst} ${f2}${bld} █${rst} ${f3}${bld} █${rst} ${f4}${bld} █${rst} ${f5}${bld} █${rst} ${f6}${bld} █${rst} 41 | ${f1} █-${bld}█${rst} ${f2} █-${bld}█${rst} ${f3} █-${bld}█${rst} ${f4} █-${bld}█${rst} ${f5} █-${bld}█${rst} ${f6} █-${bld}█${rst} 42 | ${f1} █---${bld}█${rst} ${f2} █---${bld}█${rst} ${f3} █---${bld}█${rst} ${f4} █---${bld}█${rst} ${f5} █---${bld}█${rst} ${f6} █---${bld}█${rst} 43 | ${f1} █-----${bld}█ ${rst}${f2} █-----${bld}█${rst} ${f3} █-----${bld}█${rst} ${f4} █-----${bld}█${rst} ${f5} █-----${bld}█${rst} ${f6} █-----${bld}█${rst} 44 | EOF 45 | -------------------------------------------------------------------------------- /.scripts/toys/ghost: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # ANSI color scheme script by pfh 4 | # 5 | # Initializing mod by lolilolicon from Archlinux 6 | # 7 | 8 | f=3 b=4 9 | for j in f b; do 10 | for i in {0..7}; do 11 | printf -v $j$i %b "\e[${!j}${i}m" 12 | done 13 | done 14 | bld=$'\e[1m' 15 | rst=$'\e[0m' 16 | inv=$'\e[7m' 17 | cat << EOF 18 | $f1 ▄▄▄ $f2 ▄▄▄ $f3 ▄▄▄ $f4 ▄▄▄ $f5 ▄▄▄ $f6 ▄▄▄ 19 | $f1 ▀█▀██ ▄ $f2 ▀█▀██ ▄ $f3 ▀█▀██ ▄ $f4 ▀█▀██ ▄ $f5 ▀█▀██ ▄ $f6 ▀█▀██ ▄ 20 | $f1 ▀▄██████▀ $f2 ▀▄██████▀ $f3 ▀▄██████▀ $f4 ▀▄██████▀ $f5 ▀▄██████▀ $f6 ▀▄██████▀ 21 | $f1 ▀█████ $f2 ▀█████ $f3 ▀█████ $f4 ▀█████ $f5 ▀█████ $f6 ▀█████ 22 | $f1 ▀▀▀▀▄ $f2 ▀▀▀▀▄ $f3 ▀▀▀▀▄ $f4 ▀▀▀▀▄ $f5 ▀▀▀▀▄ $f6 ▀▀▀▀▄ 23 | $bld 24 | $f1 ▄▄▄ $f2 ▄▄▄ $f3 ▄▄▄ $f4 ▄▄▄ $f5 ▄▄▄ $f6 ▄▄▄ 25 | $f1 ▀█▀██ ▄ $f2 ▀█▀██ ▄ $f3 ▀█▀██ ▄ $f4 ▀█▀██ ▄ $f5 ▀█▀██ ▄ $f6 ▀█▀██ ▄ 26 | $f1 ▀▄██████▀ $f2 ▀▄██████▀ $f3 ▀▄██████▀ $f4 ▀▄██████▀ $f5 ▀▄██████▀ $f6 ▀▄██████▀ 27 | $f1 ▀█████ $f2 ▀█████ $f3 ▀█████ $f4 ▀█████ $f5 ▀█████ $f6 ▀█████ 28 | $f1 ▀▀▀▀▄ $f2 ▀▀▀▀▄ $f3 ▀▀▀▀▄ $f4 ▀▀▀▀▄ $f5 ▀▀▀▀▄ $f6 ▀▀▀▀▄ 29 | $rst 30 | EOF 31 | -------------------------------------------------------------------------------- /.scripts/toys/jfetch: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | art=" 4 | \\033c\\033[31m .--.---. 5 | ( \\'--'/ ) 6 | ( '..-...' ) 7 | '.'-._.'.' 8 | \\033[34m <'-.,.-> 9 | \`\\( _ 10 | < \\ / \\ 11 | __ \\\\|_/ 12 | / \\ \\\\ 13 | '--'.\\ > 14 | \\\\\\033[0m 15 | " 16 | 17 | ## read system info 18 | read -r host < /proc/sys/kernel/hostname 19 | 20 | # Get Memory usage 21 | get_mem () { 22 | free --mega | sed -n -E '2s/^[^0-9]*([0-9]+) *([0-9]+).*/'"${space}"'\2 \/ \1 /p' 23 | } 24 | 25 | ## storage 26 | storage_info() { 27 | storageused=$(df -h / | grep "/" | awk '{print $3}') 28 | storageavail=$(df -h / | grep "/" | awk '{print $2}') 29 | } 30 | 31 | #getting the init 32 | get_init() { 33 | os="$(uname -o)" 34 | if [ "$os" = "Android" ]; then 35 | echo "init.rc" 36 | elif [ ! $(pidof systemd) ]; then 37 | if [ -f "/sbin/openrc" ]; then 38 | echo "openrc" 39 | else 40 | echo $(cat /proc/1/comm) 41 | fi 42 | else 43 | echo "systemD" 44 | fi 45 | } 46 | 47 | ## os 48 | for os in /etc/os-release /usr/lib/os-release; do 49 | [ -f $os ] && . $os && break 50 | done 51 | 52 | ## wm (took from https://github.com/unixporn/trup/blob/master/fetcher.sh#L55) 53 | [ ! "$wm" ] && [ "$DISPLAY" ] && command -v xprop >/dev/null && { 54 | id=$(xprop -root -notype _NET_SUPPORTING_WM_CHECK) 55 | id=${id##* } 56 | wm=$(xprop -id "$id" -notype -len 100 -f _NET_WM_NAME 8t | 57 | grep '^_NET_WM_NAME' | cut -d\" -f 2) 58 | } 59 | 60 | 61 | [ ! "$wm" ] || [ "$wm" = "LG3D" ] && 62 | wm=$( 63 | ps -e | grep -m 1 -o \ 64 | -e "sway" \ 65 | -e "kiwmi" \ 66 | -e "wayfire" \ 67 | -e "sowm" \ 68 | -e "catwm" \ 69 | -e "fvwm" \ 70 | -e "dwm" \ 71 | -e "2bwm" \ 72 | -e "monsterwm" \ 73 | -e "tinywm" \ 74 | -e "xmonad" 75 | ) 76 | 77 | ## kernel 78 | read -r _ _ version _ < /proc/version 79 | ke=${version%%-*} 80 | kernel="$(uname -r)" 81 | 82 | # colors and palette method stolen from dylanaraps pfetch 83 | # https://github.com/dylanaraps/pfetch 84 | 85 | c0=''; 86 | c1=''; c2='' 87 | c3=''; c4='' 88 | c5=''; c6='' 89 | c7=''; c8='' 90 | palette="$c1 $c1 $c1 $c1 $c2 $c2 $c2 $c2 $c3 $c3 $c3 $c3 $c4 $c4 $c4 $c4 $c5 $c5 $c5 $c5 $c6 $c6 $c6 $c6 " 91 | white="$c7 $c7 $c7 $c7 $c7 $c7 $c7 $c7 $c7 $c7 $c7 $c7 $c7 $c7 $c7 $c7 $c7 $c7 $c7 $c7 $c7 $c7 $c7 $c7 " 92 | 93 | # output 94 | printf " $art" 95 | printf " 96 | ${c5} ${c5}${host} 97 | ${c5} ${c3}wm${c0} ~ ${wm} 98 | ${c5} ${c3}sh${c0} ~ ${SHELL##*/} 99 | ${c5} ${c3}ram${c0} ~ $(get_mem) 100 | ${c5} ${c3}init${c0} ~ $(get_init) 101 | ${c5} ${c3}os${c0} ~ ${PRETTY_NAME} 102 | ${c5} ${c3}ker${c0} ~ ${kernel} 103 | 104 | " 105 | -------------------------------------------------------------------------------- /.scripts/toys/pacman: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # ANSI color scheme script featuring PACMAN 4 | # by pfh 5 | # 6 | # Initializing procedure by lolilolicon 7 | # 8 | 9 | f=3 b=4 10 | for j in f b; do 11 | for i in {0..7}; do 12 | printf -v $j$i %b "\e[${!j}${i}m" 13 | done 14 | done 15 | bld=$'\e[1m' 16 | rst=$'\e[0m' 17 | inv=$'\e[7m' 18 | 19 | 20 | cat << EOF 21 | $rst 22 | $f3 ▄███████▄ $f1 ▄██████▄ $f2 ▄██████▄ $f4 ▄██████▄ $f5 ▄██████▄ $f6 ▄██████▄ 23 | $f3▄█████████▀▀ $f1▄$f7█▀█$f1██$f7█▀█$f1██▄ $f2▄█$f7███$f2██$f7███$f2█▄ $f4▄█$f7███$f4██$f7███$f4█▄ $f5▄█$f7███$f5██$f7███$f5█▄ $f6▄██$f7█▀█$f6██$f7█▀█$f6▄ 24 | $f3███████▀ $f7▄▄ ▄▄ ▄▄ $f1█$f7▄▄█$f1██$f7▄▄█$f1███ $f2██$f7█ █$f2██$f7█ █$f2██ $f4██$f7█ █$f4██$f7█ █$f4██ $f5██$f7█ █$f5██$f7█ █$f5██ $f6███$f7█▄▄$f6██$f7█▄▄$f6█ 25 | $f3███████▄ $f7▀▀ ▀▀ ▀▀ $f1████████████ $f2████████████ $f4████████████ $f5████████████ $f6████████████ 26 | $f3▀█████████▄▄ $f1██▀██▀▀██▀██ $f2██▀██▀▀██▀██ $f4██▀██▀▀██▀██ $f5██▀██▀▀██▀██ $f6██▀██▀▀██▀██ 27 | $f3 ▀███████▀ $f1▀ ▀ ▀ ▀ $f2▀ ▀ ▀ ▀ $f4▀ ▀ ▀ ▀ $f5▀ ▀ ▀ ▀ $f6▀ ▀ ▀ ▀ 28 | $bld 29 | $f3 ▄███████▄ $f1 ▄██████▄ $f2 ▄██████▄ $f4 ▄██████▄ $f5 ▄██████▄ $f6 ▄██████▄ 30 | $f3▄█████████▀▀ $f1▄$f7█▀█$f1██$f7█▀█$f1██▄ $f2▄█$f7█ █$f2██$f7█ █$f2█▄ $f4▄█$f7█ █$f4██$f7█ █$f4█▄ $f5▄█$f7█ █$f5██$f7█ █$f5█▄ $f6▄██$f7█▀█$f6██$f7█▀█$f6▄ 31 | $f3███████▀ $f7▄▄ ▄▄ ▄▄ $f1█$f7▄▄█$f1██$f7▄▄█$f1███ $f2██$f7███$f2██$f7███$f2██ $f4██$f7███$f4██$f7███$f4██ $f5██$f7███$f5██$f7███$f5██ $f6███$f7█▄▄$f6██$f7█▄▄$f6█ 32 | $f3███████▄ $f7▀▀ ▀▀ ▀▀ $f1████████████ $f2████████████ $f4████████████ $f5████████████ $f6████████████ 33 | $f3▀█████████▄▄ $f1██▀██▀▀██▀██ $f2██▀██▀▀██▀██ $f4██▀██▀▀██▀██ $f5██▀██▀▀██▀██ $f6██▀██▀▀██▀██ 34 | $f3 ▀███████▀ $f1▀ ▀ ▀ ▀ $f2▀ ▀ ▀ ▀ $f4▀ ▀ ▀ ▀ $f5▀ ▀ ▀ ▀ $f6▀ ▀ ▀ ▀ 35 | $rst 36 | EOF 37 | -------------------------------------------------------------------------------- /.scripts/toys/panes: -------------------------------------------------------------------------------- 1 | #!/data/data/com.termux/files/usr/bin/env bash 2 | 3 | # Author: GekkoP 4 | # Source: http://linuxbbq.org/bbs/viewtopic.php?f=4&t=1656#p33189 5 | 6 | f=3 b=4 7 | for j in f b; do 8 | for i in {0..7}; do 9 | printf -v $j$i %b "\e[${!j}${i}m" 10 | done 11 | done 12 | d=$'\e[1m' 13 | t=$'\e[0m' 14 | v=$'\e[7m' 15 | 16 | 17 | cat << EOF 18 | 19 | $f1███$d▄$t $f2███$d▄$t $f3███$d▄$t $f4███$d▄$t $f5███$d▄$t $f6███$d▄$t $f7███$d▄$t 20 | $f1███$d█$t $f2███$d█$t $f3███$d█$t $f4███$d█$t $f5███$d█$t $f6███$d█$t $f7███$d█$t 21 | $f1███$d█$t $f2███$d█$t $f3███$d█$t $f4███$d█$t $f5███$d█$t $f6███$d█$t $f7███$d█$t 22 | $d$f1 ▀▀▀ $f2▀▀▀ $f3▀▀▀ $f4▀▀▀ $f5▀▀▀ $f6▀▀▀ $f7▀▀▀ 23 | EOF 24 | -------------------------------------------------------------------------------- /.scripts/toys/pipes1: -------------------------------------------------------------------------------- 1 | #!/data/data/com.termux/files/usr/bin/env bash 2 | # Animated pipes.sh terminal screensaver at an angle. 3 | # Copyright (C) 2013 by Yu-Jie Lin 4 | # 5 | # Permission is hereby granted, free of charge, to any person obtaining a copy 6 | # of this software and associated documentation files (the "Software"), to deal 7 | # in the Software without restriction, including without limitation the rights 8 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | # copies of the Software, and to permit persons to whom the Software is 10 | # furnished to do so, subject to the following conditions: 11 | # 12 | # The above copyright notice and this permission notice shall be included in 13 | # all copies or substantial portions of the Software. 14 | # 15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | # THE SOFTWARE. 22 | # 23 | # Blog: http://blog.yjl.im/2013/07/pipesxsh-animated-pipessh-terminal.html 24 | # Gist: https://gist.github.com/livibetter/5974905 25 | # Screenshot: https://lh3.googleusercontent.com/-UaCta_DtgrQ/Ud6dqIgcfmI/AAAAAAAAE_8/VXPac0OpULU/s800/pipesX.sh.gif 26 | # Screenshot: https://lh6.googleusercontent.com/-yBety-A8J_c/Ud6dk10sjBI/AAAAAAAAE_0/S98aRRV8t0s/s800/pipesX.sh%25202013-07-11--19%253A51%253A05.png 27 | # Screencast: http://youtu.be/dITTlFPYVPA 28 | 29 | W=$(tput cols) H=$(tput lines) 30 | # maximal random value + 1 31 | M=32768 32 | 33 | SETS=('╱╲' '/\') 34 | COLORS=(31 32 33 34 35 36 37) 35 | 36 | # default values 37 | N=1 38 | T=0 39 | I=0.05 40 | P=25 41 | R=$((W * H / 4)) 42 | 43 | HELP="Usage: $(basename $0) [OPTIONS] 44 | Animated pipes.sh terminal screensaver at an angle. 45 | 46 | Options: 47 | 48 | -n [1-] number of pipes. (Default: $N) 49 | -t [0-$((${#SETS[@]} - 1))] type of pipes. (Default: $T) 50 | -i [float] piping interval or maze generation interval. (Default: $I) 51 | -P [0-100] probability of a turning pipe or of \\ in maze generation. (Default: $P) 52 | -r [LIMIT] reset after x characters, 0 if no limit. (Default: $R) 53 | -R random starting point. 54 | -C no color. 55 | -X maze generation. 56 | -h this help message. 57 | " 58 | 59 | while getopts "n:t:i:P:r:RCXh" arg; do 60 | case $arg in 61 | n) 62 | ((N = OPTARG > 0 ? OPTARG : N)) 63 | ;; 64 | t) 65 | ((T = (OPTARG >= 0 && OPTARG < ${#SETS[@]}) ? OPTARG : T)) 66 | ;; 67 | i) 68 | I=$OPTARG 69 | ;; 70 | P) 71 | ((P = (OPTARG >= 0 && OPTARG <= 100) ? OPTARG : P)) 72 | ;; 73 | r) 74 | ((R = OPTARG >= 0 ? OPTARG : R)) 75 | ;; 76 | R) 77 | RNDSTART=1 78 | ;; 79 | C) 80 | NOCOLOR=1 81 | ;; 82 | X) 83 | MAZE=1 84 | ;; 85 | h) 86 | echo -e "$HELP" 87 | exit 0 88 | ;; 89 | esac 90 | done 91 | 92 | do_exit() { 93 | # Show cursor and echo stdin 94 | echo -ne "\e[?25h" 95 | stty echo 96 | clear 97 | exit 0 98 | } 99 | trap do_exit INT TERM 100 | 101 | # No echo stdin and hide the cursor 102 | stty -echo 103 | echo -ne "\e[?25l" 104 | 105 | # maze geneartion 106 | while [[ $MAZE ]] && clear; do 107 | [[ $NOCOLOR ]] || echo -ne "\e[1;${COLORS[${#COLORS[@]} * RANDOM / M]}m" 108 | for ((i = 0; i < W * H; i++ )); do 109 | echo -ne ${SETS[T]:100 * RANDOM / M < P:1} 110 | done 111 | read -t $I -n 1 && [[ $REPLY =~ q|Q ]] && do_exit 112 | done 113 | 114 | # initialze values 115 | for ((n = 0; n < N; n++)); do 116 | ((X[n] = RNDSTART ? (W + 2) * RANDOM / M : W / 2)) 117 | ((Y[n] = RNDSTART ? (H + 2) * RANDOM / M : H / 2)) 118 | D[n]=$((4 * RANDOM / M)) 119 | C[n]=${COLORS[${#COLORS[@]} * RANDOM / M]} 120 | done 121 | 122 | clear 123 | while :; do 124 | for ((n = 0; n < N; n++, CC = 0)); do 125 | x=${X[n]} y=${Y[n]} 126 | d=${D[n]} c=${C[n]} 127 | 128 | # calculate new direction `d` 129 | # 1 0 130 | # \/ 4 directions 0 to 3 131 | # /\ 132 | # 2 3 133 | # valid directions: d: dd', d' is the new direction 134 | # d 135 | # 0: / 00 \ 01 03 136 | # / / /\ 137 | # 1: / 10 \ 11 12 138 | # \ \ /\ 139 | # 2: \/ 21 / 22 / 23 140 | # / \ 141 | # 3: \/ 30 \ 32 \ 33 142 | # / \ 143 | ((d = (100 * RANDOM / M) < P ? ((d + 1) + 2 * (RANDOM % 2)) % 4 : d)) 144 | ((e = (d + 1) % 4)) 145 | 146 | # calculate new position 147 | # d' x' y' 148 | # 0: x+1 y-1 149 | # 1: x-1 y-1 150 | # 2: x-1 y+1 151 | # 3: x+1 y+1 152 | ((xn = e < 2 ? x + 1 : x - 1)) 153 | ((yn = d < 2 ? y - 1 : y + 1)) 154 | 155 | # adjust position and change color? 156 | ((d < 2 && y == 0)) && ((yn--, CC=1)) 157 | ((e > 1 && x == 0)) && ((xn--, CC=1)) 158 | ((d > 1 && y == H)) && ((yn++, CC=1)) 159 | ((e < 2 && x == W)) && ((xn++, CC=1)) 160 | ((CC)) && c=${COLORS[${#COLORS[@]} * RANDOM / M]} 161 | 162 | # warp pipe 163 | ((xn = (xn + W + 1) % (W + 1))) 164 | ((yn = (yn + H + 1) % (H + 1))) 165 | 166 | # calculate position in terminal 167 | # d' xt yt 168 | # 0: x' y'+1 169 | # 1: x'+1 y'+1 170 | # 2: x'+1 y' 171 | # 3: x' y' 172 | ((xt = e < 2 ? xn : xn + 1)) 173 | ((yt = d < 2 ? yn + 1 : yn)) 174 | 175 | echo -ne "\e[${yt};${xt}H" 176 | [[ $NOCOLOR ]] || echo -ne "\e[1;${c}m" 177 | echo -n "${SETS[T]:d%2:1}" 178 | 179 | X[n]=$xn Y[n]=$yn 180 | D[n]=$d C[n]=$c 181 | done 182 | read -t $I -n 1 && [[ $REPLY =~ q|Q ]] && do_exit 183 | ((R)) && ((r += N, r >= R)) && r=0 && clear 184 | done 185 | 186 | do_exit 187 | 188 | -------------------------------------------------------------------------------- /.scripts/toys/pipes2: -------------------------------------------------------------------------------- 1 | #!/data/data/com.termux/files/usr/bin/env bash 2 | 3 | declare -i f=75 s=13 r=2000 t=0 c=1 n=0 l=0 4 | declare -ir w=$(tput cols) h=$(tput lines) 5 | declare -i x=$((w/2)) y=$((h/2)) 6 | declare -ar v=( [00]="\x83" [01]="\x8f" [03]="\x93" 7 | [10]="\x9b" [11]="\x81" [12]="\x93" 8 | [21]="\x97" [22]="\x83" [23]="\x9b" 9 | [30]="\x97" [32]="\x8f" [33]="\x81" ) 10 | 11 | OPTIND=1 12 | while getopts "f:s:r:h" arg; do 13 | case $arg in 14 | f) ((f=($OPTARG>19 && $OPTARG<101)?$OPTARG:$f));; 15 | s) ((s=($OPTARG>4 && $OPTARG<16 )?$OPTARG:$s));; 16 | r) ((r=($OPTARG>0)?$OPTARG:$r));; 17 | h) echo -e "Usage: pipes [OPTION]..." 18 | echo -e "Animated pipes terminal screensaver.\n" 19 | echo -e " -f [20-100]\tframerate (D=75)." 20 | echo -e " -s [5-15]\tprobability of a straight fitting (D=13)." 21 | echo -e " -r LIMIT\treset after x characters (D=2000)." 22 | echo -e " -h\t\thelp (this screen).\n" 23 | exit 0;; 24 | esac 25 | done 26 | 27 | tput smcup 28 | tput reset 29 | tput civis 30 | while ! read -t0.0$((1000/$f)) -n1; do 31 | # New position: 32 | (($l%2)) && ((x+=($l==1)?1:-1)) 33 | ((!($l%2))) && ((y+=($l==2)?1:-1)) 34 | 35 | # Loop on edges (change color on loop): 36 | ((c=($x>$w || $x<0 || $y>$h || $y<0)?($RANDOM%7-1):$c)) 37 | ((x=($x>$w)?0:(($x<0)?$w:$x))) 38 | ((y=($y>$h)?0:(($y<0)?$h:$y))) 39 | 40 | # New random direction: 41 | ((n=$RANDOM%$s-1)) 42 | ((n=($n>1||$n==0)?$l:$l+$n)) 43 | ((n=($n<0)?3:$n%4)) 44 | 45 | # Print: 46 | tput cup $y $x 47 | echo -ne "\033[1;3${c}m\xe2\x94${v[$l$n]}" 48 | (($t>$r)) && tput reset && tput civis && t=0 || ((t++)) 49 | l=$n 50 | done 51 | tput rmcup 52 | 53 | -------------------------------------------------------------------------------- /.scripts/toys/pipes2-slim: -------------------------------------------------------------------------------- 1 | #!/data/data/com.termux/files/usr/bin/env bash 2 | 3 | declare -i f=75 s=13 r=2000 t=0 c=1 n=0 l=0 4 | declare -ir w=$(tput cols) h=$(tput lines) 5 | declare -i x=$((w/2)) y=$((h/2)) 6 | 7 | declare -ar v=( [00]="\x82" [01]="\x8c" [03]="\x90" #### 8 | [10]="\x98" [11]="\x80" [12]="\x90" # Normal UTF-8 box characters. 9 | [21]="\x94" [22]="\x82" [23]="\x98" # (These are the default for they are supported almost everywhere.) 10 | [30]="\x94" [32]="\x8c" [33]="\x80" ) #### 11 | 12 | # declare -ar v=( [00]="\x83" [01]="\x8f" [03]="\x93" #### 13 | # [10]="\x9b" [11]="\x81" [12]="\x93" # Heavy UTF-8 box characters. 14 | # [21]="\x97" [22]="\x83" [23]="\x9b" # (Uncomment only if your terminal supports it) 15 | # [30]="\x97" [32]="\x8f" [33]="\x81" ) #### 16 | 17 | OPTIND=1 18 | while getopts "f:s:r:h" arg; do 19 | case $arg in 20 | f) ((f=($OPTARG>19 && $OPTARG<101)?$OPTARG:$f));; 21 | s) ((s=($OPTARG>4 && $OPTARG<16 )?$OPTARG:$s));; 22 | r) ((r=($OPTARG>0)?$OPTARG:$r));; 23 | h) echo -e "Usage: pipes [OPTION]..." 24 | echo -e "Animated pipes terminal screensaver.\n" 25 | echo -e " -f [20-100]\tframerate (D=75)." 26 | echo -e " -s [5-15]\tprobability of a straight fitting (D=13)." 27 | echo -e " -r LIMIT\treset after x characters (D=2000)." 28 | echo -e " -h\t\thelp (this screen).\n" 29 | exit 0;; 30 | esac 31 | done 32 | 33 | tput smcup 34 | tput reset 35 | tput civis 36 | 37 | trap "tput rmcup; tput reset; exit" SIGINT 38 | 39 | while true; do 40 | # New position: 41 | (($l%2)) && ((x+=($l==1)?1:-1)) 42 | ((!($l%2))) && ((y+=($l==2)?1:-1)) 43 | 44 | # Loop on edges (change color on loop): 45 | ((c=($x>$w || $x<0 || $y>$h || $y<0)?($RANDOM%7):$c)) 46 | ((x=($x>$w)?0:(($x<0)?$w:$x))) 47 | ((y=($y>$h)?0:(($y<0)?$h:$y))) 48 | 49 | # New random direction: 50 | ((n=$RANDOM%$s-1)) 51 | ((n=($n>1||$n==0)?$l:$l+$n)) 52 | ((n=($n<0)?3:$n%4)) 53 | 54 | # Print: 55 | tput cup $y $x 56 | printf "\033[1;3${c}m\xe2\x94${v[$l$n]}" 57 | (($t>$r)) && tput reset && tput civis && t=0 || ((t++)) 58 | l=$n 59 | sleep $(echo "scale=5;1/$f"|bc) 60 | done 61 | -------------------------------------------------------------------------------- /.scripts/toys/pipesx: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Animated pipes.sh terminal screensaver at an angle. 3 | # Copyright (c) 2013-2015 Yu-Jie Lin 4 | # 5 | # Permission is hereby granted, free of charge, to any person obtaining a copy 6 | # of this software and associated documentation files (the "Software"), to deal 7 | # in the Software without restriction, including without limitation the rights 8 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | # copies of the Software, and to permit persons to whom the Software is 10 | # furnished to do so, subject to the following conditions: 11 | # 12 | # The above copyright notice and this permission notice shall be included in 13 | # all copies or substantial portions of the Software. 14 | # 15 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | # THE SOFTWARE. 22 | # 23 | # Website: https://github.com/pipeseroni/pipesX.sh 24 | 25 | VERSION=1.1.0 26 | 27 | W=$(tput cols) H=$(tput lines) 28 | # maximal random value + 1 29 | M=32768 30 | 31 | SETS=('╱╲' '/\' '..' 'oo' '\/') 32 | COLORS=(31 32 33 34 35 36 37) 33 | 34 | # default values 35 | N=1 36 | T=() 37 | I=0.05 38 | P=25 39 | R=$((W * H / 4)) 40 | 41 | HELP="Usage: $(basename $0) [OPTIONS] 42 | Animated pipes.sh terminal screensaver at an angle. 43 | Options: 44 | -n [1-] number of pipes. (Default: $N) 45 | -t [0-$((${#SETS[@]} - 1))] types of pipes, can be used more than once. (Default: $T) 46 | -t c[2chs] custom type of pipes. 47 | -i [float] piping interval or maze generation interval. (Default: $I) 48 | -P [0-100] probability of a turning pipe or of \\ in maze generation. (Default: $P) 49 | -r [LIMIT] reset after x characters, 0 if no limit. (Default: $R) 50 | -R random starting point. 51 | -C no color. 52 | -X maze generation. 53 | -h this help message. 54 | -v print version number. 55 | " 56 | 57 | while getopts "n:t:i:P:r:RCXhv" arg; do 58 | case $arg in 59 | n) 60 | ((N = OPTARG > 0 ? OPTARG : N)) 61 | ;; 62 | t) 63 | if [[ "$OPTARG" = c?? ]]; then 64 | T+=(${#SETS[@]}) 65 | SETS+=("${OPTARG:1}") 66 | else 67 | T+=($(((OPTARG >= 0 && OPTARG < ${#SETS[@]}) ? OPTARG : T))) 68 | fi 69 | ;; 70 | i) 71 | I=$OPTARG 72 | ;; 73 | P) 74 | ((P = (OPTARG >= 0 && OPTARG <= 100) ? OPTARG : P)) 75 | ;; 76 | r) 77 | ((R = OPTARG >= 0 ? OPTARG : R)) 78 | ;; 79 | R) 80 | RNDSTART=1 81 | ;; 82 | C) 83 | NOCOLOR=1 84 | ;; 85 | X) 86 | MAZE=1 87 | ;; 88 | h) 89 | echo -e "$HELP" 90 | exit 0 91 | ;; 92 | v) 93 | echo "$(basename -- "$0") $VERSION" 94 | exit 0 95 | esac 96 | done 97 | 98 | # set to default values if not by options 99 | ((${#T[@]})) || T=(0) 100 | 101 | do_exit() { 102 | # clear up standard input 103 | read -t 0.001 && cat /dev/null 104 | 105 | # terminal has no smcup and rmcup capabilities 106 | ((FORCE_RESET)) && reset && exit 0 107 | 108 | tput rmcup 109 | tput cnorm 110 | stty echo 111 | ((NOCOLOR)) && echo -ne '\e[0m' 112 | exit 0 113 | } 114 | trap do_exit HUP TERM 115 | trap 'break 2' INT 116 | 117 | # No echo stdin and hide the cursor 118 | stty -echo 119 | tput smcup || FORCE_RESET=1 120 | tput civis 121 | tput clear 122 | 123 | # maze geneartion 124 | while [[ $MAZE ]] && clear; do 125 | [[ $NOCOLOR ]] || echo -ne "\e[1;${COLORS[${#COLORS[@]} * RANDOM / M]}m" 126 | for ((i = 0; i < W * H; i++ )); do 127 | echo -ne ${SETS[T]:100 * RANDOM / M < P:1} 128 | done 129 | read -t $I -n 1 && [[ $REPLY =~ q|Q ]] && do_exit 130 | done 131 | 132 | # initialze values 133 | for ((n = 0; n < N; n++)); do 134 | ((X[n] = RNDSTART ? (W + 2) * RANDOM / M : W / 2)) 135 | ((Y[n] = RNDSTART ? (H + 2) * RANDOM / M : H / 2)) 136 | D[n]=$((4 * RANDOM / M)) 137 | C[n]=${COLORS[${#COLORS[@]} * RANDOM / M]} 138 | t[n]=${T[${#T[@]} * RANDOM / M]} 139 | done 140 | 141 | clear 142 | while REPLY=; read -t $I -n 1; [[ -z $REPLY ]] ; do 143 | for ((n = 0; n < N; n++, CC = 0)); do 144 | x=${X[n]} y=${Y[n]} 145 | d=${D[n]} c=${C[n]} 146 | 147 | # calculate new direction `d` 148 | # 1 0 149 | # \/ 4 directions 0 to 3 150 | # /\ 151 | # 2 3 152 | # valid directions: d: dd', d' is the new direction 153 | # d 154 | # 0: / 00 \ 01 03 155 | # / / /\ 156 | # 1: / 10 \ 11 12 157 | # \ \ /\ 158 | # 2: \/ 21 / 22 / 23 159 | # / \ 160 | # 3: \/ 30 \ 32 \ 33 161 | # / \ 162 | ((d = (100 * RANDOM / M) < P ? ((d + 1) + 2 * (RANDOM % 2)) % 4 : d)) 163 | ((e = (d + 1) % 4)) 164 | 165 | # calculate new position 166 | # d' x' y' 167 | # 0: x+1 y-1 168 | # 1: x-1 y-1 169 | # 2: x-1 y+1 170 | # 3: x+1 y+1 171 | ((xn = e < 2 ? x + 1 : x - 1)) 172 | ((yn = d < 2 ? y - 1 : y + 1)) 173 | 174 | # adjust position and change color? 175 | ((d < 2 && y == 0)) && ((yn--, CC=1)) 176 | ((e > 1 && x == 0)) && ((xn--, CC=1)) 177 | ((d > 1 && y == H)) && ((yn++, CC=1)) 178 | ((e < 2 && x == W)) && ((xn++, CC=1)) 179 | ((CC)) && c=${COLORS[${#COLORS[@]} * RANDOM / M]} 180 | ((CC)) && t[n]=${T[${#T[@]} * RANDOM / M]} 181 | 182 | # warp pipe 183 | ((xn = (xn + W + 1) % (W + 1))) 184 | ((yn = (yn + H + 1) % (H + 1))) 185 | 186 | # calculate position in terminal 187 | # d' xt yt 188 | # 0: x' y'+1 189 | # 1: x'+1 y'+1 190 | # 2: x'+1 y' 191 | # 3: x' y' 192 | ((xt = e < 2 ? xn : xn + 1)) 193 | ((yt = d < 2 ? yn + 1 : yn)) 194 | 195 | echo -ne "\e[${yt};${xt}H" 196 | [[ $NOCOLOR ]] || echo -ne "\e[1;${c}m" 197 | echo -n "${SETS[t[n]]:d%2:1}" 198 | 199 | X[n]=$xn Y[n]=$yn 200 | D[n]=$d C[n]=$c 201 | done 202 | ((R)) && ((r += N, r >= R)) && r=0 && clear 203 | done 204 | 205 | do_exit 206 | -------------------------------------------------------------------------------- /.scripts/toys/rains: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | RAINS=("|" "│" "┃" "┆" "┇" "┊" "┋" "╽" "╿") 3 | COLORS=("\e[37m" "\e[37;1m") 4 | # More from 256 color mode 5 | for i in {244..255}; do 6 | COLORS=("${COLORS[@]}" "\e[38;5;${i}m") 7 | done 8 | NRAINS=${#RAINS[@]} 9 | NCOLORS=${#COLORS[@]} 10 | NUM_RAIN_METADATA=5 11 | 12 | 13 | sigwinch() { 14 | TERM_WIDTH=$(tput cols) 15 | TERM_HEIGHT=$(tput lines) 16 | STEP_DURATION=0.025 17 | ((MAX_RAINS = TERM_WIDTH * TERM_HEIGHT / 4)) 18 | ((MAX_RAIN_LENGTH = TERM_HEIGHT < 10 ? 1 : TERM_HEIGHT / 10)) 19 | # In percentage 20 | ((NEW_RAIN_ODD = TERM_HEIGHT > 50 ? 100 : TERM_HEIGHT * 2)) 21 | ((NEW_RAIN_ODD = NEW_RAIN_ODD * 75 / 100)) 22 | ((FALLING_ODD = TERM_HEIGHT > 25 ? 100 : TERM_HEIGHT * 4)) 23 | ((FALLING_ODD = FALLING_ODD * 90 / 100)) 24 | } 25 | 26 | do_exit() { 27 | echo -ne "\e[${TERM_HEIGHT};1H\e[0K" 28 | 29 | # Show cursor and echo stdin 30 | echo -ne "\e[?25h" 31 | stty echo 32 | exit 0 33 | } 34 | 35 | do_render() { 36 | # Clean screen first 37 | for ((idx = 0; idx < num_rains * NUM_RAIN_METADATA; idx += NUM_RAIN_METADATA)); do 38 | X=${rains[idx]} 39 | Y=${rains[idx + 1]} 40 | LENGTH=${rains[idx + 4]} 41 | for ((y = Y; y < Y + LENGTH; y++)); do 42 | (( y < 1 || y > TERM_HEIGHT )) && continue 43 | echo -ne "\e[${y};${X}H " 44 | done 45 | done 46 | 47 | for ((idx = 0; idx < num_rains * NUM_RAIN_METADATA; idx += NUM_RAIN_METADATA)); do 48 | if ((100 * RANDOM / 32768 < FALLING_ODD)); then 49 | # Falling 50 | if ((++rains[idx + 1] > TERM_HEIGHT)); then 51 | # Out of screen, bye sweet <3 52 | rains=("${rains[@]:0:idx}" 53 | "${rains[@]:idx+NUM_RAIN_METADATA:num_rains*NUM_RAIN_METADATA}") 54 | ((num_rains--)) 55 | continue 56 | fi 57 | fi 58 | X=${rains[idx]} 59 | Y=${rains[idx + 1]} 60 | RAIN=${rains[idx + 2]} 61 | COLOR=${rains[idx + 3]} 62 | LENGTH=${rains[idx + 4]} 63 | for ((y = Y; y < Y + LENGTH; y++)); do 64 | (( y < 1 || y > TERM_HEIGHT )) && continue 65 | echo -ne "\e[${y};${X}H${COLOR}${RAIN}" 66 | done 67 | done 68 | } 69 | 70 | trap do_exit TERM INT 71 | trap sigwinch WINCH 72 | # No echo stdin and hide the cursor 73 | stty -echo 74 | echo -ne "\e[?25l" 75 | 76 | echo -ne "\e[2J" 77 | rains=() 78 | sigwinch 79 | while :; do 80 | read -n 1 -t $STEP_DURATION ch 81 | case "$ch" in 82 | q|Q) 83 | do_exit 84 | ;; 85 | esac 86 | 87 | if ((num_rains < MAX_RAINS)) && ((100 * RANDOM / 32768 < NEW_RAIN_ODD)); then 88 | # Need new |, 1-based 89 | RAIN="${RAINS[NRAINS * RANDOM / 32768]}" 90 | COLOR="${COLORS[NCOLORS * RANDOM / 32768]}" 91 | LENGTH=$((MAX_RAIN_LENGTH * RANDOM / 32768 + 1)) 92 | X=$((TERM_WIDTH * RANDOM / 32768 + 1)) 93 | Y=$((1 - LENGTH)) 94 | rains=("${rains[@]}" "$X" "$Y" "$RAIN" "$COLOR" "$LENGTH") 95 | ((num_rains++)) 96 | fi 97 | 98 | # Let rain fall! 99 | do_render 100 | done 101 | -------------------------------------------------------------------------------- /.scripts/toys/spacey: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # ANSI color scheme script featuring Space Invaders 4 | # 5 | # Original: http://crunchbanglinux.org/forums/post/126921/#p126921 6 | # Modified by lolilolicon 7 | # 8 | 9 | f=3 b=4 10 | for j in f b; do 11 | for i in {0..7}; do 12 | printf -v $j$i %b "\e[${!j}${i}m" 13 | done 14 | done 15 | bld=$'\e[1m' 16 | rst=$'\e[0m' 17 | 18 | cat << EOF 19 | $f1 ▀▄ ▄▀ $f2 ▄▄▄████▄▄▄ $f3 ▄██▄ $f4 ▀▄ ▄▀ $f5 ▄▄▄████▄▄▄ $f6 ▄██▄ $rst 20 | $f1 ▄█▀███▀█▄ $f2███▀▀██▀▀███ $f3▄█▀██▀█▄ $f4 ▄█▀███▀█▄ $f5███▀▀██▀▀███ $f6▄█▀██▀█▄$rst 21 | $f1█▀███████▀█ $f2▀▀███▀▀███▀▀ $f3▀█▀██▀█▀ $f4█▀███████▀█ $f5▀▀███▀▀███▀▀ $f6▀█▀██▀█▀$rst 22 | $f1▀ ▀▄▄ ▄▄▀ ▀ $f2 ▀█▄ ▀▀ ▄█▀ $f3▀▄ ▄▀ $f4▀ ▀▄▄ ▄▄▀ ▀ $f5 ▀█▄ ▀▀ ▄█▀ $f6▀▄ ▄▀$rst 23 | $bld$f1▄ ▀▄ ▄▀ ▄ $f2 ▄▄▄████▄▄▄ $f3 ▄██▄ $f4▄ ▀▄ ▄▀ ▄ $f5 ▄▄▄████▄▄▄ $f6 ▄██▄ $rst 24 | $bld$f1█▄█▀███▀█▄█ $f2███▀▀██▀▀███ $f3▄█▀██▀█▄ $f4█▄█▀███▀█▄█ $f5███▀▀██▀▀███ $f6▄█▀██▀█▄$rst 25 | $bld$f1▀█████████▀ $f2▀▀▀██▀▀██▀▀▀ $f3▀▀█▀▀█▀▀ $f4▀█████████▀ $f5▀▀▀██▀▀██▀▀▀ $f6▀▀█▀▀█▀▀$rst 26 | $bld$f1 ▄▀ ▀▄ $f2▄▄▀▀ ▀▀ ▀▀▄▄ $f3▄▀▄▀▀▄▀▄ $f4 ▄▀ ▀▄ $f5▄▄▀▀ ▀▀ ▀▀▄▄ $f6▄▀▄▀▀▄▀▄$rst 27 | $f7▌$rst 28 | $f7▌$rst 29 | $f7 ▄█▄ $rst 30 | $f7▄█████████▄$rst 31 | $f7▀▀▀▀▀▀▀▀▀▀▀$rst 32 | EOF 33 | -------------------------------------------------------------------------------- /.scripts/zsh/changetheme.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | LIBRARYS=( 4 | animation signal cursor colors stat 5 | ) 6 | 7 | LIBRARY_PATH="${HOME}/.scripts/library" 8 | 9 | for LIBRARY in ${LIBRARYS[@]}; do 10 | source ${LIBRARY_PATH}/${LIBRARY}.sh 11 | done 12 | 13 | ZSH_CUSTOM_THEME_DIR="${HOME}/.oh-my-zsh/custom/themes" 14 | GET_ZSH_THEME_USED=$(cat ${HOME}/.zshrc | grep ZSH_THEME | sed 's .\{10\} ' | sed 's/"//g') 15 | INDEX_LOOP=0 16 | 17 | THEME_USED_PATH="${HOME}/.config/mytermux/zsh" 18 | THEME_USED_FILE_NAME="used.log" 19 | THEME_USED="$(cat ${THEME_USED_PATH}/${THEME_USED_FILE_NAME})" 20 | 21 | ZSH_CONFIGURATION_PATH="${HOME}/.zshrc" 22 | ZSH_CONFIGURATION_THEME_USED="$(echo ${THEME_USED} | sed 's/.zsh-theme//g')" 23 | 24 | function banner() { 25 | 26 | echo -e " 27 | \e[3$(( $RANDOM * 6 / 32767 + 1 ))m ____ __ __ ___ _____ _____ __ __ 28 | \e[9$(( $RANDOM * 6 / 32767 + 1 ))m / __ \/ /_ / |/ /_ __ /__ / / ___// / / / 29 | \e[3$(( $RANDOM * 6 / 32767 + 1 ))m / / / / __ \______/ /|_/ / / / /_____/ / \__ \/ /_/ / 30 | \e[9$(( $RANDOM * 6 / 32767 + 1 ))m/ /_/ / / / /_____/ / / / /_/ /_____/ /_____/ / __ / 31 | \e[3$(( $RANDOM * 6 / 32767 + 1 ))m\____/_/ /_/ /_/ /_/\__, / /____/____/_/ /_/ 32 | \e[9$(( $RANDOM * 6 / 32767 + 1 ))m /____/ 33 | ${COLOR_BASED}\n" 34 | 35 | } 36 | 37 | function listZshTheme() { 38 | 39 | clear 40 | setCursor off 41 | banner 42 | printf " %3s %10s %4s\n\n" "No." "List Theme" "Status" 43 | 44 | if [ "${THEME_USED}" == "powerlevel10k/powerlevel10k" ]; then 45 | THEME_USED="powerlevel10k" 46 | fi 47 | 48 | for ZSHTHEME in ${ZSH_CUSTOM_THEME_DIR}/*; do 49 | 50 | ZSHTHEME_FILE_NAME[INDEX_LOOP]=$( echo ${ZSHTHEME} | awk -F'/' '{print $NF}') 51 | ZSHTHEME_LIST_NAME[INDEX_LOOP]=$( echo ${ZSHTHEME} | awk -F'/' '{print $NF}' | sed "s/.zsh-theme//g") 52 | 53 | if [ "${THEME_USED}" == "${ZSHTHEME_FILE_NAME[INDEX_LOOP]}" ]; then 54 | 55 | printf "[${COLOR_SUCCESS}%2s${COLOR_BASED}] ${COLOR_SUCCESS}%-23s -->${COLOR_BASED} \ 56 | ${COLOR_SUCCESS}%-4s${COLOR_BASED}\n" ${INDEX_LOOP} ${ZSHTHEME_LIST_NAME[INDEX_LOOP]} "USED" 57 | 58 | else 59 | 60 | printf "[${COLOR_WARNING}%2s${COLOR_BASED}] %-23s\n" ${INDEX_LOOP} ${ZSHTHEME_LIST_NAME[INDEX_LOOP]} 61 | 62 | fi 63 | 64 | INDEX_LOOP=$(( ${INDEX_LOOP} + 1 )); 65 | 66 | done 67 | 68 | INDEX_LOOP=$(( ${INDEX_LOOP} - 1 )); 69 | 70 | echo "" 71 | 72 | } 73 | 74 | function selectZshTheme() { 75 | 76 | setCursor on 77 | 78 | while :; do 79 | 80 | read -p "Select ZSH theme: " INDEX_THEME 81 | 82 | if [ -z "${INDEX_THEME}" ]; then 83 | 84 | break; 85 | 86 | elif ! [[ ${INDEX_THEME} =~ ^[0-9]+$ ]]; then 87 | 88 | stat "ERROR" "Danger" "Unknown '${COLOR_DANGER}number${COLOR_BASED}', please enter the right number!\n" 89 | 90 | elif (( ${INDEX_THEME} >= 0 && ${INDEX_THEME} <= ${INDEX_LOOP} )); then 91 | 92 | eval CHOICE=${ZSHTHEME_LIST_NAME[INDEX_THEME]} 93 | 94 | if [ "${CHOICE}" == "powerlevel10k" ]; then 95 | CHOICE="powerlevel10k\/powerlevel10k" 96 | fi 97 | 98 | if [ "${ZSH_CONFIGURATION_THEME_USED}" == "powerlevel10k" ]; then 99 | ZSH_CONFIGURATION_THEME_USED="powerlevel10k\/powerlevel10k" 100 | fi 101 | 102 | start_animation "Applying Theme ..." 103 | sleep 1s 104 | 105 | if sed -i "s/ZSH_THEME=\"${ZSH_CONFIGURATION_THEME_USED}\"/ZSH_THEME=\"${CHOICE}\"/g" ${ZSH_CONFIGURATION_PATH}; then 106 | 107 | if [ ! -f ${THEME_USED_PATH}/${THEME_USED_FILE_NAME} ]; then 108 | 109 | echo -e "${ZSHTHEME_FILE_NAME[INDEX_THEME]}" >> ${THEME_USED_PATH}/${THEME_USED_FILE_NAME} 110 | 111 | elif [ -f ${THEME_USED_PATH}/${THEME_USED_FILE_NAME} ]; then 112 | 113 | sed -i "s/${THEME_USED}/${ZSHTHEME_FILE_NAME[INDEX_THEME]}/g" ${THEME_USED_PATH}/${THEME_USED_FILE_NAME} 114 | 115 | fi 116 | 117 | stop_animation $? 118 | 119 | echo "" 120 | 121 | exec $(which zsh) 122 | 123 | #stat "INFO" "Success" "Please run '${COLOR_SUCCESS}refresh${COLOR_BASED}' or '${COLOR_SUCCESS}source ~/.zshrc${COLOR_BASED}' to apply theme!\n" 124 | 125 | # source ${ZSH_CONFIGURATION_PATH} 126 | 127 | else 128 | 129 | stop_animation $? 130 | 131 | fi 132 | 133 | break 134 | 135 | else 136 | 137 | stat "ERROR" "Danger" "Unknown '${COLOR_DANGER}number${COLOR_BASED}', please enter the right number!\n" 138 | 139 | fi 140 | 141 | done 142 | 143 | } 144 | 145 | function main() { 146 | 147 | trap 'handleInterruptByUser "Interrupt by User"' 2 148 | 149 | if [ "${GET_ZSH_THEME_USED}" == "powerlevel10k/powerlevel10k" ]; then 150 | THEME_USED+="/powerlevel10k" 151 | else 152 | GET_ZSH_THEME_USED+=".zsh-theme" 153 | fi 154 | 155 | if [ "${GET_ZSH_THEME_USED}" == "${THEME_USED}" ]; then 156 | 157 | listZshTheme 158 | selectZshTheme 159 | 160 | else 161 | 162 | stat "ERROR" "Danger" "Configuration ${COLOR_DANGER}Failure${COLOR_BASED}!" 163 | stat "INFO" "Warning" "Please check file:" 164 | echo -e " • '${COLOR_WARNING}${THEME_USED_PATH}/${THEME_USED_FILE_NAME}${COLOR_BASED}'" 165 | echo -e " • '${COLOR_WARNING}${ZSH_CONFIGURATION_PATH}${COLOR_BASED}'" 166 | 167 | exit 1 168 | 169 | fi 170 | 171 | } 172 | 173 | main 174 | -------------------------------------------------------------------------------- /.termux/colors.properties: -------------------------------------------------------------------------------- 1 | color0=#2f343f 2 | color1=#fd6b85 3 | color2=#63e0be 4 | color3=#fed270 5 | color4=#67d4f2 6 | color5=#ff8167 7 | color6=#63e0be 8 | color7=#eeeeee 9 | color8=#4f4f5b 10 | color9=#fd6b85 11 | color10=#63e0be 12 | color11=#fed270 13 | color12=#67d4f2 14 | color13=#ff8167 15 | color14=#63e0be 16 | color15=#eeeeee 17 | background=#2a2c3a 18 | foreground=#eeeeee 19 | cursor=#fd6b85 20 | -------------------------------------------------------------------------------- /.termux/font.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/.termux/font.ttf -------------------------------------------------------------------------------- /.termux/termux.properties: -------------------------------------------------------------------------------- 1 | extra-keys = [ \ 2 | ['F1' , 'ESC', 'CTRL', 'ALT', 'TAB', {key: KEYBOARD, popup: DRAWER}, 'HOME', 'UP', 'END'], \ 3 | ['DELETE', '{}', '()', '[]', '$', 'BACKSLASH', 'LEFT', 'DOWN', 'RIGHT'] \ 4 | ] 5 | 6 | allow-external-apps = true 7 | 8 | # fullscreen = true 9 | 10 | # use-fullscreen-workaround = true 11 | 12 | # Open a new terminal with ctrl + t (volume down + t) 13 | shortcut.create-session = ctrl + t 14 | 15 | # Go one session down with (for example) ctrl + 2 16 | shortcut.next-session = ctrl + 2 17 | 18 | # Go one session up with (for example) ctrl + 1 19 | shortcut.previous-session = ctrl + 1 20 | 21 | # Rename a session with (for example) ctrl + n 22 | shortcut.rename-session = ctrl + u 23 | 24 | # Beep with a sound. 25 | # bell-character=beep 26 | 27 | # Cursor Blinking 28 | terminal-cursor-blink-rate=600 29 | -------------------------------------------------------------------------------- /.termux/termux.properties.read: -------------------------------------------------------------------------------- 1 | ### After making changes and saving you need to run `termux-reload-settings` 2 | ### to update the terminal. All information here can also be found on the 3 | ### wiki: https://wiki.termux.com/wiki/Terminal_Settings 4 | 5 | ############### 6 | # Extra keys 7 | ############### 8 | 9 | ### Settings for choosing which set of symbols to use for illustrating keys. 10 | ### Choose between default, arrows-only, arrows-all, all and none 11 | # extra-keys-style = default 12 | 13 | ### Default extra-key configuration 14 | # extra-keys = [[ESC, TAB, CTRL, ALT, {key: '-', popup: '|'}, DOWN, UP]] 15 | 16 | ### Two rows with more keys 17 | # extra-keys = [['ESC','/','-','HOME','UP','END','PGUP'], \ 18 | # ['TAB','CTRL','ALT','LEFT','DOWN','RIGHT','PGDN']] 19 | 20 | ### Configuration with additional popup keys (swipe up from an extra key) 21 | # extra-keys = [[ \ 22 | # {key: ESC, popup: {macro: "CTRL f d", display: "tmux exit"}}, \ 23 | # {key: CTRL, popup: {macro: "CTRL f BKSP", display: "tmux ←"}}, \ 24 | # {key: ALT, popup: {macro: "CTRL f TAB", display: "tmux →"}}, \ 25 | # {key: TAB, popup: {macro: "ALT a", display: A-a}}, \ 26 | # {key: LEFT, popup: HOME}, \ 27 | # {key: DOWN, popup: PGDN}, \ 28 | # {key: UP, popup: PGUP}, \ 29 | # {key: RIGHT, popup: END}, \ 30 | # {macro: "ALT j", display: A-j, popup: {macro: "ALT g", display: A-g}}, \ 31 | # {key: KEYBOARD, popup: {macro: "CTRL d", display: exit}} \ 32 | # ]] 33 | 34 | ############### 35 | # Colors/themes 36 | ############### 37 | 38 | ### Force black colors for drawer and dialogs 39 | # use-black-ui = true 40 | 41 | ############### 42 | # Keyboard shortcuts 43 | ############### 44 | 45 | ### Open a new terminal with ctrl + t (volume down + t) 46 | # shortcut.create-session = ctrl + t 47 | 48 | ### Go one session down with (for example) ctrl + 2 49 | # shortcut.next-session = ctrl + 2 50 | 51 | ### Go one session up with (for example) ctrl + 1 52 | # shortcut.previous-session = ctrl + 1 53 | 54 | ### Rename a session with (for example) ctrl + n 55 | # shortcut.rename-session = ctrl + n 56 | 57 | ############### 58 | # Bell key 59 | ############### 60 | 61 | ### Vibrate device (default). 62 | # bell-character = vibrate 63 | 64 | ### Beep with a sound. 65 | # bell-character = beep 66 | 67 | ### Ignore bell character. 68 | # bell-character = ignore 69 | 70 | ############### 71 | # Back key 72 | ############### 73 | 74 | ### Send the Escape key. 75 | # back-key=escape 76 | 77 | ### Hide keyboard or leave app (default). 78 | # back-key=back 79 | 80 | ############### 81 | # Keyboard issue workarounds 82 | ############### 83 | 84 | ### Letters might not appear until enter is pressed on Samsung devices 85 | # enforce-char-based-input = true 86 | 87 | ### ctrl+space (for marking text in emacs) does not work on some devices 88 | # ctrl-space-workaround = true 89 | -------------------------------------------------------------------------------- /.tmux.conf: -------------------------------------------------------------------------------- 1 | set -g mouse on 2 | source-file "~/.tmux-themepack/basic.tmuxtheme" 3 | -------------------------------------------------------------------------------- /.zshrc: -------------------------------------------------------------------------------- 1 | export ZSH=$HOME/.oh-my-zsh 2 | ZSH_THEME="ma" 3 | plugins=( 4 | git 5 | zsh-autosuggestions 6 | zsh-syntax-highlighting 7 | bgnotify 8 | zsh-fzf-history-search 9 | zsh-autocomplete 10 | ) 11 | 12 | PATH="$PREFIX/bin:$HOME/.local/bin:$PATH" 13 | export PATH 14 | 15 | LINK="https://github.com/mayTermux" 16 | export LINK 17 | 18 | LINK_SSH="git@github.com:mayTermux" 19 | export LINK_SSH 20 | 21 | export TERM=xterm-256color 22 | 23 | source $ZSH/oh-my-zsh.sh 24 | source $HOME/.config/lf/icons 25 | 26 | # Prediction List View 27 | #zstyle ':autocomplete:*' default-context history-incremental-search-backward 28 | #zstyle ':autocomplete:history-incremental-search-backward:*' min-input 1 29 | 30 | source $HOME/.aliases 31 | source $HOME/.autostart 32 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

myTermux

2 | 3 |

This is my personal configuration for my favorite Termux

4 | 5 |

6 | 7 | 8 |

9 | 10 | ## Video Installation 11 | 12 | > Click this thumbnail below to see video installation 13 | 14 | [![myTermux Thumbnail](https://user-images.githubusercontent.com/64394320/170211137-554dfd78-8424-4699-876c-7483b45de068.png)](https://www.youtube.com/watch?v=sYkNxK_44Zg "myTermux - Installation") 15 | 16 | ## Installation Dependecies 17 | 18 | > **Attention!** 19 | > 20 | > - [Termux must be **F-Droid** Version](https://f-droid.org/en/packages/com.termux/) because Termux from Playstore no longer maintained because there are some problems with the Playstore publishing 21 | > - [Termux:API must be installed](https://f-droid.org/en/packages/com.termux.api/) myTermux use API command from Termux:API like fetch `termux-battery-status` 22 | 23 |
24 | Update Repository & Upgrade Package 25 | 26 | ```bash 27 | pkg update && pkg upgrade 28 | ``` 29 | 30 |
31 | 32 |
33 | git & bc 34 | 35 | - Package `git` for cloning or downloading repository 36 | - Package `bc` for calculate repository size which will be cloning or downloading 37 | 38 | ```bash 39 | pkg i -y git bc 40 | ``` 41 | 42 |
43 | 44 | ## Installation myTermux 45 | 46 |
47 | Clone or Download This Repository 48 | 49 | ```bash 50 | git clone --depth=1 https://github.com/mayTermux/myTermux.git 51 | ``` 52 | 53 |
54 | 55 |
56 | Run Script Installer 57 | 58 | - Move to Folder 59 | 60 | ```bash 61 | cd myTermux 62 | ``` 63 | 64 | - export variable `COLUMNS` and `LINES` 65 | 66 | > This variable function so that the installer script can read the 67 | > `column` and `row` widths of Termux Application so that later it 68 | > matches the output during the installation process. 69 | 70 | ```bash 71 | export COLUMNS LINES 72 | ``` 73 | 74 | - Execute Installer 75 | 76 | ```bash 77 | ./install.sh 78 | ``` 79 | 80 | ![Error](https://user-images.githubusercontent.com/64394320/170210843-a4ee5203-2892-4083-81a8-fe89981cac80.png) 81 | 82 | > If you get error message `Please Zoom Out`. 83 | > Zoom Out on Termux Application then run again the script 84 | 85 | > If the row and column widths of the application are correct, 86 | > the script will automatically run, like this: 87 | 88 | ![banner_out](https://user-images.githubusercontent.com/64394320/170211059-9d740d4f-b657-4da5-a319-a3e09af0be3b.png) 89 | 90 | > Then follow the installation until it's finished 91 | 92 |
93 | 94 | ## :camera_flash: Screenshots 95 | 96 | > This screenshot take by [**Awesomeshot**](https://github.com/mayTermux/awesomeshot) and system fetch by [**rxfetch-termux**](https://github.com/mayTermux/rxfetch-termux) 97 | 98 | - System Fetch 99 | 100 | > rxfetch 101 | 102 | ![rxfetch](https://user-images.githubusercontent.com/64394320/170211137-554dfd78-8424-4699-876c-7483b45de068.png) 103 | 104 | > neofetch 105 | 106 | ![neofetch_out](https://user-images.githubusercontent.com/64394320/170211168-9e44dab1-7047-4f12-985c-3608b93ee033.png) 107 | 108 | - Colorscheme (Theme) 109 | 110 | > Change colorscheme or theme with command: 111 | 112 | ```bash 113 | chcolor 114 | ``` 115 | 116 | ![chcolor_out](https://user-images.githubusercontent.com/64394320/170211188-69f6317f-31e5-4feb-8422-3b0912ec3f8d.png) 117 | 118 |
119 | Show Preview 120 | 121 | ![colorscheme](https://i.ibb.co/4Vjdk89/out2.png) 122 | 123 |
124 | 125 | - Fonts 126 | 127 | > Change font used with command: 128 | 129 | ```bash 130 | chfont 131 | ``` 132 | 133 | ![chfont_out](https://user-images.githubusercontent.com/64394320/170211200-74ffac55-3181-4b43-9faa-a076ba847a70.png) 134 | 135 | - ZSH Theme 136 | 137 | > Change ZSH Theme with command: 138 | 139 | ```bash 140 | chzsh 141 | ``` 142 | 143 | ![zsh_out](https://user-images.githubusercontent.com/64394320/170211230-059d59be-376b-440c-9fb9-ea3750c983b9.png) 144 | 145 | - [NVIM] - Text Editor 146 | 147 | ![nvim_out](https://user-images.githubusercontent.com/64394320/170211252-e11d41cf-7674-40e5-b1f8-11ac3320a83f.png) 148 | 149 |
150 | Show Theme 151 | 152 | ![NvChad Theme](https://i.ibb.co/6DqyPqT/final-text-editor.png) 153 | 154 |
155 | 156 | - [NCMPCPP] - Music Player 157 | 158 | ![music_out](https://user-images.githubusercontent.com/64394320/170211279-a26d0f0e-1cf8-4b8b-ae21-8a1a79515574.png) 159 | 160 | - [COLORTOYS] - Pipes 161 | 162 | ![pipes](https://user-images.githubusercontent.com/66439853/178114136-25a80169-2413-4a92-ac4b-e0df649da5f2.png) 163 | 164 | - [COLORTOYS] - Panes, Bar, Bloks 165 | 166 | ![panes-bar-bloks](https://user-images.githubusercontent.com/66439853/178114094-1e1a9956-46f9-446b-a527-86b61e9c77e0.png) 167 | 168 | - [NYANCAT] 169 | 170 | ![nyancat_out](https://user-images.githubusercontent.com/64394320/170211265-40e42967-1aee-40ad-9a39-11e9a45139ee.png) 171 | 172 | ## Credits 173 | 174 | - [siduck](https://github.com/siduck) Neovim Setup (NvChad), Colorscheme (onedark-siduck) 175 | - [owl4ce](https://github.com/owl4ce) First time getting to know dotfiles 176 | - [adi1090x](https://github.com/adi1090x) Termux Setup 177 | - [bandithijo](https://github.com/bandithijo) Awesome screenshot like MacOS using imagemagick script 178 | - [lwotcynna](https://github.com/lwotcynna) Contibutor 179 | - [nekonako](https://github.com/nekonako) Colorscheme nekonako-djancoeg, nekonako-hue, nekonako-om-mar 180 | - [Dotfiles Indonesia](https://t.me/dotfiles_id) 181 | - [Vim Indonesia](https://t.me/VimID) 182 | - [Bashid.org](https://t.me/bashidorg) 183 | 184 | ## Colorscheme 185 | 186 | - [catppuccin/termux](https://github.com/catppuccin/termux) 187 | -------------------------------------------------------------------------------- /fix/mpd/run: -------------------------------------------------------------------------------- 1 | #!/data/data/com.termux/files/usr/bin/sh 2 | 3 | if [ -f "$HOME/.config/mpd/mpd.conf" ]; then 4 | CONFIG="$HOME/.config/mpd/mpd.conf"; 5 | else 6 | CONFIG="$PREFIX/etc/mpd.conf"; 7 | fi 8 | exec mpd --stdout --no-daemon $CONFIG 2>&1 9 | -------------------------------------------------------------------------------- /helper/animation.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Credits: 4 | # Bash Spinner : https://github.com/tlatsas/bash-spinner 5 | # WhiteSur-GTK-Theme (Line 148-217) : https://github.com/vinceliuice/WhiteSur-gtk-theme/blob/master/lib-core.sh 6 | 7 | # Author: xShin 8 | # 9 | # Display awesome looping loading 10 | # 11 | # Usage: 12 | # 1. Source this file on your shell script 13 | # 2. Start the animation: 14 | # start_ghost "[parameter1]" -> this parameter will display your message 15 | # 3. Run your command 16 | # 4. stop_ghost "[parameter1]" -> this parameter your command's exit status 17 | # 18 | # Also see: test.sh 19 | 20 | export COLOR_DEFAULT="\033[0m" 21 | export COLOR_BLUE="\033[1;34m" 22 | export COLOR_MAGENTA="\033[1;35m" 23 | export COLOR_CYAN="\033[1;36m" 24 | export COLOR_GREEN="\033[1;32m" 25 | export COLOR_RED="\033[1;31m" 26 | export COLOR_YELLOW="\033[1;33m" 27 | 28 | ICON="● " #  • 29 | OK="SUCCESS" 30 | NO="FAILED" 31 | 32 | ARRAY_ANIMATION=( 33 | "${COLOR_BLUE}${ICON}${COLOR_GREEN}${ICON}${COLOR_YELLOW}${ICON}${COLOR_RED}${ICON}${COLOR_MAGENTA}${ICON} " 34 | " ${COLOR_GREEN}${ICON}${COLOR_YELLOW}${ICON}${COLOR_RED}${ICON}${COLOR_MAGENTA}${ICON}${COLOR_BLUE}${ICON} " 35 | " ${COLOR_RED}${ICON}${COLOR_MAGENTA}${ICON}${COLOR_YELLOW}${ICON}${COLOR_BLUE}${ICON}${COLOR_GREEN}${ICON} " 36 | " ${COLOR_MAGENTA}${ICON}${COLOR_BLUE}${ICON}${COLOR_GREEN}${COLOR_YELLOW}${ICON}${ICON}${COLOR_RED}${ICON} " 37 | " ${COLOR_BLUE}${ICON}${COLOR_GREEN}${ICON}${COLOR_RED}${ICON}${COLOR_YELLOW}${ICON}${COLOR_MAGENTA}${ICON}" 38 | ) 39 | 40 | function animation() { 41 | 42 | case $1 in 43 | 44 | start ) 45 | 46 | # let column=$(tput cols)-${#2}-8 47 | let column=$(echo $COLUMNS)-${#2}-8 48 | 49 | printf "%${column}s" 50 | 51 | while true; do 52 | for i in {0..4}; do 53 | printf "\b\r\033[2K${COLOR_DEFAULT}${2} ${ARRAY_ANIMATION[i]}" 54 | sleep 0.12 55 | done 56 | for i in {4..0}; do 57 | printf "\b\r\033[2K${COLOR_DEFAULT}${2} ${ARRAY_ANIMATION[i]}" 58 | sleep 0.12 59 | done 60 | done 61 | 62 | ;; 63 | 64 | stop ) 65 | 66 | if [[ -z ${3} ]]; then 67 | echo "Animation not running" 68 | exit 1 69 | fi 70 | 71 | kill ${3} > /dev/null 2>&1 72 | 73 | echo -en "\b${COLOR_DEFAULT} --> [" 74 | 75 | if [[ $2 -eq 0 ]]; then 76 | echo -en " ${COLOR_GREEN}${OK}${COLOR_DEFAULT} " 77 | else 78 | echo -en " ${COLOR_RED}${NO}${COLOR_DEFAULT} " 79 | fi 80 | 81 | echo -e "${COLOR_DEFAULT}]" 82 | 83 | ;; 84 | 85 | * ) 86 | 87 | echo "invalid argument, try again with {start/stop}" 88 | exit 1 89 | 90 | ;; 91 | 92 | 93 | esac 94 | } 95 | 96 | function start_animation() { 97 | 98 | setCursor off 99 | animation "start" "${1}" & 100 | animation_pid=${!} 101 | disown 102 | 103 | } 104 | 105 | function stop_animation() { 106 | 107 | animation "stop" $1 $animation_pid 108 | unset $animation_pid 109 | setCursor on 110 | 111 | } 112 | -------------------------------------------------------------------------------- /helper/banner.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | VERSION="0.6.2" 4 | BUILD_DATE="03 April 2022" 5 | AUTHOR="xShin" 6 | 7 | function banner() { 8 | 9 | echo -e " 10 | ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ 11 | ┃ _______ ┃ 12 | ┃ (_______) ┃ 13 | ┃ ____ _ _ _ _____ ____ ____ _ _ _ _ ┃ 14 | ┃ | \| | | | | ___ |/ ___) \| | | ( \ / ) ┃ 15 | ┃ | | | | |_| | | ____| | | | | | |_| |) X ( ┃ 16 | ┃ |_|_|_|\__ |_|_____)_| |_|_|_|____/(_/ \_) ┃ 17 | ┃ (____/ ┃ 18 | ┃ ┃ 19 | ┃ 🚀 Version : ${VERSION} ┃ 20 | ┃ 📅 Build Date : ${BUILD_DATE} ┃ 21 | ┃ ⚙️ Author : ${AUTHOR} ┃ 22 | ┃ ┃ 23 | ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ 24 | " 25 | } 26 | -------------------------------------------------------------------------------- /helper/clone.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | REPOSITORY_LINKS=( 4 | https://github.com/robbyrussell/oh-my-zsh 5 | https://github.com/zsh-users/zsh-syntax-highlighting 6 | https://github.com/zsh-users/zsh-autosuggestions 7 | https://github.com/joshskidmore/zsh-fzf-history-search 8 | https://github.com/marlonrichert/zsh-autocomplete 9 | https://github.com/jimeh/tmux-themepack 10 | https://github.com/NvChad/starter 11 | ) 12 | 13 | REPOSITORY_APIS=( 14 | repositories/291137 15 | repos/zsh-users/zsh-syntax-highlighting 16 | repos/zsh-users/zsh-autosuggestions 17 | repos/joshskidmore/zsh-fzf-history-search 18 | repos/marlonrichert/zsh-autocomplete 19 | repos/jimeh/tmux-themepack 20 | repos/NvChad/starter 21 | ) 22 | 23 | REPOSITORY_FULL_NAME=( 24 | robbyrussell/oh-my-zsh 25 | zsh-users/zsh-syntax-highlighting 26 | zsh-users/zsh-autosuggestions 27 | joshskidmore/zsh-fzf-history-search 28 | marlonrichert/zsh-autocomplete 29 | jimeh/tmux-themepack 30 | NvChad/starter 31 | ) 32 | 33 | REPOSITORY_PATH=( 34 | $HOME/.oh-my-zsh/ 35 | $HOME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting 36 | $HOME/.oh-my-zsh/custom/plugins/zsh-autosuggestions 37 | $HOME/.oh-my-zsh/custom/plugins/zsh-fzf-history-search 38 | $HOME/.oh-my-zsh/custom/plugins/zsh-autocomplete 39 | $HOME/.tmux-themepack 40 | $HOME/NvChad 41 | ) 42 | 43 | function repoSize() { 44 | 45 | echo "$(echo "scale=2 46 | $(curl https://api.github.com/$@ 2>/dev/null | grep size | head -1 | tr -dc '[:digit:]') / 1024" | bc)MB" 47 | 48 | } 49 | 50 | function repositories() { 51 | 52 | setCursor off 53 | 54 | echo -e "‏‏‎‏‏‎ ‎ ‎‏‏‎ ‎📦 Getting Information Repository" 55 | sleep 2s 56 | 57 | echo -e " 58 | ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ 59 | ┃ Information Repository ┃ 60 | ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ 61 | ┃ Repository Name Repository Size ┃ 62 | ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛" 63 | 64 | for REPOSITORY_API in "${REPOSITORY_APIS[@]}"; do 65 | 66 | REPOSITORY_NAME=$(curl https://api.github.com/${REPOSITORY_API} 2> /dev/null | grep full_name | sed -n 1p | awk '{print $2}' | sed "s/,//g" | sed "s/\"//g") 67 | printf " ┃ ${COLOR_SUCCESS}%-36s${COLOR_BASED} ${COLOR_WARNING}%8s${COLOR_BASED} ┃\n" $REPOSITORY_NAME `repoSize $REPOSITORY_API` 68 | echo -e " ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛" 69 | 70 | done 71 | 72 | echo -e "" 73 | 74 | } 75 | 76 | function cloneRepository() { 77 | 78 | setCursor off 79 | 80 | echo -e "\n‏‏‎‏‏‎ ‎ ‎‏‏‎ ‎📦 Clone or Downloading Repository\n" 81 | sleep 2s 82 | 83 | for ((i=0; i<${#REPOSITORY_LINKS[@]}; i++)); do 84 | 85 | start_animation " Cloning ${COLOR_WARNING}'${COLOR_SUCCESS}${REPOSITORY_FULL_NAME[i]}${COLOR_WARNING}'${COLOR_BASED} ..." 86 | 87 | git clone ${REPOSITORY_LINKS[i]} ${REPOSITORY_PATH[i]} 2> /dev/null 88 | 89 | if [ -d ${REPOSITORY_PATH[i]} ]; then 90 | 91 | stop_animation $? || exit 1 92 | 93 | else 94 | 95 | stop_animation $? 96 | 97 | fi 98 | 99 | done 100 | 101 | setCursor on 102 | 103 | } 104 | -------------------------------------------------------------------------------- /helper/colors.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | COLOR_BASED="\e[39m" 4 | COLOR_DANGER="\e[91m" 5 | COLOR_WARNING="\e[93m" 6 | COLOR_SUCCESS="\e[92m" 7 | COLOR_SKY="\e[34m" 8 | 9 | COLOR_DEFAULT="\e[39m" 10 | COLOR_RESET="\033[0m" 11 | 12 | COLOR_WHITE="\e[97m" 13 | COLOR_BLACK="\e[30m" 14 | 15 | COLOR_RED="\e[31m" 16 | COLOR_GREEN="\e[32m" 17 | COLOR_YELLOW="\e[33m" 18 | COLOR_BLUE="\e[34m" 19 | COLOR_MAGENTA="\e[35m" 20 | COLOR_CYAN="\e[36m" 21 | 22 | COLOR_LIGHT_GRAY="\e[37m" 23 | COLOR_DARK_GRAY="\e[90m" 24 | COLOR_LIGHT_RED="\e[91m" 25 | COLOR_LIGHT_GREEN="\e[92m" 26 | COLOR_LIGHT_YELLOW="\e[93m" 27 | COLOR_LIGHT_BLUE="\e[94m" 28 | COLOR_LIGHT_MAGENTA="\e[95m" 29 | COLOR_LIGHT_CYAN="\e[96m" 30 | 31 | COLOR_BOLD_MAGENTA="\033[1;35m" 32 | COLOR_BOLD_GREEN="\033[1;32m" 33 | COLOR_BOLD_WHITE="\033[1;37m" 34 | COLOR_BOLD_BLUE="\033[1;34m" 35 | COLOR_BOLD_RED="\033[1;31m" 36 | COLOR_BOLD_YELLOW="\033[1;33m" 37 | COLOR_BOLD_CYAN="\033[1;36m" 38 | 39 | COLOR_BACKGROUND_YELLOW="\033[1;43;33m" 40 | COLOR_BACKGROUND_WHITE="\033[1;47;37m" 41 | COLOR_BACKGROUND_BLACK="\033[1;40;30m" -------------------------------------------------------------------------------- /helper/cursor.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | function setCursor() { 4 | 5 | setterm -cursor ${1} 6 | 7 | } -------------------------------------------------------------------------------- /helper/dotfiles.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | BACKUP_DOTFILES=( 4 | .autostart .aliases 5 | .config .colorscheme 6 | .fonts .local .scripts 7 | .termux .tmux.conf 8 | .zshrc .oh-my-zsh 9 | ) 10 | 11 | DOTFILES=( 12 | .autostart .aliases 13 | .config .colorscheme 14 | .fonts .local .scripts 15 | .termux .tmux.conf 16 | .zshrc 17 | ) 18 | 19 | 20 | function dotFiles() { 21 | 22 | setCursor off 23 | 24 | echo -e "\n‏‏‎‏‏‎ ‎ ‎‏‏‎ ‎📦 Getting Information Dotfiles" 25 | sleep 2s 26 | 27 | echo -e " 28 | ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ 29 | ┃ Information Dotfiles ┃ 30 | ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ 31 | ┃ Folder Name Folder Size ┃ 32 | ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛" 33 | 34 | for DOTFILE in "${DOTFILES[@]}"; do 35 | 36 | FOLDER_SIZE=$(du -s -h $DOTFILE | awk '{print $1}') 37 | printf " ┃ ${COLOR_SUCCESS}%-12s${COLOR_BASED} ${COLOR_WARNING}%5s${COLOR_BASED} ┃\n" $DOTFILE $FOLDER_SIZE 38 | echo -e " ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛" 39 | 40 | done 41 | 42 | echo "" 43 | 44 | } 45 | 46 | function backupDotFiles() { 47 | 48 | echo -e "‏‏‎‏‏‎ ‎ ‎‏‏‎ ‎📦 Backup Dotfiles" 49 | echo -e "" 50 | sleep 2s 51 | 52 | for BACKUP_DOTFILE in "${BACKUP_DOTFILES[@]}"; do 53 | 54 | start_animation " Backup ${COLOR_WARNING}'${COLOR_SUCCESS}${BACKUP_DOTFILE}${COLOR_WARNING}'${COLOR_BASED} ..." 55 | sleep 1s 56 | 57 | if [[ -d "$HOME/$BACKUP_DOTFILE" || -f "$HOME/$BACKUP_DOTFILE" ]]; then 58 | 59 | mv ${HOME}/${BACKUP_DOTFILE} ${HOME}/${BACKUP_DOTFILE}.$(date +%Y.%m.%d-%H.%M.%S).backup 60 | 61 | if [[ -d ${HOME}/${BACKUP_DOTFILE}.$(date +%Y.%m.%d-%H.%M.%S).backup || -f ${HOME}/${BACKUP_DOTFILE}.$(date +%Y.%m.%d-%H.%M.%S).backup ]]; then 62 | 63 | stop_animation $? || exit 1 64 | 65 | else 66 | 67 | stop_animation $? 68 | 69 | fi 70 | 71 | else 72 | 73 | stop_animation $? 74 | 75 | fi 76 | 77 | done 78 | 79 | echo -e "" 80 | 81 | } 82 | 83 | function installDotFiles() { 84 | 85 | setCursor off 86 | 87 | echo -e "\n‏‏‎‏‏‎ ‎ ‎‏‏‎ ‎📦 Installing Dotfiles\n" 88 | 89 | for DOTFILE in "${DOTFILES[@]}"; do 90 | 91 | if [ "${DOTFILE}" == ".termux" ]; then 92 | 93 | start_animation " Installing ${COLOR_WARNING}'${COLOR_SUCCESS}${DOTFILE}${COLOR_WARNING}'${COLOR_BASED} ..." 94 | cp -R $DOTFILE $HOME 95 | 96 | if [[ -d $HOME/$DOTFILE || -f $HOME/$DOTFILE ]]; then 97 | 98 | termux-reload-settings 99 | stop_animation $? || exit 1 100 | 101 | else 102 | 103 | stop_animation $? 104 | 105 | fi 106 | 107 | else 108 | 109 | start_animation " Installing ${COLOR_WARNING}'${COLOR_SUCCESS}${DOTFILE}${COLOR_WARNING}'${COLOR_BASED} ..." 110 | cp -R $DOTFILE $HOME 111 | 112 | if [[ -d $HOME/$DOTFILE || -f $HOME/$DOTFILE ]]; then 113 | 114 | stop_animation $? || exit 1 115 | 116 | else 117 | 118 | stop_animation $? 119 | 120 | fi 121 | 122 | fi 123 | 124 | done 125 | 126 | echo -e "" 127 | 128 | setCursor on 129 | 130 | } 131 | -------------------------------------------------------------------------------- /helper/finish.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | MYTERMUX_VERSION="0.6.2" 4 | 5 | function alertFinish() { 6 | 7 | echo -e "‏‏‎‏‏‎\n ‎‏‏‎⚠️ Installation Finish, but you need restart Termux to clear setup\n" 8 | 9 | } 10 | 11 | function alertNotification() { 12 | 13 | IMAGE_PATH="${HOME}/.config/mytermux/alert/images" 14 | IMAGE_FILE_NAME="finish.png" 15 | 16 | termux-notification --sound -t "myTermux v${MYTERMUX_VERSION} has been installed" --image-path ${IMAGE_PATH}/${IMAGE_FILE_NAME} 17 | 18 | } 19 | 20 | function alertTorch() { 21 | 22 | termux-toast -b "#A8D7FE" -c "#373E4D" -g middle "myTermux v${MYTERMUX_VERSION} has been installed" 23 | 24 | } 25 | 26 | 27 | function mainAlert() { 28 | 29 | alertFinish 30 | alertNotification 31 | alertTorch 32 | 33 | } 34 | -------------------------------------------------------------------------------- /helper/nvchad.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | function NvChad() { 4 | 5 | echo -e "\n‏‏‎‏‏‎ ‎ ‎‏‏‎ ‎📦 Installing Neovim Plugins with Packer\n" 6 | 7 | stat "CHECK" "Warning" "'${COLOR_WARNING}NvChad${COLOR_BASED}' Folder" 8 | 9 | if [ -d $HOME/NvChad ]; then 10 | 11 | stat "RESULT" "Success" "'${COLOR_SUCCESS}NvChad${COLOR_BASED}' exist" 12 | 13 | stat "RUN" "Warning" "Move '${COLOR_WARNING}NvChad${COLOR_BASED}' Folder to '${COLOR_WARNING}.config/nvim${COLOR_BASED}' ..." 14 | 15 | mv $HOME/NvChad $HOME/.config/nvim 16 | 17 | if [ -d $HOME/.config/nvim ]; then 18 | 19 | stat "RESULT" "Success" "'${COLOR_SUCCESS}NvChad${COLOR_BASED}' success move to '${COLOR_SUCCESS}.config/nvim${COLOR_BASED}'" 20 | 21 | stat "RUN" "Warning" "Installing '${COLOR_WARNING}NvChad${COLOR_BASED}' ..." 22 | 23 | nvim 24 | 25 | else 26 | 27 | stat "RESULT" "Danger" "'${COLOR_DANGER}NvChad${COLOR_BASED}' failed move to '${COLOR_DANGER}.config/nvim${COLOR_BASED}'" 28 | 29 | fi 30 | 31 | else 32 | 33 | stat "RESULT" "Danger" "'${COLOR_DANGER}NvChad${COLOR_BASED}' No such directory" 34 | 35 | fi 36 | 37 | } 38 | -------------------------------------------------------------------------------- /helper/package.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PACKAGES=( 4 | awesomeshot bat curl clang eza fzf git imagemagick 5 | inotify-tools lf mpd mpc neovim openssh 6 | neofetch termux-api tmux zsh 7 | ) 8 | 9 | function packages() { 10 | 11 | setCursor off 12 | 13 | KB_DOWNLOAD_SIZE=0 14 | MB_DOWNLOAD_SIZE=0 15 | 16 | KB_INSTALLED_SIZE=0 17 | MB_INSTALLED_SIZE=0 18 | 19 | echo -e "‏‏‎‏‏‎ ‎ ‎‏‏‎ ‎📦 Getting Information Packages" 20 | 21 | echo -e " 22 | ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ 23 | ┃ Information Packages ┃ 24 | ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ 25 | ┃ Package Name Version Download Installed ┃ 26 | ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛" 27 | 28 | for PACKAGE in "${PACKAGES[@]}"; do 29 | 30 | PACKAGE_NAME=$(apt show $PACKAGE 2> /dev/null | grep Package: | awk '{print $2}') 31 | VERSION=$(apt show $PACKAGE 2> /dev/null | grep Version: | awk '{print $2}') 32 | 33 | DOWNLOAD_SIZE=$(apt show $PACKAGE 2> /dev/null | grep Download-Size: | awk '{print $2}') 34 | INSTALLED_SIZE=$(apt show $PACKAGE 2> /dev/null | grep Installed-Size: | awk '{print $2}') 35 | 36 | UNIT_DOWNLOAD_SIZE=$(apt show $PACKAGE 2> /dev/null | grep Download-Size: | awk '{print $3}') 37 | UNIT_INSTALLED_SIZE=$(apt show $PACKAGE 2> /dev/null | grep Installed-Size: | awk '{print $3}') 38 | 39 | printf " ┃ ${COLOR_SUCCESS}%-13s${COLOR_BASED} ${COLOR_WARNING}%10s${COLOR_BASED} ${COLOR_WARNING}%-4s${COLOR_BASED} %-2s ${COLOR_WARNING}%-4s${COLOR_BASED} %-2s ┃\n" $PACKAGE_NAME $VERSION ${DOWNLOAD_SIZE} "${UNIT_DOWNLOAD_SIZE}" ${INSTALLED_SIZE} "${UNIT_INSTALLED_SIZE}" 40 | echo -e " ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛" 41 | 42 | if [[ "${UNIT_DOWNLOAD_SIZE}" == "kB" && "${UNIT_INSTALLED_SIZE}" == "MB" ]]; then 43 | 44 | KB_DOWNLOAD_SIZE=$(echo "${KB_DOWNLOAD_SIZE} + ${DOWNLOAD_SIZE} / 1024" | bc -l | xargs -i printf "%'.1f" {}) 45 | MB_INSTALLED_SIZE=$(echo "${MB_INSTALLED_SIZE} + ${INSTALLED_SIZE}" | bc -l | xargs -i printf "%'.1f" {}) 46 | 47 | elif [[ "${UNIT_DOWNLOAD_SIZE}" == "MB" && "${UNIT_INSTALLED_SIZE}" == "kB" ]]; then 48 | 49 | MB_DOWNLOAD_SIZE=$(echo "${MB_DOWNLOAD_SIZE} + ${DOWNLOAD_SIZE}" | bc -l | xargs -i printf "%'.1f" {}) 50 | KB_INSTALLED_SIZE=$(echo "${KB_INSTALLED_SIZE} + ${INSTALLED_SIZE} / 1024" | bc -l | xargs -i printf "%'.1f" {}) 51 | 52 | elif [[ "${UNIT_DOWNLOAD_SIZE}" == "kB" && "${UNIT_INSTALLED_SIZE}" == "kB" ]]; then 53 | 54 | KB_DOWNLOAD_SIZE=$(echo "${KB_DOWNLOAD_SIZE} + ${DOWNLOAD_SIZE} / 1024" | bc -l | xargs -i printf "%'.1f" {}) 55 | KB_INSTALLED_SIZE=$(echo "${KB_INSTALLED_SIZE} + ${INSTALLED_SIZE} / 1024" | bc -l | xargs -i printf "%'.1f" {}) 56 | 57 | elif [[ "${UNIT_DOWNLOAD_SIZE}" == "MB" && "${UNIT_INSTALLED_SIZE}" == "MB" ]]; then 58 | 59 | MB_DOWNLOAD_SIZE=$(echo "${MB_DOWNLOAD_SIZE} + ${DOWNLOAD_SIZE}" | bc -l | xargs -i printf "%'.1f" {}) 60 | MB_INSTALLED_SIZE=$(echo "${MB_INSTALLED_SIZE} + ${INSTALLED_SIZE}" | bc -l | xargs -i printf "%'.1f" {}) 61 | 62 | fi 63 | 64 | done 65 | 66 | TOTAL_DOWNLOAD_SIZE=$(echo "${KB_DOWNLOAD_SIZE} + ${MB_DOWNLOAD_SIZE}" | bc -l | xargs -i printf "%'.1f" {}) 67 | TOTAL_INSTALLED_SIZE=$(echo "${KB_INSTALLED_SIZE} + ${MB_INSTALLED_SIZE}" | bc -l | xargs -i printf "%'.1f" {}) 68 | 69 | printf " ┃ [ ${COLOR_WARNING}%5s${COLOR_BASED} ] ─────────────────────────────────> ${COLOR_WARNING}%6s${COLOR_BASED} %-2s ${COLOR_WARNING}%6s${COLOR_BASED} %-2s ┃" "TOTAL" ${TOTAL_DOWNLOAD_SIZE} "MB" ${TOTAL_INSTALLED_SIZE} "MB" 70 | echo -e "\n ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛" 71 | 72 | echo "" 73 | 74 | } 75 | 76 | function installPackages() { 77 | 78 | setCursor off 79 | 80 | echo -e "\n‏‏‎‏‏‎ ‎ ‎‏‏‎ ‎📦 Downloading Packages\n" 81 | 82 | for PACKAGE in "${PACKAGES[@]}"; do 83 | 84 | start_animation " Installing ${COLOR_WARNING}'${COLOR_SUCCESS}${PACKAGE}${COLOR_WARNING}'${COLOR_BASED} ..." 85 | 86 | pkg i -y $PACKAGE &>/dev/null 87 | THIS_PACKAGE=$(pkg list-installed $PACKAGE 2> /dev/null | tail -n 1) 88 | CHECK_PACKAGE=${THIS_PACKAGE%/*} 89 | 90 | if [[ $CHECK_PACKAGE == $PACKAGE ]]; then 91 | 92 | stop_animation $? || exit 1 93 | 94 | else 95 | 96 | stop_animation $? 97 | 98 | fi 99 | 100 | done 101 | 102 | setCursor on 103 | 104 | } 105 | -------------------------------------------------------------------------------- /helper/screen.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | function screenSize() { 4 | 5 | REQUIRE_COLS=101 6 | REQUIRE_ROWS=39 7 | 8 | CURRENT_COLS=$(echo $COLUMNS) 9 | CURRENT_ROWS=$(echo $LINES) 10 | 11 | if [[ -n ${CURRENT_COLS} && -n ${CURRENT_ROWS} ]]; then 12 | 13 | if (( ${CURRENT_COLS} >= ${REQUIRE_COLS} & ${CURRENT_ROWS} >= ${REQUIRE_ROWS} )); then 14 | 15 | ${1} 16 | 17 | else 18 | 19 | stat "INFO" "Warning" "Your Screen Size 20 | Column: '${COLOR_WARNING}${CURRENT_COLS}${COLOR_BASED}' 21 | Lines : '${COLOR_WARNING}${CURRENT_ROWS}${COLOR_BASED}' 22 | " 23 | 24 | stat "INFO" "Success" "Require Screen Size 25 | Column: '${COLOR_SUCCESS}${REQUIRE_COLS}${COLOR_BASED}' 26 | Lines : '${COLOR_SUCCESS}${REQUIRE_ROWS}${COLOR_BASED}' 27 | " 28 | 29 | stat "ERROR" "Danger" "Please '${COLOR_WARNING}Zoom Out${COLOR_BASED}' your Terminal Screen! then run again." 30 | 31 | fi 32 | 33 | else 34 | 35 | stat "INFO" "Warning" "Can't get number '${COLOR_WARNING}COLUMNS${COLOR_BASED} & ${COLOR_WARNING}LINES${COLOR_BASED}' your terminal screen size 36 | " 37 | 38 | stat "ERROR" "Danger" "Please run '${COLOR_WARNING}export COLUMNS LINES${COLOR_BASED}' first and then run again." 39 | 40 | fi 41 | 42 | } 43 | -------------------------------------------------------------------------------- /helper/signal.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | function handleInterruptByUser() { 4 | 5 | pkill com.termux 6 | 7 | echo -e " 8 | \n ${COLOR_BASED}[ ${COLOR_WARNING}ERROR${COLOR_BASED} ] > ${COLOR_DANGER}${1}${COLOR_BASED}\n" 9 | 10 | setCursor on 11 | 12 | read -n 1 -s -r -p " Press any key to exit " 13 | 14 | exit 1 15 | 16 | } -------------------------------------------------------------------------------- /helper/stat.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | function stat() { 4 | 5 | if [ "${2}" == "Success" ]; then 6 | 7 | echo -e " [ ${COLOR_SUCCESS}${1}${COLOR_BASED} ] > ${3}" 8 | 9 | elif [ "${2}" == "Warning" ]; then 10 | 11 | echo -e " [ ${COLOR_WARNING}${1}${COLOR_BASED} ] > ${3}" 12 | 13 | elif [ "${2}" == "Danger" ]; then 14 | 15 | echo -e " [ ${COLOR_DANGER}${1}${COLOR_BASED} ] > ${3}" 16 | 17 | fi 18 | 19 | } -------------------------------------------------------------------------------- /helper/switchcase.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | function switchCase() { 4 | 5 | setCursor on 6 | 7 | read -p " ${1} ${2}? [Y/n] " SWITCH_CASE 8 | 9 | case "$SWITCH_CASE" in 10 | 11 | "" ) 12 | ${3} 13 | ;; 14 | 15 | y|Y ) 16 | ${3} 17 | ;; 18 | 19 | n|N ) 20 | stat "ERROR" "Warning" "${COLOR_DANGER}Abort.${COLOR_BASED}" 21 | exit 1 22 | ;; 23 | 24 | * ) 25 | stat "ERROR" "Warning" "Unknown '${COLOR_DANGER}${SWITCH_CASE}${COLOR_BASED}'" 26 | switchCase ${1} ${2} ${3} 27 | ;; 28 | 29 | esac 30 | 31 | } -------------------------------------------------------------------------------- /helper/themes.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ZSH_CUSTOM_THEMES=( 4 | osx.zsh-theme 5 | osx2.zsh-theme 6 | ma.zsh-theme 7 | archcraft.zsh-theme 8 | ar-round.zsh-theme 9 | la-round.zsh-theme 10 | rounded-custom.zsh-theme 11 | rounded.zsh-theme 12 | simple.zsh-theme 13 | ) 14 | 15 | function zshTheme() { 16 | 17 | setCursor off 18 | 19 | echo -e "\n‏‏‎‏‏‎ ‎ ‎‏‏‎ ‎📦 Getting Information ZSH Theme" 20 | sleep 2s 21 | 22 | # echo -e " 23 | # ╭─────────────────────────────────────────────────────────╮ 24 | # ┃ Information ZSH Theme ┃ 25 | # ╰─────────────────────────────────────────────────────────╯ 26 | # ┃ File Name ┃ File Size ┃ 27 | # ╰─────────────────────────────────────────────────────────╯" 28 | echo -e " 29 | ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ 30 | ┃ Information ZSH Theme ┃ 31 | ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ 32 | ┃ File Name File Size ┃ 33 | ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛" 34 | 35 | for ZSH_CUSTOM_THEME in "${ZSH_CUSTOM_THEMES[@]}"; do 36 | 37 | FILE_SIZE=$(du -s -h .oh-my-zsh/custom/themes/$ZSH_CUSTOM_THEME | awk '{print $1}') 38 | printf " ┃ ${COLOR_SUCCESS}%-24s${COLOR_BASED} ${COLOR_WARNING}%5s${COLOR_BASED} ┃\n" $ZSH_CUSTOM_THEME $FILE_SIZE 39 | echo -e " ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛" 40 | 41 | done 42 | 43 | echo "" 44 | 45 | } 46 | 47 | function installZshTheme() { 48 | 49 | setCursor off 50 | 51 | echo -e "\n‏‏‎‏‏‎ ‎ ‎‏‏‎ ‎📦 Installing ZSH Custom Themes\n" 52 | 53 | PATHDIR=".oh-my-zsh/custom/themes" 54 | 55 | for ZSH_CUSTOM_THEME in "${ZSH_CUSTOM_THEMES[@]}"; do 56 | 57 | start_animation " Installing ${COLOR_WARNING}'${COLOR_SUCCESS}${ZSH_CUSTOM_THEME}${COLOR_WARNING}'${COLOR_BASED} ..." 58 | sleep 2s 59 | cp $(pwd)/${PATHDIR}/${ZSH_CUSTOM_THEME} $HOME/${PATHDIR}/${ZSH_CUSTOM_THEME} 60 | 61 | if [ -f $HOME/$PATHDIR/$ZSH_CUSTOM_THEME ]; then 62 | 63 | stop_animation $? || exit 1 64 | 65 | else 66 | 67 | stop_animation $? 68 | 69 | fi 70 | 71 | done 72 | 73 | setCursor on 74 | 75 | } 76 | -------------------------------------------------------------------------------- /helper/utility.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | function utility() { 4 | 5 | cp ~/.fonts/JetBrains\ Mono\ Medium\ Nerd\ Font\ Complete.ttf $PREFIX/share/fonts/TTF/ 2> /dev/null 6 | 7 | chsh -s zsh 8 | 9 | if [[ -f $PREFIX/etc/motd ]]; then 10 | 11 | mkdir $HOME/motd/ 12 | mv $PREFIX/etc/motd $HOME/motd/motd.backup 13 | 14 | fi 15 | 16 | } 17 | -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | HELPERS=( 4 | colors animation banner package switchcase 5 | dotfiles clone themes nvchad utility 6 | stat signal screen cursor finish 7 | ) 8 | 9 | for HELPER in ${HELPERS[@]}; do 10 | source $(pwd)/helper/${HELPER}.sh 11 | done 12 | 13 | function main() { 14 | 15 | trap 'handleInterruptByUser "Interrupt by User"' 2 16 | 17 | clear 18 | banner 19 | 20 | packages 21 | switchCase "Install" "Packages" installPackages 22 | 23 | dotFiles 24 | backupDotFiles 25 | switchCase "Install" "Dotfiles" installDotFiles 26 | 27 | repositories 28 | switchCase "Clone" "Repositories" cloneRepository 29 | 30 | zshTheme 31 | switchCase "Install" "ZSH Themes" installZshTheme 32 | 33 | NvChad 34 | utility 35 | 36 | mainAlert 37 | 38 | } 39 | 40 | screenSize main 41 | -------------------------------------------------------------------------------- /optional/compile/bin/aarch64/ncmpcpp-0.10_dev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/optional/compile/bin/aarch64/ncmpcpp-0.10_dev -------------------------------------------------------------------------------- /optional/compile/bin/aarch64/nyancat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/optional/compile/bin/aarch64/nyancat -------------------------------------------------------------------------------- /optional/compile/bin/armv7l/ncmpcpp-0.10_dev: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/optional/compile/bin/armv7l/ncmpcpp-0.10_dev -------------------------------------------------------------------------------- /optional/compile/bin/armv7l/nyancat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mayTermux/myTermux/e5e1475bcda53694d35ffab97c2001913a52cc63/optional/compile/bin/armv7l/nyancat -------------------------------------------------------------------------------- /optional/compile/config/ncmpcpp/config-0.8^: -------------------------------------------------------------------------------- 1 | # Directories & Port Connection 2 | mpd_host = "~/.config/mpd/mpd.socket" 3 | mpd_port = "8000" 4 | mpd_crossfade_time = "2" 5 | mpd_music_dir = "/sdcard/Music" 6 | lyrics_directory = "~/.config/ncmpcpp/lyrics" 7 | allow_for_physical_item_deletion = "yes" 8 | execute_on_song_change = "bash ~/.scripts/notify/ncmpcpp" 9 | 10 | # Text Editor lyrics 11 | external_editor = "nvim" 12 | 13 | # Visualizer 14 | visualizer_in_stereo = "yes" 15 | visualizer_fifo_path = "~/.config/mpd/mpd.fifo" 16 | visualizer_output_name = "Visualizer" 17 | visualizer_type = "spectrum" 18 | #visualizer_type = "ellipse" 19 | visualizer_look = "●●" 20 | visualizer_color = "red,magenta,cyan,green,yellow" 21 | 22 | cyclic_scrolling = "yes" 23 | mouse_support = "yes" 24 | mouse_list_scroll_whole_page = "yes" 25 | lines_scrolled = "1" 26 | message_delay_time = "1" 27 | playlist_shorten_total_times = "yes" 28 | playlist_display_mode = "columns" 29 | browser_display_mode = "columns" 30 | search_engine_display_mode = "columns" 31 | playlist_editor_display_mode = "columns" 32 | autocenter_mode = "yes" 33 | centered_cursor = "yes" 34 | #user_interface = "classic" 35 | user_interface = "alternative" 36 | follow_now_playing_lyrics = "yes" 37 | locked_screen_width_part = "50" 38 | ask_for_locked_screen_width_part = "yes" 39 | display_bitrate = "no" 40 | main_window_color = "default" 41 | startup_screen = "playlist" 42 | startup_slave_screen = "visualizer" 43 | 44 | progressbar_look = "━━" 45 | #progressbar_look = "▃▃▃" 46 | progressbar_elapsed_color = "5" 47 | progressbar_color = "black" 48 | 49 | header_visibility = "no" 50 | statusbar_visibility = "yes" 51 | titles_visibility = "no" 52 | enable_window_title = "yes" 53 | 54 | statusbar_color = "white" 55 | color1 = "white" 56 | color2 = "blue" 57 | 58 | now_playing_prefix = "$b$2$7 " 59 | now_playing_suffix = " $/b$8" 60 | current_item_prefix = "$b$7$/b$3 " 61 | current_item_suffix = " $8" 62 | 63 | # Classic UI 64 | song_columns_list_format = "(50)[]{t|fr:Title} (0)[magenta]{a}" 65 | song_list_format = " {%t $R  $8%a$8}|{%f $R  $8%l$8} $8" 66 | song_status_format = "$b$7[ $4 $8   $4 $7] $7{$8 %b }|{$8 %a - %t }|{$8 %f }$2 $7 $8" 67 | song_window_title_format = "Ncmpcpp > { %b }|{ %a - %t }|{ %f }" 68 | 69 | # Alternative UI 70 | alternative_ui_separator_color = "black" 71 | alternative_header_first_line_format = "$b$5$/b $b$8{%t}|{%f}$/b $/b" 72 | alternative_header_second_line_format = "{$b{$2 %a$9}{ - $7 %b$9}{ ($2%y$9)}}|{%D}" 73 | -------------------------------------------------------------------------------- /optional/compile/config/ncmpcpp/config-0.9^: -------------------------------------------------------------------------------- 1 | # Directories & Port Connection 2 | mpd_host = "~/.config/mpd/mpd.socket" 3 | mpd_port = "8000" 4 | mpd_crossfade_time = "2" 5 | mpd_music_dir = "/sdcard/Music" 6 | lyrics_directory = "~/.config/ncmpcpp/lyrics" 7 | allow_for_physical_item_deletion = "yes" 8 | execute_on_song_change = "bash ~/.scripts/notify/ncmpcpp" 9 | 10 | # Text Editor lyrics 11 | external_editor = "nvim" 12 | 13 | # Visualizer 14 | visualizer_in_stereo = "yes" 15 | visualizer_data_source = "~/.config/mpd/mpd.fifo" 16 | visualizer_fps = "60" 17 | visualizer_output_name = "Visualizer" 18 | visualizer_type = "spectrum" 19 | #visualizer_type = "ellipse" 20 | visualizer_look = "●●" 21 | visualizer_color = "red,magenta,cyan,green,yellow" 22 | 23 | cyclic_scrolling = "yes" 24 | mouse_support = "yes" 25 | mouse_list_scroll_whole_page = "yes" 26 | lines_scrolled = "1" 27 | message_delay_time = "1" 28 | playlist_shorten_total_times = "yes" 29 | playlist_display_mode = "columns" 30 | browser_display_mode = "columns" 31 | search_engine_display_mode = "columns" 32 | playlist_editor_display_mode = "columns" 33 | autocenter_mode = "yes" 34 | centered_cursor = "yes" 35 | #user_interface = "classic" 36 | user_interface = "alternative" 37 | follow_now_playing_lyrics = "yes" 38 | locked_screen_width_part = "50" 39 | ask_for_locked_screen_width_part = "yes" 40 | display_bitrate = "no" 41 | main_window_color = "default" 42 | startup_screen = "playlist" 43 | startup_slave_screen = "visualizer" 44 | 45 | progressbar_look = "━━" 46 | #progressbar_look = "▃▃▃" 47 | progressbar_elapsed_color = "5" 48 | progressbar_color = "black" 49 | 50 | header_visibility = "no" 51 | statusbar_visibility = "yes" 52 | titles_visibility = "no" 53 | enable_window_title = "yes" 54 | 55 | statusbar_color = "white" 56 | color1 = "white" 57 | color2 = "blue" 58 | 59 | now_playing_prefix = "$b$2$7 " 60 | now_playing_suffix = " $/b$8" 61 | current_item_prefix = "$b$7$/b$3 " 62 | current_item_suffix = " $8" 63 | 64 | # Classic UI 65 | song_columns_list_format = "(50)[]{t|fr:Title} (0)[magenta]{a}" 66 | song_list_format = " {%t $R  $8%a$8}|{%f $R  $8%l$8} $8" 67 | song_status_format = "$b$7[ $4 $8   $4 $7] $7{$8 %b }|{$8 %a - %t }|{$8 %f }$2 $7 $8" 68 | song_window_title_format = "Ncmpcpp > { %b }|{ %a - %t }|{ %f }" 69 | 70 | # Alternative UI 71 | alternative_ui_separator_color = "black" 72 | alternative_header_first_line_format = "$b$5$/b $b$8{%t}|{%f}$/b $/b" 73 | alternative_header_second_line_format = "{$b{$2 %a$9}{ - $7 %b$9}{ ($2%y$9)}}|{%D}" 74 | -------------------------------------------------------------------------------- /optional/compile/install/configure-ncmpcpp.txt: -------------------------------------------------------------------------------- 1 | `configure' configures ncmpcpp 0.10_dev to adapt to many kinds of systems. 2 | 3 | Usage: ./configure [OPTION]... [VAR=VALUE]... 4 | 5 | To assign environment variables (e.g., CC, CFLAGS...), specify them as 6 | VAR=VALUE. See below for descriptions of some of the useful variables. 7 | 8 | Defaults for the options are specified in brackets. 9 | 10 | Configuration: 11 | -h, --help display this help and exit 12 | --help=short display options specific to this package 13 | --help=recursive display the short help of all the included packages 14 | -V, --version display version information and exit 15 | -q, --quiet, --silent do not print `checking ...' messages 16 | --cache-file=FILE cache test results in FILE [disabled] 17 | -C, --config-cache alias for `--cache-file=config.cache' 18 | -n, --no-create do not create output files 19 | --srcdir=DIR find the sources in DIR [configure dir or `..'] 20 | 21 | Installation directories: 22 | --prefix=PREFIX install architecture-independent files in PREFIX 23 | [/usr/local] 24 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 25 | [PREFIX] 26 | 27 | By default, `make install' will install all the files in 28 | `/usr/local/bin', `/usr/local/lib' etc. You can specify 29 | an installation prefix other than `/usr/local' using `--prefix', 30 | for instance `--prefix=$HOME'. 31 | 32 | For better control, use the options below. 33 | 34 | Fine tuning of the installation directories: 35 | --bindir=DIR user executables [EPREFIX/bin] 36 | --sbindir=DIR system admin executables [EPREFIX/sbin] 37 | --libexecdir=DIR program executables [EPREFIX/libexec] 38 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 39 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 40 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] 41 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 42 | --libdir=DIR object code libraries [EPREFIX/lib] 43 | --includedir=DIR C header files [PREFIX/include] 44 | --oldincludedir=DIR C header files for non-gcc [/usr/include] 45 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 46 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 47 | --infodir=DIR info documentation [DATAROOTDIR/info] 48 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 49 | --mandir=DIR man documentation [DATAROOTDIR/man] 50 | --docdir=DIR documentation root [DATAROOTDIR/doc/ncmpcpp] 51 | --htmldir=DIR html documentation [DOCDIR] 52 | --dvidir=DIR dvi documentation [DOCDIR] 53 | --pdfdir=DIR pdf documentation [DOCDIR] 54 | --psdir=DIR ps documentation [DOCDIR] 55 | 56 | Program names: 57 | --program-prefix=PREFIX prepend PREFIX to installed program names 58 | --program-suffix=SUFFIX append SUFFIX to installed program names 59 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names 60 | 61 | System types: 62 | --build=BUILD configure for building on BUILD [guessed] 63 | --host=HOST cross-compile to build programs to run on HOST [BUILD] 64 | 65 | Optional Features: 66 | --disable-option-checking ignore unrecognized --enable/--with options 67 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 68 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 69 | --enable-silent-rules less verbose build output (undo: "make V=1") 70 | --disable-silent-rules verbose build output (undo: "make V=0") 71 | --enable-dependency-tracking 72 | do not reject slow dependency extractors 73 | --disable-dependency-tracking 74 | speeds up one-time build 75 | --enable-shared[=PKGS] build shared libraries [default=yes] 76 | --enable-static[=PKGS] build static libraries [default=yes] 77 | --enable-fast-install[=PKGS] 78 | optimize for fast installation [default=yes] 79 | --disable-libtool-lock avoid locking (might break parallel builds) 80 | --enable-outputs Enable outputs screen [default=no] 81 | --enable-visualizer Enable music visualizer screen [default=no] 82 | --enable-clock Enable clock screen [default=no] 83 | --enable-static-boost Prefer the static boost libraries over the shared 84 | ones [no] 85 | 86 | Optional Packages: 87 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 88 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 89 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 90 | both] 91 | --with-aix-soname=aix|svr4|both 92 | shared library versioning (aka "SONAME") variant to 93 | provide on AIX, [default=aix]. 94 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] 95 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 96 | compiler's sysroot if not specified). 97 | --with-fftw Enable fftw support (required for frequency spectrum 98 | vizualization) [default=auto] 99 | --with-taglib Enable tag editor [default=auto] 100 | --with-lto Enable LTO (link time optimization) [default=yes] 101 | --with-boost=DIR prefix of Boost 1.60 [guess] 102 | 103 | Some influential environment variables: 104 | CXX C++ compiler command 105 | CXXFLAGS C++ compiler flags 106 | LDFLAGS linker flags, e.g. -L if you have libraries in a 107 | nonstandard directory 108 | LIBS libraries to pass to the linker, e.g. -l 109 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if 110 | you have headers in a nonstandard directory 111 | CC C compiler command 112 | CFLAGS C compiler flags 113 | LT_SYS_LIBRARY_PATH 114 | User-defined run-time library search path. 115 | CXXCPP C++ preprocessor 116 | BOOST_ROOT Location of Boost installation 117 | PKG_CONFIG path to pkg-config utility 118 | PKG_CONFIG_PATH 119 | directories to add to pkg-config's search path 120 | PKG_CONFIG_LIBDIR 121 | path overriding pkg-config's built-in search path 122 | ICU_CFLAGS C compiler flags for ICU, overriding pkg-config 123 | ICU_LIBS linker flags for ICU, overriding pkg-config 124 | libmpdclient_CFLAGS 125 | C compiler flags for libmpdclient, overriding pkg-config 126 | libmpdclient_LIBS 127 | linker flags for libmpdclient, overriding pkg-config 128 | ncursesw_CFLAGS 129 | C compiler flags for ncursesw, overriding pkg-config 130 | ncursesw_LIBS 131 | linker flags for ncursesw, overriding pkg-config 132 | fftw3_CFLAGS 133 | C compiler flags for fftw3, overriding pkg-config 134 | fftw3_LIBS linker flags for fftw3, overriding pkg-config 135 | libcurl_CFLAGS 136 | C compiler flags for libcurl, overriding pkg-config 137 | libcurl_LIBS 138 | linker flags for libcurl, overriding pkg-config 139 | 140 | Use these variables to override the choices made by `configure' or to help 141 | it to find libraries and programs with nonstandard names/locations. 142 | 143 | Report bugs to the package provider. 144 | -------------------------------------------------------------------------------- /optional/compile/install/ncmpcpp-compile.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | DEPENDENCY_PACKAGES=( 4 | git clang autoconf automake binutils 5 | libtool pkg-config boost taglib 6 | ) 7 | 8 | for DEPENDENCY_PACKAGE in ${DEPENDENCY_PACKAGES[@]}; do 9 | pkg i -y $DEPENDENCY_PACKAGE 10 | done 11 | 12 | git clone --depth=1 https://github.com/ncmpcpp/ncmpcpp $HOME/ncmpcpp 13 | cd $HOME/ncmpcpp 14 | libtoolize && aclocal && autoheader && autoconf && automake --add-missing 15 | autoupdate 16 | ./autogen.sh 17 | sed -i '36i\#include ' src/screens/visualizer.cpp 18 | ./configure --enable-outputs --enable-visualizer --enable-clock --enable-static-boost --with-taglib 19 | make 20 | strip src/ncmpcpp 21 | cp $HOME/myTermux/optional/compile/config/ncmpcpp/config-0.9\^ ~/.config/ncmpcpp/config 22 | cp src/ncmpcpp $PREFIX/bin/ncmpcpp 23 | echo -e "Compile & Install done!" 24 | mpd 25 | ncmpcpp 26 | -------------------------------------------------------------------------------- /optional/compile/install/nyancat-compile.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | DEPENDENCY_PACKAGES=( 4 | clang make git binutils 5 | ) 6 | 7 | for DEPENDENCY_PACKAGES in ${DEPENDENCY_PACKAGE[@]}; do 8 | pkg i -y ${DEPENDENCY_PACKAGE} 9 | done 10 | 11 | git clone https://github.com/mayTermux/nyancat.git $HOME/nyancat 12 | cd $HOME/nyancat 13 | make 14 | strip src/nyancat 15 | make install 16 | echo -e "Compile & Install done!" 17 | -------------------------------------------------------------------------------- /optional/neovim-settings/xshin.lua: -------------------------------------------------------------------------------- 1 | -- settings 2 | 3 | local cmd = vim.cmd 4 | 5 | -- Return to last edit line position when opening files 6 | cmd [[au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif]]; 7 | 8 | -- Set nowrap text when opening files 9 | cmd [[set nowrap]]; 10 | 11 | -- Set Cursor Underline 12 | cmd [[set guicursor=]]; 13 | 14 | -- Restore Cursor 15 | cmd [[ 16 | augroup RestoreCursorShapeOnExit 17 | autocmd! 18 | autocmd VimLeave * set guicursor=a:hor20 19 | augroup END 20 | ]]; 21 | 22 | -- mapping 23 | 24 | local function map(mode, lhs, rhs, opts) 25 | local options = {noremap = true} 26 | if opts then 27 | options = vim.tbl_extend("force", options, opts) 28 | end 29 | vim.api.nvim_set_keymap(mode, lhs, rhs, options) 30 | end 31 | 32 | -- Terminal 33 | 34 | -- == CTRL + l 35 | map("n", "", ":vnew +terminal | setlocal nobuflisted ", opt) -- term over right 36 | -- == CTRL + x 37 | map("n", "", ":10new +terminal | setlocal nobuflisted ", opt) -- term bottom 38 | -- == ALT + t 39 | map("n", "", ":terminal ", opt) -- term buffer 40 | 41 | -- Number Line 42 | -- == CTRL + m 43 | map("n", "", ":set number ", opt) -- set number 44 | -- == CTRL + ALT + m 45 | map("n", "", ":set nonumber ", opt) -- set nonumber 46 | 47 | -- Wrap Text 48 | -- == CTRL + w 49 | map("n", "", [[:set wrap]], opt) 50 | map("i", "", [[:set wrap]], opt) 51 | map("v", "", [[:set wrap]], opt) 52 | 53 | -- No Wrap Text 54 | -- == CTRL + ALT + w 55 | map("n", "", [[:set nowrap]], opt) 56 | map("i", "", [[:set nowrap]], opt) 57 | map("v", "", [[:set nowrap]], opt) 58 | 59 | -- save on normal, insert and visual mode (CTRL + S) 60 | map("n", "", [[:w]], opt) 61 | map("i", "", [[:w]], opt) 62 | map("v", "", [[:w]], opt) 63 | 64 | -- quit on normal, insert and visual mode (CTRL + Q) 65 | map("n", "", [[:q]], opt) 66 | map("i", "", [[:q]], opt) 67 | map("v", "", [[:q]], opt) 68 | 69 | -- save and quit, insert and visual mode (CTRL + ALT + S) 70 | map("n", "", [[:wq!]], opt) 71 | map("i", "", [[:wq!]], opt) 72 | map("v", "", [[:wq!]], opt) 73 | 74 | -- quit without save on normal, insert and visual mode (CTRL + ALT + Q) 75 | map("n", "", [[:q!]], opt) 76 | map("i", "", [[:q!]], opt) 77 | map("v", "", [[:q!]], opt) 78 | 79 | -- move cursor to start (home) text on normal, insert and visual mode. Example: n... (CTRL + A) 80 | map("n", "", [[]], opt) 81 | map("i", "", [[]], opt) 82 | map("v", "", [[]], opt) 83 | 84 | -- move cursor to end text on normal, insert and visual mode. Example: n... (CTRL + D) 85 | map("n", "", [[]], opt) 86 | map("i", "", [[]], opt) 87 | map("v", "", [[]], opt) 88 | 89 | -------------------------------------------------------------------------------- /optional/zshthemes/install/powerlevel10k-install.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k 4 | 5 | echo -e "run 'chzsh' to change theme" 6 | --------------------------------------------------------------------------------