first commit

This commit is contained in:
Blueno 2022-04-01 08:36:29 -04:00
commit 7150463f97
217 changed files with 11407 additions and 0 deletions

1
README.md Normal file
View File

@ -0,0 +1 @@
Termux Scripts

168
myTermux/.aliases Normal file
View File

@ -0,0 +1,168 @@
#Change
alias chcolor="~/.scripts/colorscheme/colors.sh"
alias chfont="~/.scripts/fonts/fonts.sh"
alias chzsh="~/.scripts/zsh/changetheme.sh"
#Config
alias fontused="cat ~/.config/mytermux/fonts/used.log"
alias colorused="cat ~/.config/mytermux/colorscheme/used.log"
alias zshused="cat ~/.config/mytermux/zsh/used.log"
#System
alias q="exit"
alias c="clear"
alias sd="cd /sdcard"
alias pf="cd $PREFIX"
#Package Manager
alias pacupg="pkg upgrade"
alias pacupd="pkg update"
alias pacupgupd="pkg update && pkg upgrade"
#Convert Video
alias convi="ffmpeg -i $1 -c:v libx264 -crf 25 $2"
#Ping
alias pg="ping google.com"
#MyIP (Local) Pre
alias myip="bash ~/.scripts/system/ip.sh simcard"
alias myipwifi="bash ~/.scripts/system/ip.sh wifi"
alias myiphotspot="~/.scripts/system/ip.sh hotspot"
alias myipvpn="~/.scripts/system/ip.sh vpn"
alias myipall="~/.scripts/system/ip.sh all"
#Music
alias n="ncmpcpp"
alias mkill="mpd --kill"
alias m="music"
alias ncmpcpp-compile="~/myTermux/compile/install/ncmpcpp-compile.sh"
#Color Toys
alias 256colors2="~/.scripts/toys/256colors2.pl"
alias bloks="~/.scripts/toys/bloks"
alias colortest="~/.scripts/toys/colortest"
alias colortest-slim="~/.scripts/toys/colortest-slim"
alias colorview="~/.scripts/toys/colorview"
alias colorbars="~/.scripts/toys/colorbars"
alias panes="~/.scripts/toys/panes"
alias pipes1="~/.scripts/toys/pipes1"
alias pipes2="~/.scripts/toys/pipes2"
alias pipes2-slim="~/.scripts/toys/pipes2-slim"
alias dna="~/.scripts/toys/dna"
alias ghost="~/.scripts/toys/ghost"
alias jfetch="~/.scripts/toys/jfetch"
alias pacman="~/.scripts/toys/pacman"
alias pipesx="~/.scripts/toys/pipesx"
alias rains="~/.scripts/toys/rains"
alias spacey="~/.scripts/toys/spacey"
#archives .deb
alias archives="cd /data/data/com.termux/cache/apt/archives/"
#Photos
alias ss="cd /sdcard/Pictures/Screenshots/"
#Movies
alias ms="cd /sdcard/Movies"
#Downloads
alias dl="cd /sdcard/Download"
#Documents
alias ds="cd /sdcard/Documents"
#Largest Files
alias largefile="du -h -x -s -- * | sort -r -h | head -20"
#System Information
#alias neo="bash ~/.config/neofetch/debug-logo.sh --randomsmall"
alias neo="neofetch"
alias neodebug="bash ~/.config/neofetch/debug-logo.sh $1"
alias disk="bash ~/.scripts/system/fetch.sh storage"
alias battery="bash ~/.scripts/fetch.sh battery"
alias ls="exa --icons"
alias la="exa --icons -lgha --group-directories-first"
alias lt="exa --icons --tree"
alias lta="exa --icons --tree -lgha"
alias bat="bat --theme Dracula"
#proot-distro
alias prot="cd $PREFIX/var/lib/proot-distro"
alias protlogin="proot-distro login $1"
#Magick
alias listfont="magick convert -list font | grep -iE 'font:.*'"
## Configuration
#mpd
alias mpdconf="nvim ~/.config/mpd/mpd.conf"
alias mpconf="nvim /data/data/com.termux/files/usr/etc/mpd.conf"
#ncmpcpp
alias ncmconf="nvim ~/.config/ncmpcpp/config"
#neovim
alias nviminit="nvim ~/.config/nvim/init.lua"
alias nvimtheme="nvim ~/.config/nvim/lua/chadrc.lua"
alias nvimplug="nvim ~/.config/nvim/lua/pluginList.lua"
alias nvimmap="nvim ~/.config/nvim/lua/mappings.lua"
alias nvimpacnit="nvim ~/.config/nvim/lua/packerInit.lua"
alias nvimsin="nvim ~/.config/nvim/lua/core/xshin.lua"
alias nvimhighlight="nvim ~/.config/nvim/lua/hightlights.lua"
alias nvimcore="nvim ~/.config/nvim/lua/core/init.lua"
#zsh
alias zshconf="nvim ~/.zshrc"
#neofetch
alias neoconf="nvim ~/.config/neofetch/config.conf"
alias rxconf="nvim ~/.local/bin/rxfetch"
alias neoscript="nvim ~/.config/neofetch/script.sh"
alias fetch="bash ~/.scripts/system/fetch.sh $@"
alias fetchconf="nvim ~/.scripts/system/fetch.sh"
alias awesomeconf="nvim ~/.config/awesomeshot/awesomeshot.conf"
#git
alias gitgraph="git log --all --decorate --oneline --graph"
alias gitupdate="git fetch && git pull"
alias gitstat="git status"
alias gitad="git add $@"
alias gitcom="git commit -m '$@'"
#Web Server (Require install LAMP on Termux) https://github.com/xshin404/lampTermux
alias apaconf="nvim $PREFIX/etc/apache2/httpd.conf"
alias phpmyadminconf="nvim $PREFIX/etc/phpmyadmin/config.inc.php"
#Refresh
alias refresh="source $HOME/.zshrc"
#Unsource
alias unsource="exec $SHELL -l"
#PID Login
alias loginconf="nvim ~/.scripts/login.sh"
alias exit="if [ -f ~/.scripts/pid/login ]; then rm ~/.scripts/pid/login; fi && exit"
#MyIP
alias myipconf="nvim ~/.scripts/ip.sh"
#termux-reload
alias reload="termux-reload-settings"
#termux-setting
alias termconf="nvim ~/.termux/termux.properties"
#termux-permission
alias termper="termux-setup-storage"
alias aliasconf="nvim ~/.aliases"
alias startconf="nvim ~/.autostart"
alias repocek="node ~/.scripts/js/repochecker.js"
alias schemeconf="nvim ~/.scripts/colorscheme/colors.sh"
alias fontsconf="nvim ~/.scripts/fonts/fonts.sh"
alias zshthemeconf="nvim ~/.scripts/zsh/changetheme.sh"

29
myTermux/.autostart Normal file
View File

@ -0,0 +1,29 @@
#!/usr/bin/env bash
#cursor bar or bold pipe
#echo -e "\e[2 q"
export COLUMNS LINES
#cursor underline
echo -e "\e[4 q"
#cursor pipe
#echo -e "\e[6 q"
#c
#if [ "$TMUX" == "" ]; then
# tmux
#fi
#if [ ! -f ~/.scripts/pid/login ]; then
# bash ~/.scripts/login.sh
#fi
#neo
#clear
rxfetch

View File

@ -0,0 +1,19 @@
background=#090D13
foreground=#FEFEFE
cursor=#E96B72
color0=#00050D
color1=#E96B72
color2=#90B261
color3=#F8AE4E
color4=#52BCF9
color5=#F9E893
color6=#8FE0C5
color7=#C6C6C6
color8=#676767
color9=#EF7077
color10=#C1D84B
color11=#FEB353
color12=#58C1FE
color13=#FEED98
color14=#94E5CA
color15=#FEFEFE

View File

@ -0,0 +1,19 @@
background=#FEFEFE
foreground=#090D13
cursor=#E96B72
color0=#00050D
color1=#E96B72
color2=#90B261
color3=#F8AE4E
color4=#52BCF9
color5=#F9E893
color6=#8FE0C5
color7=#C6C6C6
color8=#676767
color9=#EF7077
color10=#C1D84B
color11=#FEB353
color12=#58C1FE
color13=#FEED98
color14=#94E5CA
color15=#FEFEFE

View File

@ -0,0 +1,19 @@
background=#1F2430
foreground=#E5E0CE
cursor=#E96B72
color0=#00050D
color1=#E96B72
color2=#90B261
color3=#F8AE4E
color4=#52BCF9
color5=#F9E893
color6=#8FE0C5
color7=#C6C6C6
color8=#676767
color9=#EF7077
color10=#C1D84B
color11=#FEB353
color12=#58C1FE
color13=#FEED98
color14=#94E5CA
color15=#FEFEFE

View File

@ -0,0 +1,26 @@
background: #1E1D2F
foreground: #D9E0EE
color0: #6E6C7E
color8: #988BA2
color1: #F28FAD
color9: #F28FAD
color2: #ABE9B3
color10: #ABE9B3
color3: #FAE3B0
color11: #FAE3B0
color4: #96CDFB
color12: #96CDFB
color5: #F5C2E7
color13: #F5C2E7
color6: #89DCEB
color14: #89DCEB
color7: #C3BAC6
color15: #D9E0EE

View File

@ -0,0 +1,21 @@
# dracula.colors
# Color scheme from https://github.com/Mayccoll/Gogh
color0=#44475a
color1=#ff5555
color2=#50fa7b
color3=#ffb86c
color4=#8be9fd
color5=#bd93f9
color6=#ff79c6
color7=#94A3A5
color8=#000000
color9=#ff5555
color10=#50fa7b
color11=#ffb86c
color12=#8be9fd
color13=#bd93f9
color14=#ff79c6
color15=#ffffff
background=#282a36
foreground=#94A3A5
cursor=#94A3A5

View File

@ -0,0 +1,21 @@
# elementary.colors
# Color scheme from https://github.com/Mayccoll/Gogh
color0=#303030
color1=#e1321a
color2=#6ab017
color3=#ffc005
color4=#004f9e
color5=#ec0048
color6=#2aa7e7
color7=#f2f2f2
color8=#5d5d5d
color9=#ff361e
color10=#7bc91f
color11=#ffd00a
color12=#0071ff
color13=#ff1d62
color14=#4bb8fd
color15=#a020f0
background=#101010
foreground=#f2f2f2
cursor=#f2f2f2

View File

@ -0,0 +1,21 @@
# flat.colors
# Color scheme from https://github.com/Mayccoll/Gogh
color0=#2c3e50
color1=#c0392b
color2=#27ae60
color3=#f39c12
color4=#2980b9
color5=#8e44ad
color6=#16a085
color7=#bdc3c7
color8=#34495e
color9=#e74c3c
color10=#2ecc71
color11=#f1c40f
color12=#3498db
color13=#9b59b6
color14=#2AA198
color15=#ecf0f1
background=#1F2D3A
foreground=#1abc9c
cursor=#1abc9c

View File

@ -0,0 +1,21 @@
# gruvbox.dark.colors
# Color scheme from https://github.com/Mayccoll/Gogh
color0=#665c54
color1=#fb4934
color2=#83a598
color3=#d79921
color4=#b16286
color5=#458588
color6=#b8bb26
color7=#d65d0e
color8=#a89984
color9=#fb4934
color10=#8ec07c
color11=#fabd2f
color12=#d3869b
color13=#689d6a
color14=#98971a
color15=#fe8019
background=#282828
foreground=#ebdbb2
cursor=#ebdbb2

View File

@ -0,0 +1,21 @@
# material.ocean.colors
# Color scheme from https://github.com/Material-Ocean
color0 = #3b4252
color1 = #bf616a
color2 = #a3be8c
color3 = #ebcb8b
color4 = #81a1c1
color5 = #b48ead
color6 = #88c0d0
color7 = #e5e9f0
color8 = #4c566a
color9 = #bf616a
color10 = #a3be8c
color11 = #ebcb8b
color12 = #81a1c1
color13 = #b48ead
color14 = #8fbcbb
color15 = #eceff4
background=#0f111a
foreground=#d8dee9
cursor=#d8dee9

View File

@ -0,0 +1,21 @@
# material.colors
# Color scheme from https://github.com/Mayccoll/Gogh
color0=#073641
color1=#EB606B
color2=#C3E88D
color3=#F7EB95
color4=#80CBC3
color5=#FF2490
color6=#AEDDFF
color7=#FFFFFF
color8=#002B36
color9=#EB606B
color10=#C3E88D
color11=#F7EB95
color12=#7DC6BF
color13=#6C71C3
color14=#34434D
color15=#FFFFFF
background=#1E282C
foreground=#C3C7D1
cursor=#657B83

View File

