A repository containing my setup for the Sakura terminal and Neofetch.
Run the installer:
curl -sSL https://raw.githubusercontent.com/1999AZZAR/neofetch_ascii/master/install.sh | bash
After installation:
-
If you use Bash:
source ~/.bashrc
-
If you use Zsh:
source ~/.zshrc
Follow these steps to install manually:
-
Place
config.conf
in the Neofetch configuration directory:/home/[username]/.config/neofetch/
or wherever your Neofetch config file is located.
-
Place
sakura.conf
in the Sakura configuration directory:/home/[username]/.config/sakura/
or wherever your Sakura config file is located.
-
Copy the
ascii
folder and its contents to the/usr/
directory:/usr/
-
Ensure
loopers.sh
has executable permissions:chmod +x /usr/ascii/loopers.sh
You can use the ascii
function to invoke the loopers.sh
script from any directory.
-
Add the following function to your shell configuration (
~/.bashrc
,~/.zshrc
, etc.):ascii() { # Save the current directory local original_dir=$(pwd) # Change to the ASCII art directory cd /usr/ascii/ || { echo "Error: /usr/ascii/ directory not found." return 1 } # Call the loopers.sh script with passed arguments ./loopers.sh "$@" # Restore the original directory cd "$original_dir" || { echo "Error: Unable to return to the original directory." return 1 } }
-
Reload your shell configuration:
source ~/.bashrc # Or `source ~/.zshrc` for Zsh
-
Default Behavior (Ordered Loop):
ascii -o
Displays all files in
/usr/ascii/
in alphabetical order with a default delay of 0.7 seconds. -
Specific File Display:
ascii -f <file_number>
Displays a specific file (e.g.,
ascii -f 1
displays001.txt
) with a default delay of 1.5 seconds. -
Custom Delay: Use the
-t
flag to set a custom delay (in seconds):ascii -f 1 -t 2
Displays
001.txt
with a delay of 2.0 seconds. -
Random Loop:
ascii -r
Displays all files in random order with a default delay of 0.7 seconds.
-
Range Display (Ordered or Random):
ascii -fr <start:end> ascii -fo <start:end>
Displays files in the specified range (
start
toend
) either in random (-fr
) or ordered (-fo
) mode.
-
Display
001.txt
with a custom delay:ascii -f 1 -t 1.8
-
Loop through all files randomly:
ascii -r
-
Display files 5 to 10 in order:
ascii -fo 5:10
-
Display files 20 to 30 randomly with a delay of 2 seconds:
ascii -fr 20:30 -t 2
Warning: This setup includes content that is primarily for mature audiences (18+). Proceed at your own risk.