I hope you understand my bad english. π
These are dotfiles or my personal Termux configuration. But I didn't make all of them (combined from several repositories).
Here are some details about my setup
- Shell β’ ZSH π with oh-my-zsh framework + plugins
- Music β’ MPD π΅ with ncmpcpp text-mode client for MPD
- File Manager β’ lf π
- Text Editor β’ Neovim π + plugins
- System Information β’ Neofetch βοΈ
- Font β’ MesloLGS Nerd Font π©
- Icon β’ Nerd Fonts π
Termux (Android)
-
$ pkg update && pkg upgrade
-
$ pkg install ncurses-utils bc git
-
$ git clone https://github.com/xshin404/myTermux
-
$ cd myTermux
-
$ cp .xshin.var $HOME # Setup global variable
-
$ chmod +x install.sh
-
$ ./install.sh [options] # You can see the options with './install.sh help'
Termux Login |
---|
- Username : xshin
- Password : xshin
To change username password edit file ~/.scripts/login.sh
.
To remove Termux Login in autostart delete on ~/.zshrc bash ~/.scripts/login.sh
See
Ayu Dark | nekonako-djancoeg | dracula | owl4ce-dark |
---|---|---|---|
owl4ce-light | snazzy | xshin |
---|---|---|
lf
- Colorscheme
Dark Theme | Light Theme |
---|---|
This like ncmpcpp if you change the colorscheme terminal then lf in the color section also changes
- PATH Config File
To change lf configuration you can edit its config file in ~/.config/lf/lfrc
and the icon variable i save on ~/.zshrc
Ncmpcpp
NOTE: Before you run ncmpcpp you need run MPD first with
mpd
. If you doesn't run mpd first ncmpcpp will connection refused
- Help
Help |
---|
To show help press F1
- Browse Mode
MPD Database | Local Filesystem |
---|---|
To browse the music file press 2
and search your music path
NOTE: Press
1x
to mode MPD Database. Press2x
to mode Local Filesystem.
- User Interface
Classic | Alternative |
---|---|
To change User Interface press \
- Visualizer Mode
Wave | Wave Filled | Spectrum | Ellipse |
---|---|---|---|
To Change Visualizer Mode press <space>
- Colorscheme
If you change the colorscheme in termux, like this
Change Color Scheme |
---|
then ncmpcpp in the color section aslo changes
Nekonako-Djancoeg | Ayu Light | xShin |
---|---|---|
- Clock
Clock |
---|
To use clock mode press =
(equal) but you can't open if screen too small (you must zoom out the screen)
- PATH Config File
ncmpcpp configuration PATH in ~/.config/ncmpcpp/config
Cava
- Default Color
Cava Default Color |
---|
- Foreground Color
Cava Foreground Color | Cava Foreground Color | Cava Foreground Color |
---|---|---|
To change foreground colors press f
- Background Color
Cava Background Color | Cava Background Color | Cava Background Color |
---|---|---|
To change background colors press b
NOTE : Split Terminal i'm using Tmux press
CTRL + B + "
Neofetch
Neofetch Random Small |
---|
NOTE for: myTermux-v.0.4.1 pre
This is because i create logic script to random neofetch distro logo small, if you do not want random change the alias on file ~/.zshrc neo="... --randomsmall ..."
Alias |
---|
Neofetch Configuration | Neofetch Script |
---|---|
Neofetch Battery Charging | Neofetch Battery Discharging | Neofetch Storage |
---|---|---|
To change Neofetch configuration you can edit its config file in ~/.config/neofetch/config.conf
& ~/.config/neofetch/script.sh
Neovim
- Colorscheme
Onedark | Ayu Dark | Gruvbox |
---|---|---|
- Plugin
Vim Plug | CocList marketplace |
---|---|
- Keybindings
Keys | Mode | Action |
---|---|---|
C-s |
nmap, vmap, imap | Save |
C-q |
nmap, vmap, imap | Quit |
C-M-q |
nmap, vmap, imap | Quit Without Saving |
C-b |
nmap, vmap, imap | Nerdtree |
C-a |
nmap, vmap, cmap | Home Text |
C-e |
nmap, vmap, cmap | End Text |
C-C |
vmap | Copy |
C-V |
imap, cmap | Paste |
M-c |
nmap, vmap, cmap | Set Termguicolors |
C-M-c |
nmap, vmap, cmap | Unset Termguicolors |
M-z |
nmap, vmap, imap | Wrap Text |
C-M-z |
nmap, vmap, imap | Unwrap Text |
C-M-n |
nmap, vmap, imap | Set Toggle Hybrid Line Number |
C-M-b |
nmap, vmap, imap | Unset off Hybrid Line Number |
exa
- "ls" unknown argument --icons
This error is because of an old version of exa
that doesn't support --icons
argument. To fix this please use exa ^v.0.9.0
.
In my case, it is because of my old sources.list
in $PREFIX/etc/apt/sources.list
and it actually is packages' server or mirror.
On the first pkg update
, you should answer y
when asked whether you wanna keep your current version or switch to the package maintainer's version. Please switch it to the maintainer's version.
If for any reason you cannot get the right version of exa
, there is an alternative software which do merely the same as exa
named lsd
.
- Run
pkg install lsd
to install. Then you need to modify~/.zshrc
where thealias ls="exa "
exists and replace it toalias ls='lsd'
and maybe alsoalias la='lsd -a'
.
apt | motd | exa v.0.9.0 |
---|---|---|
Ncmpcpp
- Music doesn't automatic detect
This error is because of the music PATH not directed to the right one. For example my music directory is in /sdcard/Music/
or ~/storage/music/
. Please set it up to your own music folder.
PATH Music Ncmpcpp |
---|
Neofetch
- Battery & Storage icon not showing
If you want Battery icon showing you have to install Termux-API app from the same source as your installed Termux (whether from PlayStore or F-Droid). Though it is recommended for you to install Termux from F-Droid Don't forget to install termux-api package on Termux with pkg install termux-api
.
For storage info you must set it to the right partition on your Android (e.g /storage/emulated
).
NOTE: Please run
df -h
to know where your internal partition is located.
Termux-API | Storage |
---|---|