@ -0,0 +1,21 @@
# monokai.dark.colors
# Color scheme from https://github.com/Mayccoll/Gogh
color0=#75715e
color1=#f92672
color2=#a6e22e
color3=#f4bf75
color4=#66d9ef
color5=#ae81ff
color6=#2AA198
color7=#f9f8f5
color8=#272822
color9=#f92672
color10=#a6e22e
color11=#f4bf75
color12=#66d9ef
color13=#ae81ff
color14=#2AA198
color15=#f8f8f2
background=#272822
foreground=#f8f8f2
cursor=#f8f8f2

View File

@ -0,0 +1,20 @@
color0=#2f343f
color1=#fd6b85
color2=#63e0be
color3=#fed270
color4=#67d4f2
color5=#ff8167
color6=#63e0be
color7=#eeeeee
color8=#4f4f5b
color9=#fd6b85
color10=#63e0be
color11=#fed270
color12=#67d4f2
color13=#ff8167
color14=#63e0be
color15=#eeeeee
background=#2a2c3a
#background=#090d13
foreground=#eeeeee
cursor=#fd6b85

View File

@ -0,0 +1,19 @@
color0=#291e4e
color1=#fb749f
color2=#86d387
color3=#fbdd74
color4=#8e96fd
color5=#d685ff
color6=#9bcfcf
color7=#ffffff
color8=#291e4e
color9=#fb749f
color10=#86d387
color11=#fbdd74
color12=#8e96fd
color13=#d685ff
color14=#9bcfcf
color15=#ffffff
background=#291e4e
foreground=#ffffff
cursor=#fb749f

View File

@ -0,0 +1,34 @@
! Color scheme by fikri omar
background=#2F343F
foreground=#EFF0EB
color0=#2F343F
color8=#444A57
color1=#de8990
color9=#d0a8ab
color2=#94daa9
color10=#bae8d2
! yellow
color3=#dee7aa
color11=#d7c96b
! blue
color4=#9cdbdf
color12=#6cb4dd
! magenta
color5=#cca8c9
color13=#db79bf
! cyan
color6=#9ad4c8
color14=#59b0b2
! white
color7=#e1e1e1
color15=#f0f0f0

View File

@ -0,0 +1,21 @@
# one.dark.colors
# Color scheme from https://github.com/Mayccoll/Gogh
color0=#000000
color1=#E06C75
color2=#98C379
color3=#D19A66
color4=#61AFEF
color5=#C678DD
color6=#56B6C2
color7=#ABB2BF
color8=#5C6370
color9=#E06C75
color10=#98C379
color11=#D19A66
color12=#61AFEF
color13=#C678DD
color14=#56B6C2
color15=#FFFEFE
background=#1E2127
foreground=#5C6370
cursor=#5C6370

View File

@ -0,0 +1,19 @@
color0=#434C5E
color1=#FA5AA4
color2=#2BE491
color3=#FA946E
color4=#63C5EA
color5=#CF8EF4
color6=#89CCF7
color7=#F7F7F7
color8=#4C566A
color9=#FA74B2
color10=#44EB9F
color11=#FAA687
color12=#7ACBEA
color13=#D8A6F4
color14=#A1D5F7
color15=#F4F4F4
background=#373E4D
foreground=#F9F9F9
cursor=#FA5AA4

View File

@ -0,0 +1,19 @@
color0=#F7F7F7
color1=#FA5AA4
color2=#2BE491
color3=#FA946E
color4=#63C5EA
color5=#CF8EF4
color6=#89CCF7
color7=#434C5E
color8=#F4F4F4
color9=#FA74B2
color10=#44EB9F
color11=#FAA687
color12=#7ACBEA
color13=#D8A6F4
color14=#A1D5F7
color15=#4C566A
background=#F9F9F9
foreground=#373E4D
cursor=#FA5AA4

View File

@ -0,0 +1,20 @@
foreground=#c8ccd4
background=#1e222a
cursor=#e06c75
color0=#1e222a
color1=#e06c75
color2=#98c379
color3=#e5c07b
color4=#61afef
color5=#c678dd
color6=#56b6c2
#color7=#abb2bf
color7=#D8DEE9
color8=#545862
color9=#e06c75
color10=#98c379
color11=#e5c07b
color12=#61afef
color13=#c678dd
color14=#56b6c2
color15=#c8ccd4

View File

@ -0,0 +1,21 @@
# snazzy.colors
# Color theme from Color scheme from https://github.com/Mayccoll/Gogh
color0=#0C0D13
color1=#FF5C57
color2=#5AF78E
color3=#F3F99D
color4=#57C7FF
color5=#FF6AC1
color6=#9AEDFE
color7=#EFF0EB
color8=#686868
color9=#FF5C57
color10=#5AF78E
color11=#F3F99D
color12=#57C7FF
color13=#FF6AC1
color14=#9AEDFE
color15=#EFF0EB
background=#282A36
foreground=#EFF0EB
cursor=#EFF0EB

View File

@ -0,0 +1,21 @@
# tomorrow.night.colors
# Color scheme from https://github.com/Mayccoll/Gogh
color0=#000000
color1=#CC6666
color2=#B5BD68
color3=#F0C674
color4=#81A2BE
color5=#B293BB
color6=#8ABEB7
color7=#FFFEFE
color8=#000000
color9=#CC6666
color10=#B5BD68
color11=#F0C574
color12=#80A1BD
color13=#B294BA
color14=#8ABDB6
color15=#FFFEFE
background=#1D1F21
foreground=#C5C8C6
cursor=#C4C8C5

View File

@ -0,0 +1,21 @@
# tomorrow.night.eighties.colors
# Color scheme from https://github.com/Mayccoll/Gogh
color0=#000000
color1=#F27779
color2=#99CC99
color3=#FFCC66
color4=#6699CC
color5=#CC99CC
color6=#66CCCC
color7=#FFFEFE
color8=#000000
color9=#F17779
color10=#99CC99
color11=#FFCC66
color12=#6699CC
color13=#CC99CC
color14=#66CCCC
color15=#FFFEFE
background=#2C2C2C
foreground=#CCCCCC
cursor=#CCCCCC

View File

@ -0,0 +1,20 @@
# custom.colors
color0=#44475a
color1=#ff0000
color2=#00ff00
color3=#ff8e1e
color4=#0071ff
color5=#ffc500
color6=#808080
color7=#ffffff
color8=#000000
color9=#ff0000
color10=#50fa7b
color11=#ff8e1e
color12=#0071ff
color13=#ffc500
color14=#808080
color15=#ffffff
background=#282a36
foreground=#ffffff
cursor=#94A3A5

164
myTermux/.config/lf/icons Normal file
View File

@ -0,0 +1,164 @@
#!/usr/bin/env bash
##lf icons
export LF_ICONS="\
tw=:\
st=:\
ow=:\
dt=:\
di=:\
fi=:\
ln=:\
or=:\
ex=:\
*.c=:\
*.cc=:\
*.clj=:\
*.coffee=:\
*.cpp=:\
*.css=:\
*.d=:\
*.dart=:\
*.erl=:\
*.exs=:\
*.fs=:\
*.go=:\
*.h=:\
*.hh=:\
*.hpp=:\
*.hs=:\
*.html=:\
*.java=:\
*.jl=:\
*.js=:\
*.json=:\
*.lua=:\
*.md=:\
*.php=:\
*.pl=:\
*.pro=:\
*.py=:\
*.rb=:\
*.rs=:\
*.scala=:\
*.ts=:\
*.vim=:\
*.cmd=:\
*.ps1=:\
*.sh=:\
*.bash=:\
*.zsh=:\
*.fish=:\
*.tar=:\
*.tgz=:\
*.arc=:\
*.arj=:\
*.taz=:\
*.lha=:\
*.lz4=:\
*.lzh=:\
*.lzma=:\
*.tlz=:\
*.txz=:\
*.tzo=:\
*.t7z=:\
*.zip=:\
*.z=:\
*.dz=:\
*.gz=:\
*.lrz=:\
*.lz=:\
*.lzo=:\
*.xz=:\
*.zst=:\
*.tzst=:\
*.bz2=:\
*.bz=:\
*.tbz=:\
*.tbz2=:\
*.tz=:\
*.deb=:\
*.rpm=:\
*.jar=:\
*.war=:\
*.ear=:\
*.sar=:\
*.rar=:\
*.alz=:\
*.ace=:\
*.zoo=:\
*.cpio=:\
*.7z=:\
*.rz=:\
*.cab=:\
*.wim=:\
*.swm=:\
*.dwm=:\
*.esd=:\
*.jpg=:\
*.jpeg=:\
*.mjpg=:\
*.mjpeg=:\
*.gif=:\
*.bmp=:\
*.pbm=:\
*.pgm=:\
*.ppm=:\
*.tga=:\
*.xbm=:\
*.xpm=:\
*.tif=:\
*.tiff=:\
*.png=:\
*.svg=:\
*.svgz=:\
*.mng=:\
*.pcx=:\
*.mov=:\
*.mpg=:\
*.mpeg=:\
*.m2v=:\
*.mkv=:\
*.webm=:\
*.ogm=:\
*.mp4=:\
*.m4v=:\
*.mp4v=:\
*.vob=:\
*.qt=:\
*.nuv=:\
*.wmv=:\
*.asf=:\
*.rm=:\
*.rmvb=:\
*.flc=:\
*.avi=:\
*.fli=:\
*.flv=:\
*.gl=:\
*.dl=:\
*.xcf=:\
*.xwd=:\
*.yuv=:\
*.cgm=:\
*.emf=:\
*.ogv=:\
*.ogx=:\
*.aac=:\
*.au=:\
*.flac=:\
*.m4a=:\
*.mid=:\
*.midi=:\
*.mka=:\
*.mp3=:\
*.mpc=:\
*.ogg=:\
*.ra=:\
*.wav=:\
*.oga=:\
*.opus=:\
*.spx=:\
*.xspf=:\
*.pdf=:\
*.nix=:\
"

5
myTermux/.config/lf/lfrc Normal file
View File

@ -0,0 +1,5 @@
# Author : xShin
# GitHub : https://github.com/xshin404
set hidden true
set icons true

View File

@ -0,0 +1,42 @@
bind_to_address "127.0.0.1"
bind_to_address "~/.config/mpd/mpd.socket"
port "8000"
pid_file "~/.config/mpd/mpd.pid"
log_file "~/.config/mpd/log"
music_directory "/sdcard/Music"
playlist_directory "~/.config/mpd/playlists"
db_file "~/.config/mpd/mpd.db"
state_file "~/.config/mpd/state"
sticker_file "~/.config/mpd/sticker.sql"
log_level "notice"
metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
metadata_to_use "+comment"
follow_outside_symlinks "yes"
follow_inside_symlinks "yes"
input {
plugin "curl"
}
audio_output {
type "pulse"
name "Pulse Audio (Support Cava Visualizer)"
mixer_type "software"
enable "yes"
}
audio_output {
type "fifo"
name "Fifo Visualizer (Press 8 to show Music Visualizer)"
path "~/.config/mpd/mpd.fifo"
format "44100:16:2"
enabled "yes"
}

View File

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

View File

@ -0,0 +1 @@
nekonako-djancoeg.colors

View File

@ -0,0 +1 @@
MesloLGS NF Bold.ttf

View File

@ -0,0 +1 @@
osx2.zsh-theme

View File

@ -0,0 +1,72 @@
# Directories & Port Connection
mpd_host = "~/.config/mpd/mpd.socket"
mpd_port = "8000"
mpd_crossfade_time = "2"
mpd_music_dir = "/sdcard/Music"
lyrics_directory = "~/.config/ncmpcpp/lyrics"
allow_for_physical_item_deletion = "yes"
execute_on_song_change = "bash ~/.scripts/notify/ncmpcpp"
# Text Editor lyrics
external_editor = "nvim"
# Visualizer
visualizer_in_stereo = "yes"
visualizer_fifo_path = "~/.config/mpd/mpd.fifo"
visualizer_output_name = "Visualizer"
visualizer_type = "spectrum"
#visualizer_type = "ellipse"
visualizer_look = "●●"
visualizer_color = "red,magenta,cyan,green,yellow"
cyclic_scrolling = "yes"
mouse_support = "yes"
mouse_list_scroll_whole_page = "yes"
lines_scrolled = "1"
message_delay_time = "1"
playlist_shorten_total_times = "yes"
playlist_display_mode = "columns"
browser_display_mode = "columns"
search_engine_display_mode = "columns"
playlist_editor_display_mode = "columns"
autocenter_mode = "yes"
centered_cursor = "yes"
#user_interface = "classic"
user_interface = "alternative"
follow_now_playing_lyrics = "yes"
locked_screen_width_part = "50"
ask_for_locked_screen_width_part = "yes"
display_bitrate = "no"
main_window_color = "default"
startup_screen = "playlist"
startup_slave_screen = "visualizer"
progressbar_look = "━━"
#progressbar_look = "▃▃▃"
progressbar_elapsed_color = "5"
progressbar_color = "black"
header_visibility = "no"
statusbar_visibility = "yes"
titles_visibility = "no"
enable_window_title = "yes"
statusbar_color = "white"
color1 = "white"
color2 = "blue"
now_playing_prefix = "$b$2$7 "
now_playing_suffix = " $/b$8"
current_item_prefix = "$b$7$/b$3 "
current_item_suffix = " $8"
# Classic UI
song_columns_list_format = "(50)[]{t|fr:Title} (0)[magenta]{a}"
song_list_format = " {%t $R  $8%a$8}|{%f $R  $8%l$8} $8"
song_status_format = "$b$7[ $4 $8   $4 $7] $7{$8 %b }|{$8 %a - %t }|{$8 %f }$2 $7 $8"
song_window_title_format = "Ncmpcpp > { %b }|{ %a - %t }|{ %f }"
# Alternative UI
alternative_ui_separator_color = "black"
alternative_header_first_line_format = "$b$5$/b $b$8{%t}|{%f}$/b $/b"
alternative_header_second_line_format = "{$b{$2 %a$9}{ - $7 %b$9}{ ($2%y$9)}}|{%D}"

