GithubHelp home page GithubHelp logo

adiee5 / cx16-neofetch Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 44 KB

a Neofetch port for Commander X16

License: MIT License

Makefile 3.30% Batchfile 2.50% Lua 94.19%
6502 6502-processor command-line command-line-tool commander-x16 commanderx16 commodore neofetch neofetch-clone prog8

cx16-neofetch's Introduction

cx16-neofetch

A program for Commander X16, that shows your system information in a decorative manner. Heavily inspired by neofetch

This program's intended to be used with cx16shell

neofetch screenshot

A compiled binary can be downloaded from the official CX16 forum post. Now it's also distributed with the cx16shell itself!

Compiling

First, you must have the prog8 compiler (in version 9.8 or bigger) set up and ready for compiling. For more information, go to the official page.

Linux

In Linux, you should create an alias called p8compile that runs java -jar "/path/to/your/prog8compiler.jar", then you can just run make command to compile it and make install to place the binary into SHELL-FILES/commands folder.

Windows

Before you'll run compile.bat script, you'll have to create an Environment Variable called PROG8C with its value being "Drive:\path\to\your\prog8compiler.jar". If you don't want to do that, I guess you can just replace the %PROG8C% inside the compile.bat script with the path to your compiler. Then you can just run compile.bat. The outputted binary's going to be located in the SHELL-FILES/commands folder.

In all of those cases, remember to also include the filename of the compiler at the end of the path (if it wasn't obvious)!

Usage

In order to use the program, you'll need to create the SHELL-FILES/commands folder inside your CX16 SD card or Emulator's working directory. Then copy your binary to that folder. It's recommended to remove the suffix from your binary file's name (if it has it), so that you don't have to type it. Now you can run your SHELL.PRG. Then you can simply execute the neofetch by typing neofetch in your shell โ€“ just like you'd do on any Linux system.

Note: you cannot run the program from the BASIC interpreter. This is probably going to result in your device crashing.

Since 9cbb957, Neofetch adjusts itself to the current screen resolution so that you can enjoy it in every resolution. You can also force neofetch to use a specific layout by providing a layout ID as an argument, for example you can type neofetch 1 to display the former default layout no matter what screen resolution you have. Layout IDs correspond to numbers used by basic SCREEN and SHELL.PRG's mode commands. There are also additional layouts, which can be accessed by typing numbers larger than 11.

Bonus - How to make a neofetch run when starting shell

Starting with Shell v1.3, users can set up the starting routine of cx16shell by editing /SHELL-FILES/config.sh file. This file is a simple shell script, that contains commands you want to execute before shell gives you the ability to type commands. You just need to add command, that is neofetch. You can even select the neofetch layout just like you'd do in the command prompt. Before saving the file, make sure, that the file ends with an empty line. Now, when you start the shell, you are going to be greeted by the neofetch! :D

cx16-neofetch's People

Contributors

adiee5 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.