{"id":22432669,"url":"https://github.com/1999azzar/neofetch_ascii","last_synced_at":"2025-04-13T16:54:47.042Z","repository":{"id":234274055,"uuid":"788179643","full_name":"1999AZZAR/neofetch_ascii","owner":"1999AZZAR","description":"my rice for neofetch and sakura terminal","archived":false,"fork":false,"pushed_at":"2025-02-14T20:27:05.000Z","size":5287,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T07:48:22.505Z","etag":null,"topics":["ascii-art","braille-art","neofetch","neofetch-configuration","sakura"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/1999AZZAR.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-17T23:36:06.000Z","updated_at":"2025-02-14T20:27:09.000Z","dependencies_parsed_at":"2025-02-01T12:44:06.075Z","dependency_job_id":"d925da7f-9cf5-47ac-9062-ece22b9af0a5","html_url":"https://github.com/1999AZZAR/neofetch_ascii","commit_stats":null,"previous_names":["1999azzar/neofetch_ascii"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999AZZAR%2Fneofetch_ascii","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999AZZAR%2Fneofetch_ascii/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999AZZAR%2Fneofetch_ascii/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1999AZZAR%2Fneofetch_ascii/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1999AZZAR","download_url":"https://codeload.github.com/1999AZZAR/neofetch_ascii/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248750009,"owners_count":21155682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ascii-art","braille-art","neofetch","neofetch-configuration","sakura"],"created_at":"2024-12-05T22:12:30.629Z","updated_at":"2025-04-13T16:54:47.021Z","avatar_url":"https://github.com/1999AZZAR.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My Rice for Sakura and Neofetch\n\nA repository containing my setup for the Sakura terminal and Neofetch.\n\n## Installation\n\n### Automatic Installation\n\nRun the installer:\n\n```bash\ncurl -sSL https://raw.githubusercontent.com/1999AZZAR/neofetch_ascii/master/install.sh | bash\n```\n\nAfter installation:\n\n- If you use Bash:\n  \n  ```bash\n  source ~/.bashrc\n  ```\n- If you use Zsh:\n  \n  ```bash\n  source ~/.zshrc\n  ```\n\n### Manual Installation\n\nFollow these steps to install manually:\n\n1. Place `config.conf` in the Neofetch configuration directory:\n   \n   ```\n   /home/[username]/.config/neofetch/\n   ```\n   \n   or wherever your Neofetch config file is located.\n\n2. Place `sakura.conf` in the Sakura configuration directory:\n   \n   ```\n   /home/[username]/.config/sakura/\n   ```\n   \n   or wherever your Sakura config file is located.\n\n3. Copy the `ascii` folder and its contents to the `/usr/` directory:\n   \n   ```\n   /usr/\n   ```\n\n4. Ensure `loopers.sh` has executable permissions:\n   \n   ```bash\n   chmod +x /usr/ascii/loopers.sh\n   ```\n\n### How to Use\n\n#### Running Looper (`loopers.sh`)\n\nYou can use the `ascii` function to invoke the `loopers.sh` script from any directory.\n\n- Add the following function to your shell configuration (`~/.bashrc`, `~/.zshrc`, etc.):\n  \n  ```bash\n  ascii() {\n      # Save the current directory\n      local original_dir=$(pwd)\n  \n      # Change to the ASCII art directory\n      cd /usr/ascii/ || {\n          echo \"Error: /usr/ascii/ directory not found.\"\n          return 1\n      }\n  \n      # Call the loopers.sh script with passed arguments\n      ./loopers.sh \"$@\"\n  \n      # Restore the original directory\n      cd \"$original_dir\" || {\n          echo \"Error: Unable to return to the original directory.\"\n          return 1\n      }\n  }\n  ```\n\n- Reload your shell configuration:\n  \n  ```bash\n  source ~/.bashrc  # Or `source ~/.zshrc` for Zsh\n  ```\n\n#### Command-Line Options for `loopers.sh`\n\n1. **Default Behavior (Ordered Loop):**\n   \n   ```bash\n   ascii -o\n   ```\n   \n   Displays all files in `/usr/ascii/` in alphabetical order with a default delay of **0.7 seconds**.\n\n2. **Specific File Display:**\n   \n   ```bash\n   ascii -f \u003cfile_number\u003e\n   ```\n   \n   Displays a specific file (e.g., `ascii -f 1` displays `001.txt`) with a default delay of **1.5 seconds**.\n\n3. **Custom Delay:**\n   Use the `-t` flag to set a custom delay (in seconds):\n   \n   ```bash\n   ascii -f 1 -t 2\n   ```\n   \n   Displays `001.txt` with a delay of **2.0 seconds**.\n\n4. **Random Loop:**\n   \n   ```bash\n   ascii -r\n   ```\n   \n   Displays all files in random order with a default delay of **0.7 seconds**.\n\n5. **Range Display (Ordered or Random):**\n   \n   ```bash\n   ascii -fr \u003cstart:end\u003e\n   ascii -fo \u003cstart:end\u003e\n   ```\n   \n   Displays files in the specified range (`start` to `end`) either in random (`-fr`) or ordered (`-fo`) mode.\n\n#### Example Commands\n\n- Display `001.txt` with a custom delay:\n  \n  ```bash\n  ascii -f 1 -t 1.8\n  ```\n\n- Loop through all files randomly:\n  \n  ```bash\n  ascii -r\n  ```\n\n- Display files 5 to 10 in order:\n  \n  ```bash\n  ascii -fo 5:10\n  ```\n\n- Display files 20 to 30 randomly with a delay of 2 seconds:\n  \n  ```bash\n  ascii -fr 20:30 -t 2\n  ```\n\n## Demo\n\n### Use Case\n\n[![asciicast](https://asciinema.org/a/kvIYKfWWprJeNAWB0E86Z7s7X.svg)](https://asciinema.org/a/kvIYKfWWprJeNAWB0E86Z7s7X)\n\n### Looper\n\n[![asciicast](https://asciinema.org/a/RVnWXlRwS1GLoHTbfL0teIeHM.svg)](https://asciinema.org/a/RVnWXlRwS1GLoHTbfL0teIeHM)\n\n\u003e **Warning:**\n\u003e This setup includes content that is primarily for mature audiences (18+). Proceed at your own risk.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1999azzar%2Fneofetch_ascii","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1999azzar%2Fneofetch_ascii","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1999azzar%2Fneofetch_ascii/lists"}