View File

@ -0,0 +1,882 @@
# See this wiki page for more info:
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
print_info() {
# info title
# info underline
# Author : xShin
# GitHub : https://github.com/xshin404
#prin "xshin\e[91m@\e[97mandroid💕"
#prin "\e[91m━━━━━━━━━━━━━━"
prin "┌───────── Hardware $(color 1)$(color 7) Information ─────────┐"
prin
info " " distro
info " " model
info " " kernel
info " " uptime
info " " packages
prin "$(bash $HOME/.scripts/system/fetch.sh storage -n)"
# prin " " "$(bash ~/.scripts/ip.sh simcard)"
# prin "嬨" "$(bash ~/.scripts/ip.sh vpn)"
# prin " " "$(bash ~/.scripts/ip.sh wifi)"
# prin "直" "$(bash ~/.scripts/ip.sh hotspot)"
prin " " "github.com/nihsx"
prin " " "github.com/mayTermux/myTermux"
#info " " song
info " " shell
info " " cpu
info " " memory
prin "$(bash $HOME/.scripts/system/fetch.sh battery)"
#info cols
prin " " "$(color 0) $(color 1) $(color 2) $(color 3) $(color 4) $(color 5) $(color 6) $(color 7) "
prin
prin "└────────────────── $(color 1)$(color 7) ───────────────────┘"
# info "GPU Driver" gpu_driver # Linux/macOS only
# info "CPU Usage" cpu_usage
# info "Disk" disk
# info "Battery" battery
# info "Font" font
# info "Song" song
# [[ "$player" ]] && prin "Music Player" "$player"
# info "Local IP" local_ip
# info "Public IP" public_ip
# info "Users" users
# info "Locale" locale # This only works on glibc systems.
#info cols
}
# Title
# Hide/Show Fully qualified domain name.
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --title_fqdn
title_fqdn="off"
# Kernel
# Shorten the output of the kernel function.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --kernel_shorthand
# Supports: Everything except *BSDs (except PacBSD and PC-BSD)
#
# Example:
# on: '4.8.9-1-ARCH'
# off: 'Linux 4.8.9-1-ARCH'
kernel_shorthand="on"
# Distro
# Shorten the output of the distro function
#
# Default: 'off'
# Values: 'on', 'tiny', 'off'
# Flag: --distro_shorthand
# Supports: Everything except Windows and Haiku
distro_shorthand="off"
# Show/Hide OS Architecture.
# Show 'x86_64', 'x86' and etc in 'Distro:' output.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --os_arch
#
# Example:
# on: 'Arch Linux x86_64'
# off: 'Arch Linux'
os_arch="on"
# Uptime
# Shorten the output of the uptime function
#
# Default: 'on'
# Values: 'on', 'tiny', 'off'
# Flag: --uptime_shorthand
#
# Example:
# on: '2 days, 10 hours, 3 mins'
# tiny: '2d 10h 3m'
# off: '2 days, 10 hours, 3 minutes'
uptime_shorthand="on"
# Memory
# Show memory pecentage in output.
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --memory_percent
#
# Example:
# on: '1801MiB / 7881MiB (22%)'
# off: '1801MiB / 7881MiB'
memory_percent="off"
# Change memory output unit.
#
# Default: 'mib'
# Values: 'kib', 'mib', 'gib'
# Flag: --memory_unit
#
# Example:
# kib '1020928KiB / 7117824KiB'
# mib '1042MiB / 6951MiB'
# gib: ' 0.98GiB / 6.79GiB'
memory_unit="mib"
# Packages
# Show/Hide Package Manager names.
#
# Default: 'tiny'
# Values: 'on', 'tiny' 'off'
# Flag: --package_managers
#
# Example:
# on: '998 (pacman), 8 (flatpak), 4 (snap)'
# tiny: '908 (pacman, flatpak, snap)'
# off: '908'
package_managers="on"
# Shell
# Show the path to $SHELL
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --shell_path
#
# Example:
# on: '/bin/bash'
# off: 'bash'
shell_path="off"
# Show $SHELL version
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --shell_version
#
# Example:
# on: 'bash 4.4.5'
# off: 'bash'
shell_version="on"
# CPU
# CPU speed type
#
# Default: 'bios_limit'
# Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'.
# Flag: --speed_type
# Supports: Linux with 'cpufreq'
# NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value.
speed_type="bios_limit"
# CPU speed shorthand
#
# Default: 'off'
# Values: 'on', 'off'.
# Flag: --speed_shorthand
# NOTE: This flag is not supported in systems with CPU speed less than 1 GHz
#
# Example:
# on: 'i7-6500U (4) @ 3.1GHz'
# off: 'i7-6500U (4) @ 3.100GHz'
speed_shorthand="off"
# Enable/Disable CPU brand in output.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --cpu_brand
#
# Example:
# on: 'Intel i7-6500U'
# off: 'i7-6500U (4)'
cpu_brand="on"
# CPU Speed
# Hide/Show CPU speed.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --cpu_speed
#
# Example:
# on: 'Intel i7-6500U (4) @ 3.1GHz'
# off: 'Intel i7-6500U (4)'
cpu_speed="on"
# CPU Cores
# Display CPU cores in output
#
# Default: 'logical'
# Values: 'logical', 'physical', 'off'
# Flag: --cpu_cores
# Support: 'physical' doesn't work on BSD.
#
# Example:
# logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores)
# physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores)
# off: 'Intel i7-6500U @ 3.1GHz'
cpu_cores="logical"
# CPU Temperature
# Hide/Show CPU temperature.
# Note the temperature is added to the regular CPU function.
#
# Default: 'off'
# Values: 'C', 'F', 'off'
# Flag: --cpu_temp
# Supports: Linux, BSD
# NOTE: For FreeBSD and NetBSD-based systems, you'll need to enable
# coretemp kernel module. This only supports newer Intel processors.
#
# Example:
# C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]'
# F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]'
# off: 'Intel i7-6500U (4) @ 3.1GHz'
cpu_temp="off"
# GPU
# Enable/Disable GPU Brand
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --gpu_brand
#
# Example:
# on: 'AMD HD 7950'
# off: 'HD 7950'
gpu_brand="on"
# Which GPU to display
#
# Default: 'all'
# Values: 'all', 'dedicated', 'integrated'
# Flag: --gpu_type
# Supports: Linux
#
# Example:
# all:
# GPU1: AMD HD 7950
# GPU2: Intel Integrated Graphics
#
# dedicated:
# GPU1: AMD HD 7950
#
# integrated:
# GPU1: Intel Integrated Graphics
gpu_type="all"
# Resolution
# Display refresh rate next to each monitor
# Default: 'off'
# Values: 'on', 'off'
# Flag: --refresh_rate
# Supports: Doesn't work on Windows.
#
# Example:
# on: '1920x1080 @ 60Hz'
# off: '1920x1080'
refresh_rate="off"
# Gtk Theme / Icons / Font
# Shorten output of GTK Theme / Icons / Font
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --gtk_shorthand
#
# Example:
# on: 'Numix, Adwaita'
# off: 'Numix [GTK2], Adwaita [GTK3]'
gtk_shorthand="off"
# Enable/Disable gtk2 Theme / Icons / Font
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --gtk2
#
# Example:
# on: 'Numix [GTK2], Adwaita [GTK3]'
# off: 'Adwaita [GTK3]'
gtk2="on"
# Enable/Disable gtk3 Theme / Icons / Font
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --gtk3
#
# Example:
# on: 'Numix [GTK2], Adwaita [GTK3]'
# off: 'Numix [GTK2]'
gtk3="on"
# IP Address
# Website to ping for the public IP
#
# Default: 'http://ident.me'
# Values: 'url'
# Flag: --ip_host
public_ip_host="http://ident.me"
# Public IP timeout.
#
# Default: '2'
# Values: 'int'
# Flag: --ip_timeout
public_ip_timeout=2
# Desktop Environment
# Show Desktop Environment version
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --de_version
de_version="on"
# Disk
# Which disks to display.
# The values can be any /dev/sdXX, mount point or directory.
# NOTE: By default we only show the disk info for '/'.
#
# Default: '/'
# Values: '/', '/dev/sdXX', '/path/to/drive'.
# Flag: --disk_show
#
# Example:
# disk_show=('/' '/dev/sdb1'):
# 'Disk (/): 74G / 118G (66%)'
# 'Disk (/mnt/Videos): 823G / 893G (93%)'
#
# disk_show=('/'):
# 'Disk (/): 74G / 118G (66%)'
#
disk_show=('/')
# Disk subtitle.
# What to append to the Disk subtitle.
#
# Default: 'mount'
# Values: 'mount', 'name', 'dir', 'none'
# Flag: --disk_subtitle
#
# Example:
# name: 'Disk (/dev/sda1): 74G / 118G (66%)'
# 'Disk (/dev/sdb2): 74G / 118G (66%)'
#
# mount: 'Disk (/): 74G / 118G (66%)'
# 'Disk (/mnt/Local Disk): 74G / 118G (66%)'
# 'Disk (/mnt/Videos): 74G / 118G (66%)'
#
# dir: 'Disk (/): 74G / 118G (66%)'
# 'Disk (Local Disk): 74G / 118G (66%)'
# 'Disk (Videos): 74G / 118G (66%)'
#
# none: 'Disk: 74G / 118G (66%)'
# 'Disk: 74G / 118G (66%)'
# 'Disk: 74G / 118G (66%)'
disk_subtitle="mount"
# Disk percent.
# Show/Hide disk percent.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --disk_percent
#
# Example:
# on: 'Disk (/): 74G / 118G (66%)'
# off: 'Disk (/): 74G / 118G'
disk_percent="on"
# Song
# Manually specify a music player.
#
# Default: 'auto'
# Values: 'auto', 'player-name'
# Flag: --music_player
#
# Available values for 'player-name':
#
# amarok
# audacious
# banshee
# bluemindo
# clementine
# cmus
# deadbeef
# deepin-music
# dragon
# elisa
# exaile
# gnome-music
# gmusicbrowser
# gogglesmm
# guayadeque
# io.elementary.music
# iTunes
# juk
# lollypop
# mocp
# mopidy
# mpd
# muine
# netease-cloud-music
# olivia
# playerctl
# pogo
# pragha
# qmmp
# quodlibet
# rhythmbox
# sayonara
# smplayer
# spotify
# strawberry
# tauonmb
# tomahawk
# vlc
# xmms2d
# xnoise
# yarock
music_player="mpd"
# Format to display song information.
#
# Default: '%artist% - %album% - %title%'
# Values: '%artist%', '%album%', '%title%'
# Flag: --song_format
#
# Example:
# default: 'Song: Jet - Get Born - Sgt Major'
#song_format="%artist% - %album% - %title%"
song_format="%artist% - %title%"
# Print the Artist, Album and Title on separate lines
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --song_shorthand
#
# Example:
# on: 'Artist: The Fratellis'
# 'Album: Costello Music'
# 'Song: Chelsea Dagger'
#
# off: 'Song: The Fratellis - Costello Music - Chelsea Dagger'
song_shorthand="off"
# 'mpc' arguments (specify a host, password etc).
#
# Default: ''
# Example: mpc_args=(-h HOST -P PASSWORD)
mpc_args=()
# Text Colors
# Text Colors
#
# Default: 'distro'
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
# Flag: --colors
#
# Each number represents a different part of the text in
# this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info'
#
# Example:
# colors=(distro) - Text is colored based on Distro colors.
# colors=(4 6 1 8 8 6) - Text is colored in the order above.
colors=(distro)
#colors=(7 1 4 7 1 7)
# Text Options
# Toggle bold text
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --bold
bold="on"
# Enable/Disable Underline
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --underline
underline_enabled="on"
# Underline character
#
# Default: '-'
# Values: 'string'
# Flag: --underline_char
underline_char="━"
# Info Separator
# Replace the default separator with the specified string.
#
# Default: ':'
# Flag: --separator
#
# Example:
# separator="->": 'Shell-> bash'
# separator=" =": 'WM = dwm'
# separator="〻"
seperator=":"
# Color Blocks
# Color block range
# The range of colors to print.
#
# Default: '0', '15'
# Values: 'num'
# Flag: --block_range
#
# Example:
#
# Display colors 0-7 in the blocks. (8 colors)
# neofetch --block_range 0 7
#
# Display colors 0-15 in the blocks. (16 colors)
# neofetch --block_range 0 15
block_range=(0 7)
# Toggle color blocks
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --color_blocks
color_blocks="on"
# Color block width in spaces
#
# Default: '3'
# Values: 'num'
# Flag: --block_width
block_width=3
# Color block height in lines
#
# Default: '1'
# Values: 'num'
# Flag: --block_height
block_height=1
# Color Alignment
#
# Default: 'auto'
# Values: 'auto', 'num'
# Flag: --col_offset
#
# Number specifies how far from the left side of the terminal (in spaces) to
# begin printing the columns, in case you want to e.g. center them under your
# text.
# Example:
# col_offset="auto" - Default behavior of neofetch
# col_offset=7 - Leave 7 spaces then print the colors
col_offset="auto"
# Progress Bars
# Bar characters
#
# Default: '-', '='
# Values: 'string', 'string'
# Flag: --bar_char
#
# Example:
# neofetch --bar_char 'elapsed' 'total'
# neofetch --bar_char '-' '='
bar_char_elapsed="-"
bar_char_total="="
# Toggle Bar border
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --bar_border
bar_border="on"
# Progress bar length in spaces
# Number of chars long to make the progress bars.
#
# Default: '15'
# Values: 'num'
# Flag: --bar_length
bar_length=15
# Progress bar colors
# When set to distro, uses your distro's logo colors.
#
# Default: 'distro', 'distro'
# Values: 'distro', 'num'
# Flag: --bar_colors
#
# Example:
# neofetch --bar_colors 3 4
# neofetch --bar_colors distro 5
bar_color_elapsed="distro"
bar_color_total="distro"
# Info display
# Display a bar with the info.
#
# Default: 'off'
# Values: 'bar', 'infobar', 'barinfo', 'off'
# Flags: --cpu_display
# --memory_display
# --battery_display
# --disk_display
#
# Example:
# bar: '[---=======]'
# infobar: 'info [---=======]'
# barinfo: '[---=======] info'
# off: 'info'
cpu_display="off"
memory_display="off"
battery_display="off"
disk_display="off"
# Backend Settings
# Image backend.
#
# Default: 'ascii'
# Values: 'ascii', 'caca', 'chafa', 'jp2a', 'iterm2', 'off',
# 'pot', 'termpix', 'pixterm', 'tycat', 'w3m', 'kitty'
# Flag: --backend
image_backend="ascii"
# Image Source
#
# Which image or ascii file to display.
#
# Default: 'auto'
# Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/'
# 'command output (neofetch --ascii "$(fortune | cowsay -W 30)")'
# Flag: --source
#
# NOTE: 'auto' will pick the best image source for whatever image backend is used.
# In ascii mode, distro ascii art will be used and in an image mode, your
# wallpaper will be used.
image_source="auto"
# Ascii Options
# Ascii distro
# Which distro's ascii art to display.
#
# Default: 'auto'
# Values: 'auto', 'distro_name'
# Flag: --ascii_distro
# NOTE: AIX, Alpine, Anarchy, Android, Antergos, antiX, "AOSC OS",
# "AOSC OS/Retro", Apricity, ArcoLinux, ArchBox, ARCHlabs,
# ArchStrike, XFerience, ArchMerge, Arch, Artix, Arya, Bedrock,
# Bitrig, BlackArch, BLAG, BlankOn, BlueLight, bonsai, BSD,
# BunsenLabs, Calculate, Carbs, CentOS, Chakra, ChaletOS,
# Chapeau, Chrom*, Cleanjaro, ClearOS, Clear_Linux, Clover,
# Condres, Container_Linux, CRUX, Cucumber, Debian, Deepin,
# DesaOS, Devuan, DracOS, DarkOs, DragonFly, Drauger, Elementary,
# EndeavourOS, Endless, EuroLinux, Exherbo, Fedora, Feren, FreeBSD,
# FreeMiNT, Frugalware, Funtoo, GalliumOS, Garuda, Gentoo, Pentoo,
# gNewSense, GNOME, GNU, GoboLinux, Grombyang, Guix, Haiku, Huayra,
# Hyperbola, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion,
# Korora, KSLinux, Kubuntu, LEDE, LFS, Linux_Lite,
# LMDE, Lubuntu, Lunar, macos, Mageia, MagpieOS, Mandriva,
# Manjaro, Maui, Mer, Minix, LinuxMint, MX_Linux, Namib,
# Neptune, NetBSD, Netrunner, Nitrux, NixOS, Nurunner,
# NuTyX, OBRevenge, OpenBSD, openEuler, OpenIndiana, openmamba,
# OpenMandriva, OpenStage, OpenWrt, osmc, Oracle, OS Elbrus, PacBSD,
# Parabola, Pardus, Parrot, Parsix, TrueOS, PCLinuxOS, Peppermint,
# popos, Porteus, PostMarketOS, Proxmox, Puppy, PureOS, Qubes, Radix,
# Raspbian, Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan,
# Regata, Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific,
# Septor, SereneLinux, SharkLinux, Siduction, Slackware, SliTaz,
# SmartOS, Solus, Source_Mage, Sparky, Star, SteamOS, SunOS,
# openSUSE_Leap, openSUSE_Tumbleweed, openSUSE, SwagArch, Tails,
# Trisquel, Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu-MATE, Ubuntu-Studio,
# Ubuntu, Venom, Void, Obarun, windows10, Windows7, Xubuntu, Zorin,
# and IRIX have ascii logos
# NOTE: Arch, Ubuntu, Redhat, and Dragonfly have 'old' logo variants.
# Use '{distro name}_old' to use the old logos.
# NOTE: Ubuntu has flavor variants.
# Change this to Lubuntu, Kubuntu, Xubuntu, Ubuntu-GNOME,
# Ubuntu-Studio, Ubuntu-Mate or Ubuntu-Budgie to use the flavors.
# NOTE: Arcolinux, Dragonfly, Fedora, Alpine, Arch, Ubuntu,
# CRUX, Debian, Gentoo, FreeBSD, Mac, NixOS, OpenBSD, android,
# Antrix, CentOS, Cleanjaro, ElementaryOS, GUIX, Hyperbola,
# Manjaro, MXLinux, NetBSD, Parabola, POP_OS, PureOS,
# Slackware, SunOS, LinuxLite, OpenSUSE, Raspbian,
# postmarketOS, and Void have a smaller logo variant.
# Use '{distro name}_small' to use the small variants.
ascii_distro="auto"
# Ascii Colors
#
# Default: 'distro'
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
# Flag: --ascii_colors
#
# Example:
# ascii_colors=(distro) - Ascii is colored based on Distro colors.
# ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors.
ascii_colors=(distro)
# Bold ascii logo
# Whether or not to bold the ascii logo.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --ascii_bold
ascii_bold="on"
# Image Options
# Image loop
# Setting this to on will make neofetch redraw the image constantly until
# Ctrl+C is pressed. This fixes display issues in some terminal emulators.
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --loop
image_loop="off"
# Thumbnail directory
#
# Default: '~/.cache/thumbnails/neofetch'
# Values: 'dir'
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
# Crop mode
#
# Default: 'normal'
# Values: 'normal', 'fit', 'fill'
# Flag: --crop_mode
#
# See this wiki page to learn about the fit and fill options.
# https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F
crop_mode="normal"
# Crop offset
# Note: Only affects 'normal' crop mode.
#
# Default: 'center'
# Values: 'northwest', 'north', 'northeast', 'west', 'center'
# 'east', 'southwest', 'south', 'southeast'
# Flag: --crop_offset
crop_offset="center"
# Image size
# The image is half the terminal width by default.
#
# Default: 'auto'
# Values: 'auto', '00px', '00%', 'none'
# Flags: --image_size
# --size
image_size="auto"
# Gap between image and text
#
# Default: '3'
# Values: 'num', '-num'
# Flag: --gap
gap=3
# Image offsets
# Only works with the w3m backend.
#
# Default: '0'
# Values: 'px'
# Flags: --xoffset
# --yoffset
yoffset=0
xoffset=0
# Image background color
# Only works with the w3m backend.
#
# Default: ''
# Values: 'color', 'blue'
# Flag: --bg_color
background_color=
# Misc Options
# Stdout mode
# Turn off all colors and disables image backend (ASCII/Image).
# Useful for piping into another command.
# Default: 'off'
# Values: 'on', 'off'
stdout="off"

