mirror of
https://gitlab.com/mattia.basaglia/ASCII-Pony.git
synced 2024-11-22 04:07:59 +01:00
systempony --list
This commit is contained in:
parent
0602632aa5
commit
09779b3ec0
2 changed files with 33 additions and 3 deletions
19
README
19
README
|
@ -22,7 +22,22 @@ Available Characters
|
||||||
* Big McIntosh
|
* Big McIntosh
|
||||||
* Princess Cadance
|
* Princess Cadance
|
||||||
|
|
||||||
Scripts and stuff
|
System Pony
|
||||||
|
-----------
|
||||||
|
|
||||||
|
systempony is a script which shows a pony and system information.
|
||||||
|
It can be installed system-wide with make install (PREFIX selects the directory).
|
||||||
|
Global config is found in $PREFIX/share/ascii-pony/systempony.conf,
|
||||||
|
(or ./systempony.conf if not installed), user config is in ~/.systempony.
|
||||||
|
|
||||||
|
Config Variables:
|
||||||
|
* PONY : pony identifier or "random",
|
||||||
|
see "./systempony --list" for a list of identifiers
|
||||||
|
* INFO : array of system info to display, "./systempony -h" for a list
|
||||||
|
* FSTYPE : file system type used to calculate disk usage (Uses df),
|
||||||
|
if empty it will show the total.
|
||||||
|
|
||||||
|
Generating Images
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
Each final character is divided into separate file, one for each color.
|
Each final character is divided into separate file, one for each color.
|
||||||
|
@ -37,7 +52,7 @@ It produces the following kinds of output:
|
||||||
Being a PHP script it requires PHP in order to run it.
|
Being a PHP script it requires PHP in order to run it.
|
||||||
|
|
||||||
The makefile will compile all of the above, the plaintext in the same directory
|
The makefile will compile all of the above, the plaintext in the same directory
|
||||||
as the parent of the directory containing the various part files, everythin else
|
as the parent of the directory containing the various part files, everything else
|
||||||
in /rendered.
|
in /rendered.
|
||||||
It will also call Inkscape to generate PNG images from the SVG.
|
It will also call Inkscape to generate PNG images from the SVG.
|
||||||
|
|
||||||
|
|
15
systempony
15
systempony
|
@ -133,6 +133,9 @@ function help()
|
||||||
echo -e "\t\tThis option supports multiples IDs separated by commas, spaces or colons."
|
echo -e "\t\tThis option supports multiples IDs separated by commas, spaces or colons."
|
||||||
echo -e "\t\tAvailable IDs:"
|
echo -e "\t\tAvailable IDs:"
|
||||||
declare -F | grep ponyget_ | sed "s/declare -f ponyget_/\t\t * /"
|
declare -F | grep ponyget_ | sed "s/declare -f ponyget_/\t\t * /"
|
||||||
|
echo
|
||||||
|
echo -e "\t$(bold --list), $(bold --list-ponies)"
|
||||||
|
echo -e "\t\tShows a list of possible values for $(bold --pony)."
|
||||||
|
|
||||||
title CONFIGURATION
|
title CONFIGURATION
|
||||||
echo -e "\tYou can override $(bold PONY) and $(bold INFO) in the config files."
|
echo -e "\tYou can override $(bold PONY) and $(bold INFO) in the config files."
|
||||||
|
@ -143,6 +146,14 @@ function help()
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function list_ponies()
|
||||||
|
{
|
||||||
|
ponydir=$(get_data_file "rendered/ansi/")
|
||||||
|
echo random
|
||||||
|
find "$ponydir" -name '*.colored.txt' -exec basename {} .colored.txt \; | sort
|
||||||
|
}
|
||||||
|
|
||||||
function select_info()
|
function select_info()
|
||||||
{
|
{
|
||||||
INFO=($(echo "${*}" | column -t -s:,))
|
INFO=($(echo "${*}" | column -t -s:,))
|
||||||
|
@ -182,6 +193,10 @@ do
|
||||||
help
|
help
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
--list|--list-ponies)
|
||||||
|
list_ponies
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
--pony)
|
--pony)
|
||||||
shift
|
shift
|
||||||
PONY=$1
|
PONY=$1
|
||||||
|
|
Loading…
Reference in a new issue