View File

@ -0,0 +1,188 @@
#!/data/data/com.termux/files/usr/bin/env bash
# Author : xShin
# GitHub : https://github.com/xshin404
logo=(
AIX Alpine Anarchy Android Antergos antiX "AOSC\ OS"
Apricity ArcoLinux ArchBox ARCHlabs
ArchStrike XFerience ArchMerge Arch Artix Arya Bedrock
BunsenLabs Calculate Carbs CentOS Chakra ChaletOS
Chapeau Chrom* Cleanjaro ClearOS Clear_Linux Clover
Condres Container_Linux CRUX Cucumber Debian Deepin
DesaOS Devuan DracOS DarkOs DragonFly Drauger Elementary
EndeavourOS Endless EuroLinux Exherbo Fedora Feren FreeBSD
FreeMiNT Frugalware Funtoo GalliumOS Garuda Gentoo Pentoo
gNewSense GNOME GNU GoboLinux Grombyang Guix Haiku Huayra
Hyperbola janus Kali KaOS KDE_neon Kibojoe Kogaion
Korora KSLinux Kubuntu LEDE LFS Linux_Lite
LMDE Lubuntu Lunar macos Mageia MagpieOS Mandriva
Manjaro Maui Mer Minix LinuxMint MX_Linux Namib
Neptune NetBSD Netrunner Nitrux NixOS Nurunner
NuTyX OBRevenge OpenBSD openEuler OpenIndiana openmamba
OpenMandriva OpenStage OpenWrt osmc Oracle OS Elbrus PacBSD
Parabola Pardus Parrot Parsix TrueOS PCLinuxOS Peppermint
popos Porteus PostMarketOS Proxmox Puppy PureOS Qubes Radix
Raspbian Reborn_OS Redstar Redcore Redhat Refracted_Devuan
Regata Rosa sabotage Sabayon Sailfish SalentOS Scientific
Septor SereneLinux SharkLinux Siduction Slackware SliTaz
SmartOS Solus Source_Mage Sparky Star SteamOS SunOS
openSUSE_Leap openSUSE_Tumbleweed openSUSE SwagArch Tails
Trisquel Ubuntu-Budgie Ubuntu-GNOME Ubuntu-MATE Ubuntu-Studio
Ubuntu Venom Void Obarun windows10 Windows7 Xubuntu Zorin
IRIX
)
logoOld=(
Arch_old Ubuntu_old Redhat_old Dragonfly_old
)
ubuntuFlavor=(
Lubuntu Kubuntu Xubuntu Ubuntu-GNOME
Ubuntu-Studio Ubuntu-Mate Ubuntu-Budgie
)
logoSmall=(
Arcolinux_small Dragonfly_small Fedora_small Alpine_small Arch_small Ubuntu_small
CRUX_small Debian_small Gentoo_small FreeBSD_small Mac_small NixOS_small OpenBSD_small android_small
Artix_small CentOS_small Cleanjaro_small Elementary_small GUIX_small Hyperbola_small
Manjaro_small MX_small NetBSD_small Parabola_small POP_OS_small PureOS_small
Slackware_small SunOS_small LinuxLite_small OpenSUSE_small Raspbian_small
postmarketOS_small Void_small
)
randomLogo=${logo[$RANDOM % ${#logo[@]} ]}
randomLogoSmall=${logoSmall[$RANDOM % ${#logoSmall[@]} ]}
function logodebug() {
for logodebug in "${logo[@]}"; do
neofetch --ascii_distro $logodebug
echo -e "^^^^^^^^^^^^"
echo -e "Distro Name : $logodebug"
#sleep 2s
echo -e ""
done
}
function logodebugold() {
for logodebugOld in "${logoOld[@]}"; do
neofetch --ascii_distro $logodebugOld
echo -e "^^^^^^^^^^^^"
echo -e "Distro Name : $logodebugOld"
#sleep 2s
echo -e ""
done
}
function logodebugubuntuflavor() {
for logodebugubuntuFlavor in "${ubuntuFlavor[@]}"; do
neofetch --ascii_distro $logodebugubuntuFlavor
echo -e "^^^^^^^^^^^^"
echo -e "Distro Name : $logodebugubuntuFlavor"
#sleep 2s
echo -e ""
done
}
function logodebugsmall() {
for logodebugSmall in "${logoSmall[@]}"; do
neofetch --ascii_distro $logodebugSmall
echo -e "^^^^^^^^^^^^"
echo -e "Distro Name : $logodebugSmall"
#sleep 2s
echo -e ""
done
}
function random() {
neofetch --ascii_distro $randomLogo
}
function randomsmall() {
neofetch --ascii_distro $randomLogoSmall
}
function help() {
echo -e "\nUsage : ./debug-logo.sh [options]\n"
echo -e " RUN OPTIONS\n"
echo -e " --logo all default logo neofetch"
echo -e " --old distro logo old"
echo -e " --ubuntuflavor ubuntu distro"
echo -e " --small distro logo small"
echo -e " --all all options will run\n"
echo -e " RANDOM OPTIONS\n"
echo -e " --random random distro logo"
echo -e " --randomsmall random distro logo small\n"
}
if [[ "$1" == "--logo" ]]; then
logodebug
elif [[ "$1" == "--old" ]]; then
logodebugold
elif [[ "$1" == "--ubuntuflavor" ]]; then
logodebugubuntuflavor
elif [[ "$1" == "--small" ]]; then
logodebugsmall
elif [[ "$1" == "--random" ]]; then
random
elif [[ "$1" == "--randomsmall" ]]; then
randomsmall
elif [[ "$1" == "--all" ]]; then
logodebug
logodebugold
logodebugubuntuflavor
logodebugsmall
else
help
exit 1
fi

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

432
myTermux/.local/bin/awesomeshot Executable file
View File

@ -0,0 +1,432 @@
#!/usr/bin/env bash
#
# Awesomeshot: A command-line screenshot tool written in bash 5.1.16+.
# https://github.com/mayTermux/awesomeshot
#
# Copyright (c) 2021 - 2022 xShin
version=1.0.1
XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-${HOME}/.config}
config_file="${XDG_CONFIG_HOME}/awesomeshot/awesomeshot.conf"
LC_ALL=C
LANG=C
# Color
COLOR_DEFAULT="\e[39m"
COLOR_DANGER="\e[91m"
COLOR_WARNING="\e[93m"
COLOR_SUCCESS="\e[92m"
COLOR_SKY="\e[34m"
# Awesomeshot default config
read -rd '' config <<'EOF'
# Make sure when your phone screenshot the result file image
# PATH is same with this variable. Default my phone result file
# image PATH on "/sdcard/Pictures/Screenshots". If not same,
# you can edit this variable value
screenshot_result_path="/sdcard/Pictures/Screenshots"
# Change this value to "" or whatever for disable function
backup="yes"
# PATH backup original photo or screenshot
path_backup="${HOME}/.config/awesomeshot/backup"
# Array Hex Color
hex_color=(
"#F8F9FA" # white
"#000000" # black
"#333333" # gray
"#A8D7FE" # blue sky
)
# Change this value to "" or whatever for disable convert
convert_rounded="yes"
# Border radius
border_radius=10
# Change this value to "" or whatever for disable convert
convert_border="yes"
# Change this value to "none" for transparent background
border_color="${hex_color[0]}"
border_size=15
# Shadow
# Change this value to "" or whatever for disable convert
convert_shadow="yes"
shadow_color="${hex_color[1]}"
shadow_size="75x30+0+30"
# Footer
# Change this value to "" or whatever for disable convert
convert_footer="yes"
footer_text=" Shot by Awesomeshot"
footer_position="South"
footer_xy="+0+45"
footer_font="JetBrains-Mono-Medium-Nerd-Font-Complete"
footer_font_size=25
footer_foreground="${hex_color[1]}"
footer_background="none"
# Convert to PNG if file not PNG
convert_to_png="yes"
# Open Image when convert done
open_image=""
EOF
# init file_name
file_name=""
function getUserConfig() {
if [ -f "${config_file}" ]; then
source "${config_file}"
elif [ ! -f "${config_file}" ]; then
mkdir -p "${XDG_CONFIG_HOME}/awesomeshot/"
printf '%s\n' "$config" > "$config_file"
source "${config_file}"
fi
}
function generateDefaultConfig() {
if [ ! -f "${config_file}" ]; then
if [ ! -d "~/.config/awesomeshot" ]; then
mkdir ~/.config/awesomeshot
fi
printf '%s\n' "$config" > "$config_file"
stat "SUCCESS" "Success" "Default config has been generated"
exit
fi
if [ -f "${config_file}" ]; then
read -p " Config '~/.config/awesomeshot/awesomeshot.conf' already exists, do you want to generate default config [y/N] " ask
case "${ask}" in
y|Y )
printf '%s\n' "$config" > "$config_file"
stat "SUCCESS" "Success" "Default config has been re-generated"
;;
n|N )
exit
;;
esac
fi
}
function header() {
printf "\n\n %-18s\n\n" "AWESOMESHOT v${version}"
}
function title() {
printf "\n\b\r\033[2K***${1}\n" | sed 's/*/ /g'
}
function subtitle() {
printf "%-45s" "*******${1}" | sed 's/ /./g' | sed 's/*/ /g'
}
function check() {
#  
#   
if [[ $? -eq 0 && ${PIPESTATUS[0]} -eq 0 ]]; then
echo -e " ${COLOR_SUCCESS}${COLOR_DEFAULT} "
else
echo -e " ${COLOR_DANGER}${COLOR_DEFAULT} "
fi
}
function autoRun() {
getUserConfig
count=1
header
title "${COLOR_SKY}[?] WAITING TO TAKE SCREENSHOT${COLOR_DEFAULT} [${COLOR_WARNING}${count}${COLOR_DEFAULT}]"
inotifywait -m -e create ${screenshot_result_path} 2> /dev/null | \
while read get_file_name_result; do
get_file_name=$(echo -e "${get_file_name_result}" | awk '{print $3}')
if [[ "${screenshot_result_path}/${get_file_name}" != "${file_name}" || -z ${file_name} ]]; then
subtitle "[+]*Execute*Program*"
file_name="${screenshot_result_path}/${get_file_name}"
echo -e ""
if [ "${convert_to_png}" == "yes" ]; then
convertToPng "${get_file_name}"
fi
if [ "${backup}" == "yes" ]; then
title "${COLOR_SKY}[+] BACKUP${COLOR_DEFAULT}"
backupOriginalPhoto "${get_file_name}"
fi
title "${COLOR_SKY}[+] EDTING IMAGE${COLOR_DEFAULT}"
if [ "${convert_rounded}" == "yes" ]; then
convertRounded
fi
if [ "${convert_shadow}" == "yes" ]; then
convertShadow
fi
if [ "${convert_border}" == "yes" ]; then
convertBorder
fi
if [ "${convert_footer}" == "yes" ]; then
convertFooter
fi
termux-media-scan "${file_name}" &> /dev/null
termux-toast -b "${hex_color[3]}" -c "${hex_color[1]}" -g middle "${file_name} done"
if [ "${open_image}" == "yes" ]; then
termux-open "${file_name}"
fi
count=$(( ${count} + 1 ))
title "${COLOR_SKY}[?] WAITING TO TAKE SCREENSHOT${COLOR_DEFAULT} [${COLOR_WARNING}${count}${COLOR_DEFAULT}]"
fi
done
}
function manualRun() {
getUserConfig
header
title "${COLOR_SKY}[?] CHECKING FILE${COLOR_DEFAULT}"
subtitle "[+]*Set*Status*File*"
if [ -f ${file_name} ]; then
check
if [ "${convert_to_png}" == "yes" ]; then
convertToPng "${get_file_name}"
fi
if [ "${backup}" == "yes" ]; then
title "${COLOR_SKY}[+] BACKUP${COLOR_DEFAULT}"
backupOriginalPhoto "${get_file_name}"
fi
title "${COLOR_SKY}[+] EDTING IMAGE${COLOR_DEFAULT}"
if [ "${convert_rounded}" == "yes" ]; then
convertRounded
fi
if [ "${convert_shadow}" == "yes" ]; then
convertShadow
fi
if [ "${convert_border}" == "yes" ]; then
convertBorder
fi
if [ "${convert_footer}" == "yes" ]; then
convertFooter
fi
termux-media-scan "${file_name}" &> /dev/null
setterm -cursor on
if [ "${open_image}" == "yes" ]; then
termux-open "${file_name}"
fi
else
echo -e "\n"
stat "ERROR" "Danger" "${COLOR_DANGER}${file_name}${COLOR_DEFAULT}: file not found"
fi
}
function backupOriginalPhoto() {
change_filename_backup=$(echo $1 | sed 's/.png/_backup.png/g')
if [ ! -d ${path_backup} ]; then
mkdir -p "${path_backup}"
fi
cp "${file_name}" "${path_backup}/${change_filename_backup}"
if [ -f ${path_backup}/${change_filename_backup} ]; then
subtitle "[+]*Backup*File*"
check
else
subtitle "[+]*Backup*File*"
check
fi
}
function convertToPng() {
title "${COLOR_SKY}[+] CONVERTING EXTENSION IMAGE${COLOR_DEFAULT}"
extension="${file_name##*.}"
if [ "${extension}" != "png" ]; then
subtitle "[+]*Convert*.${extension}*To*.png*"
convert "${file_name}" "${file_name%.*}.png"
rm "${file_name}"
termux-media-scan "${file_name}" &> /dev/null
file_name=${file_name%.*}.png
check
fi
}
function convertRounded() {
subtitle "[+]*Set*Rounded*Corner*"
convert "$file_name" \
\( +clone -alpha extract -draw \
"fill black polygon 0,0,0,${border_radius} ${border_radius},0 fill white circle ${border_radius},${border_radius},${border_radius},0" \
\( +clone -flip \) -compose Multiply -composite \
\( +clone -flop \) -compose Multiply -composite \
\) \
-alpha off -compose CopyOpacity -composite "$file_name"
check
}
function convertShadow() {
subtitle "[+]*Set*Image*Shadow*"
convert "$file_name" \
\( \
+clone \
-background "${shadow_color}" \
-shadow "${shadow_size}" \
\) \
+swap \
-background none \
-layers merge \
+repage "$file_name"
check
}
function convertBorder() {
subtitle "[+]*Set*Image*Border*Color*"
convert "$file_name" -bordercolor "${border_color}" -border ${border_size} "$file_name"
check
}
function convertFooter() {
subtitle "[+]*Set*Image*Footer"
echo -n "${footer_text}" |
convert "$file_name" \
-gravity ${footer_position} \
-pointsize ${footer_font_size} \
-fill ${footer_foreground} \
-undercolor ${footer_background} \
-font ${footer_font} \
-annotate ${footer_xy} \
@- "$file_name"
check
}
function handleInterruptByUser() {
pkill com.termux
echo -e "
\n [ ${COLOR_WARNING}ERROR${COLOR_DEFAULT} ] > ${COLOR_DANGER}${1}${COLOR_DEFAULT}\n"
setterm -cursor on
read -n 1 -s -r -p " Press any key to exit "
exit 1
}
function stat() {
if [ "${2}" == "Success" ]; then
echo -e " [ ${COLOR_SUCCESS}${1}${COLOR_DEFAULT} ] > ${3}"
elif [ "${2}" == "Warning" ]; then
echo -e " [ ${COLOR_WARNING}${1}${COLOR_DEFAULT} ] > ${3}"
elif [ "${2}" == "Danger" ]; then
echo -e " [ ${COLOR_DANGER}${1}${COLOR_DEFAULT} ] > ${3}"
fi
}
function main() {
trap "handleInterruptByUser 'Interrupt By User'" 2
setterm -cursor off
${1} ${2}
}
function help() {
echo -e "
$(version)
A command-line screenshot tool written in bash 5.1.16+
Usage:
awesomeshot [args] [file]
META OPTIONS:
-h, --help Show list of command-line options
-v, --version Show version of awesomeshot
RUN OPTIONS:
-a, --auto Run awesomeshot with automatic while take screenshot
-m, --manual Run awesomeshot with manual (this option require filename)
-c, --config Generate default config awesomeshot.conf
"
}
function version() {
echo -e "awesomeshot v.${version}"
}
case "${1}" in
-a|--auto )
main autoRun
;;
-c|--config )
generateDefaultConfig
;;
-m|--manual )
if [ ${2} ]; then
file_name="${2}"
main manualRun
else
echo ""
stat "ERROR" "Danger" "This option require filename"
help
exit 1
fi
;;
-h|--help )
help
;;
-v|--version )
version
;;
*)
help
;;
esac

View File

@ -0,0 +1,80 @@
#!/usr/bin/env bash
LIBRARY_PATH="${HOME}/.scripts/library"
LIBRARYS=(
animation signal cursor colors stat
)
for LIBRARY in ${LIBRARYS[@]}; do
source ${LIBRARY_PATH}/${LIBRARY}.sh
done
HELPER_PATH="${HOME}/.scripts/screenshot"
HELPERS=(
backup border footer rounded shadow
utility autorun manualrun output
)
for HELPER in ${HELPERS[@]}; do
source ${HELPER_PATH}/${HELPER}.sh
done
function main() {
trap "handleInterruptByUser 'Interrupt By User'" 2
setCursor off
${1} ${2}
}
case "${1}" in
-a|--auto )
main autorun
;;
-i|--info )
about
;;
-m|--manual )
if [ ${2} ]; then
main manualrun ${2}
else
stat "ERROR" "Danger" "Require file name"
help
exit 1
fi
;;
-h|--help )
help
;;
-v|--version )
version
;;
* )
help
;;
esac

32
myTermux/.local/bin/gitssh Executable file
View File

@ -0,0 +1,32 @@
#!/usr/bin/env bash
COLOR_BASED="\e[39m"
COLOR_DANGER="\e[91m"
COLOR_WARNING="\e[93m"
COLOR_SUCCESS="\e[92m"
COLOR_SKY="\e[34m"
function main() {
# Get Email Address GitHub
read -p $'[\e[93m Email Address \e[0m] > ' EMAIL
echo -e "\n[${COLOR_WARNING} Generating Public/Private RSA Key Pair ${COLOR_BASED}]"
ssh-keygen -t rsa -b 4096 -C "${EMAIL}"
# Get PID
echo -e "\n[${COLOR_WARNING} Getting PID ${COLOR_BASED}]"
eval $(ssh-agent -s)
# Add Authentication Agent
echo -e "\n[${COLOR_WARNING} Add Authentication Agent ${COLOR_BASED}]"
ssh-add ~/.ssh/id_rsa
# Copy Public Key and Paste to GitHub Account
echo -e "\n[${COLOR_WARNING} Print Public Key ${COLOR_BASED}]"
cat ~/.ssh/id_rsa.pub
echo -e ""
}
main

21
myTermux/.local/bin/macfinder Executable file
View File

@ -0,0 +1,21 @@
#!/usr/bin/env bash
API="https://api.macvendors.com"
function banner() {
echo -e "
_______ _______ _______ _______ _ _
(_______|_______|_______) (_______|_) | |
_ _ _ _______ _ _____ _ ____ __| |_____ ____
| ||_|| | ___ | | | ___) | | _ \ / _ | ___ |/ ___)
| | | | | | | |_____ | | | | | | ( (_| | ____| |
|_| |_|_| |_|\______) |_| |_|_| |_|\____|_____)_|
"
}
banner
read -p "Mac Address: " MAC
VENDOR=`curl ${API}/${MAC} 2> /dev/null`
echo -e "Vendor: ${VENDOR}"

View File

@ -0,0 +1,15 @@
<?php
//$mac_address = "FC:FB:FB:01:FA:21";
$mac_address = readline("Mac Address: ");
$url = "https://api.macvendors.com/" . urlencode($mac_address);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
if($response) {
echo "Vendor : $response";
} else {
echo "Not Found";
}
?>

21
myTermux/.local/bin/music Executable file
View File

@ -0,0 +1,21 @@
#!/usr/bin/env bash
function play() {
if $(mpd --kill); then
echo -e "Kill pid mpd previous..."
echo -e "Starting music..."
mpd
ncmpcpp
else
echo -e "Starting music..."
mpd
ncmpcpp
fi
}
play

128
myTermux/.local/bin/rxfetch Executable file
View File

@ -0,0 +1,128 @@
#!/usr/bin/env bash
magenta="\033[1;35m"
green="\033[1;32m"
white="\033[1;37m"
blue="\033[1;34m"
red="\033[1;31m"
black="\033[1;40;30m"
yellow="\033[1;33m"
cyan="\033[1;36m"
reset="\033[0m"
bgyellow="\033[1;43;33m"
bgwhite="\033[1;47;37m"
c0=${reset}
c1=${magenta}
c2=${green}
c3=${white}
c4=${blue}
c5=${red}
c6=${yellow}
c7=${cyan}
c8=${black}
c9=${bgyellow}
c10=${bgwhite}
function getCodeName() {
codename="$(getprop ro.product.board)"
}
function getClientBase() {
client_base="$(getprop ro.com.google.clientidbase)"
}
function getModel() {
model="$(getprop ro.product.brand) $(getprop ro.product.model)"
}
function getDistro() {
os="$(uname -o) $(uname -m)"
}
function getKernel() {
kernel="$(uname -r)"
}
function getTotalPackages() {
package_manager="$(which {apt,dpkg} 2>/dev/null | grep -v "not found" | awk -F/ 'NR==1{print $NF}')"
case "${package_manager}" in
"apt" )
packages=$(apt list --installed 2>/dev/null | wc -l)
;;
"dpkg" )
packages=$(dpkg-query -l | wc -l)
;;
"" )
packages="Unknown"
;;
esac
}
function getShell() {
shell="$(basename $SHELL)"
}
function getUptime() {
uptime="$(uptime --pretty | sed 's/up//')"
}
function getMemoryUsage() {
#memory="$(free --mega | sed -n -E '2s/^[^0-9]*([0-9]+) *([0-9]+).*/'"${space}"'\2 \/ \1MB/p')"
_MEM="Mem:"
_GREP_ONE_ROW="$(free --mega | grep "${_MEM}")"
_TOTAL="$(echo ${_GREP_ONE_ROW} | awk '{print $2}')"
_USED="$(echo ${_GREP_ONE_ROW} | awk '{print $3}')"
memory="${_USED}MB / ${_TOTAL}MB"
}
function getDiskUsage() {
_MOUNTED_ON="/data"
_GREP_ONE_ROW="$(df -h | grep ${_MOUNTED_ON})"
_SIZE="$(echo ${_GREP_ONE_ROW} | awk '{print $2}')"
_USED="$(echo ${_GREP_ONE_ROW} | awk '{print $3}')"
_AVAIL="$(echo ${_GREP_ONE_ROW} | awk '{print $4}')"
_USE="$(echo ${_GREP_ONE_ROW} | awk '{print $5}' | sed 's/%//')"
_MOUNTED="$(echo ${_GREP_ONE_ROW} | awk '{print $6}')"
storage="${_USED}B / ${_SIZE}B = ${_AVAIL}B (${_USE}%)"
}
function main() {
getCodeName
getClientBase
getModel
getDistro
getKernel
getTotalPackages
getShell
getUptime
getMemoryUsage
getDiskUsage
}
main
echo -e "\n\n"
echo -e " ┏━━━━━━━━━━━━━━━━━━━━━━┓"
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}"
echo -e " ┠━━━━━━━━━━━━━━━━━━━━━━┫"
echo -e " ┃ ┃ ${c1}phone${c0} ${model}"
echo -e " ┃ ${c3}•${c8}_${c3}•${c0} ┃ ${c2}os${c0} ${os}"
echo -e " ┃ ${c8}${c0}${c9}oo${c0}${c8}|${c0} ┃ ${c7}ker${c0} ${kernel}"
echo -e " ┃ ${c8}/${c0}${c10}${c0}${c8}'\'${c0} ┃ ${c4}pkgs${c0} ${packages}"
echo -e " ┃ ${c9}(${c0}${c8}\_;/${c0}${c9})${c0} ┃ ${c5}sh${c0} ${shell}"
echo -e " ┃ ┃ ${c6}up${c0} ${uptime}"
echo -e " ┃ android ${c1}${c0} termux ┃ ${c1}ram${c0} ${memory}"
echo -e " ┃ ┃ ${c2}disk${c0} ${storage}"
echo -e " ┗━━━━━━━━━━━━━━━━━━━━━━┛ ${c1}━━━${c2}━━━${c3}━━━${c4}━━━${c5}━━━${c6}━━━${c7}━━━"
echo -e "\n\n"
#echo -e " •_• "
#echo -e " oo| "
#echo -e " /'\'"
#echo -e " (\_;/)"

134
myTermux/.local/bin/ytdl Executable file
View File

@ -0,0 +1,134 @@
#!/usr/bin/env bash
based="\e[39m"
danger="\e[91m"
warning="\e[93m"
success="\e[92m"
paramerror="\n[\e[93mERROR$based] >$danger Unknown"
paramlist="\n[\e[93mPARAMLIST$based] >$success "
dir=`cd $(dirname $0); pwd`
function helpall() {
echo -e "$paramerror $1 '$2'$based"
help
echo ""
read -n 1 -s -r -p "Press any key to exit "
exit 1
}
function handle_ctrl_c() {
echo -e "
\n[\e[93mERROR$based] >$danger $1"
echo -e "$based"
read -n 1 -s -r -p "Press any key to exit "
exit 1
}
# ytdl function
function ytdl() {
syntax="youtube-dl"
paramcode="-F"
paramdowncode="-f"
best="bestvideo+bestaudio --merge-output-format mp4"
fcwebm="248"
fcaudio="251"
fcmp4="22"
fcmp3="--extract-audio --audio-format mp3"
# ytdl Case
case "$1" in
best )
$syntax $paramdowncode $best $2
;;
webm )
$syntax $paramdowncode $fcwebm $2
;;
audio )
$syntax $paramdowncode $fcaudio $2
;;
mp4 )
$syntax $paramdowncode $fcmp4 $2
;;
mp3 )
$syntax $fcmp3 $2
;;
format )
$syntax $paramcode $2
echo ""
read -p $'[\e[93mASK\e[0m] > Input the format code to specify download: ' fcode
echo -e "Downloading...\n"
$syntax $paramdowncode $fcode $2
;;
* )
helpall Parameter $1
;;
esac
}
# Function Help
function help() {
echo -e "\nusage: bash $dir/ytdl [parameter1] [parameter2]
${paramlist} • [webm] [link] > ${based}to Download Video with format webm
${success}• [audio] [link] > ${based}to Download Video with format audio only (webm)
${success}• [mp3] [link] > ${based}to Downlaod Audio only format mp3
${success}• [mp4] [link] > ${based}to Download Video with format mp4
${success}• [format] [link] > ${based}to print the format code
${success}• [best] [link] > ${based}to Download Video + Audio (Merge) with bestvideo + bestaudio
${success}• [help] > ${based}to print this help"
}
# Main case
case "$1" in
best )
ytdl best $2
;;
webm )
ytdl webm $2
;;
audio )
ytdl audio $2
;;
mp4 )
ytdl mp4 $2
;;
mp3 )
ytdl mp3 $2
;;
format )
ytdl format $2
;;
help )
help
;;
"" )
helpall Parameter $1
;;
* )
helpall Parameter $1
;;
esac

View File

@ -0,0 +1,29 @@
# Ar-Round minimal zsh theme
# Author: owl4ce
# ----------------------------------
# https://github.com/owl4ce/dotfiles
# Requires Nerd Fonts for the icons
if [[ $EUID -eq 0 ]]; then
user_symbol="%F{1}%f"
else
user_symbol="%F{5}%f"
fi
# Configuration
num_dirs=2 # Use 0 for full path
dir_path="%F{0}%K{0}%F{white}%$num_dirs~ %K{8} %F{4}%{%k%}%F{8}%f"
background_jobs="%(1j.%F{2}%f.)"
non_zero_return_value="%(0?..%F{1}%f)"
# Left part of prompt
PROMPT='$(git_prompt_info) $user_symbol '
# Right part of prompt
RPROMPT=' $background_jobs $non_zero_return_value $dir_path'
# Input in bold
zle_highlight=(default:bold)
ZSH_THEME_GIT_PROMPT_PREFIX="%F{8}%K{8}%F{4} %K{0} %F{white}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{%k%}%F{0}%f"
ZSH_THEME_GIT_PROMPT_DIRTY="%F{1}*%f"
ZSH_THEME_GIT_PROMPT_CLEAN=""

View File

@ -0,0 +1,14 @@
# Default OMZ theme for Archcraft
if [[ "$USER" == "root" ]]; then
PROMPT="%(?:%{$fg_bold[red]%}%{$fg_bold[green]%}%{$fg_bold[yellow]%} :%{$fg_bold[red]%} )"
PROMPT+='%{$fg[cyan]%} %c%{$reset_color%} $(git_prompt_info)'
else
PROMPT="%(?:%{$fg_bold[red]%}● %{$fg_bold[yellow]%}● %{$fg_bold[green]%}● :%{$fg_bold[red]%}● ● ● )"
PROMPT+='%{$fg[cyan]%} %c%{$reset_color%} $(git_prompt_info)'
fi
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%} git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"

View File

@ -0,0 +1,29 @@
# La-Round minimal zsh theme
# Author: owl4ce
# ----------------------------------
# https://github.com/owl4ce/dotfiles
# Requires Nerd Fonts for the icons
if [[ $EUID -eq 0 ]]; then
user_symbol="%F{1}%Bλ%b%f"
else
user_symbol="%F{5}%Bλ%b%f"
fi
# Configuration
num_dirs=2 # Use 0 for full path
dir_path="%F{0}%K{0}%F{white}%$num_dirs~ %K{8} %F{4}%{%k%}%F{8}%f"
background_jobs="%(1j.%F{2}%f.)"
non_zero_return_value="%(0?..%F{1}%f)"
# Left part of prompt
PROMPT='$(git_prompt_info) $user_symbol '
# Right part of prompt
RPROMPT=' $background_jobs $non_zero_return_value $dir_path'
# Input in bold
zle_highlight=(default:bold)
ZSH_THEME_GIT_PROMPT_PREFIX="%F{8}%K{8}%F{4} %K{0} %F{white}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{%k%}%F{0}%f"
ZSH_THEME_GIT_PROMPT_DIRTY="%F{1}*%f"
ZSH_THEME_GIT_PROMPT_CLEAN=""

View File

@ -0,0 +1,20 @@
# Default OMZ theme for Archcraft
if [[ "$USER" == "root" ]]; then
PROMPT="%(?:%{$fg_bold[red]%}%{$fg_bold[green]%}%{$fg_bold[yellow]%} :%{$fg_bold[red]%} )"
PROMPT+='%{$fg[cyan]%} %c%{$reset_color%} $(git_prompt_info)'
else
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 )"
#PROMPT+='%{$fg[cyan]%} %c%{$reset_color%} $(git_prompt_info)'
fi
NUM_DIR=2
DIR_PATH="%F{8}%K{8} %F{7} %F{7}%$NUM_DIR~ %{%k%}%F{8}"
background_jobs="%(1j.%F{8}%K{8} %F{3} %{%k%}%F{8}%f.)"
non_zero_return_value="%(0?..%F{8}%K{8} %F{1} %{%k%}%F{8}%f)"
ZSH_THEME_GIT_PROMPT_PREFIX="%F{8}%K{8} %F{7} %K{8} "
ZSH_THEME_GIT_PROMPT_SUFFIX=" %{%k%}%F{8} %{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}  "
RPROMPT='$DIR_PATH $(git_prompt_info) $background_jobs'

View File

@ -0,0 +1,20 @@
# Default OMZ theme for Archcraft
if [[ "$USER" == "root" ]]; then
PROMPT="%(?:%{$fg_bold[red]%}%{$fg_bold[green]%}%{$fg_bold[yellow]%} :%{$fg_bold[red]%} )"
PROMPT+='%{$fg[cyan]%} %c%{$reset_color%} $(git_prompt_info)'
else
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 )"
#PROMPT+='%{$fg[cyan]%} %c%{$reset_color%} $(git_prompt_info)'
fi
NUM_DIR=2
DIR_PATH="%F{8}%K{8} %F{7} %F{7}%$NUM_DIR~ %{%k%}%F{8}"
background_jobs="%(1j.%F{8}%K{8} %F{3} %{%k%}%F{8}%f.)"
non_zero_return_value="%(0?..%F{8}%K{8} %F{1} %{%k%}%F{8}%f)"
ZSH_THEME_GIT_PROMPT_PREFIX="%F{8}%K{8} %F{7} %K{8} "
ZSH_THEME_GIT_PROMPT_SUFFIX=" %{%k%}%F{8} %{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}  "
RPROMPT='$DIR_PATH $(git_prompt_info) $background_jobs'

View File

@ -0,0 +1,30 @@
# Rounded minimal zsh theme
# Creator: owl4ce
# ----------------------------------
# https://github.com/owl4ce/dotfiles
# Requires Nerd Fonts for the icons
#if [[ $UID -eq 0 ]]; then
# user_symbol="%F{8}%K{8}%F{1}%{%k%}%F{8}%f"
#else
# user_symbol="%F{8}%K{8}%F{5}%{%k%}%F{8}%f"
#fi
#      
# Configuration
num_dirs=2 # Use 0 for full path
truncated_path="%F{7}%K{7} %F{0} %K{7} %F{0}%$num_dirs~ %{%k%}%F{7}"
background_jobs="%(1j.%F{0}%K{0} %F{3} %{%k%}%F{0}%f.)"
non_zero_return_value="%(0?..%F{7}%K{7} %F{1} %{%k%}%F{7}%f)"
ZSH_THEME_GIT_PROMPT_PREFIX="%F{7}%K{7} %F{0} %K{7} "
ZSH_THEME_GIT_PROMPT_SUFFIX=" %{%k%}%F{7} %{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%} "
# Left part of prompt
PROMPT='$truncated_path $user_symbol'
# Right part of prompt
RPROMPT=' $background_jobs $non_zero_return_value $(git_prompt_info)'
# Input in bold
zle_highlight=(default:bold)

View File

@ -0,0 +1,24 @@
# Rounded minimal zsh theme
# Creator: owl4ce
# ----------------------------------
# https://github.com/owl4ce/dotfiles
# Requires Nerd Fonts for the icons
if [[ $UID -eq 0 ]]; then
user_symbol="%F{8}%K{8}%F{1}%{%k%}%F{8}%f"
else
user_symbol="%F{8}%K{8}%F{5}%{%k%}%F{8}%f"
fi
# Configuration
num_dirs=2 # Use 0 for full path
truncated_path="%F{8}%K{8}%F{4} %K{0} %F{white}%$num_dirs~%{%k%}%F{0}%f"
background_jobs="%(1j.%F{0}%K{0}%F{3}%{%k%}%F{0}%f.)"
non_zero_return_value="%(0?..%F{0}%K{0}%F{1}%{%k%}%F{0}%f)"
# Left part of prompt
PROMPT='$truncated_path $user_symbol '
# Right part of prompt
RPROMPT=' $background_jobs $non_zero_return_value'
# Input in bold
zle_highlight=(default:bold)

View File

@ -0,0 +1,20 @@
if [[ $EUID -eq 0 ]]; then
USER_SYMBOL="%F{1}%f"
else
USER_SYMBOL="%F{5}%f"
fi
NUM_DIR=2
DIR_PATH="%{$fg_bold[blue]%}  [ %{$fg[red]%}%$NUM_DIR~ %{$fg_bold[blue]%}]"
BACKGROUND_JOBS="%(1j.%F{2}%f.)"
NON_ZERO_RETURN_VALUE="%(0?..%F{1}%f)"
RPROMPT='$BACKGROUND_JOBS $NON_ZERO_RETURN_VALUE $(git_prompt_info)'
PROMPT='$DIR_PATH $USER_SYMBOL '
zle_highlight=(default:bold)
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%} [ %{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%} ] %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%} ]"

1711
myTermux/.p10k.zsh Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,133 @@
#!/usr/bin/env bash
LIBRARYS=(
animation signal cursor colors stat
)
LIBRARY_PATH="${HOME}/.scripts/library"
for LIBRARY in ${LIBRARYS[@]}; do
source ${LIBRARY_PATH}/${LIBRARY}.sh
done
COLORSCHEMES_DIR="$HOME/.colorscheme"
INDEX_LOOP=0
THEME_USED_PATH="${HOME}/.config/mytermux/colorscheme"
THEME_USED_FILE_NAME="used.log"
THEME_USED="$(cat ${THEME_USED_PATH}/${THEME_USED_FILE_NAME})"
TERMUX_CONFIGURATION_PATH="${HOME}/.termux"
TERMUX_CONFIGURATION_COLOR_FILE_NAME="colors.properties"
function banner() {
echo -e "
\e[3$(( $RANDOM * 6 / 32767 + 1 ))m _______ _ _
\e[9$(( $RANDOM * 6 / 32767 + 1 ))m(_______) | | | |
\e[3$(( $RANDOM * 6 / 32767 + 1 ))m _ ___ | | ___ ____ ___ ____| |__ _____ ____ _____
\e[9$(( $RANDOM * 6 / 32767 + 1 ))m| | / _ \| |/ _ \ / ___)___)/ ___) _ \| ___ | \| ___ |
\e[3$(( $RANDOM * 6 / 32767 + 1 ))m| |____| |_| | | |_| | | |___ ( (___| | | | ____| | | | ____|
\e[9$(( $RANDOM * 6 / 32767 + 1 ))m \______)___/ \_)___/|_| (___/ \____)_| |_|_____)_|_|_|_____)
${COLOR_BASED}\n"
}
function listColorScheme() {
clear
setCursor off
banner
printf " %3s %10s %4s\n\n" "No." "List Color" "Status"
for COLORSCHEME in ${COLORSCHEMES_DIR}/*; do
COLORSCHEME_FILE_NAME[INDEX_LOOP]=$( echo ${COLORSCHEME} | awk -F'/' '{print $NF}')
COLORSCHEME_LIST_NAME[INDEX_LOOP]=$( echo ${COLORSCHEME} | awk -F'/' '{print $NF}' | sed "s/.colors//g")
if [ "${THEME_USED}" == "${COLORSCHEME_FILE_NAME[INDEX_LOOP]}" ]; then
printf "[${COLOR_SUCCESS}%2s${COLOR_BASED}] ${COLOR_SUCCESS}%-23s -->${COLOR_BASED} \
${COLOR_SUCCESS}%-4s${COLOR_BASED}\n" ${INDEX_LOOP} ${COLORSCHEME_LIST_NAME[INDEX_LOOP]} "USED"
else
printf "[${COLOR_WARNING}%2s${COLOR_BASED}] %-23s\n" ${INDEX_LOOP} ${COLORSCHEME_LIST_NAME[INDEX_LOOP]}
fi
INDEX_LOOP=$(( ${INDEX_LOOP} + 1 ));
done
INDEX_LOOP=$(( ${INDEX_LOOP} - 1 ));
echo ""
}
function selectTheme() {
setCursor on
while :; do
read -p "Select theme: " INDEX_THEME
if [ -z "${INDEX_THEME}" ]; then
break;
elif ! [[ ${INDEX_THEME} =~ ^[0-9]+$ ]]; then
stat "ERROR" "Danger" "Unknown '${COLOR_DANGER}number${COLOR_BASED}', please enter the right number!\n"
elif (( ${INDEX_THEME} >= 0 && ${INDEX_THEME} <= ${INDEX_LOOP} )); then
eval CHOICE=${COLORSCHEME_FILE_NAME[INDEX_THEME]}
start_animation "Applying Theme ..."
sleep 1s
if cp -fr "${COLORSCHEMES_DIR}/${CHOICE}" "${TERMUX_CONFIGURATION_PATH}/${TERMUX_CONFIGURATION_COLOR_FILE_NAME}"; then
termux-reload-settings
if [ ! -f ${THEME_USED_PATH}/${THEME_USED_FILE_NAME} ]; then
echo -e "${CHOICE}" >> ${THEME_USED_PATH}/${THEME_USED_FILE_NAME}
elif [ -f ${THEME_USED_PATH}/${THEME_USED_FILE_NAME} ]; then
sed -i "s/${THEME_USED}/${CHOICE}/g" ${THEME_USED_PATH}/${THEME_USED_FILE_NAME}
fi
stop_animation $? || exit 1
else
stop_animation $?
fi
break
else
stat "ERROR" "Danger" "Unknown '${COLOR_DANGER}number${COLOR_BASED}', please enter the right number!\n"
fi
done
}
function main() {
trap 'handleInterruptByUser "Interrupt by User"' 2
listColorScheme
selectTheme
}
main

132
myTermux/.scripts/fonts/fonts.sh Executable file
View File

@ -0,0 +1,132 @@
#!/usr/bin/env bash
LIBRARYS=(
animation signal cursor colors stat
)
LIBRARY_PATH="${HOME}/.scripts/library"
for LIBRARY in ${LIBRARYS[@]}; do
source ${LIBRARY_PATH}/${LIBRARY}.sh
done
FONTS_DIR="${HOME}/.fonts"
INDEX_LOOP=0
FONT_USED_PATH="${HOME}/.config/mytermux/fonts"
FONT_USED_FILE_NAME="used.log"
FONT_USED="$(cat ${FONT_USED_PATH}/${FONT_USED_FILE_NAME})"
TERMUX_CONFIGURATION_PATH="${HOME}/.termux"
TERMUX_CONFIGURATION_FONT_FILE_NAME="font.ttf"
function banner() {
echo -e "
\e[3$(( $RANDOM * 6 / 32767 + 1 ))m _______
\e[3$(( $RANDOM * 6 / 32767 + 1 ))m(_______) _
\e[3$(( $RANDOM * 6 / 32767 + 1 ))m _____ ___ ____ _| |_ ___
\e[3$(( $RANDOM * 6 / 32767 + 1 ))m| ___) _ \| _ (_ _)/___)
\e[3$(( $RANDOM * 6 / 32767 + 1 ))m| | | |_| | | | || |_|___ |
\e[3$(( $RANDOM * 6 / 32767 + 1 ))m|_| \___/|_| |_| \__|___/
${COLOR_BASED}\n"
}
function listFonts() {
clear
setCursor off
banner
printf " %3s %9s %4s\n\n" "No." "List Font" "Status"
for FONT in ${FONTS_DIR}/{*.ttf,*.otf}; do
FONT_FILE_NAME[INDEX_LOOP]=$( echo ${FONT} | awk -F'/' '{print $NF}')
FONT_LIST_NAME[INDEX_LOOP]=$( echo ${FONT} | awk -F'/' '{print $NF}' | sed "s/.ttf//g" | sed "s/.otf//g")
if [ "${FONT_USED}" == "${FONT_FILE_NAME[INDEX_LOOP]}" ]; then
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"
else
echo -e "[ ${COLOR_WARNING}${INDEX_LOOP}${COLOR_BASED}] ${FONT_LIST_NAME[INDEX_LOOP]}"
fi
INDEX_LOOP=$(( ${INDEX_LOOP} + 1 ));
done
INDEX_LOOP=$(( ${INDEX_LOOP} - 1 ));
echo ""
}
function selectFont() {
setCursor on
while :; do
read -p "Select font: " INDEX_FONT
if [ -z "${INDEX_FONT}" ]; then
break;
elif ! [[ ${INDEX_FONT} =~ ^[0-9]+$ ]]; then
stat "ERROR" "Danger" "Unknown '${COLOR_DANGER}number${COLOR_BASED}', please enter the right number!\n"
elif (( ${INDEX_FONT} >= 0 && ${INDEX_FONT} <= ${INDEX_LOOP} )); then
start_animation "Applying Font ..."
sleep 1s
if cp -fr "${FONTS_DIR}/${FONT_FILE_NAME[INDEX_FONT]}" "${TERMUX_CONFIGURATION_PATH}/${TERMUX_CONFIGURATION_FONT_FILE_NAME}"; then
termux-reload-settings
if [ ! -f ${FONT_USED_PATH}/${FONT_USED_FILE_NAME} ]; then
echo -e "${FONT_FILE_NAME[INDEX_FONT]}" >> ${FONT_USED_PATH}/${FONT_USED_FILE_NAME}
elif [ -f ${FONT_USED_PATH}/${FONT_USED_FILE_NAME} ]; then
sed -i "s/${FONT_USED}/${FONT_FILE_NAME[INDEX_FONT]}/g" ${FONT_USED_PATH}/${FONT_USED_FILE_NAME}
fi
stop_animation $? || exit 1
else
stop_animation $?
fi
break
else
stat "ERROR" "Danger" "Unknown '${COLOR_DANGER}number${COLOR_BASED}', please enter the right number!\n"
fi
done
}
function main() {
trap 'handleInterruptByUser "Interrupt by User"' 2
listFonts
selectFont
}
main

View File

@ -0,0 +1,3 @@
pkg i -y nodejs
npm install node-fetch
npm install chalk

View File

@ -0,0 +1,95 @@
const readline = require("readline");
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
const fetch = require('node-fetch');
const chalk = require('chalk');
const api_url = "https://api.github.com/users"
rl.question("Username GitHub: ", function (username) {
fetch(`${api_url}/${username}`)
.then(result => result.json())
.then(json => console.log(informationUser(json)));
fetch(`${api_url}/${username}/repos`)
.then(results => results.json())
.then(results => {
results.forEach(result => { console.log(informationRepository(result)) });
});
rl.close();
});
function informationUser(data) {
return `
Information User
${chalk.blue(' Username')} : ${data.login ? data.login : 'Empty'}
${chalk.blue(' Name')} : ${data.name ? data.name : 'Empty'}
${chalk.red(' Location')} : ${data.location ? data.location : 'Empty'}
${chalk.red(' Followers')} : ${data.followers}
${chalk.blue(' Following')} : ${data.following}
Bio : ${data.bio ? `${data.bio}` : 'Empty'}
${chalk.yellow(' Public Repository')} : ${data.public_repos ? data.public_repos : 'Empty'}
${chalk.blue(' Twitter')} : ${data.twitter_username ? data.twitter_username : 'Empty'}
Email : ${data.email ? data.email : 'Empty'}
`
}
function informationRepository(data) {
return `
Information Repository
${chalk.blue(' Repository Name')} : ${data.name}
${chalk.yellow(' Repository Full Name')} : ${data.full_name}
${chalk.green(' Private')} : ${data.private}
${chalk.green(' Owner')} : ${data.owner.login}
${chalk.magenta(' Created at')} : ${data.created_at}
${chalk.yellow(' Updated at')} : ${data.updated_at}
${chalk.yellow(' Description')} : ${data.description ? data.description : 'No Description'}
${chalk.red(' Issues')} : ${chalk.red(data.open_issues)}
${chalk.yellow(' Stars')} : ${chalk.yellow(data.stargazers_count)}
${chalk.blue(' Forks')} : ${data.forks}
${chalk.green(' Watcher')} : ${data.watchers_count}
${chalk.magenta(' Highest Language')} : ${language(data.language)}
${chalk.yellow(' License')} : ${data.license ? data.license.name : 'No License'}
${chalk.red('𢡄 Size')} : ${Math.floor(data.size / 1024)} MB
`
}
function language(language) {
if (language == "Lua") {
return `${chalk.blue(' Lua')}`
} else if (language == "Shell") {
return `${chalk.white(' Shell')}`
} else if (language == "JavaScript") {
return `${chalk.yellow(' JavaScript')}`
} else if (language == "HTML") {
return `${chalk.red(' HTML')}`
} else if (language == "CSS") {
return `${chalk.blue(' CSS')}`
} else if (language == "Python") {
return `${chalk.blue(' Python')}`
} else if (language == "Rust") {
return `${chalk.red(' Rust')}`
} else if (language == "C") {
return `${chalk.blue(' C')}`
} else if (language == "C++") {
return `${chalk.blue(' C++')}`
} else if (language == "Elixir") {
return `${chalk.magenta(' Elixir')}`
} else if (language == "PHP") {
return `${chalk.blue(' PHP')}`
} else if (language == "TypeScript") {
return `${chalk.blue(' TypeScript')}`
} else if (language == "Vim script") {
return `${chalk.green(' Vim script')}`
}
else {
return "Can't detect Language"
}
}

View File

@ -0,0 +1,111 @@
#!/usr/bin/env bash
# Credits:
# Bash Spinner : https://github.com/tlatsas/bash-spinner
# WhiteSur-GTK-Theme (Line 148-217) : https://github.com/vinceliuice/WhiteSur-gtk-theme/blob/master/lib-core.sh
# Author: xShin
#
# Display awesome looping loading
#
# Usage:
# 1. Source this file on your shell script
# 2. Start the animation:
# start_ghost "[parameter1]" -> this parameter will display your message
# 3. Run your command
# 4. stop_ghost "[parameter1]" -> this parameter your command's exit status
#
# Also see: test.sh
export COLOR_DEFAULT="\033[0m"
export COLOR_BLUE="\033[1;34m"
export COLOR_MAGENTA="\033[1;35m"
export COLOR_CYAN="\033[1;36m"
export COLOR_GREEN="\033[1;32m"
export COLOR_RED="\033[1;31m"
export COLOR_YELLOW="\033[1;33m"
ICON="● " #  •
OK="SUCCESS"
NO="FAILED"
ARRAY_ANIMATION=(
"${COLOR_BLUE}${ICON}${COLOR_GREEN}${ICON}${COLOR_YELLOW}${ICON}${COLOR_RED}${ICON}${COLOR_MAGENTA}${ICON} "
" ${COLOR_GREEN}${ICON}${COLOR_YELLOW}${ICON}${COLOR_RED}${ICON}${COLOR_MAGENTA}${ICON}${COLOR_BLUE}${ICON} "
" ${COLOR_RED}${ICON}${COLOR_MAGENTA}${ICON}${COLOR_YELLOW}${ICON}${COLOR_BLUE}${ICON}${COLOR_GREEN}${ICON} "
" ${COLOR_MAGENTA}${ICON}${COLOR_BLUE}${ICON}${COLOR_GREEN}${COLOR_YELLOW}${ICON}${ICON}${COLOR_RED}${ICON} "
" ${COLOR_BLUE}${ICON}${COLOR_GREEN}${ICON}${COLOR_RED}${ICON}${COLOR_YELLOW}${ICON}${COLOR_MAGENTA}${ICON}"
)
function animation() {
case $1 in
start )
# let column=$(tput cols)-${#2}-8
let column=$(echo $COLUMNS)-${#2}-8
printf "%${column}s"
while true; do
for i in {0..4}; do
printf "\b\r\033[2K${2} ${ARRAY_ANIMATION[i]}"
sleep 0.12
done
for i in {4..0}; do
printf "\b\r\033[2K${2} ${ARRAY_ANIMATION[i]}"
sleep 0.12
done
done
;;
stop )
if [[ -z ${3} ]]; then
echo "Animation not running"
exit 1
fi
kill ${3} > /dev/null 2>&1
echo -en "\b${COLOR_DEFAULT} --> ["
if [[ $2 -eq 0 ]]; then
echo -en " ${COLOR_GREEN}${OK}${COLOR_DEFAULT} "
else
echo -en " ${COLOR_RED}${NO}${COLOR_DEFAULT} "
fi
echo -e "${COLOR_DEFAULT}]"
;;
* )
echo "invalid argument, try again with {start/stop}"
exit 1
;;
esac
}
function start_animation() {
setCursor off
animation "start" "${1}" &
animation_pid=${!}
disown
}
function stop_animation() {
animation "stop" $1 $animation_pid
unset $animation_pid
setCursor on
}

View File

@ -0,0 +1,41 @@
#!/usr/bin/env bash
COLOR_BASED="\e[39m"
COLOR_DANGER="\e[91m"
COLOR_WARNING="\e[93m"
COLOR_SUCCESS="\e[92m"
COLOR_SKY="\e[34m"
COLOR_DEFAULT="\e[39m"
COLOR_RESET="\033[0m"
COLOR_WHITE="\e[97m"
COLOR_BLACK="\e[30m"
COLOR_RED="\e[31m"
COLOR_GREEN="\e[32m"
COLOR_YELLOW="\e[33m"
COLOR_BLUE="\e[34m"
COLOR_MAGENTA="\e[35m"
COLOR_CYAN="\e[36m"
COLOR_LIGHT_GRAY="\e[37m"
COLOR_DARK_GRAY="\e[90m"
COLOR_LIGHT_RED="\e[91m"
COLOR_LIGHT_GREEN="\e[92m"
COLOR_LIGHT_YELLOW="\e[93m"
COLOR_LIGHT_BLUE="\e[94m"
COLOR_LIGHT_MAGENTA="\e[95m"
COLOR_LIGHT_CYAN="\e[96m"
COLOR_BOLD_MAGENTA="\033[1;35m"
COLOR_BOLD_GREEN="\033[1;32m"
COLOR_BOLD_WHITE="\033[1;37m"
COLOR_BOLD_BLUE="\033[1;34m"
COLOR_BOLD_RED="\033[1;31m"
COLOR_BOLD_YELLOW="\033[1;33m"
COLOR_BOLD_CYAN="\033[1;36m"
COLOR_BACKGROUND_YELLOW="\033[1;43;33m"
COLOR_BACKGROUND_WHITE="\033[1;47;37m"
COLOR_BACKGROUND_BLACK="\033[1;40;30m"

View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
function setCursor() {
setterm -cursor ${1}
}

View File

@ -0,0 +1,26 @@
#!/usr/bin/env bash
function screenSize() {
COLS=$(echo $COLUMNS)
ROWS=$(echo $LINES)
if [[ -n ${COLS} && -n ${ROWS} ]]; then
if (( ${COLS} >= 101 & ${ROWS} >= 39 )); then
${1}
else
echo -e "[ ${COLOR_WARNING}ERROR${COLOR_BASED} ] > Please ${COLOR_WARNING}zoom out${COLOR_BASED} your Terminal Screen!"
fi
else
echo -e "[ ${COLOR_DANGER}ERROR${COLOR_BASED} ] > Please run '${COLOR_WARNING}export COLUMNS LINES${COLOR_BASED}' first and then run again!"
fi
}

View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
function handleInterruptByUser() {
pkill com.termux
echo -e "
\n[ ${COLOR_WARNING}ERROR${COLOR_BASED} ] > ${COLOR_DANGER}${1}${COLOR_BASED}\n"
setCursor on
read -n 1 -s -r -p "Press any key to exit "
exit 1
}

View File

@ -0,0 +1,19 @@
#!/usr/bin/env bash
function stat() {
if [ "${2}" == "Success" ]; then
echo -e "[ ${COLOR_SUCCESS}${1}${COLOR_BASED} ] > ${3}"
elif [ "${2}" == "Warning" ]; then
echo -e "[ ${COLOR_WARNING}${1}${COLOR_BASED} ] > ${3}"
elif [ "${2}" == "Danger" ]; then
echo -e "[ ${COLOR_DANGER}${1}${COLOR_BASED} ] > ${3}"
fi
}

View File

@ -0,0 +1,30 @@
#!/usr/bin/env bash
function switchCase() {
setCursor on
read -p " ${1} ${2}? [Y/n] " SWITCH_CASE
case "$SWITCH_CASE" in
"" )
${3}
;;
y|Y )
${3}
;;
n|N )
stat "ERROR" "Warning" "Abort."
;;
* )
stat "ERROR" "Warning" "Unknown '${SWITCH_CASE}'"
switchCase ${1} ${2} ${3}
;;
esac
}

View File

@ -0,0 +1,6 @@
#!/data/data/com.termux/files/usr/bin/env bash
SONG=$(mpc --host=127.0.0.1 --port=8000 current)
#A8D7FE
termux-toast -b "#ABB2BF" -c "#000000" -g middle "Now Playing: ${SONG}"

Some files were not shown because too many files have changed in this diff Show More